]> code.delx.au - gnu-emacs/blob - configure
Regenerated.
[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 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 XFT_CFLAGS
696 XFT_LIBS
697 ALLOCA
698 liblockfile
699 LIBOBJS
700 NEED_SETGID
701 KMEM_GROUP
702 GETLOADAVG_LIBS
703 GETOPT_H
704 GETOPTOBJS
705 version
706 configuration
707 canonical
708 srcdir
709 lispdir
710 locallisppath
711 lisppath
712 x_default_search_path
713 etcdir
714 archlibdir
715 bitmapdir
716 gamedir
717 gameuser
718 c_switch_system
719 c_switch_machine
720 LD_SWITCH_X_SITE
721 LD_SWITCH_X_SITE_AUX
722 C_SWITCH_X_SITE
723 X_TOOLKIT_TYPE
724 machfile
725 opsysfile
726 carbon_appdir
727 LTLIBOBJS'
728 ac_subst_files=''
729 ac_precious_vars='build_alias
730 host_alias
731 target_alias
732 CC
733 CFLAGS
734 LDFLAGS
735 LIBS
736 CPPFLAGS
737 CPP
738 XMKMF'
739
740
741 # Initialize some variables set by options.
742 ac_init_help=
743 ac_init_version=false
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
746 cache_file=/dev/null
747 exec_prefix=NONE
748 no_create=
749 no_recursion=
750 prefix=NONE
751 program_prefix=NONE
752 program_suffix=NONE
753 program_transform_name=s,x,x,
754 silent=
755 site=
756 srcdir=
757 verbose=
758 x_includes=NONE
759 x_libraries=NONE
760
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE}'
778 infodir='${datarootdir}/info'
779 htmldir='${docdir}'
780 dvidir='${docdir}'
781 pdfdir='${docdir}'
782 psdir='${docdir}'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
786
787 ac_prev=
788 ac_dashdash=
789 for ac_option
790 do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
796 fi
797
798 case $ac_option in
799 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *) ac_optarg=yes ;;
801 esac
802
803 # Accept the important Cygnus configure options, so we can diagnose typos.
804
805 case $ac_dashdash$ac_option in
806 --)
807 ac_dashdash=yes ;;
808
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 ac_prev=bindir ;;
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 bindir=$ac_optarg ;;
813
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
818
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
825
826 --config-cache | -C)
827 cache_file=config.cache ;;
828
829 -datadir | --datadir | --datadi | --datad)
830 ac_prev=datadir ;;
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
833
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
840
841 -disable-* | --disable-*)
842 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_$ac_feature=no ;;
849
850 -docdir | --docdir | --docdi | --doc | --do)
851 ac_prev=docdir ;;
852 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 docdir=$ac_optarg ;;
854
855 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 ac_prev=dvidir ;;
857 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 dvidir=$ac_optarg ;;
859
860 -enable-* | --enable-*)
861 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_$ac_feature=\$ac_optarg ;;
868
869 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
870 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
871 | --exec | --exe | --ex)
872 ac_prev=exec_prefix ;;
873 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
874 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
875 | --exec=* | --exe=* | --ex=*)
876 exec_prefix=$ac_optarg ;;
877
878 -gas | --gas | --ga | --g)
879 # Obsolete; use --with-gas.
880 with_gas=yes ;;
881
882 -help | --help | --hel | --he | -h)
883 ac_init_help=long ;;
884 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
885 ac_init_help=recursive ;;
886 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
887 ac_init_help=short ;;
888
889 -host | --host | --hos | --ho)
890 ac_prev=host_alias ;;
891 -host=* | --host=* | --hos=* | --ho=*)
892 host_alias=$ac_optarg ;;
893
894 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 ac_prev=htmldir ;;
896 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 | --ht=*)
898 htmldir=$ac_optarg ;;
899
900 -includedir | --includedir | --includedi | --included | --include \
901 | --includ | --inclu | --incl | --inc)
902 ac_prev=includedir ;;
903 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
904 | --includ=* | --inclu=* | --incl=* | --inc=*)
905 includedir=$ac_optarg ;;
906
907 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 ac_prev=infodir ;;
909 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
910 infodir=$ac_optarg ;;
911
912 -libdir | --libdir | --libdi | --libd)
913 ac_prev=libdir ;;
914 -libdir=* | --libdir=* | --libdi=* | --libd=*)
915 libdir=$ac_optarg ;;
916
917 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
918 | --libexe | --libex | --libe)
919 ac_prev=libexecdir ;;
920 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
921 | --libexe=* | --libex=* | --libe=*)
922 libexecdir=$ac_optarg ;;
923
924 -localedir | --localedir | --localedi | --localed | --locale)
925 ac_prev=localedir ;;
926 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
927 localedir=$ac_optarg ;;
928
929 -localstatedir | --localstatedir | --localstatedi | --localstated \
930 | --localstate | --localstat | --localsta | --localst | --locals)
931 ac_prev=localstatedir ;;
932 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
933 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
934 localstatedir=$ac_optarg ;;
935
936 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 ac_prev=mandir ;;
938 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
939 mandir=$ac_optarg ;;
940
941 -nfp | --nfp | --nf)
942 # Obsolete; use --without-fp.
943 with_fp=no ;;
944
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c | -n)
947 no_create=yes ;;
948
949 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951 no_recursion=yes ;;
952
953 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
954 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
955 | --oldin | --oldi | --old | --ol | --o)
956 ac_prev=oldincludedir ;;
957 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
958 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
959 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
960 oldincludedir=$ac_optarg ;;
961
962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 ac_prev=prefix ;;
964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
965 prefix=$ac_optarg ;;
966
967 -program-prefix | --program-prefix | --program-prefi | --program-pref \
968 | --program-pre | --program-pr | --program-p)
969 ac_prev=program_prefix ;;
970 -program-prefix=* | --program-prefix=* | --program-prefi=* \
971 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
972 program_prefix=$ac_optarg ;;
973
974 -program-suffix | --program-suffix | --program-suffi | --program-suff \
975 | --program-suf | --program-su | --program-s)
976 ac_prev=program_suffix ;;
977 -program-suffix=* | --program-suffix=* | --program-suffi=* \
978 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979 program_suffix=$ac_optarg ;;
980
981 -program-transform-name | --program-transform-name \
982 | --program-transform-nam | --program-transform-na \
983 | --program-transform-n | --program-transform- \
984 | --program-transform | --program-transfor \
985 | --program-transfo | --program-transf \
986 | --program-trans | --program-tran \
987 | --progr-tra | --program-tr | --program-t)
988 ac_prev=program_transform_name ;;
989 -program-transform-name=* | --program-transform-name=* \
990 | --program-transform-nam=* | --program-transform-na=* \
991 | --program-transform-n=* | --program-transform-=* \
992 | --program-transform=* | --program-transfor=* \
993 | --program-transfo=* | --program-transf=* \
994 | --program-trans=* | --program-tran=* \
995 | --progr-tra=* | --program-tr=* | --program-t=*)
996 program_transform_name=$ac_optarg ;;
997
998 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 ac_prev=pdfdir ;;
1000 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1001 pdfdir=$ac_optarg ;;
1002
1003 -psdir | --psdir | --psdi | --psd | --ps)
1004 ac_prev=psdir ;;
1005 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1006 psdir=$ac_optarg ;;
1007
1008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1009 | -silent | --silent | --silen | --sile | --sil)
1010 silent=yes ;;
1011
1012 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 ac_prev=sbindir ;;
1014 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 | --sbi=* | --sb=*)
1016 sbindir=$ac_optarg ;;
1017
1018 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1019 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1020 | --sharedst | --shareds | --shared | --share | --shar \
1021 | --sha | --sh)
1022 ac_prev=sharedstatedir ;;
1023 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1024 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1025 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 | --sha=* | --sh=*)
1027 sharedstatedir=$ac_optarg ;;
1028
1029 -site | --site | --sit)
1030 ac_prev=site ;;
1031 -site=* | --site=* | --sit=*)
1032 site=$ac_optarg ;;
1033
1034 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 ac_prev=srcdir ;;
1036 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1037 srcdir=$ac_optarg ;;
1038
1039 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1040 | --syscon | --sysco | --sysc | --sys | --sy)
1041 ac_prev=sysconfdir ;;
1042 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1043 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1044 sysconfdir=$ac_optarg ;;
1045
1046 -target | --target | --targe | --targ | --tar | --ta | --t)
1047 ac_prev=target_alias ;;
1048 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1049 target_alias=$ac_optarg ;;
1050
1051 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1052 verbose=yes ;;
1053
1054 -version | --version | --versio | --versi | --vers | -V)
1055 ac_init_version=: ;;
1056
1057 -with-* | --with-*)
1058 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_$ac_package=\$ac_optarg ;;
1065
1066 -without-* | --without-*)
1067 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=no ;;
1074
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1078
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1085
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1092
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094 Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1096 ;;
1097
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1106
1107 *)
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 ;;
1114
1115 esac
1116 done
1117
1118 if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1122 fi
1123
1124 # Be sure to have absolute directory names.
1125 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1129 do
1130 eval ac_val=\$$ac_var
1131 case $ac_val in
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 esac
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1137 done
1138
1139 # There might be people who depend on the old broken behavior: `$host'
1140 # used to hold the argument of --host etc.
1141 # FIXME: To remove some day.
1142 build=$build_alias
1143 host=$host_alias
1144 target=$target_alias
1145
1146 # FIXME: To remove some day.
1147 if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1154 fi
1155 fi
1156
1157 ac_tool_prefix=
1158 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159
1160 test "$silent" = yes && exec 6>/dev/null
1161
1162
1163 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164 ac_ls_di=`ls -di .` &&
1165 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1171
1172
1173 # Find the source files, if location was not specified.
1174 if test -z "$srcdir"; then
1175 ac_srcdir_defaulted=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir=`$as_dirname -- "$0" ||
1178 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182 echo X"$0" |
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)[^/].*/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)$/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\).*/{
1196 s//\1/
1197 q
1198 }
1199 s/.*/./; q'`
1200 srcdir=$ac_confdir
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 srcdir=..
1203 fi
1204 else
1205 ac_srcdir_defaulted=no
1206 fi
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1211 fi
1212 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213 ac_abs_confdir=`(
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1216 pwd)`
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220 fi
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1224 case $srcdir in
1225 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226 esac
1227 for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232 done
1233
1234 #
1235 # Report the --help message.
1236 #
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241 \`configure' configures this package to adapt to many kinds of systems.
1242
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248 Defaults for the options are specified in brackets.
1249
1250 Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1266
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1271
1272 For better control, use the options below.
1273
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294 _ACEOF
1295
1296 cat <<\_ACEOF
1297
1298 Program names:
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1302
1303 X features:
1304 --x-includes=DIR X include files are in DIR
1305 --x-libraries=DIR X library files are in DIR
1306
1307 System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310 _ACEOF
1311 fi
1312
1313 if test -n "$ac_init_help"; then
1314
1315 cat <<\_ACEOF
1316
1317 Optional Features:
1318 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1319 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1320 --enable-carbon-app[=DIR] [DIR=/Application]
1321 specify install directory for Emacs.app on Mac OS X
1322 --enable-asserts compile code with asserts enabled
1323 --enable-maintainer-mode enable make rules and dependencies not useful
1324 (and sometimes confusing) to the casual installer
1325 --enable-locallisppath=PATH
1326 directories Emacs should search for lisp files
1327 specific to this site
1328 --disable-largefile omit support for large files
1329
1330 Optional Packages:
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --without-gcc don't use GCC to compile Emacs if GCC is found
1334 --without-pop don't support POP mail retrieval with movemail
1335 --with-kerberos support Kerberos-authenticated POP
1336 --with-kerberos5 support Kerberos version 5 authenticated POP
1337 --with-hesiod support Hesiod to get the POP server host
1338 --without-sound don't compile with sound support
1339 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1340 motif, gtk, no)
1341 --with-xpm use -lXpm for displaying XPM images
1342 --with-jpeg use -ljpeg for displaying JPEG images
1343 --with-tiff use -ltiff for displaying TIFF images
1344 --with-gif use -lgif (or -lungif) for displaying GIF images
1345 --with-png use -lpng for displaying PNG images
1346 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1347 --with-rsvg use -lrsvg-2 for displaying SVG images
1348 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1349 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1350 --without-toolkit-scroll-bars
1351 don't use Motif or Xaw3d scroll bars
1352 --without-xaw3d don't use Xaw3d
1353 --without-xim don't use X11 XIM
1354 --without-carbon don't use Carbon GUI on Mac OS X
1355 --with-x use the X Window System
1356
1357 Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 LIBS libraries to pass to the linker, e.g. -l<library>
1363 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
1365 CPP C preprocessor
1366 XMKMF Path to xmkmf, Makefile generator for X Window System
1367
1368 Use these variables to override the choices made by `configure' or to help
1369 it to find libraries and programs with nonstandard names/locations.
1370
1371 _ACEOF
1372 ac_status=$?
1373 fi
1374
1375 if test "$ac_init_help" = "recursive"; then
1376 # If there are subdirs, report their specific --help.
1377 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1378 test -d "$ac_dir" || continue
1379 ac_builddir=.
1380
1381 case "$ac_dir" in
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *)
1384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 esac ;;
1391 esac
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1396
1397 case $srcdir in
1398 .) # We are building in place.
1399 ac_srcdir=.
1400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
1403 ac_srcdir=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1406 *) # Relative name.
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1410 esac
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1412
1413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1416 echo &&
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1419 echo &&
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1421 else
1422 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1423 fi || ac_status=$?
1424 cd "$ac_pwd" || { ac_status=$?; break; }
1425 done
1426 fi
1427
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1430 cat <<\_ACEOF
1431 configure
1432 generated by GNU Autoconf 2.61
1433
1434 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1435 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1436 This configure script is free software; the Free Software Foundation
1437 gives unlimited permission to copy, distribute and modify it.
1438 _ACEOF
1439 exit
1440 fi
1441 cat >config.log <<_ACEOF
1442 This file contains any messages produced by compilers while
1443 running configure, to aid debugging if configure makes a mistake.
1444
1445 It was created by $as_me, which was
1446 generated by GNU Autoconf 2.61. Invocation command line was
1447
1448 $ $0 $@
1449
1450 _ACEOF
1451 exec 5>>config.log
1452 {
1453 cat <<_ASUNAME
1454 ## --------- ##
1455 ## Platform. ##
1456 ## --------- ##
1457
1458 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1459 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1460 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1461 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1462 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1463
1464 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1465 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1466
1467 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1468 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1469 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1470 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1471 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1472 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1473 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1474
1475 _ASUNAME
1476
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 for as_dir in $PATH
1479 do
1480 IFS=$as_save_IFS
1481 test -z "$as_dir" && as_dir=.
1482 echo "PATH: $as_dir"
1483 done
1484 IFS=$as_save_IFS
1485
1486 } >&5
1487
1488 cat >&5 <<_ACEOF
1489
1490
1491 ## ----------- ##
1492 ## Core tests. ##
1493 ## ----------- ##
1494
1495 _ACEOF
1496
1497
1498 # Keep a trace of the command line.
1499 # Strip out --no-create and --no-recursion so they do not pile up.
1500 # Strip out --silent because we don't want to record it for future runs.
1501 # Also quote any args containing shell meta-characters.
1502 # Make two passes to allow for proper duplicate-argument suppression.
1503 ac_configure_args=
1504 ac_configure_args0=
1505 ac_configure_args1=
1506 ac_must_keep_next=false
1507 for ac_pass in 1 2
1508 do
1509 for ac_arg
1510 do
1511 case $ac_arg in
1512 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1514 | -silent | --silent | --silen | --sile | --sil)
1515 continue ;;
1516 *\'*)
1517 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1518 esac
1519 case $ac_pass in
1520 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1521 2)
1522 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1523 if test $ac_must_keep_next = true; then
1524 ac_must_keep_next=false # Got value, back to normal.
1525 else
1526 case $ac_arg in
1527 *=* | --config-cache | -C | -disable-* | --disable-* \
1528 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1529 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1530 | -with-* | --with-* | -without-* | --without-* | --x)
1531 case "$ac_configure_args0 " in
1532 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1533 esac
1534 ;;
1535 -* ) ac_must_keep_next=true ;;
1536 esac
1537 fi
1538 ac_configure_args="$ac_configure_args '$ac_arg'"
1539 ;;
1540 esac
1541 done
1542 done
1543 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1544 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1545
1546 # When interrupted or exit'd, cleanup temporary files, and complete
1547 # config.log. We remove comments because anyway the quotes in there
1548 # would cause problems or look ugly.
1549 # WARNING: Use '\'' to represent an apostrophe within the trap.
1550 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1551 trap 'exit_status=$?
1552 # Save into config.log some information that might help in debugging.
1553 {
1554 echo
1555
1556 cat <<\_ASBOX
1557 ## ---------------- ##
1558 ## Cache variables. ##
1559 ## ---------------- ##
1560 _ASBOX
1561 echo
1562 # The following way of writing the cache mishandles newlines in values,
1563 (
1564 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1565 eval ac_val=\$$ac_var
1566 case $ac_val in #(
1567 *${as_nl}*)
1568 case $ac_var in #(
1569 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1570 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1571 esac
1572 case $ac_var in #(
1573 _ | IFS | as_nl) ;; #(
1574 *) $as_unset $ac_var ;;
1575 esac ;;
1576 esac
1577 done
1578 (set) 2>&1 |
1579 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1580 *${as_nl}ac_space=\ *)
1581 sed -n \
1582 "s/'\''/'\''\\\\'\'''\''/g;
1583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1584 ;; #(
1585 *)
1586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1587 ;;
1588 esac |
1589 sort
1590 )
1591 echo
1592
1593 cat <<\_ASBOX
1594 ## ----------------- ##
1595 ## Output variables. ##
1596 ## ----------------- ##
1597 _ASBOX
1598 echo
1599 for ac_var in $ac_subst_vars
1600 do
1601 eval ac_val=\$$ac_var
1602 case $ac_val in
1603 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1604 esac
1605 echo "$ac_var='\''$ac_val'\''"
1606 done | sort
1607 echo
1608
1609 if test -n "$ac_subst_files"; then
1610 cat <<\_ASBOX
1611 ## ------------------- ##
1612 ## File substitutions. ##
1613 ## ------------------- ##
1614 _ASBOX
1615 echo
1616 for ac_var in $ac_subst_files
1617 do
1618 eval ac_val=\$$ac_var
1619 case $ac_val in
1620 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621 esac
1622 echo "$ac_var='\''$ac_val'\''"
1623 done | sort
1624 echo
1625 fi
1626
1627 if test -s confdefs.h; then
1628 cat <<\_ASBOX
1629 ## ----------- ##
1630 ## confdefs.h. ##
1631 ## ----------- ##
1632 _ASBOX
1633 echo
1634 cat confdefs.h
1635 echo
1636 fi
1637 test "$ac_signal" != 0 &&
1638 echo "$as_me: caught signal $ac_signal"
1639 echo "$as_me: exit $exit_status"
1640 } >&5
1641 rm -f core *.core core.conftest.* &&
1642 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1643 exit $exit_status
1644 ' 0
1645 for ac_signal in 1 2 13 15; do
1646 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1647 done
1648 ac_signal=0
1649
1650 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1651 rm -f -r conftest* confdefs.h
1652
1653 # Predefined preprocessor variables.
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_NAME "$PACKAGE_NAME"
1657 _ACEOF
1658
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1662 _ACEOF
1663
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1667 _ACEOF
1668
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_STRING "$PACKAGE_STRING"
1672 _ACEOF
1673
1674
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1677 _ACEOF
1678
1679
1680 # Let the site file select an alternate cache file if it wants to.
1681 # Prefer explicitly selected file to automatically selected ones.
1682 if test -n "$CONFIG_SITE"; then
1683 set x "$CONFIG_SITE"
1684 elif test "x$prefix" != xNONE; then
1685 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1686 else
1687 set x "$ac_default_prefix/share/config.site" \
1688 "$ac_default_prefix/etc/config.site"
1689 fi
1690 shift
1691 for ac_site_file
1692 do
1693 if test -r "$ac_site_file"; then
1694 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1695 echo "$as_me: loading site script $ac_site_file" >&6;}
1696 sed 's/^/| /' "$ac_site_file" >&5
1697 . "$ac_site_file"
1698 fi
1699 done
1700
1701 if test -r "$cache_file"; then
1702 # Some versions of bash will fail to source /dev/null (special
1703 # files actually), so we avoid doing that.
1704 if test -f "$cache_file"; then
1705 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1706 echo "$as_me: loading cache $cache_file" >&6;}
1707 case $cache_file in
1708 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1709 *) . "./$cache_file";;
1710 esac
1711 fi
1712 else
1713 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1714 echo "$as_me: creating cache $cache_file" >&6;}
1715 >$cache_file
1716 fi
1717
1718 ac_header_list="$ac_header_list sys/time.h"
1719 ac_header_list="$ac_header_list unistd.h"
1720 ac_func_list="$ac_func_list alarm"
1721 # Check that the precious variables saved in the cache have kept the same
1722 # value.
1723 ac_cache_corrupted=false
1724 for ac_var in $ac_precious_vars; do
1725 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1726 eval ac_new_set=\$ac_env_${ac_var}_set
1727 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1728 eval ac_new_val=\$ac_env_${ac_var}_value
1729 case $ac_old_set,$ac_new_set in
1730 set,)
1731 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1732 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1733 ac_cache_corrupted=: ;;
1734 ,set)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,);;
1739 *)
1740 if test "x$ac_old_val" != "x$ac_new_val"; then
1741 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1742 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1743 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1744 echo "$as_me: former value: $ac_old_val" >&2;}
1745 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1746 echo "$as_me: current value: $ac_new_val" >&2;}
1747 ac_cache_corrupted=:
1748 fi;;
1749 esac
1750 # Pass precious variables to config.status.
1751 if test "$ac_new_set" = set; then
1752 case $ac_new_val in
1753 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 *) ac_arg=$ac_var=$ac_new_val ;;
1755 esac
1756 case " $ac_configure_args " in
1757 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1758 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1759 esac
1760 fi
1761 done
1762 if $ac_cache_corrupted; then
1763 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1764 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1765 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1766 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1767 { (exit 1); exit 1; }; }
1768 fi
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786 ac_ext=c
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791
1792
1793 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1794
1795
1796 test "$program_prefix" != NONE &&
1797 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1798 # Use a double $ so make ignores it.
1799 test "$program_suffix" != NONE &&
1800 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1801 # Double any \ or $. echo might interpret backslashes.
1802 # By default was `s,x,x', remove it if useless.
1803 cat <<\_ACEOF >conftest.sed
1804 s/[\\$]/&&/g;s/;s,x,x,$//
1805 _ACEOF
1806 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1807 rm -f conftest.sed
1808
1809
1810 lispdir='${datadir}/emacs/${version}/lisp'
1811 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1812 '${datadir}/emacs/site-lisp'
1813 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1814 etcdir='${datadir}/emacs/${version}/etc'
1815 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1816 docdir='${datadir}/emacs/${version}/etc'
1817 gamedir='${localstatedir}/games/emacs'
1818
1819 gameuser=games
1820
1821
1822
1823 # Check whether --with-gcc was given.
1824 if test "${with_gcc+set}" = set; then
1825 withval=$with_gcc;
1826 fi
1827
1828
1829
1830 # Check whether --with-pop was given.
1831 if test "${with_pop+set}" = set; then
1832 withval=$with_pop; if test "$withval" = yes; then
1833 cat >>confdefs.h <<\_ACEOF
1834 #define MAIL_USE_POP 1
1835 _ACEOF
1836
1837 else :
1838 fi
1839 else
1840 cat >>confdefs.h <<\_ACEOF
1841 #define MAIL_USE_POP 1
1842 _ACEOF
1843
1844 fi
1845
1846
1847
1848
1849 # Check whether --with-kerberos was given.
1850 if test "${with_kerberos+set}" = set; then
1851 withval=$with_kerberos; if test "$withval" = yes; then
1852 cat >>confdefs.h <<\_ACEOF
1853 #define KERBEROS 1
1854 _ACEOF
1855
1856 fi
1857 fi
1858
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
1882 # Check whether --with-hesiod was given.
1883 if test "${with_hesiod+set}" = set; then
1884 withval=$with_hesiod; if test "$withval" = yes; then
1885
1886 cat >>confdefs.h <<\_ACEOF
1887 #define HESIOD 1
1888 _ACEOF
1889
1890 fi
1891 fi
1892
1893
1894
1895 # Check whether --with-sound was given.
1896 if test "${with_sound+set}" = set; then
1897 withval=$with_sound;
1898 fi
1899
1900
1901
1902 # Check whether --with-x-toolkit was given.
1903 if test "${with_x_toolkit+set}" = set; then
1904 withval=$with_x_toolkit; case "${withval}" in
1905 y | ye | yes ) val=gtk ;;
1906 n | no ) val=no ;;
1907 l | lu | luc | luci | lucid ) val=lucid ;;
1908 a | at | ath | athe | athen | athena ) val=athena ;;
1909 m | mo | mot | moti | motif ) val=motif ;;
1910 g | gt | gtk ) val=gtk ;;
1911 * )
1912 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1913 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1914 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1915 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1916 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1917 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1918 { (exit 1); exit 1; }; }
1919 ;;
1920 esac
1921 with_x_toolkit=$val
1922
1923 fi
1924
1925
1926
1927 # Check whether --with-xpm was given.
1928 if test "${with_xpm+set}" = set; then
1929 withval=$with_xpm;
1930 fi
1931
1932
1933 # Check whether --with-jpeg was given.
1934 if test "${with_jpeg+set}" = set; then
1935 withval=$with_jpeg;
1936 fi
1937
1938
1939 # Check whether --with-tiff was given.
1940 if test "${with_tiff+set}" = set; then
1941 withval=$with_tiff;
1942 fi
1943
1944
1945 # Check whether --with-gif was given.
1946 if test "${with_gif+set}" = set; then
1947 withval=$with_gif;
1948 fi
1949
1950
1951 # Check whether --with-png was given.
1952 if test "${with_png+set}" = set; then
1953 withval=$with_png;
1954 fi
1955
1956
1957 # Check whether --with-gpm was given.
1958 if test "${with_gpm+set}" = set; then
1959 withval=$with_gpm;
1960 fi
1961
1962
1963 # Check whether --with-rsvg was given.
1964 if test "${with_rsvg+set}" = set; then
1965 withval=$with_rsvg;
1966 fi
1967
1968
1969 # Check whether --with-gtk was given.
1970 if test "${with_gtk+set}" = set; then
1971 withval=$with_gtk;
1972 fi
1973
1974
1975 # Check whether --with-pkg-config-prog was given.
1976 if test "${with_pkg_config_prog+set}" = set; then
1977 withval=$with_pkg_config_prog;
1978 fi
1979
1980
1981 # Check whether --with-toolkit-scroll-bars was given.
1982 if test "${with_toolkit_scroll_bars+set}" = set; then
1983 withval=$with_toolkit_scroll_bars;
1984 fi
1985
1986
1987 # Check whether --with-xaw3d was given.
1988 if test "${with_xaw3d+set}" = set; then
1989 withval=$with_xaw3d;
1990 fi
1991
1992
1993 # Check whether --with-xim was given.
1994 if test "${with_xim+set}" = set; then
1995 withval=$with_xim;
1996 fi
1997
1998
1999 # Check whether --with-carbon was given.
2000 if test "${with_carbon+set}" = set; then
2001 withval=$with_carbon;
2002 fi
2003
2004
2005 # Check whether --enable-carbon-app was given.
2006 if test "${enable_carbon_app+set}" = set; then
2007 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2008 fi
2009
2010
2011 # Check whether --enable-asserts was given.
2012 if test "${enable_asserts+set}" = set; then
2013 enableval=$enable_asserts; USE_XASSERTS=$enableval
2014 else
2015 USE_XASSERTS=no
2016 fi
2017
2018
2019 # Check whether --enable-maintainer-mode was given.
2020 if test "${enable_maintainer_mode+set}" = set; then
2021 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2022 else
2023 USE_MAINTAINER_MODE=no
2024 fi
2025
2026 if test $USE_MAINTAINER_MODE = yes; then
2027 MAINT=
2028 else
2029 MAINT=#
2030 fi
2031
2032
2033 # Check whether --enable-locallisppath was given.
2034 if test "${enable_locallisppath+set}" = set; then
2035 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2036 locallisppath=
2037 elif test "${enableval}" != "yes"; then
2038 locallisppath=${enableval}
2039 fi
2040 fi
2041
2042
2043 #### Make srcdir absolute, if it isn't already. It's important to
2044 #### avoid running the path through pwd unnecessarily, since pwd can
2045 #### give you automounter prefixes, which can go away. We do all this
2046 #### so Emacs can find its files when run uninstalled.
2047 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2048 unset CDPATH
2049 case "${srcdir}" in
2050 /* ) ;;
2051 . )
2052 ## We may be able to use the $PWD environment variable to make this
2053 ## absolute. But sometimes PWD is inaccurate.
2054 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2055 ## but that tested only for a well-formed and valid PWD,
2056 ## it did not object when PWD was well-formed and valid but just wrong.
2057 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2058 then
2059 srcdir="$PWD"
2060 else
2061 srcdir="`(cd ${srcdir}; pwd)`"
2062 fi
2063 ;;
2064 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2065 esac
2066
2067 #### Check if the source directory already has a configured system in it.
2068 if test `pwd` != `(cd ${srcdir} && pwd)` \
2069 && test -f "${srcdir}/src/config.h" ; then
2070 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2071 as a build directory right now; it has been configured in its own
2072 right. To configure in another directory as well, you MUST
2073 use GNU make. If you do not have GNU make, then you must
2074 now do \`make distclean' in ${srcdir},
2075 and then run $0 again." >&5
2076 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2077 as a build directory right now; it has been configured in its own
2078 right. To configure in another directory as well, you MUST
2079 use GNU make. If you do not have GNU make, then you must
2080 now do \`make distclean' in ${srcdir},
2081 and then run $0 again." >&2;}
2082 fi
2083
2084 #### Given the configuration name, set machfile and opsysfile to the
2085 #### names of the m/*.h and s/*.h files we should use.
2086
2087 ### Canonicalize the configuration name.
2088
2089 ac_aux_dir=
2090 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2091 if test -f "$ac_dir/install-sh"; then
2092 ac_aux_dir=$ac_dir
2093 ac_install_sh="$ac_aux_dir/install-sh -c"
2094 break
2095 elif test -f "$ac_dir/install.sh"; then
2096 ac_aux_dir=$ac_dir
2097 ac_install_sh="$ac_aux_dir/install.sh -c"
2098 break
2099 elif test -f "$ac_dir/shtool"; then
2100 ac_aux_dir=$ac_dir
2101 ac_install_sh="$ac_aux_dir/shtool install -c"
2102 break
2103 fi
2104 done
2105 if test -z "$ac_aux_dir"; then
2106 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2107 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2108 { (exit 1); exit 1; }; }
2109 fi
2110
2111 # These three variables are undocumented and unsupported,
2112 # and are intended to be withdrawn in a future Autoconf release.
2113 # They can cause serious problems if a builder's source tree is in a directory
2114 # whose full name contains unusual characters.
2115 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2116 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2117 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2118
2119
2120 # Make sure we can run config.sub.
2121 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2122 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2124 { (exit 1); exit 1; }; }
2125
2126 { echo "$as_me:$LINENO: checking build system type" >&5
2127 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2128 if test "${ac_cv_build+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 ac_build_alias=$build_alias
2132 test "x$ac_build_alias" = x &&
2133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2134 test "x$ac_build_alias" = x &&
2135 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137 { (exit 1); exit 1; }; }
2138 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2141 { (exit 1); exit 1; }; }
2142
2143 fi
2144 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145 echo "${ECHO_T}$ac_cv_build" >&6; }
2146 case $ac_cv_build in
2147 *-*-*) ;;
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149 echo "$as_me: error: invalid value of canonical build" >&2;}
2150 { (exit 1); exit 1; }; };;
2151 esac
2152 build=$ac_cv_build
2153 ac_save_IFS=$IFS; IFS='-'
2154 set x $ac_cv_build
2155 shift
2156 build_cpu=$1
2157 build_vendor=$2
2158 shift; shift
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2161 build_os=$*
2162 IFS=$ac_save_IFS
2163 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2164
2165
2166 { echo "$as_me:$LINENO: checking host system type" >&5
2167 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2168 if test "${ac_cv_host+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 if test "x$host_alias" = x; then
2172 ac_cv_host=$ac_cv_build
2173 else
2174 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2177 { (exit 1); exit 1; }; }
2178 fi
2179
2180 fi
2181 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182 echo "${ECHO_T}$ac_cv_host" >&6; }
2183 case $ac_cv_host in
2184 *-*-*) ;;
2185 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186 echo "$as_me: error: invalid value of canonical host" >&2;}
2187 { (exit 1); exit 1; }; };;
2188 esac
2189 host=$ac_cv_host
2190 ac_save_IFS=$IFS; IFS='-'
2191 set x $ac_cv_host
2192 shift
2193 host_cpu=$1
2194 host_vendor=$2
2195 shift; shift
2196 # Remember, the first character of IFS is used to create $*,
2197 # except with old shells:
2198 host_os=$*
2199 IFS=$ac_save_IFS
2200 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2201
2202
2203 canonical=$host
2204 configuration=${host_alias-${build_alias-$host}}
2205
2206
2207
2208 ### If you add support for a new configuration, add code to this
2209 ### switch statement to recognize your configuration name and select
2210 ### the appropriate operating system and machine description files.
2211
2212 ### You would hope that you could choose an m/*.h file pretty much
2213 ### based on the machine portion of the configuration name, and an s-
2214 ### file based on the operating system portion. However, it turns out
2215 ### that each m/*.h file is pretty manufacturer-specific - for
2216 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2217 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2218 ### machines. So we basically have to have a special case for each
2219 ### configuration name.
2220 ###
2221 ### As far as handling version numbers on operating systems is
2222 ### concerned, make sure things will fail in a fixable way. If
2223 ### /etc/MACHINES doesn't say anything about version numbers, be
2224 ### prepared to handle anything reasonably. If version numbers
2225 ### matter, be sure /etc/MACHINES says something about it.
2226 ###
2227 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2228 ### "System V Release 4"; he writes, "The old convention encouraged
2229 ### confusion between `system' and `release' levels'."
2230
2231 machine='' opsys='' unported=no
2232 case "${canonical}" in
2233
2234 ## FreeBSD ports
2235 *-*-freebsd* )
2236 opsys=freebsd
2237 case "${canonical}" in
2238 alpha*-*-freebsd*) machine=alpha ;;
2239 ia64-*-freebsd*) machine=ia64 ;;
2240 sparc64-*-freebsd*) machine=sparc ;;
2241 powerpc-*-freebsd*) machine=macppc ;;
2242 i[3456]86-*-freebsd*) machine=intel386 ;;
2243 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2244 esac
2245 ;;
2246
2247 ## NetBSD ports
2248 *-*-netbsd* )
2249 opsys=netbsd
2250 if test -f /usr/lib/crti.o; then
2251
2252 cat >>confdefs.h <<\_ACEOF
2253 #define HAVE_CRTIN
2254 _ACEOF
2255
2256 fi
2257
2258 case "${canonical}" in
2259 alpha*-*-netbsd*) machine=alpha ;;
2260 i[3456]86-*-netbsd*) machine=intel386 ;;
2261 m68k-*-netbsd*)
2262 # This is somewhat bogus.
2263 machine=hp9000s300 ;;
2264 mips-*-netbsd*) machine=pmax ;;
2265 mipsel-*-netbsd*) machine=pmax ;;
2266 mipseb-*-netbsd*) machine=pmax ;;
2267 ns32k-*-netbsd*) machine=ns32000 ;;
2268 powerpc-*-netbsd*) machine=macppc ;;
2269 sparc*-*-netbsd*) machine=sparc ;;
2270 vax-*-netbsd*) machine=vax ;;
2271 arm-*-netbsd*) machine=arm ;;
2272 x86_64-*-netbsd*) machine=amdx86-64 ;;
2273 hppa-*-netbsd*) machine=hp800 ;;
2274 shle-*-netbsd*) machine=sh3el ;;
2275 esac
2276 ;;
2277
2278 ## OpenBSD ports
2279 *-*-openbsd* )
2280 opsys=openbsd
2281 case "${canonical}" in
2282 alpha*-*-openbsd*) machine=alpha ;;
2283 arm-*-openbsd*) machine=arm ;;
2284 hppa-*-openbsd*) machine=hp9000s300 ;;
2285 i386-*-openbsd*) machine=intel386 ;;
2286 m68k-*-openbsd*) machine=hp9000s300 ;;
2287 m88k-*-openbsd*) machine=aviion ;;
2288 mips64-*-openbsd*) machine=mips64 ;;
2289 powerpc-*-openbsd*) machine=macppc ;;
2290 sh-*-openbsd*) machine=sh3el ;;
2291 sparc*-*-openbsd*) machine=sparc ;;
2292 vax-*-openbsd*) machine=vax ;;
2293 x86_64-*-openbsd*) machine=amdx86-64 ;;
2294 esac
2295 ;;
2296
2297 ## LynxOS ports
2298 *-*-lynxos* )
2299 opsys=lynxos
2300 case "${canonical}" in
2301 i[3456]86-*-lynxos*) machine=intel386 ;;
2302 powerpc-*-lynxos*) machine=powerpc ;;
2303 esac
2304 ;;
2305
2306 ## Acorn RISCiX:
2307 arm-acorn-riscix1.1* )
2308 machine=acorn opsys=riscix1-1
2309 ;;
2310 arm-acorn-riscix1.2* | arm-acorn-riscix )
2311 ## This name is riscix12 instead of riscix1.2
2312 ## to avoid a file name conflict on MSDOS.
2313 machine=acorn opsys=riscix12
2314 ;;
2315
2316 ## BSDI ports
2317 *-*-bsdi* )
2318 opsys=bsdi
2319 case "${canonical}" in
2320 i[345]86-*-bsdi*) machine=intel386 ;;
2321 sparc-*-bsdi*) machine=sparc ;;
2322 powerpc-*-bsdi*) machine=macppc ;;
2323 esac
2324 case "${canonical}" in
2325 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2326 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2327 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2328 *-*-bsdi3* ) opsys=bsdos3 ;;
2329 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2330 esac
2331 ;;
2332
2333 ## Alliant machines
2334 ## Strictly speaking, we need the version of the alliant operating
2335 ## system to choose the right machine file, but currently the
2336 ## configuration name doesn't tell us enough to choose the right
2337 ## one; we need to give alliants their own operating system name to
2338 ## do this right. When someone cares, they can help us.
2339 fx80-alliant-* )
2340 machine=alliant4 opsys=bsd4-2
2341 ;;
2342 i860-alliant-* )
2343 machine=alliant-2800 opsys=bsd4-3
2344 ;;
2345
2346 ## Alpha (DEC) machines.
2347 alpha*-dec-osf* )
2348 machine=alpha opsys=osf1
2349 # This is needed to find X11R6.1 libraries for certain tests.
2350 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2351 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2352 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2353 # due to non-traditional preprocessing with the current compiler
2354 # defaults. OSF 4 can also have that compiler version, and there
2355 # seems always to have been a usable /usr/bin/cpp.
2356 NON_GNU_CPP=/usr/bin/cpp
2357 case "${canonical}" in
2358 alpha*-dec-osf[5-9]*)
2359 opsys=osf5-0 ;;
2360 esac
2361 ;;
2362
2363 alpha*-*-linux-gnu* )
2364 machine=alpha opsys=gnu-linux
2365 ;;
2366
2367 arm*-*-linux-gnu* )
2368 machine=arm opsys=gnu-linux
2369 ;;
2370
2371 ## Altos 3068
2372 m68*-altos-sysv* )
2373 machine=altos opsys=usg5-2
2374 ;;
2375
2376 ## Amdahl UTS
2377 580-amdahl-sysv* )
2378 machine=amdahl opsys=usg5-2-2
2379 ;;
2380
2381 ## Apollo, Domain/OS
2382 m68*-apollo-* )
2383 machine=apollo opsys=bsd4-3
2384 ;;
2385
2386 ## Apple Darwin / Mac OS X
2387 *-apple-darwin* )
2388 case "${canonical}" in
2389 i[3456]86-* ) machine=intel386 ;;
2390 powerpc-* ) machine=powermac ;;
2391 * ) unported=yes ;;
2392 esac
2393 opsys=darwin
2394 # Define CPP as follows to make autoconf work correctly.
2395 CPP="${CC-cc} -E -no-cpp-precomp"
2396 # Use fink packages if available.
2397 if test -d /sw/include && test -d /sw/lib; then
2398 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2399 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2400 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2401 fi
2402 ;;
2403
2404 ## AT&T 3b2, 3b5, 3b15, 3b20
2405 we32k-att-sysv* )
2406 machine=att3b opsys=usg5-2-2
2407 ;;
2408
2409 ## AT&T 3b1 - The Mighty Unix PC!
2410 m68*-att-sysv* )
2411 machine=7300 opsys=usg5-2-2
2412 ;;
2413
2414 ## Bull dpx20
2415 rs6000-bull-bosx* )
2416 machine=ibmrs6000 opsys=aix3-2
2417 ;;
2418
2419 ## Bull dpx2
2420 m68*-bull-sysv3* )
2421 machine=dpx2 opsys=usg5-3
2422 ;;
2423
2424 ## Bull sps7
2425 m68*-bull-sysv2* )
2426 machine=sps7 opsys=usg5-2
2427 ;;
2428
2429 ## CCI 5/32, 6/32 -- see "Tahoe".
2430
2431 ## Celerity
2432 ## I don't know what configuration name to use for this; config.sub
2433 ## doesn't seem to know anything about it. Hey, Celerity users, get
2434 ## in touch with us!
2435 celerity-celerity-bsd* )
2436 machine=celerity opsys=bsd4-2
2437 ;;
2438
2439 ## Clipper
2440 ## What operating systems does this chip run that Emacs has been
2441 ## tested on?
2442 clipper-* )
2443 machine=clipper
2444 ## We'll use the catch-all code at the bottom to guess the
2445 ## operating system.
2446 ;;
2447
2448 ## Compaq Nonstop
2449 mips-compaq-nonstopux* )
2450 machine=nonstopux opsys=nonstopux
2451 ;;
2452
2453 ## Convex
2454 *-convex-bsd* | *-convex-convexos* )
2455 machine=convex opsys=bsd4-3
2456 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2457 NON_GNU_CPP="cc -E -P"
2458 ;;
2459
2460 ## Cubix QBx/386
2461 i[3456]86-cubix-sysv* )
2462 machine=intel386 opsys=usg5-3
2463 ;;
2464
2465 ## Cydra 5
2466 cydra*-cydrome-sysv* )
2467 machine=cydra5 opsys=usg5-3
2468 ;;
2469
2470 ## Data General AViiON Machines
2471 ## DG changed naming conventions with the release of 5.4.4.10, they
2472 ## dropped the initial 5.4 but left the intervening R. Because of the
2473 ## R this shouldn't conflict with older versions of the OS (which I
2474 ## think were named like dgux4.*). In addition, DG new AViiONs series
2475 ## uses either Motorola M88k or Intel Pentium CPUs.
2476 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2477 machine=aviion opsys=dgux4
2478 ;;
2479 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2480 ## This name is dgux5-4-3 instead of dgux5-4r3
2481 ## to avoid a file name conflict on MSDOS.
2482 machine=aviion opsys=dgux5-4-3
2483 ;;
2484 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2485 machine=aviion opsys=dgux5-4r2
2486 ;;
2487 m88k-dg-dgux* )
2488 machine=aviion opsys=dgux
2489 ;;
2490
2491 ## Data General AViiON Intel (x86) Machines
2492 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2493 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2494 i[345]86-dg-dguxR4* )
2495 machine=aviion-intel opsys=dgux4
2496 ;;
2497
2498 ## DECstations
2499 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2500 machine=pmax opsys=bsd4-2
2501 ;;
2502 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2503 machine=pmax opsys=bsd4-3
2504 ;;
2505 mips-dec-ultrix* )
2506 machine=pmax opsys=ultrix4-3
2507 ;;
2508 mips-dec-osf* )
2509 machine=pmax opsys=osf1
2510 ;;
2511 mips-dec-mach_bsd4.3* )
2512 machine=pmax opsys=mach-bsd4-3
2513 ;;
2514
2515 ## Motorola Delta machines
2516 m68k-motorola-sysv* | m68000-motorola-sysv* )
2517 machine=delta opsys=usg5-3
2518 if test -z "`type gnucc | grep 'not found'`"
2519 then
2520 if test -s /etc/167config
2521 then CC="gnucc -m68040"
2522 else CC="gnucc -m68881"
2523 fi
2524 else
2525 if test -z "`type gcc | grep 'not found'`"
2526 then CC=gcc
2527 else CC=cc
2528 fi
2529 fi
2530 ;;
2531 m88k-motorola-sysv4* )
2532 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2533 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2534 # I hope there are not other 4.0 versions for this machine
2535 # which really need usg5-4 instead.
2536 machine=delta88k opsys=usg5-4-2
2537 ;;
2538 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2539 machine=delta88k opsys=usg5-3
2540 ;;
2541
2542 ## Dual machines
2543 m68*-dual-sysv* )
2544 machine=dual opsys=usg5-2
2545 ;;
2546 m68*-dual-uniplus* )
2547 machine=dual opsys=unipl5-2
2548 ;;
2549
2550 ## Elxsi 6400
2551 elxsi-elxsi-sysv* )
2552 machine=elxsi opsys=usg5-2
2553 ;;
2554
2555 ## Encore machines
2556 ns16k-encore-bsd* )
2557 machine=ns16000 opsys=umax
2558 ;;
2559
2560 ## The GEC 63 - apparently, this port isn't really finished yet.
2561 # I'm sure we finished off the last of the machines, though. -- fx
2562
2563 ## Gould Power Node and NP1
2564 pn-gould-bsd4.2* )
2565 machine=gould opsys=bsd4-2
2566 ;;
2567 pn-gould-bsd4.3* )
2568 machine=gould opsys=bsd4-3
2569 ;;
2570 np1-gould-bsd* )
2571 machine=gould-np1 opsys=bsd4-3
2572 ;;
2573
2574 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2575 ## as far as Emacs is concerned).
2576 m88k-harris-cxux* )
2577 # Build needs to be different on 7.0 and later releases
2578 case "`uname -r`" in
2579 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2580 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2581 esac
2582 NON_GNU_CPP="/lib/cpp"
2583 ;;
2584 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2585 m68k-harris-cxux* )
2586 machine=nh3000 opsys=cxux
2587 ;;
2588 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2589 powerpc-harris-powerunix )
2590 machine=nh6000 opsys=powerunix
2591 NON_GNU_CPP="cc -Xo -E -P"
2592 ;;
2593 ## SR2001/SR2201 running HI-UX/MPP
2594 hppa1.1-hitachi-hiuxmpp* )
2595 machine=sr2k opsys=hiuxmpp
2596 ;;
2597 hppa1.1-hitachi-hiuxwe2* )
2598 machine=sr2k opsys=hiuxwe2
2599 ;;
2600 ## Honeywell XPS100
2601 xps*-honeywell-sysv* )
2602 machine=xps100 opsys=usg5-2
2603 ;;
2604
2605 ## HP 9000 series 200 or 300
2606 m68*-hp-bsd* )
2607 machine=hp9000s300 opsys=bsd4-3
2608 ;;
2609 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2610 m68*-hp-hpux* )
2611 case "`uname -r`" in
2612 ## Someone's system reports A.B8.05 for this.
2613 ## I wonder what other possibilities there are.
2614 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2615 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2616 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2617 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2618 *) machine=hp9000s300 opsys=hpux ;;
2619 esac
2620 ;;
2621
2622 ## HP 9000 series 700 and 800, running HP/UX
2623 hppa*-hp-hpux7* )
2624 machine=hp800 opsys=hpux
2625 ;;
2626 hppa*-hp-hpux8* )
2627 machine=hp800 opsys=hpux8
2628 ;;
2629 hppa*-hp-hpux9shr* )
2630 machine=hp800 opsys=hpux9shr
2631 ;;
2632 hppa*-hp-hpux9* )
2633 machine=hp800 opsys=hpux9
2634 ;;
2635 hppa*-hp-hpux10.2* )
2636 machine=hp800 opsys=hpux10-20
2637 ;;
2638 hppa*-hp-hpux10* )
2639 machine=hp800 opsys=hpux10
2640 ;;
2641 hppa*-hp-hpux1[1-9]* )
2642 machine=hp800 opsys=hpux11
2643 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2644 ;;
2645
2646 hppa*-*-linux-gnu* )
2647 machine=hp800 opsys=gnu-linux
2648 ;;
2649
2650 ## HP 9000 series 700 and 800, running HP/UX
2651 hppa*-hp-hpux* )
2652 ## Cross-compilation? Nah!
2653 case "`uname -r`" in
2654 ## Someone's system reports A.B8.05 for this.
2655 ## I wonder what other possibilities there are.
2656 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2657 *.08.* ) machine=hp800 opsys=hpux8 ;;
2658 *.09.* ) machine=hp800 opsys=hpux9 ;;
2659 *) machine=hp800 opsys=hpux10 ;;
2660 esac
2661 ;;
2662 hppa*-*-nextstep* )
2663 machine=hp800 opsys=nextstep
2664 ;;
2665
2666 ## Orion machines
2667 orion-orion-bsd* )
2668 machine=orion opsys=bsd4-2
2669 ;;
2670 clipper-orion-bsd* )
2671 machine=orion105 opsys=bsd4-2
2672 ;;
2673
2674 ## IBM machines
2675 i[3456]86-ibm-aix1.1* )
2676 machine=ibmps2-aix opsys=usg5-2-2
2677 ;;
2678 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2679 machine=ibmps2-aix opsys=usg5-3
2680 ;;
2681 i370-ibm-aix*)
2682 machine=ibm370aix opsys=usg5-3
2683 ;;
2684 s390-*-linux-gnu* )
2685 machine=ibms390 opsys=gnu-linux
2686 ;;
2687 s390x-*-linux-gnu* )
2688 machine=ibms390x opsys=gnu-linux
2689 ;;
2690 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2691 machine=ibmrs6000 opsys=aix3-1
2692 ;;
2693 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2694 machine=ibmrs6000 opsys=aix3-2-5
2695 ;;
2696 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2697 machine=ibmrs6000 opsys=aix4-1
2698 ;;
2699 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2700 machine=ibmrs6000 opsys=aix4-2
2701 ;;
2702 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2703 machine=ibmrs6000 opsys=aix4-2
2704 ;;
2705 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2706 machine=ibmrs6000 opsys=aix4-2
2707 ;;
2708 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2709 machine=ibmrs6000 opsys=aix4
2710 ;;
2711 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2712 machine=ibmrs6000 opsys=aix4-1
2713 ;;
2714 rs6000-ibm-aix* | powerpc-ibm-aix* )
2715 machine=ibmrs6000 opsys=aix3-2
2716 ;;
2717 romp-ibm-bsd4.3* )
2718 machine=ibmrt opsys=bsd4-3
2719 ;;
2720 romp-ibm-bsd4.2* )
2721 machine=ibmrt opsys=bsd4-2
2722 ;;
2723 romp-ibm-aos4.3* )
2724 machine=ibmrt opsys=bsd4-3
2725 ;;
2726 romp-ibm-aos4.2* )
2727 machine=ibmrt opsys=bsd4-2
2728 ;;
2729 romp-ibm-aos* )
2730 machine=ibmrt opsys=bsd4-3
2731 ;;
2732 romp-ibm-bsd* )
2733 machine=ibmrt opsys=bsd4-3
2734 ;;
2735 romp-ibm-aix* )
2736 machine=ibmrt-aix opsys=usg5-2-2
2737 ;;
2738
2739 ## Integrated Solutions `Optimum V'
2740 m68*-isi-bsd4.2* )
2741 machine=isi-ov opsys=bsd4-2
2742 ;;
2743 m68*-isi-bsd4.3* )
2744 machine=isi-ov opsys=bsd4-3
2745 ;;
2746
2747 ## Intel 386 machines where we do care about the manufacturer
2748 i[3456]86-intsys-sysv* )
2749 machine=is386 opsys=usg5-2-2
2750 ;;
2751
2752 ## Prime EXL
2753 i[3456]86-prime-sysv* )
2754 machine=i386 opsys=usg5-3
2755 ;;
2756
2757 ## Sequent Symmetry running Dynix
2758 i[3456]86-sequent-bsd* )
2759 machine=symmetry opsys=bsd4-3
2760 ;;
2761
2762 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2763 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2764 machine=sequent-ptx opsys=ptx4
2765 NON_GNU_CPP=/lib/cpp
2766 ;;
2767
2768 ## Sequent Symmetry running DYNIX/ptx
2769 ## Use the old cpp rather than the newer ANSI one.
2770 i[3456]86-sequent-ptx* )
2771 machine=sequent-ptx opsys=ptx
2772 NON_GNU_CPP="/lib/cpp"
2773 ;;
2774
2775 ## ncr machine running svr4.3.
2776 i[3456]86-ncr-sysv4.3 )
2777 machine=ncr386 opsys=usg5-4-3
2778 ;;
2779
2780 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2781 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2782 i[3456]86-ncr-sysv* )
2783 machine=ncr386 opsys=usg5-4-2
2784 ;;
2785
2786 ## Intel Paragon OSF/1
2787 i860-intel-osf1* )
2788 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2789 ;;
2790
2791 ## Intel 860
2792 i860-*-sysv4* )
2793 machine=i860 opsys=usg5-4
2794 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2795 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2796 ;;
2797
2798 ## Macintosh PowerPC
2799 powerpc*-*-linux-gnu* )
2800 machine=macppc opsys=gnu-linux
2801 ;;
2802
2803 ## Masscomp machines
2804 m68*-masscomp-rtu* )
2805 machine=masscomp opsys=rtu
2806 ;;
2807
2808 ## Megatest machines
2809 m68*-megatest-bsd* )
2810 machine=mega68 opsys=bsd4-2
2811 ;;
2812
2813 ## Workstations sold by MIPS
2814 ## This is not necessarily all workstations using the MIPS processor -
2815 ## Irises are produced by SGI, and DECstations by DEC.
2816
2817 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2818 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2819 ## it gives for choosing between the alternatives seems to be "Use
2820 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2821 ## the BSD world." I'll assume that these are instructions for
2822 ## handling two odd situations, and that every other situation
2823 ## should use mips.h and usg5-2-2, they being listed first.
2824 mips-mips-usg* )
2825 machine=mips4
2826 ## Fall through to the general code at the bottom to decide on the OS.
2827 ;;
2828 mips-mips-riscos4* )
2829 machine=mips4 opsys=bsd4-3
2830 NON_GNU_CC="cc -systype bsd43"
2831 NON_GNU_CPP="cc -systype bsd43 -E"
2832 ;;
2833 mips-mips-riscos5* )
2834 machine=mips4 opsys=riscos5
2835 NON_GNU_CC="cc -systype bsd43"
2836 NON_GNU_CPP="cc -systype bsd43 -E"
2837 ;;
2838 mips-mips-bsd* )
2839 machine=mips opsys=bsd4-3
2840 ;;
2841 mips-mips-* )
2842 machine=mips opsys=usg5-2-2
2843 ;;
2844
2845 ## NeXT
2846 m68*-next-* | m68k-*-nextstep* )
2847 machine=m68k opsys=nextstep
2848 ;;
2849
2850 ## The complete machine from National Semiconductor
2851 ns32k-ns-genix* )
2852 machine=ns32000 opsys=usg5-2
2853 ;;
2854
2855 ## NCR machines
2856 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2857 machine=tower32 opsys=usg5-2-2
2858 ;;
2859 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2860 machine=tower32v3 opsys=usg5-3
2861 ;;
2862
2863 ## NEC EWS4800
2864 mips-nec-sysv4*)
2865 machine=ews4800 opsys=ux4800
2866 ;;
2867
2868 ## Nixdorf Targon 31
2869 m68*-nixdorf-sysv* )
2870 machine=targon31 opsys=usg5-2-2
2871 ;;
2872
2873 ## Nu (TI or LMI)
2874 m68*-nu-sysv* )
2875 machine=nu opsys=usg5-2
2876 ;;
2877
2878 ## Plexus
2879 m68*-plexus-sysv* )
2880 machine=plexus opsys=usg5-2
2881 ;;
2882
2883 ## Pyramid machines
2884 ## I don't really have any idea what sort of processor the Pyramid has,
2885 ## so I'm assuming it is its own architecture.
2886 pyramid-pyramid-bsd* )
2887 machine=pyramid opsys=bsd4-2
2888 ;;
2889
2890 ## Sequent Balance
2891 ns32k-sequent-bsd4.2* )
2892 machine=sequent opsys=bsd4-2
2893 ;;
2894 ns32k-sequent-bsd4.3* )
2895 machine=sequent opsys=bsd4-3
2896 ;;
2897
2898 ## Siemens Nixdorf
2899 mips-siemens-sysv* | mips-sni-sysv*)
2900 machine=mips-siemens opsys=usg5-4
2901 NON_GNU_CC=/usr/ccs/bin/cc
2902 NON_GNU_CPP=/usr/ccs/lib/cpp
2903 ;;
2904
2905 ## Silicon Graphics machines
2906 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2907 m68*-sgi-iris3.5* )
2908 machine=irist opsys=iris3-5
2909 ;;
2910 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2911 machine=irist opsys=iris3-6
2912 ;;
2913 ## Iris 4D
2914 mips-sgi-irix3* )
2915 machine=iris4d opsys=irix3-3
2916 ;;
2917 mips-sgi-irix4* )
2918 machine=iris4d opsys=irix4-0
2919 ;;
2920 mips-sgi-irix6.5 )
2921 machine=iris4d opsys=irix6-5
2922 # Without defining _LANGUAGE_C, things get masked out in the headers
2923 # so that, for instance, grepping for `free' in stdlib.h fails and
2924 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2925 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2926 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2927 ;;
2928 mips-sgi-irix6* )
2929 machine=iris4d opsys=irix6-0
2930 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2931 # but presumably it does no harm.
2932 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2933 # -32 probably isn't necessary in later v.6s -- anyone know which?
2934 NON_GCC_TEST_OPTIONS=-32
2935 ;;
2936 mips-sgi-irix5.[01]* )
2937 machine=iris4d opsys=irix5-0
2938 ;;
2939 mips-sgi-irix5* | mips-sgi-irix* )
2940 machine=iris4d opsys=irix5-2
2941 ;;
2942
2943 ## SONY machines
2944 m68*-sony-bsd4.2* )
2945 machine=news opsys=bsd4-2
2946 ;;
2947 m68*-sony-bsd4.3* )
2948 machine=news opsys=bsd4-3
2949 ;;
2950 m68*-sony-newsos3* | m68*-sony-news3*)
2951 machine=news opsys=bsd4-3
2952 ;;
2953 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2954 machine=news-risc opsys=bsd4-3
2955 ;;
2956 mips-sony-newsos6* )
2957 machine=news-r6 opsys=newsos6
2958 ;;
2959 mips-sony-news* )
2960 machine=news-risc opsys=newsos5
2961 ;;
2962
2963 ## Stride
2964 m68*-stride-sysv* )
2965 machine=stride opsys=usg5-2
2966 ;;
2967
2968 ## Suns
2969 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2970 machine=sparc opsys=gnu-linux
2971 ;;
2972
2973 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2974 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2975 | rs6000-*-solaris2*)
2976 case "${canonical}" in
2977 m68*-sunos1* ) machine=sun1 ;;
2978 m68*-sunos2* ) machine=sun2 ;;
2979 m68* ) machine=sun3 ;;
2980 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2981 i[3456]86-*-* ) machine=intel386 ;;
2982 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2983 powerpcle* ) machine=powerpcle ;;
2984 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2985 sparc* ) machine=sparc ;;
2986 * ) unported=yes ;;
2987 esac
2988 case "${canonical}" in
2989 ## The Sun386 didn't get past 4.0.
2990 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2991 *-sunos4.0* ) opsys=sunos4-0 ;;
2992 *-sunos4.1.[3-9]*noshare )
2993 ## This name is sunos413 instead of sunos4-1-3
2994 ## to avoid a file name conflict on MSDOS.
2995 opsys=sunos413
2996 NON_GNU_CPP=/usr/lib/cpp
2997 NON_GCC_TEST_OPTIONS=-Bstatic
2998 GCC_TEST_OPTIONS=-static
2999 ;;
3000 *-sunos4.1.[3-9]* | *-sunos4shr*)
3001 opsys=sunos4shr
3002 NON_GNU_CPP=/usr/lib/cpp
3003 ;;
3004 *-sunos4* | *-sunos )
3005 opsys=sunos4-1
3006 NON_GCC_TEST_OPTIONS=-Bstatic
3007 GCC_TEST_OPTIONS=-static
3008 ;;
3009 *-sunos5.3* | *-solaris2.3* )
3010 opsys=sol2-3
3011 NON_GNU_CPP=/usr/ccs/lib/cpp
3012 ;;
3013 *-sunos5.4* | *-solaris2.4* )
3014 opsys=sol2-4
3015 NON_GNU_CPP=/usr/ccs/lib/cpp
3016 RANLIB="ar -ts"
3017 ;;
3018 *-sunos5.5* | *-solaris2.5* )
3019 opsys=sol2-5
3020 NON_GNU_CPP=/usr/ccs/lib/cpp
3021 RANLIB="ar -ts"
3022 ;;
3023 *-sunos5.6* | *-solaris2.6* )
3024 opsys=sol2-6
3025 NON_GNU_CPP=/usr/ccs/lib/cpp
3026 RANLIB="ar -ts"
3027 ;;
3028 *-sunos5* | *-solaris* )
3029 opsys=sol2-6
3030 emacs_check_sunpro_c=yes
3031 NON_GNU_CPP=/usr/ccs/lib/cpp
3032 ;;
3033 * ) opsys=bsd4-2 ;;
3034 esac
3035 ## Watch out for a compiler that we know will not work.
3036 case "${canonical}" in
3037 *-solaris* | *-sunos5* )
3038 if [ "x$CC" = x/usr/ucb/cc ]; then
3039 ## /usr/ucb/cc doesn't work;
3040 ## we should find some other compiler that does work.
3041 unset CC
3042 fi
3043 ;;
3044 *) ;;
3045 esac
3046 ;;
3047 sparc-*-nextstep* )
3048 machine=sparc opsys=nextstep
3049 ;;
3050
3051 ## Tadpole 68k
3052 m68*-tadpole-sysv* )
3053 machine=tad68k opsys=usg5-3
3054 ;;
3055
3056 ## Tahoe machines
3057 tahoe-tahoe-bsd4.2* )
3058 machine=tahoe opsys=bsd4-2
3059 ;;
3060 tahoe-tahoe-bsd4.3* )
3061 machine=tahoe opsys=bsd4-3
3062 ;;
3063
3064 ## Tandem Integrity S2
3065 mips-tandem-sysv* )
3066 machine=tandem-s2 opsys=usg5-3
3067 ;;
3068
3069 ## Tektronix XD88
3070 m88k-tektronix-sysv3* )
3071 machine=tekxd88 opsys=usg5-3
3072 ;;
3073
3074 ## Tektronix 16000 box (6130?)
3075 ns16k-tektronix-bsd* )
3076 machine=ns16000 opsys=bsd4-2
3077 ;;
3078 ## Tektronix 4300
3079 ## src/m/tek4300.h hints that this is a m68k machine.
3080 m68*-tektronix-bsd* )
3081 machine=tek4300 opsys=bsd4-3
3082 ;;
3083
3084 ## Titan P2 or P3
3085 ## We seem to have lost the machine-description file titan.h!
3086 titan-titan-sysv* )
3087 machine=titan opsys=usg5-3
3088 ;;
3089
3090 ## Ustation E30 (SS5E)
3091 m68*-unisys-uniplus* )
3092 machine=ustation opsystem=unipl5-2
3093 ;;
3094
3095 ## Vaxen.
3096 vax-dec-* )
3097 machine=vax
3098 case "${canonical}" in
3099 *-bsd4.1* ) opsys=bsd4-1 ;;
3100 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3101 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3102 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3103 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3104 *-vms* ) opsys=vms ;;
3105 * ) unported=yes
3106 esac
3107 ;;
3108
3109 ## Whitechapel MG1
3110 ns16k-whitechapel-* )
3111 machine=mg1
3112 ## We don't know what sort of OS runs on these; we'll let the
3113 ## operating system guessing code below try.
3114 ;;
3115
3116 ## Wicat
3117 m68*-wicat-sysv* )
3118 machine=wicat opsys=usg5-2
3119 ;;
3120
3121 ## IA-64
3122 ia64*-*-linux* )
3123 machine=ia64 opsys=gnu-linux
3124 ;;
3125
3126 ## Intel 386 machines where we don't care about the manufacturer
3127 i[3456]86-*-* )
3128 machine=intel386
3129 case "${canonical}" in
3130 *-cygwin ) opsys=cygwin ;;
3131 *-darwin* ) opsys=darwin
3132 CPP="${CC-cc} -E -no-cpp-precomp"
3133 ;;
3134 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3135 *-isc2.2* ) opsys=isc2-2 ;;
3136 *-isc4.0* ) opsys=isc4-0 ;;
3137 *-isc4.* ) opsys=isc4-1
3138 GCC_TEST_OPTIONS=-posix
3139 NON_GCC_TEST_OPTIONS=-Xp
3140 ;;
3141 *-isc* ) opsys=isc3-0 ;;
3142 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3143 *-esix* ) opsys=esix ;;
3144 *-xenix* ) opsys=xenix ;;
3145 *-linux-gnu* ) opsys=gnu-linux ;;
3146 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3147 *-sco3.2v5* ) opsys=sco5
3148 NON_GNU_CPP=/lib/cpp
3149 # Prevent -belf from being passed to $CPP.
3150 # /lib/cpp does not accept it.
3151 OVERRIDE_CPPFLAGS=" "
3152 ;;
3153 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3154 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3155 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3156 *-386bsd* ) opsys=386bsd ;;
3157 *-nextstep* ) opsys=nextstep ;;
3158 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3159 esac
3160 ;;
3161
3162 ## m68k Linux-based GNU system
3163 m68k-*-linux-gnu* )
3164 machine=m68k opsys=gnu-linux
3165 ;;
3166
3167 ## Mips Linux-based GNU system
3168 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3169 machine=mips opsys=gnu-linux
3170 ;;
3171
3172 ## UXP/DS
3173 sparc-fujitsu-sysv4* )
3174 machine=sparc opsys=uxpds
3175 NON_GNU_CPP=/usr/ccs/lib/cpp
3176 RANLIB="ar -ts"
3177 ;;
3178
3179 ## UXP/V
3180 f301-fujitsu-uxpv4.1)
3181 machine=f301 opsys=uxpv
3182 ;;
3183
3184 ## AMD x86-64 Linux-based GNU system
3185 x86_64-*-linux-gnu* )
3186 machine=amdx86-64 opsys=gnu-linux
3187 ;;
3188
3189 ## Tensilica Xtensa Linux-based GNU system
3190 xtensa-*-linux-gnu* )
3191 machine=xtensa opsys=gnu-linux
3192 ;;
3193
3194 * )
3195 unported=yes
3196 ;;
3197 esac
3198
3199 ### If the code above didn't choose an operating system, just choose
3200 ### an operating system based on the configuration name. You really
3201 ### only want to use this when you have no idea what the right
3202 ### operating system is; if you know what operating systems a machine
3203 ### runs, it's cleaner to make it explicit in the case statement
3204 ### above.
3205 if test x"${opsys}" = x; then
3206 case "${canonical}" in
3207 *-gnu* ) opsys=gnu ;;
3208 *-bsd4.[01] ) opsys=bsd4-1 ;;
3209 *-bsd4.2 ) opsys=bsd4-2 ;;
3210 *-bsd4.3 ) opsys=bsd4-3 ;;
3211 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3212 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3213 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3214 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3215 *-sysv4.2uw* ) opsys=unixware ;;
3216 *-sysv5uw* ) opsys=unixware ;;
3217 *-sysv5OpenUNIX* ) opsys=unixware ;;
3218 *-sysv4.1* | *-sysvr4.1* )
3219 NON_GNU_CPP=/usr/lib/cpp
3220 opsys=usg5-4 ;;
3221 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3222 if [ x$NON_GNU_CPP = x ]; then
3223 if [ -f /usr/ccs/lib/cpp ]; then
3224 NON_GNU_CPP=/usr/ccs/lib/cpp
3225 else
3226 NON_GNU_CPP=/lib/cpp
3227 fi
3228 fi
3229 opsys=usg5-4-2 ;;
3230 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3231 * )
3232 unported=yes
3233 ;;
3234 esac
3235 fi
3236
3237
3238
3239 if test $unported = yes; then
3240 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3241 Check \`etc/MACHINES' for recognized configuration names." >&5
3242 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3243 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3244 { (exit 1); exit 1; }; }
3245 fi
3246
3247 machfile="m/${machine}.h"
3248 opsysfile="s/${opsys}.h"
3249
3250
3251 #### Choose a compiler.
3252 test -n "$CC" && cc_specified=yes
3253
3254 # Save the value of CFLAGS that the user specified.
3255 SPECIFIED_CFLAGS="$CFLAGS"
3256
3257 case ${with_gcc} in
3258 "yes" ) CC="gcc" GCC=yes ;;
3259 "no" ) : ${CC=cc} ;;
3260 * )
3261 esac
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 if test -n "$ac_tool_prefix"; then
3268 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3269 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3272 if test "${ac_cv_prog_CC+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289 done
3290 done
3291 IFS=$as_save_IFS
3292
3293 fi
3294 fi
3295 CC=$ac_cv_prog_CC
3296 if test -n "$CC"; then
3297 { echo "$as_me:$LINENO: result: $CC" >&5
3298 echo "${ECHO_T}$CC" >&6; }
3299 else
3300 { echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6; }
3302 fi
3303
3304
3305 fi
3306 if test -z "$ac_cv_prog_CC"; then
3307 ac_ct_CC=$CC
3308 # Extract the first word of "gcc", so it can be a program name with args.
3309 set dummy gcc; ac_word=$2
3310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 if test -n "$ac_ct_CC"; then
3316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 ac_cv_prog_ac_ct_CC="gcc"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3336 if test -n "$ac_ct_CC"; then
3337 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3338 echo "${ECHO_T}$ac_ct_CC" >&6; }
3339 else
3340 { echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6; }
3342 fi
3343
3344 if test "x$ac_ct_CC" = x; then
3345 CC=""
3346 else
3347 case $cross_compiling:$ac_tool_warned in
3348 yes:)
3349 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3350 whose name does not start with the host triplet. If you think this
3351 configuration is useful to you, please write to autoconf@gnu.org." >&5
3352 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3353 whose name does not start with the host triplet. If you think this
3354 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3355 ac_tool_warned=yes ;;
3356 esac
3357 CC=$ac_ct_CC
3358 fi
3359 else
3360 CC="$ac_cv_prog_CC"
3361 fi
3362
3363 if test -z "$CC"; then
3364 if test -n "$ac_tool_prefix"; then
3365 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3366 set dummy ${ac_tool_prefix}cc; ac_word=$2
3367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3369 if test "${ac_cv_prog_CC+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372 if test -n "$CC"; then
3373 ac_cv_prog_CC="$CC" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382 ac_cv_prog_CC="${ac_tool_prefix}cc"
3383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3385 fi
3386 done
3387 done
3388 IFS=$as_save_IFS
3389
3390 fi
3391 fi
3392 CC=$ac_cv_prog_CC
3393 if test -n "$CC"; then
3394 { echo "$as_me:$LINENO: result: $CC" >&5
3395 echo "${ECHO_T}$CC" >&6; }
3396 else
3397 { echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6; }
3399 fi
3400
3401
3402 fi
3403 fi
3404 if test -z "$CC"; then
3405 # Extract the first word of "cc", so it can be a program name with args.
3406 set dummy cc; ac_word=$2
3407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3409 if test "${ac_cv_prog_CC+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC="$CC" # Let the user override the test.
3414 else
3415 ac_prog_rejected=no
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3424 ac_prog_rejected=yes
3425 continue
3426 fi
3427 ac_cv_prog_CC="cc"
3428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3430 fi
3431 done
3432 done
3433 IFS=$as_save_IFS
3434
3435 if test $ac_prog_rejected = yes; then
3436 # We found a bogon in the path, so make sure we never use it.
3437 set dummy $ac_cv_prog_CC
3438 shift
3439 if test $# != 0; then
3440 # We chose a different compiler from the bogus one.
3441 # However, it has the same basename, so the bogon will be chosen
3442 # first if we set CC to just the basename; use the full file name.
3443 shift
3444 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3445 fi
3446 fi
3447 fi
3448 fi
3449 CC=$ac_cv_prog_CC
3450 if test -n "$CC"; then
3451 { echo "$as_me:$LINENO: result: $CC" >&5
3452 echo "${ECHO_T}$CC" >&6; }
3453 else
3454 { echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6; }
3456 fi
3457
3458
3459 fi
3460 if test -z "$CC"; then
3461 if test -n "$ac_tool_prefix"; then
3462 for ac_prog in cl.exe
3463 do
3464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3468 if test "${ac_cv_prog_CC+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 if test -n "$CC"; then
3472 ac_cv_prog_CC="$CC" # Let the user override the test.
3473 else
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3476 do
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 break 2
3484 fi
3485 done
3486 done
3487 IFS=$as_save_IFS
3488
3489 fi
3490 fi
3491 CC=$ac_cv_prog_CC
3492 if test -n "$CC"; then
3493 { echo "$as_me:$LINENO: result: $CC" >&5
3494 echo "${ECHO_T}$CC" >&6; }
3495 else
3496 { echo "$as_me:$LINENO: result: no" >&5
3497 echo "${ECHO_T}no" >&6; }
3498 fi
3499
3500
3501 test -n "$CC" && break
3502 done
3503 fi
3504 if test -z "$CC"; then
3505 ac_ct_CC=$CC
3506 for ac_prog in cl.exe
3507 do
3508 # Extract the first word of "$ac_prog", so it can be a program name with args.
3509 set dummy $ac_prog; ac_word=$2
3510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515 if test -n "$ac_ct_CC"; then
3516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_ac_ct_CC="$ac_prog"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531 IFS=$as_save_IFS
3532
3533 fi
3534 fi
3535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536 if test -n "$ac_ct_CC"; then
3537 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3538 echo "${ECHO_T}$ac_ct_CC" >&6; }
3539 else
3540 { echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6; }
3542 fi
3543
3544
3545 test -n "$ac_ct_CC" && break
3546 done
3547
3548 if test "x$ac_ct_CC" = x; then
3549 CC=""
3550 else
3551 case $cross_compiling:$ac_tool_warned in
3552 yes:)
3553 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3554 whose name does not start with the host triplet. If you think this
3555 configuration is useful to you, please write to autoconf@gnu.org." >&5
3556 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3557 whose name does not start with the host triplet. If you think this
3558 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3559 ac_tool_warned=yes ;;
3560 esac
3561 CC=$ac_ct_CC
3562 fi
3563 fi
3564
3565 fi
3566
3567
3568 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3569 See \`config.log' for more details." >&5
3570 echo "$as_me: error: no acceptable C compiler found in \$PATH
3571 See \`config.log' for more details." >&2;}
3572 { (exit 1); exit 1; }; }
3573
3574 # Provide some information about the compiler.
3575 echo "$as_me:$LINENO: checking for C compiler version" >&5
3576 ac_compiler=`set X $ac_compile; echo $2`
3577 { (ac_try="$ac_compiler --version >&5"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compiler --version >&5") 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }
3587 { (ac_try="$ac_compiler -v >&5"
3588 case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593 (eval "$ac_compiler -v >&5") 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }
3597 { (ac_try="$ac_compiler -V >&5"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603 (eval "$ac_compiler -V >&5") 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }
3607
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614
3615 int
3616 main ()
3617 {
3618
3619 ;
3620 return 0;
3621 }
3622 _ACEOF
3623 ac_clean_files_save=$ac_clean_files
3624 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3625 # Try to create an executable without -o first, disregard a.out.
3626 # It will help us diagnose broken compilers, and finding out an intuition
3627 # of exeext.
3628 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3629 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3630 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3631 #
3632 # List of possible output files, starting from the most likely.
3633 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3634 # only as a last resort. b.out is created by i960 compilers.
3635 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3636 #
3637 # The IRIX 6 linker writes into existing files which may not be
3638 # executable, retaining their permissions. Remove them first so a
3639 # subsequent execution test works.
3640 ac_rmfiles=
3641 for ac_file in $ac_files
3642 do
3643 case $ac_file in
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3645 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3646 esac
3647 done
3648 rm -f $ac_rmfiles
3649
3650 if { (ac_try="$ac_link_default"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_link_default") 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; then
3660 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3661 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3662 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3663 # so that the user can short-circuit this test for compilers unknown to
3664 # Autoconf.
3665 for ac_file in $ac_files ''
3666 do
3667 test -f "$ac_file" || continue
3668 case $ac_file in
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3670 ;;
3671 [ab].out )
3672 # We found the default executable, but exeext='' is most
3673 # certainly right.
3674 break;;
3675 *.* )
3676 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3677 then :; else
3678 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3679 fi
3680 # We set ac_cv_exeext here because the later test for it is not
3681 # safe: cross compilers may not add the suffix if given an `-o'
3682 # argument, so we may need to know it at that point already.
3683 # Even if this section looks crufty: it has the advantage of
3684 # actually working.
3685 break;;
3686 * )
3687 break;;
3688 esac
3689 done
3690 test "$ac_cv_exeext" = no && ac_cv_exeext=
3691
3692 else
3693 ac_file=''
3694 fi
3695
3696 { echo "$as_me:$LINENO: result: $ac_file" >&5
3697 echo "${ECHO_T}$ac_file" >&6; }
3698 if test -z "$ac_file"; then
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3703 See \`config.log' for more details." >&5
3704 echo "$as_me: error: C compiler cannot create executables
3705 See \`config.log' for more details." >&2;}
3706 { (exit 77); exit 77; }; }
3707 fi
3708
3709 ac_exeext=$ac_cv_exeext
3710
3711 # Check that the compiler produces executables we can run. If not, either
3712 # the compiler is broken, or we cross compile.
3713 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3714 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3715 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3716 # If not cross compiling, check that we can run a simple program.
3717 if test "$cross_compiling" != yes; then
3718 if { ac_try='./$ac_file'
3719 { (case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3724 (eval "$ac_try") 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 cross_compiling=no
3729 else
3730 if test "$cross_compiling" = maybe; then
3731 cross_compiling=yes
3732 else
3733 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3734 If you meant to cross compile, use \`--host'.
3735 See \`config.log' for more details." >&5
3736 echo "$as_me: error: cannot run C compiled programs.
3737 If you meant to cross compile, use \`--host'.
3738 See \`config.log' for more details." >&2;}
3739 { (exit 1); exit 1; }; }
3740 fi
3741 fi
3742 fi
3743 { echo "$as_me:$LINENO: result: yes" >&5
3744 echo "${ECHO_T}yes" >&6; }
3745
3746 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3747 ac_clean_files=$ac_clean_files_save
3748 # Check that the compiler produces executables we can run. If not, either
3749 # the compiler is broken, or we cross compile.
3750 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3751 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3752 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3753 echo "${ECHO_T}$cross_compiling" >&6; }
3754
3755 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3756 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3757 if { (ac_try="$ac_link"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763 (eval "$ac_link") 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; then
3767 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3768 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3769 # work properly (i.e., refer to `conftest.exe'), while it won't with
3770 # `rm'.
3771 for ac_file in conftest.exe conftest conftest.*; do
3772 test -f "$ac_file" || continue
3773 case $ac_file in
3774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3775 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776 break;;
3777 * ) break;;
3778 esac
3779 done
3780 else
3781 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3782 See \`config.log' for more details." >&5
3783 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3784 See \`config.log' for more details." >&2;}
3785 { (exit 1); exit 1; }; }
3786 fi
3787
3788 rm -f conftest$ac_cv_exeext
3789 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3790 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3791
3792 rm -f conftest.$ac_ext
3793 EXEEXT=$ac_cv_exeext
3794 ac_exeext=$EXEEXT
3795 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3796 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3797 if test "${ac_cv_objext+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 cat >conftest.$ac_ext <<_ACEOF
3801 /* confdefs.h. */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806
3807 int
3808 main ()
3809 {
3810
3811 ;
3812 return 0;
3813 }
3814 _ACEOF
3815 rm -f conftest.o conftest.obj
3816 if { (ac_try="$ac_compile"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_compile") 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; then
3826 for ac_file in conftest.o conftest.obj conftest.*; do
3827 test -f "$ac_file" || continue;
3828 case $ac_file in
3829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3831 break;;
3832 esac
3833 done
3834 else
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3837
3838 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3839 See \`config.log' for more details." >&5
3840 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3841 See \`config.log' for more details." >&2;}
3842 { (exit 1); exit 1; }; }
3843 fi
3844
3845 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3846 fi
3847 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3848 echo "${ECHO_T}$ac_cv_objext" >&6; }
3849 OBJEXT=$ac_cv_objext
3850 ac_objext=$OBJEXT
3851 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 cat >conftest.$ac_ext <<_ACEOF
3857 /* confdefs.h. */
3858 _ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3862
3863 int
3864 main ()
3865 {
3866 #ifndef __GNUC__
3867 choke me
3868 #endif
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 rm -f conftest.$ac_objext
3875 if { (ac_try="$ac_compile"
3876 case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_compile") 2>conftest.er1
3882 ac_status=$?
3883 grep -v '^ *+' conftest.er1 >conftest.err
3884 rm -f conftest.er1
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } && {
3888 test -z "$ac_c_werror_flag" ||
3889 test ! -s conftest.err
3890 } && test -s conftest.$ac_objext; then
3891 ac_compiler_gnu=yes
3892 else
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896 ac_compiler_gnu=no
3897 fi
3898
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3901
3902 fi
3903 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3904 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3905 GCC=`test $ac_compiler_gnu = yes && echo yes`
3906 ac_test_CFLAGS=${CFLAGS+set}
3907 ac_save_CFLAGS=$CFLAGS
3908 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3909 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3910 if test "${ac_cv_prog_cc_g+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 ac_save_c_werror_flag=$ac_c_werror_flag
3914 ac_c_werror_flag=yes
3915 ac_cv_prog_cc_g=no
3916 CFLAGS="-g"
3917 cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h. */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3923
3924 int
3925 main ()
3926 {
3927
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 rm -f conftest.$ac_objext
3933 if { (ac_try="$ac_compile"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_compile") 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && {
3946 test -z "$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 } && test -s conftest.$ac_objext; then
3949 ac_cv_prog_cc_g=yes
3950 else
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 CFLAGS=""
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h. */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961
3962 int
3963 main ()
3964 {
3965
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 rm -f conftest.$ac_objext
3971 if { (ac_try="$ac_compile"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_compile") 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } && {
3984 test -z "$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3986 } && test -s conftest.$ac_objext; then
3987 :
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 ac_c_werror_flag=$ac_save_c_werror_flag
3993 CFLAGS="-g"
3994 cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h. */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4000
4001 int
4002 main ()
4003 {
4004
4005 ;
4006 return 0;
4007 }
4008 _ACEOF
4009 rm -f conftest.$ac_objext
4010 if { (ac_try="$ac_compile"
4011 case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014 esac
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_compile") 2>conftest.er1
4017 ac_status=$?
4018 grep -v '^ *+' conftest.er1 >conftest.err
4019 rm -f conftest.er1
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } && {
4023 test -z "$ac_c_werror_flag" ||
4024 test ! -s conftest.err
4025 } && test -s conftest.$ac_objext; then
4026 ac_cv_prog_cc_g=yes
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031
4032 fi
4033
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 fi
4036
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 fi
4039
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 ac_c_werror_flag=$ac_save_c_werror_flag
4042 fi
4043 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4044 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4045 if test "$ac_test_CFLAGS" = set; then
4046 CFLAGS=$ac_save_CFLAGS
4047 elif test $ac_cv_prog_cc_g = yes; then
4048 if test "$GCC" = yes; then
4049 CFLAGS="-g -O2"
4050 else
4051 CFLAGS="-g"
4052 fi
4053 else
4054 if test "$GCC" = yes; then
4055 CFLAGS="-O2"
4056 else
4057 CFLAGS=
4058 fi
4059 fi
4060 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4061 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4062 if test "${ac_cv_prog_cc_c89+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 ac_cv_prog_cc_c89=no
4066 ac_save_CC=$CC
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h. */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 #include <stdarg.h>
4074 #include <stdio.h>
4075 #include <sys/types.h>
4076 #include <sys/stat.h>
4077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4078 struct buf { int x; };
4079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4080 static char *e (p, i)
4081 char **p;
4082 int i;
4083 {
4084 return p[i];
4085 }
4086 static char *f (char * (*g) (char **, int), char **p, ...)
4087 {
4088 char *s;
4089 va_list v;
4090 va_start (v,p);
4091 s = g (p, va_arg (v,int));
4092 va_end (v);
4093 return s;
4094 }
4095
4096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4097 function prototypes and stuff, but not '\xHH' hex character constants.
4098 These don't provoke an error unfortunately, instead are silently treated
4099 as 'x'. The following induces an error, until -std is added to get
4100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4101 array size at least. It's necessary to write '\x00'==0 to get something
4102 that's true only with -std. */
4103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4104
4105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4106 inside strings and character constants. */
4107 #define FOO(x) 'x'
4108 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4109
4110 int test (int i, double x);
4111 struct s1 {int (*f) (int a);};
4112 struct s2 {int (*f) (double a);};
4113 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4114 int argc;
4115 char **argv;
4116 int
4117 main ()
4118 {
4119 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4126 do
4127 CC="$ac_save_CC $ac_arg"
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4130 case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133 esac
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } && {
4142 test -z "$ac_c_werror_flag" ||
4143 test ! -s conftest.err
4144 } && test -s conftest.$ac_objext; then
4145 ac_cv_prog_cc_c89=$ac_arg
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150
4151 fi
4152
4153 rm -f core conftest.err conftest.$ac_objext
4154 test "x$ac_cv_prog_cc_c89" != "xno" && break
4155 done
4156 rm -f conftest.$ac_ext
4157 CC=$ac_save_CC
4158
4159 fi
4160 # AC_CACHE_VAL
4161 case "x$ac_cv_prog_cc_c89" in
4162 x)
4163 { echo "$as_me:$LINENO: result: none needed" >&5
4164 echo "${ECHO_T}none needed" >&6; } ;;
4165 xno)
4166 { echo "$as_me:$LINENO: result: unsupported" >&5
4167 echo "${ECHO_T}unsupported" >&6; } ;;
4168 *)
4169 CC="$CC $ac_cv_prog_cc_c89"
4170 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4171 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4172 esac
4173
4174
4175 ac_ext=c
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180
4181
4182 # On Suns, sometimes $CPP names a directory.
4183 if test -n "$CPP" && test -d "$CPP"; then
4184 CPP=
4185 fi
4186
4187 ## If not using gcc, and on Solaris, and no CPP specified, see if
4188 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4189 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4190 test x"$CPP" = x; then
4191 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4192 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4193
4194 if test "${emacs_cv_sunpro_c+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h. */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4203
4204 int
4205 main ()
4206 {
4207 #ifndef __SUNPRO_C
4208 fail;
4209 #endif
4210
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 rm -f conftest.$ac_objext conftest$ac_exeext
4216 if { (ac_try="$ac_link"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_link") 2>conftest.er1
4223 ac_status=$?
4224 grep -v '^ *+' conftest.er1 >conftest.err
4225 rm -f conftest.er1
4226 cat conftest.err >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); } && {
4229 test -z "$ac_c_werror_flag" ||
4230 test ! -s conftest.err
4231 } && test -s conftest$ac_exeext &&
4232 $as_test_x conftest$ac_exeext; then
4233 emacs_cv_sunpro_c=yes
4234 else
4235 echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 emacs_cv_sunpro_c=no
4239 fi
4240
4241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4242 conftest$ac_exeext conftest.$ac_ext
4243 fi
4244
4245 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4246 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4247
4248 if test x"$emacs_cv_sunpro_c" = xyes; then
4249 NON_GNU_CPP="$CC -E -Xs"
4250 fi
4251 fi
4252
4253 #### Some systems specify a CPP to use unless we are using GCC.
4254 #### Now that we know whether we are using GCC, we can decide whether
4255 #### to use that one.
4256 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4257 then
4258 CPP="$NON_GNU_CPP"
4259 fi
4260
4261 #### Some systems specify a CC to use unless we are using GCC.
4262 #### Now that we know whether we are using GCC, we can decide whether
4263 #### to use that one.
4264 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4265 test x$cc_specified != xyes
4266 then
4267 CC="$NON_GNU_CC"
4268 fi
4269
4270 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4271 then
4272 CC="$CC $GCC_TEST_OPTIONS"
4273 fi
4274
4275 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4276 then
4277 CC="$CC $NON_GCC_TEST_OPTIONS"
4278 fi
4279
4280 ac_ext=c
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4287 # On Suns, sometimes $CPP names a directory.
4288 if test -n "$CPP" && test -d "$CPP"; then
4289 CPP=
4290 fi
4291 if test -z "$CPP"; then
4292 if test "${ac_cv_prog_CPP+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 # Double quotes because CPP needs to be expanded
4296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4297 do
4298 ac_preproc_ok=false
4299 for ac_c_preproc_warn_flag in '' yes
4300 do
4301 # Use a header file that comes with gcc, so configuring glibc
4302 # with a fresh cross-compiler works.
4303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304 # <limits.h> exists even on freestanding compilers.
4305 # On the NeXT, cc -E runs the code through the compiler's parser,
4306 # not just through cpp. "Syntax error" is here to catch this case.
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4313 #ifdef __STDC__
4314 # include <limits.h>
4315 #else
4316 # include <assert.h>
4317 #endif
4318 Syntax error
4319 _ACEOF
4320 if { (ac_try="$ac_cpp conftest.$ac_ext"
4321 case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } >/dev/null && {
4333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4335 }; then
4336 :
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 # Broken: fails on valid input.
4342 continue
4343 fi
4344
4345 rm -f conftest.err conftest.$ac_ext
4346
4347 # OK, works on sane cases. Now check whether nonexistent headers
4348 # can be detected and how.
4349 cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h. */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 #include <ac_nonexistent.h>
4356 _ACEOF
4357 if { (ac_try="$ac_cpp conftest.$ac_ext"
4358 case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361 esac
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4364 ac_status=$?
4365 grep -v '^ *+' conftest.er1 >conftest.err
4366 rm -f conftest.er1
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } >/dev/null && {
4370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4371 test ! -s conftest.err
4372 }; then
4373 # Broken: success on invalid input.
4374 continue
4375 else
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379 # Passes both tests.
4380 ac_preproc_ok=:
4381 break
4382 fi
4383
4384 rm -f conftest.err conftest.$ac_ext
4385
4386 done
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.err conftest.$ac_ext
4389 if $ac_preproc_ok; then
4390 break
4391 fi
4392
4393 done
4394 ac_cv_prog_CPP=$CPP
4395
4396 fi
4397 CPP=$ac_cv_prog_CPP
4398 else
4399 ac_cv_prog_CPP=$CPP
4400 fi
4401 { echo "$as_me:$LINENO: result: $CPP" >&5
4402 echo "${ECHO_T}$CPP" >&6; }
4403 ac_preproc_ok=false
4404 for ac_c_preproc_warn_flag in '' yes
4405 do
4406 # Use a header file that comes with gcc, so configuring glibc
4407 # with a fresh cross-compiler works.
4408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4409 # <limits.h> exists even on freestanding compilers.
4410 # On the NeXT, cc -E runs the code through the compiler's parser,
4411 # not just through cpp. "Syntax error" is here to catch this case.
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h. */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 #ifdef __STDC__
4419 # include <limits.h>
4420 #else
4421 # include <assert.h>
4422 #endif
4423 Syntax error
4424 _ACEOF
4425 if { (ac_try="$ac_cpp conftest.$ac_ext"
4426 case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4429 esac
4430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4432 ac_status=$?
4433 grep -v '^ *+' conftest.er1 >conftest.err
4434 rm -f conftest.er1
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } >/dev/null && {
4438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4439 test ! -s conftest.err
4440 }; then
4441 :
4442 else
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446 # Broken: fails on valid input.
4447 continue
4448 fi
4449
4450 rm -f conftest.err conftest.$ac_ext
4451
4452 # OK, works on sane cases. Now check whether nonexistent headers
4453 # can be detected and how.
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <ac_nonexistent.h>
4461 _ACEOF
4462 if { (ac_try="$ac_cpp conftest.$ac_ext"
4463 case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466 esac
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4469 ac_status=$?
4470 grep -v '^ *+' conftest.er1 >conftest.err
4471 rm -f conftest.er1
4472 cat conftest.err >&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } >/dev/null && {
4475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4476 test ! -s conftest.err
4477 }; then
4478 # Broken: success on invalid input.
4479 continue
4480 else
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 # Passes both tests.
4485 ac_preproc_ok=:
4486 break
4487 fi
4488
4489 rm -f conftest.err conftest.$ac_ext
4490
4491 done
4492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4493 rm -f conftest.err conftest.$ac_ext
4494 if $ac_preproc_ok; then
4495 :
4496 else
4497 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4498 See \`config.log' for more details." >&5
4499 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4500 See \`config.log' for more details." >&2;}
4501 { (exit 1); exit 1; }; }
4502 fi
4503
4504 ac_ext=c
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509
4510
4511 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4512 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4513 if test "${ac_cv_path_GREP+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516 # Extract the first word of "grep ggrep" to use in msg output
4517 if test -z "$GREP"; then
4518 set dummy grep ggrep; ac_prog_name=$2
4519 if test "${ac_cv_path_GREP+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 ac_path_GREP_found=false
4523 # Loop through the user's path and test for each of PROGNAME-LIST
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526 do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_prog in grep ggrep; do
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4532 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4533 # Check for GNU ac_path_GREP and select it if it is found.
4534 # Check for GNU $ac_path_GREP
4535 case `"$ac_path_GREP" --version 2>&1` in
4536 *GNU*)
4537 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4538 *)
4539 ac_count=0
4540 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4541 while :
4542 do
4543 cat "conftest.in" "conftest.in" >"conftest.tmp"
4544 mv "conftest.tmp" "conftest.in"
4545 cp "conftest.in" "conftest.nl"
4546 echo 'GREP' >> "conftest.nl"
4547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549 ac_count=`expr $ac_count + 1`
4550 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4551 # Best one so far, save it but keep looking for a better one
4552 ac_cv_path_GREP="$ac_path_GREP"
4553 ac_path_GREP_max=$ac_count
4554 fi
4555 # 10*(2^10) chars as input seems more than enough
4556 test $ac_count -gt 10 && break
4557 done
4558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559 esac
4560
4561
4562 $ac_path_GREP_found && break 3
4563 done
4564 done
4565
4566 done
4567 IFS=$as_save_IFS
4568
4569
4570 fi
4571
4572 GREP="$ac_cv_path_GREP"
4573 if test -z "$GREP"; then
4574 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4575 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4576 { (exit 1); exit 1; }; }
4577 fi
4578
4579 else
4580 ac_cv_path_GREP=$GREP
4581 fi
4582
4583
4584 fi
4585 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4586 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4587 GREP="$ac_cv_path_GREP"
4588
4589
4590 { echo "$as_me:$LINENO: checking for egrep" >&5
4591 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4592 if test "${ac_cv_path_EGREP+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4596 then ac_cv_path_EGREP="$GREP -E"
4597 else
4598 # Extract the first word of "egrep" to use in msg output
4599 if test -z "$EGREP"; then
4600 set dummy egrep; ac_prog_name=$2
4601 if test "${ac_cv_path_EGREP+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604 ac_path_EGREP_found=false
4605 # Loop through the user's path and test for each of PROGNAME-LIST
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4608 do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_prog in egrep; do
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4614 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4615 # Check for GNU ac_path_EGREP and select it if it is found.
4616 # Check for GNU $ac_path_EGREP
4617 case `"$ac_path_EGREP" --version 2>&1` in
4618 *GNU*)
4619 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4620 *)
4621 ac_count=0
4622 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4623 while :
4624 do
4625 cat "conftest.in" "conftest.in" >"conftest.tmp"
4626 mv "conftest.tmp" "conftest.in"
4627 cp "conftest.in" "conftest.nl"
4628 echo 'EGREP' >> "conftest.nl"
4629 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4631 ac_count=`expr $ac_count + 1`
4632 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4633 # Best one so far, save it but keep looking for a better one
4634 ac_cv_path_EGREP="$ac_path_EGREP"
4635 ac_path_EGREP_max=$ac_count
4636 fi
4637 # 10*(2^10) chars as input seems more than enough
4638 test $ac_count -gt 10 && break
4639 done
4640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641 esac
4642
4643
4644 $ac_path_EGREP_found && break 3
4645 done
4646 done
4647
4648 done
4649 IFS=$as_save_IFS
4650
4651
4652 fi
4653
4654 EGREP="$ac_cv_path_EGREP"
4655 if test -z "$EGREP"; then
4656 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4657 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4658 { (exit 1); exit 1; }; }
4659 fi
4660
4661 else
4662 ac_cv_path_EGREP=$EGREP
4663 fi
4664
4665
4666 fi
4667 fi
4668 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4669 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4670 EGREP="$ac_cv_path_EGREP"
4671
4672
4673
4674 { echo "$as_me:$LINENO: checking for AIX" >&5
4675 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4676 cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 #ifdef _AIX
4683 yes
4684 #endif
4685
4686 _ACEOF
4687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4688 $EGREP "yes" >/dev/null 2>&1; then
4689 { echo "$as_me:$LINENO: result: yes" >&5
4690 echo "${ECHO_T}yes" >&6; }
4691 cat >>confdefs.h <<\_ACEOF
4692 #define _ALL_SOURCE 1
4693 _ACEOF
4694
4695 else
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4698 fi
4699 rm -f conftest*
4700
4701
4702
4703 cat >>confdefs.h <<\_ACEOF
4704 #define _GNU_SOURCE 1
4705 _ACEOF
4706
4707
4708
4709 ### Use -Wno-pointer-sign if the compiler supports it
4710 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4711 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4712 SAVE_CFLAGS="$CFLAGS"
4713 CFLAGS="$CFLAGS -Wno-pointer-sign"
4714 cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h. */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720
4721 int
4722 main ()
4723 {
4724
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 rm -f conftest.$ac_objext
4730 if { (ac_try="$ac_compile"
4731 case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734 esac
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_compile") 2>conftest.er1
4737 ac_status=$?
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && {
4743 test -z "$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4745 } && test -s conftest.$ac_objext; then
4746 has_option=yes
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 has_option=no
4752 fi
4753
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 if test $has_option = yes; then
4756 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4757 fi
4758 { echo "$as_me:$LINENO: result: $has_option" >&5
4759 echo "${ECHO_T}$has_option" >&6; }
4760 CFLAGS="$SAVE_CFLAGS"
4761 unset has_option
4762 unset SAVE_CFLAGS
4763
4764 #### Some other nice autoconf tests.
4765
4766 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4767 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4768 LN_S=$as_ln_s
4769 if test "$LN_S" = "ln -s"; then
4770 { echo "$as_me:$LINENO: result: yes" >&5
4771 echo "${ECHO_T}yes" >&6; }
4772 else
4773 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4774 echo "${ECHO_T}no, using $LN_S" >&6; }
4775 fi
4776
4777 ac_ext=c
4778 ac_cpp='$CPP $CPPFLAGS'
4779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4782 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4783 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4784 # On Suns, sometimes $CPP names a directory.
4785 if test -n "$CPP" && test -d "$CPP"; then
4786 CPP=
4787 fi
4788 if test -z "$CPP"; then
4789 if test "${ac_cv_prog_CPP+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792 # Double quotes because CPP needs to be expanded
4793 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4794 do
4795 ac_preproc_ok=false
4796 for ac_c_preproc_warn_flag in '' yes
4797 do
4798 # Use a header file that comes with gcc, so configuring glibc
4799 # with a fresh cross-compiler works.
4800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4801 # <limits.h> exists even on freestanding compilers.
4802 # On the NeXT, cc -E runs the code through the compiler's parser,
4803 # not just through cpp. "Syntax error" is here to catch this case.
4804 cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 #ifdef __STDC__
4811 # include <limits.h>
4812 #else
4813 # include <assert.h>
4814 #endif
4815 Syntax error
4816 _ACEOF
4817 if { (ac_try="$ac_cpp conftest.$ac_ext"
4818 case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4824 ac_status=$?
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } >/dev/null && {
4830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4832 }; then
4833 :
4834 else
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 # Broken: fails on valid input.
4839 continue
4840 fi
4841
4842 rm -f conftest.err conftest.$ac_ext
4843
4844 # OK, works on sane cases. Now check whether nonexistent headers
4845 # can be detected and how.
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 #include <ac_nonexistent.h>
4853 _ACEOF
4854 if { (ac_try="$ac_cpp conftest.$ac_ext"
4855 case "(($ac_try" in
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4858 esac
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4861 ac_status=$?
4862 grep -v '^ *+' conftest.er1 >conftest.err
4863 rm -f conftest.er1
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } >/dev/null && {
4867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 }; then
4870 # Broken: success on invalid input.
4871 continue
4872 else
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4875
4876 # Passes both tests.
4877 ac_preproc_ok=:
4878 break
4879 fi
4880
4881 rm -f conftest.err conftest.$ac_ext
4882
4883 done
4884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4885 rm -f conftest.err conftest.$ac_ext
4886 if $ac_preproc_ok; then
4887 break
4888 fi
4889
4890 done
4891 ac_cv_prog_CPP=$CPP
4892
4893 fi
4894 CPP=$ac_cv_prog_CPP
4895 else
4896 ac_cv_prog_CPP=$CPP
4897 fi
4898 { echo "$as_me:$LINENO: result: $CPP" >&5
4899 echo "${ECHO_T}$CPP" >&6; }
4900 ac_preproc_ok=false
4901 for ac_c_preproc_warn_flag in '' yes
4902 do
4903 # Use a header file that comes with gcc, so configuring glibc
4904 # with a fresh cross-compiler works.
4905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906 # <limits.h> exists even on freestanding compilers.
4907 # On the NeXT, cc -E runs the code through the compiler's parser,
4908 # not just through cpp. "Syntax error" is here to catch this case.
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4915 #ifdef __STDC__
4916 # include <limits.h>
4917 #else
4918 # include <assert.h>
4919 #endif
4920 Syntax error
4921 _ACEOF
4922 if { (ac_try="$ac_cpp conftest.$ac_ext"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } >/dev/null && {
4935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4936 test ! -s conftest.err
4937 }; then
4938 :
4939 else
4940 echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4942
4943 # Broken: fails on valid input.
4944 continue
4945 fi
4946
4947 rm -f conftest.err conftest.$ac_ext
4948
4949 # OK, works on sane cases. Now check whether nonexistent headers
4950 # can be detected and how.
4951 cat >conftest.$ac_ext <<_ACEOF
4952 /* confdefs.h. */
4953 _ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4957 #include <ac_nonexistent.h>
4958 _ACEOF
4959 if { (ac_try="$ac_cpp conftest.$ac_ext"
4960 case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963 esac
4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4966 ac_status=$?
4967 grep -v '^ *+' conftest.er1 >conftest.err
4968 rm -f conftest.er1
4969 cat conftest.err >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev/null && {
4972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4973 test ! -s conftest.err
4974 }; then
4975 # Broken: success on invalid input.
4976 continue
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4980
4981 # Passes both tests.
4982 ac_preproc_ok=:
4983 break
4984 fi
4985
4986 rm -f conftest.err conftest.$ac_ext
4987
4988 done
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then
4992 :
4993 else
4994 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4995 See \`config.log' for more details." >&5
4996 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." >&2;}
4998 { (exit 1); exit 1; }; }
4999 fi
5000
5001 ac_ext=c
5002 ac_cpp='$CPP $CPPFLAGS'
5003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006
5007 # Find a good install program. We prefer a C program (faster),
5008 # so one script is as good as another. But avoid the broken or
5009 # incompatible versions:
5010 # SysV /etc/install, /usr/sbin/install
5011 # SunOS /usr/etc/install
5012 # IRIX /sbin/install
5013 # AIX /bin/install
5014 # AmigaOS /C/install, which installs bootblocks on floppy discs
5015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5018 # OS/2's system install, which has a completely different semantic
5019 # ./install, which can be erroneously created by make from ./install.sh.
5020 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5021 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5022 if test -z "$INSTALL"; then
5023 if test "${ac_cv_path_install+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 # Account for people who put trailing slashes in PATH elements.
5032 case $as_dir/ in
5033 ./ | .// | /cC/* | \
5034 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5035 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5036 /usr/ucb/* ) ;;
5037 *)
5038 # OSF1 and SCO ODT 3.0 have their own names for install.
5039 # Don't use installbsd from OSF since it installs stuff as root
5040 # by default.
5041 for ac_prog in ginstall scoinst install; do
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5044 if test $ac_prog = install &&
5045 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5046 # AIX install. It has an incompatible calling convention.
5047 :
5048 elif test $ac_prog = install &&
5049 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5050 # program-specific install script used by HP pwplus--don't use.
5051 :
5052 else
5053 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5054 break 3
5055 fi
5056 fi
5057 done
5058 done
5059 ;;
5060 esac
5061 done
5062 IFS=$as_save_IFS
5063
5064
5065 fi
5066 if test "${ac_cv_path_install+set}" = set; then
5067 INSTALL=$ac_cv_path_install
5068 else
5069 # As a last resort, use the slow shell script. Don't cache a
5070 # value for INSTALL within a source directory, because that will
5071 # break other packages using the cache if that directory is
5072 # removed, or if the value is a relative name.
5073 INSTALL=$ac_install_sh
5074 fi
5075 fi
5076 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5077 echo "${ECHO_T}$INSTALL" >&6; }
5078
5079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5080 # It thinks the first close brace ends the variable substitution.
5081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5082
5083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5084
5085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5086
5087 if test "x$RANLIB" = x; then
5088 if test -n "$ac_tool_prefix"; then
5089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5093 if test "${ac_cv_prog_RANLIB+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096 if test -n "$RANLIB"; then
5097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110 done
5111 done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 RANLIB=$ac_cv_prog_RANLIB
5117 if test -n "$RANLIB"; then
5118 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5119 echo "${ECHO_T}$RANLIB" >&6; }
5120 else
5121 { echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6; }
5123 fi
5124
5125
5126 fi
5127 if test -z "$ac_cv_prog_RANLIB"; then
5128 ac_ct_RANLIB=$RANLIB
5129 # Extract the first word of "ranlib", so it can be a program name with args.
5130 set dummy ranlib; ac_word=$2
5131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5133 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 if test -n "$ac_ct_RANLIB"; then
5137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146 ac_cv_prog_ac_ct_RANLIB="ranlib"
5147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150 done
5151 done
5152 IFS=$as_save_IFS
5153
5154 fi
5155 fi
5156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5157 if test -n "$ac_ct_RANLIB"; then
5158 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5159 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5160 else
5161 { echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6; }
5163 fi
5164
5165 if test "x$ac_ct_RANLIB" = x; then
5166 RANLIB=":"
5167 else
5168 case $cross_compiling:$ac_tool_warned in
5169 yes:)
5170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5171 whose name does not start with the host triplet. If you think this
5172 configuration is useful to you, please write to autoconf@gnu.org." >&5
5173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5174 whose name does not start with the host triplet. If you think this
5175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5176 ac_tool_warned=yes ;;
5177 esac
5178 RANLIB=$ac_ct_RANLIB
5179 fi
5180 else
5181 RANLIB="$ac_cv_prog_RANLIB"
5182 fi
5183
5184 fi
5185 # Extract the first word of "install-info", so it can be a program name with args.
5186 set dummy install-info; ac_word=$2
5187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5189 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192 case $INSTALL_INFO in
5193 [\\/]* | ?:[\\/]*)
5194 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5195 ;;
5196 *)
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208 done
5209 done
5210 IFS=$as_save_IFS
5211
5212 ;;
5213 esac
5214 fi
5215 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5216 if test -n "$INSTALL_INFO"; then
5217 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5218 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5219 else
5220 { echo "$as_me:$LINENO: result: no" >&5
5221 echo "${ECHO_T}no" >&6; }
5222 fi
5223
5224
5225 # Extract the first word of "install-info", so it can be a program name with args.
5226 set dummy install-info; ac_word=$2
5227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5229 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232 case $INSTALL_INFO in
5233 [\\/]* | ?:[\\/]*)
5234 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5235 ;;
5236 *)
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in /usr/sbin
5239 do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5247 fi
5248 done
5249 done
5250 IFS=$as_save_IFS
5251
5252 ;;
5253 esac
5254 fi
5255 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5256 if test -n "$INSTALL_INFO"; then
5257 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5258 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5259 else
5260 { echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6; }
5262 fi
5263
5264
5265 # Extract the first word of "install-info", so it can be a program name with args.
5266 set dummy install-info; ac_word=$2
5267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5269 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 case $INSTALL_INFO in
5273 [\\/]* | ?:[\\/]*)
5274 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5275 ;;
5276 *)
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in /sbin
5279 do
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5287 fi
5288 done
5289 done
5290 IFS=$as_save_IFS
5291
5292 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5293 ;;
5294 esac
5295 fi
5296 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5297 if test -n "$INSTALL_INFO"; then
5298 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5299 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5300 else
5301 { echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6; }
5303 fi
5304
5305
5306 # Extract the first word of "gzip", so it can be a program name with args.
5307 set dummy gzip; ac_word=$2
5308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5310 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313 case $GZIP_PROG in
5314 [\\/]* | ?:[\\/]*)
5315 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5316 ;;
5317 *)
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329 done
5330 done
5331 IFS=$as_save_IFS
5332
5333 ;;
5334 esac
5335 fi
5336 GZIP_PROG=$ac_cv_path_GZIP_PROG
5337 if test -n "$GZIP_PROG"; then
5338 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5339 echo "${ECHO_T}$GZIP_PROG" >&6; }
5340 else
5341 { echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6; }
5343 fi
5344
5345
5346
5347
5348 ## Need makeinfo >= 4.6 (?) to build the manuals.
5349 # Extract the first word of "makeinfo", so it can be a program name with args.
5350 set dummy makeinfo; ac_word=$2
5351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5353 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 case $MAKEINFO in
5357 [\\/]* | ?:[\\/]*)
5358 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5359 ;;
5360 *)
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5363 do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5371 fi
5372 done
5373 done
5374 IFS=$as_save_IFS
5375
5376 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5377 ;;
5378 esac
5379 fi
5380 MAKEINFO=$ac_cv_path_MAKEINFO
5381 if test -n "$MAKEINFO"; then
5382 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5383 echo "${ECHO_T}$MAKEINFO" >&6; }
5384 else
5385 { echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6; }
5387 fi
5388
5389
5390 if test "$MAKEINFO" != "no" && \
5391 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([5-9]|4\.[6-9])'`" = x; then
5392 MAKEINFO=no
5393 fi
5394
5395 if test "$MAKEINFO" = "no"; then
5396 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5397 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5398 { (exit 1); exit 1; }; }
5399 fi
5400
5401
5402
5403 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5404 then
5405 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5406 fi
5407
5408 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5409 then
5410 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5411 fi
5412
5413
5414 late_LDFLAGS=$LDFLAGS
5415 if test "$GCC" = yes; then
5416 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5417 else
5418 LDFLAGS="$LDFLAGS -znocombreloc"
5419 fi
5420
5421 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5422 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5423 cat >conftest.$ac_ext <<_ACEOF
5424 main(){return 0;}
5425 _ACEOF
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (ac_try="$ac_link"
5428 case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_link") 2>conftest.er1
5434 ac_status=$?
5435 grep -v '^ *+' conftest.er1 >conftest.err
5436 rm -f conftest.er1
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest$ac_exeext &&
5443 $as_test_x conftest$ac_exeext; then
5444 { echo "$as_me:$LINENO: result: yes" >&5
5445 echo "${ECHO_T}yes" >&6; }
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450 LDFLAGS=$late_LDFLAGS
5451 { echo "$as_me:$LINENO: result: no" >&5
5452 echo "${ECHO_T}no" >&6; }
5453 fi
5454
5455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5456 conftest$ac_exeext conftest.$ac_ext
5457
5458 #### Extract some information from the operating system and machine files.
5459
5460 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5461 - which libraries the lib-src programs will want, and
5462 - whether the GNU malloc routines are usable..." >&5
5463 echo "$as_me: checking the machine- and system-dependent files to find out
5464 - which libraries the lib-src programs will want, and
5465 - whether the GNU malloc routines are usable..." >&6;}
5466
5467 ### First figure out CFLAGS (which we use for running the compiler here)
5468 ### and REAL_CFLAGS (which we use for real compilation).
5469 ### The two are the same except on a few systems, where they are made
5470 ### different to work around various lossages. For example,
5471 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5472 ### as implying static linking.
5473
5474 ### If the CFLAGS env var is specified, we use that value
5475 ### instead of the default.
5476
5477 ### It's not important that this name contain the PID; you can't run
5478 ### two configures in the same directory and have anything work
5479 ### anyway.
5480 tempcname="conftest.c"
5481
5482 echo '
5483 #include "'${srcdir}'/src/'${opsysfile}'"
5484 #include "'${srcdir}'/src/'${machfile}'"
5485 #ifndef LIBS_MACHINE
5486 #define LIBS_MACHINE
5487 #endif
5488 #ifndef LIBS_SYSTEM
5489 #define LIBS_SYSTEM
5490 #endif
5491 #ifndef C_SWITCH_SYSTEM
5492 #define C_SWITCH_SYSTEM
5493 #endif
5494 #ifndef C_SWITCH_MACHINE
5495 #define C_SWITCH_MACHINE
5496 #endif
5497 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5498 configure___ c_switch_system=C_SWITCH_SYSTEM
5499 configure___ c_switch_machine=C_SWITCH_MACHINE
5500
5501 #ifndef LIB_X11_LIB
5502 #define LIB_X11_LIB -lX11
5503 #endif
5504
5505 #ifndef LIBX11_MACHINE
5506 #define LIBX11_MACHINE
5507 #endif
5508
5509 #ifndef LIBX11_SYSTEM
5510 #define LIBX11_SYSTEM
5511 #endif
5512 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5513
5514 #ifdef UNEXEC
5515 configure___ unexec=UNEXEC
5516 #else
5517 configure___ unexec=unexec.o
5518 #endif
5519
5520 #ifdef SYSTEM_MALLOC
5521 configure___ system_malloc=yes
5522 #else
5523 configure___ system_malloc=no
5524 #endif
5525
5526 #ifdef USE_MMAP_FOR_BUFFERS
5527 configure___ use_mmap_for_buffers=yes
5528 #else
5529 configure___ use_mmap_for_buffers=no
5530 #endif
5531
5532 #ifndef C_DEBUG_SWITCH
5533 #define C_DEBUG_SWITCH -g
5534 #endif
5535
5536 #ifndef C_OPTIMIZE_SWITCH
5537 #ifdef __GNUC__
5538 #define C_OPTIMIZE_SWITCH -O2
5539 #else
5540 #define C_OPTIMIZE_SWITCH -O
5541 #endif
5542 #endif
5543
5544 #ifndef C_WARNINGS_SWITCH
5545 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5546 #endif
5547
5548 #ifndef LD_SWITCH_MACHINE
5549 #define LD_SWITCH_MACHINE
5550 #endif
5551
5552 #ifndef LD_SWITCH_SYSTEM
5553 #define LD_SWITCH_SYSTEM
5554 #endif
5555
5556 #ifndef LD_SWITCH_X_SITE_AUX
5557 #define LD_SWITCH_X_SITE_AUX
5558 #endif
5559
5560 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5561 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5562
5563 #ifdef THIS_IS_CONFIGURE
5564
5565 /* Get the CFLAGS for tests in configure. */
5566 #ifdef __GNUC__
5567 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5568 #else
5569 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5570 #endif
5571
5572 #else /* not THIS_IS_CONFIGURE */
5573
5574 /* Get the CFLAGS for real compilation. */
5575 #ifdef __GNUC__
5576 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5577 #else
5578 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5579 #endif
5580
5581 #endif /* not THIS_IS_CONFIGURE */
5582 ' > ${tempcname}
5583
5584 # The value of CPP is a quoted variable reference, so we need to do this
5585 # to get its actual value...
5586 CPP=`eval "echo $CPP"`
5587 eval `${CPP} -Isrc ${tempcname} \
5588 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5589 if test "x$SPECIFIED_CFLAGS" = x; then
5590 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5591 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5592 else
5593 REAL_CFLAGS="$CFLAGS"
5594 fi
5595 rm ${tempcname}
5596
5597 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5598
5599 ### Make sure subsequent tests use flags consistent with the build flags.
5600
5601 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5602 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5603 else
5604 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5605 fi
5606
5607
5608
5609 # Check whether --enable-largefile was given.
5610 if test "${enable_largefile+set}" = set; then
5611 enableval=$enable_largefile;
5612 fi
5613
5614 if test "$enable_largefile" != no; then
5615
5616 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5617 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5618 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621 ac_cv_sys_largefile_CC=no
5622 if test "$GCC" != yes; then
5623 ac_save_CC=$CC
5624 while :; do
5625 # IRIX 6.2 and later do not support large files by default,
5626 # so use the C compiler's -n32 option if that helps.
5627 cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h. */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 #include <sys/types.h>
5634 /* Check that off_t can represent 2**63 - 1 correctly.
5635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5636 since some C++ compilers masquerading as C compilers
5637 incorrectly reject 9223372036854775807. */
5638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5640 && LARGE_OFF_T % 2147483647 == 1)
5641 ? 1 : -1];
5642 int
5643 main ()
5644 {
5645
5646 ;
5647 return 0;
5648 }
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5652 case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 break
5668 else
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672
5673 fi
5674
5675 rm -f core conftest.err conftest.$ac_objext
5676 CC="$CC -n32"
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5679 case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_compile") 2>conftest.er1
5685 ac_status=$?
5686 grep -v '^ *+' conftest.er1 >conftest.err
5687 rm -f conftest.er1
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } && {
5691 test -z "$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5693 } && test -s conftest.$ac_objext; then
5694 ac_cv_sys_largefile_CC=' -n32'; break
5695 else
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699
5700 fi
5701
5702 rm -f core conftest.err conftest.$ac_objext
5703 break
5704 done
5705 CC=$ac_save_CC
5706 rm -f conftest.$ac_ext
5707 fi
5708 fi
5709 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5710 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5711 if test "$ac_cv_sys_largefile_CC" != no; then
5712 CC=$CC$ac_cv_sys_largefile_CC
5713 fi
5714
5715 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5716 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5717 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720 while :; do
5721 cat >conftest.$ac_ext <<_ACEOF
5722 /* confdefs.h. */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5735 ? 1 : -1];
5736 int
5737 main ()
5738 {
5739
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 rm -f conftest.$ac_objext
5745 if { (ac_try="$ac_compile"
5746 case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compile") 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && {
5758 test -z "$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 } && test -s conftest.$ac_objext; then
5761 ac_cv_sys_file_offset_bits=no; break
5762 else
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5765
5766
5767 fi
5768
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 cat >conftest.$ac_ext <<_ACEOF
5771 /* confdefs.h. */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5776 #define _FILE_OFFSET_BITS 64
5777 #include <sys/types.h>
5778 /* Check that off_t can represent 2**63 - 1 correctly.
5779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5780 since some C++ compilers masquerading as C compilers
5781 incorrectly reject 9223372036854775807. */
5782 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5784 && LARGE_OFF_T % 2147483647 == 1)
5785 ? 1 : -1];
5786 int
5787 main ()
5788 {
5789
5790 ;
5791 return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5796 case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest.$ac_objext; then
5811 ac_cv_sys_file_offset_bits=64; break
5812 else
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816
5817 fi
5818
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 ac_cv_sys_file_offset_bits=unknown
5821 break
5822 done
5823 fi
5824 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5825 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5826 case $ac_cv_sys_file_offset_bits in #(
5827 no | unknown) ;;
5828 *)
5829 cat >>confdefs.h <<_ACEOF
5830 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5831 _ACEOF
5832 ;;
5833 esac
5834 rm -f conftest*
5835 if test $ac_cv_sys_file_offset_bits = unknown; then
5836 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5837 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5838 if test "${ac_cv_sys_large_files+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841 while :; do
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <sys/types.h>
5849 /* Check that off_t can represent 2**63 - 1 correctly.
5850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5851 since some C++ compilers masquerading as C compilers
5852 incorrectly reject 9223372036854775807. */
5853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5855 && LARGE_OFF_T % 2147483647 == 1)
5856 ? 1 : -1];
5857 int
5858 main ()
5859 {
5860
5861 ;
5862 return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5867 case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.$ac_objext; then
5882 ac_cv_sys_large_files=no; break
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887
5888 fi
5889
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h. */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 #define _LARGE_FILES 1
5898 #include <sys/types.h>
5899 /* Check that off_t can represent 2**63 - 1 correctly.
5900 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5901 since some C++ compilers masquerading as C compilers
5902 incorrectly reject 9223372036854775807. */
5903 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5905 && LARGE_OFF_T % 2147483647 == 1)
5906 ? 1 : -1];
5907 int
5908 main ()
5909 {
5910
5911 ;
5912 return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5917 case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920 esac
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && {
5929 test -z "$ac_c_werror_flag" ||
5930 test ! -s conftest.err
5931 } && test -s conftest.$ac_objext; then
5932 ac_cv_sys_large_files=1; break
5933 else
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937
5938 fi
5939
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 ac_cv_sys_large_files=unknown
5942 break
5943 done
5944 fi
5945 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5946 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5947 case $ac_cv_sys_large_files in #(
5948 no | unknown) ;;
5949 *)
5950 cat >>confdefs.h <<_ACEOF
5951 #define _LARGE_FILES $ac_cv_sys_large_files
5952 _ACEOF
5953 ;;
5954 esac
5955 rm -f conftest*
5956 fi
5957 fi
5958
5959
5960
5961 ### The standard library on x86-64 GNU/Linux distributions can
5962 ### be located in either /usr/lib64 or /usr/lib.
5963 case "${canonical}" in
5964 x86_64-*-linux-gnu* )
5965 if test -d /usr/lib64; then
5966
5967 cat >>confdefs.h <<\_ACEOF
5968 #define HAVE_X86_64_LIB64_DIR 1
5969 _ACEOF
5970
5971 fi
5972 esac
5973
5974
5975
5976
5977 if test "${with_sound}" != "no"; then
5978 # Sound support for GNU/Linux and the free BSDs.
5979 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5980 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5981 if test "${ac_cv_header_stdc+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <stdlib.h>
5991 #include <stdarg.h>
5992 #include <string.h>
5993 #include <float.h>
5994
5995 int
5996 main ()
5997 {
5998
5999 ;
6000 return 0;
6001 }
6002 _ACEOF
6003 rm -f conftest.$ac_objext
6004 if { (ac_try="$ac_compile"
6005 case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_compile") 2>conftest.er1
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest.$ac_objext; then
6020 ac_cv_header_stdc=yes
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 ac_cv_header_stdc=no
6026 fi
6027
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029
6030 if test $ac_cv_header_stdc = yes; then
6031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <string.h>
6039
6040 _ACEOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "memchr" >/dev/null 2>&1; then
6043 :
6044 else
6045 ac_cv_header_stdc=no
6046 fi
6047 rm -f conftest*
6048
6049 fi
6050
6051 if test $ac_cv_header_stdc = yes; then
6052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6053 cat >conftest.$ac_ext <<_ACEOF
6054 /* confdefs.h. */
6055 _ACEOF
6056 cat confdefs.h >>conftest.$ac_ext
6057 cat >>conftest.$ac_ext <<_ACEOF
6058 /* end confdefs.h. */
6059 #include <stdlib.h>
6060
6061 _ACEOF
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063 $EGREP "free" >/dev/null 2>&1; then
6064 :
6065 else
6066 ac_cv_header_stdc=no
6067 fi
6068 rm -f conftest*
6069
6070 fi
6071
6072 if test $ac_cv_header_stdc = yes; then
6073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6074 if test "$cross_compiling" = yes; then
6075 :
6076 else
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <ctype.h>
6084 #include <stdlib.h>
6085 #if ((' ' & 0x0FF) == 0x020)
6086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6088 #else
6089 # define ISLOWER(c) \
6090 (('a' <= (c) && (c) <= 'i') \
6091 || ('j' <= (c) && (c) <= 'r') \
6092 || ('s' <= (c) && (c) <= 'z'))
6093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6094 #endif
6095
6096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6097 int
6098 main ()
6099 {
6100 int i;
6101 for (i = 0; i < 256; i++)
6102 if (XOR (islower (i), ISLOWER (i))
6103 || toupper (i) != TOUPPER (i))
6104 return 2;
6105 return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest$ac_exeext
6109 if { (ac_try="$ac_link"
6110 case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113 esac
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_link") 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6119 { (case "(($ac_try" in
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6122 esac
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_try") 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; }; then
6128 :
6129 else
6130 echo "$as_me: program exited with status $ac_status" >&5
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6133
6134 ( exit $ac_status )
6135 ac_cv_header_stdc=no
6136 fi
6137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6138 fi
6139
6140
6141 fi
6142 fi
6143 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6144 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6145 if test $ac_cv_header_stdc = yes; then
6146
6147 cat >>confdefs.h <<\_ACEOF
6148 #define STDC_HEADERS 1
6149 _ACEOF
6150
6151 fi
6152
6153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6164 inttypes.h stdint.h unistd.h
6165 do
6166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 $ac_includes_default
6179
6180 #include <$ac_header>
6181 _ACEOF
6182 rm -f conftest.$ac_objext
6183 if { (ac_try="$ac_compile"
6184 case "(($ac_try" in
6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6187 esac
6188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189 (eval "$ac_compile") 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && {
6196 test -z "$ac_c_werror_flag" ||
6197 test ! -s conftest.err
6198 } && test -s conftest.$ac_objext; then
6199 eval "$as_ac_Header=yes"
6200 else
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 eval "$as_ac_Header=no"
6205 fi
6206
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 fi
6209 ac_res=`eval echo '${'$as_ac_Header'}'`
6210 { echo "$as_me:$LINENO: result: $ac_res" >&5
6211 echo "${ECHO_T}$ac_res" >&6; }
6212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6213 cat >>confdefs.h <<_ACEOF
6214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6215 _ACEOF
6216
6217 fi
6218
6219 done
6220
6221
6222
6223
6224
6225 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6226 do
6227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 fi
6234 ac_res=`eval echo '${'$as_ac_Header'}'`
6235 { echo "$as_me:$LINENO: result: $ac_res" >&5
6236 echo "${ECHO_T}$ac_res" >&6; }
6237 else
6238 # Is the header compilable?
6239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6241 cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h. */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 $ac_includes_default
6248 #include <$ac_header>
6249 _ACEOF
6250 rm -f conftest.$ac_objext
6251 if { (ac_try="$ac_compile"
6252 case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255 esac
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6267 ac_header_compiler=yes
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ac_header_compiler=no
6273 fi
6274
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6277 echo "${ECHO_T}$ac_header_compiler" >&6; }
6278
6279 # Is the header present?
6280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h. */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 #include <$ac_header>
6289 _ACEOF
6290 if { (ac_try="$ac_cpp conftest.$ac_ext"
6291 case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } >/dev/null && {
6303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 }; then
6306 ac_header_preproc=yes
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6310
6311 ac_header_preproc=no
6312 fi
6313
6314 rm -f conftest.err conftest.$ac_ext
6315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6316 echo "${ECHO_T}$ac_header_preproc" >&6; }
6317
6318 # So? What about this header?
6319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6320 yes:no: )
6321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6325 ac_header_preproc=yes
6326 ;;
6327 no:yes:* )
6328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6340
6341 ;;
6342 esac
6343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 eval "$as_ac_Header=\$ac_header_preproc"
6349 fi
6350 ac_res=`eval echo '${'$as_ac_Header'}'`
6351 { echo "$as_me:$LINENO: result: $ac_res" >&5
6352 echo "${ECHO_T}$ac_res" >&6; }
6353
6354 fi
6355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6356 cat >>confdefs.h <<_ACEOF
6357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6358 _ACEOF
6359
6360 fi
6361
6362 done
6363
6364 # Emulation library used on NetBSD.
6365 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6366 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6367 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 ac_check_lib_save_LIBS=$LIBS
6371 LIBS="-lossaudio $LIBS"
6372 cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h. */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6378
6379 /* Override any GCC internal prototype to avoid an error.
6380 Use char because int might match the return type of a GCC
6381 builtin and then its argument prototype would still apply. */
6382 #ifdef __cplusplus
6383 extern "C"
6384 #endif
6385 char _oss_ioctl ();
6386 int
6387 main ()
6388 {
6389 return _oss_ioctl ();
6390 ;
6391 return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6396 case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399 esac
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_link") 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && {
6408 test -z "$ac_c_werror_flag" ||
6409 test ! -s conftest.err
6410 } && test -s conftest$ac_exeext &&
6411 $as_test_x conftest$ac_exeext; then
6412 ac_cv_lib_ossaudio__oss_ioctl=yes
6413 else
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 ac_cv_lib_ossaudio__oss_ioctl=no
6418 fi
6419
6420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6421 conftest$ac_exeext conftest.$ac_ext
6422 LIBS=$ac_check_lib_save_LIBS
6423 fi
6424 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6425 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6426 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6427 LIBSOUND=-lossaudio
6428 else
6429 LIBSOUND=
6430 fi
6431
6432
6433
6434 ALSA_REQUIRED=1.0.0
6435 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6436 if test "X${with_pkg_config_prog}" != X; then
6437 PKG_CONFIG="${with_pkg_config_prog}"
6438 fi
6439
6440 succeeded=no
6441
6442 if test -z "$PKG_CONFIG"; then
6443 # Extract the first word of "pkg-config", so it can be a program name with args.
6444 set dummy pkg-config; ac_word=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 case $PKG_CONFIG in
6451 [\\/]* | ?:[\\/]*)
6452 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6453 ;;
6454 *)
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6471 ;;
6472 esac
6473 fi
6474 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6475 if test -n "$PKG_CONFIG"; then
6476 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6477 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6478 else
6479 { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6481 fi
6482
6483
6484 fi
6485
6486 if test "$PKG_CONFIG" = "no" ; then
6487 HAVE_ALSA=no
6488 else
6489 PKG_CONFIG_MIN_VERSION=0.9.0
6490 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6491 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6492 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6493
6494 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6495 { echo "$as_me:$LINENO: result: yes" >&5
6496 echo "${ECHO_T}yes" >&6; }
6497 succeeded=yes
6498
6499 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6500 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6501 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6502 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6503 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6504
6505 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6506 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6507 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6508 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6509 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6510 else
6511 { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6513 ALSA_CFLAGS=""
6514 ALSA_LIBS=""
6515 ## If we have a custom action on failure, don't print errors, but
6516 ## do set a variable so people can do so.
6517 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6518
6519 fi
6520
6521
6522
6523 else
6524 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6525 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6526 fi
6527 fi
6528
6529 if test $succeeded = yes; then
6530 HAVE_ALSA=yes
6531 else
6532 HAVE_ALSA=no
6533 fi
6534
6535 if test $HAVE_ALSA = yes; then
6536 SAVE_CFLAGS="$CFLAGS"
6537 SAVE_LDFLAGS="$LDFLAGS"
6538 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6539 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #include <asoundlib.h>
6547 int
6548 main ()
6549 {
6550 snd_lib_error_set_handler (0);
6551 ;
6552 return 0;
6553 }
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (ac_try="$ac_compile"
6557 case "(($ac_try" in
6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6560 esac
6561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562 (eval "$ac_compile") 2>conftest.er1
6563 ac_status=$?
6564 grep -v '^ *+' conftest.er1 >conftest.err
6565 rm -f conftest.er1
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && {
6569 test -z "$ac_c_werror_flag" ||
6570 test ! -s conftest.err
6571 } && test -s conftest.$ac_objext; then
6572 emacs_alsa_normal=yes
6573 else
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 emacs_alsa_normal=no
6578 fi
6579
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 if test "$emacs_alsa_normal" != yes; then
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 #include <alsa/asoundlib.h>
6589 int
6590 main ()
6591 {
6592 snd_lib_error_set_handler (0);
6593 ;
6594 return 0;
6595 }
6596 _ACEOF
6597 rm -f conftest.$ac_objext
6598 if { (ac_try="$ac_compile"
6599 case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602 esac
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604 (eval "$ac_compile") 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } && {
6611 test -z "$ac_c_werror_flag" ||
6612 test ! -s conftest.err
6613 } && test -s conftest.$ac_objext; then
6614 emacs_alsa_subdir=yes
6615 else
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6618
6619 emacs_alsa_subdir=no
6620 fi
6621
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 if test "$emacs_alsa_subdir" != yes; then
6624 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6625 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6626 { (exit 1); exit 1; }; }
6627 fi
6628 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6629 fi
6630
6631 CFLAGS="$SAVE_CFLAGS"
6632 LDFLAGS="$SAVE_LDFLAGS"
6633 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6634 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6635
6636 cat >>confdefs.h <<\_ACEOF
6637 #define HAVE_ALSA 1
6638 _ACEOF
6639
6640 fi
6641
6642 fi
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6670 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6671 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6672 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6673 sys/utsname.h pwd.h
6674 do
6675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
6682 ac_res=`eval echo '${'$as_ac_Header'}'`
6683 { echo "$as_me:$LINENO: result: $ac_res" >&5
6684 echo "${ECHO_T}$ac_res" >&6; }
6685 else
6686 # Is the header compilable?
6687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h. */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 #include <$ac_header>
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6706 ac_status=$?
6707 grep -v '^ *+' conftest.er1 >conftest.err
6708 rm -f conftest.er1
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
6715 ac_header_compiler=yes
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720 ac_header_compiler=no
6721 fi
6722
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6725 echo "${ECHO_T}$ac_header_compiler" >&6; }
6726
6727 # Is the header present?
6728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6730 cat >conftest.$ac_ext <<_ACEOF
6731 /* confdefs.h. */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 #include <$ac_header>
6737 _ACEOF
6738 if { (ac_try="$ac_cpp conftest.$ac_ext"
6739 case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742 esac
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } >/dev/null && {
6751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6753 }; then
6754 ac_header_preproc=yes
6755 else
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6758
6759 ac_header_preproc=no
6760 fi
6761
6762 rm -f conftest.err conftest.$ac_ext
6763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6764 echo "${ECHO_T}$ac_header_preproc" >&6; }
6765
6766 # So? What about this header?
6767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6768 yes:no: )
6769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6773 ac_header_preproc=yes
6774 ;;
6775 no:yes:* )
6776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6788
6789 ;;
6790 esac
6791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796 eval "$as_ac_Header=\$ac_header_preproc"
6797 fi
6798 ac_res=`eval echo '${'$as_ac_Header'}'`
6799 { echo "$as_me:$LINENO: result: $ac_res" >&5
6800 echo "${ECHO_T}$ac_res" >&6; }
6801
6802 fi
6803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6804 cat >>confdefs.h <<_ACEOF
6805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6806 _ACEOF
6807
6808 fi
6809
6810 done
6811
6812
6813 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6814 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6815 cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h. */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6821 #include <sys/personality.h>
6822 int
6823 main ()
6824 {
6825 personality (PER_LINUX32)
6826 ;
6827 return 0;
6828 }
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (ac_try="$ac_compile"
6832 case "(($ac_try" in
6833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834 *) ac_try_echo=$ac_try;;
6835 esac
6836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837 (eval "$ac_compile") 2>conftest.er1
6838 ac_status=$?
6839 grep -v '^ *+' conftest.er1 >conftest.err
6840 rm -f conftest.er1
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && {
6844 test -z "$ac_c_werror_flag" ||
6845 test ! -s conftest.err
6846 } && test -s conftest.$ac_objext; then
6847 emacs_cv_personality_linux32=yes
6848 else
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6851
6852 emacs_cv_personality_linux32=no
6853 fi
6854
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6857 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6858
6859 if test $emacs_cv_personality_linux32 = yes; then
6860
6861 cat >>confdefs.h <<\_ACEOF
6862 #define HAVE_PERSONALITY_LINUX32 1
6863 _ACEOF
6864
6865 fi
6866
6867
6868 for ac_header in term.h
6869 do
6870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h. */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 #include <$ac_header>
6883 _ACEOF
6884 if { (ac_try="$ac_cpp conftest.$ac_ext"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } >/dev/null && {
6897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 }; then
6900 eval "$as_ac_Header=yes"
6901 else
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905 eval "$as_ac_Header=no"
6906 fi
6907
6908 rm -f conftest.err conftest.$ac_ext
6909 fi
6910 ac_res=`eval echo '${'$as_ac_Header'}'`
6911 { echo "$as_me:$LINENO: result: $ac_res" >&5
6912 echo "${ECHO_T}$ac_res" >&6; }
6913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6914 cat >>confdefs.h <<_ACEOF
6915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6916 _ACEOF
6917
6918 fi
6919
6920 done
6921
6922 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6924 if test "${ac_cv_header_stdc+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 #include <stdlib.h>
6934 #include <stdarg.h>
6935 #include <string.h>
6936 #include <float.h>
6937
6938 int
6939 main ()
6940 {
6941
6942 ;
6943 return 0;
6944 }
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && {
6960 test -z "$ac_c_werror_flag" ||
6961 test ! -s conftest.err
6962 } && test -s conftest.$ac_objext; then
6963 ac_cv_header_stdc=yes
6964 else
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6967
6968 ac_cv_header_stdc=no
6969 fi
6970
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972
6973 if test $ac_cv_header_stdc = yes; then
6974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6975 cat >conftest.$ac_ext <<_ACEOF
6976 /* confdefs.h. */
6977 _ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6981 #include <string.h>
6982
6983 _ACEOF
6984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6985 $EGREP "memchr" >/dev/null 2>&1; then
6986 :
6987 else
6988 ac_cv_header_stdc=no
6989 fi
6990 rm -f conftest*
6991
6992 fi
6993
6994 if test $ac_cv_header_stdc = yes; then
6995 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6996 cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h. */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 #include <stdlib.h>
7003
7004 _ACEOF
7005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7006 $EGREP "free" >/dev/null 2>&1; then
7007 :
7008 else
7009 ac_cv_header_stdc=no
7010 fi
7011 rm -f conftest*
7012
7013 fi
7014
7015 if test $ac_cv_header_stdc = yes; then
7016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7017 if test "$cross_compiling" = yes; then
7018 :
7019 else
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 #include <ctype.h>
7027 #include <stdlib.h>
7028 #if ((' ' & 0x0FF) == 0x020)
7029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7031 #else
7032 # define ISLOWER(c) \
7033 (('a' <= (c) && (c) <= 'i') \
7034 || ('j' <= (c) && (c) <= 'r') \
7035 || ('s' <= (c) && (c) <= 'z'))
7036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7037 #endif
7038
7039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7040 int
7041 main ()
7042 {
7043 int i;
7044 for (i = 0; i < 256; i++)
7045 if (XOR (islower (i), ISLOWER (i))
7046 || toupper (i) != TOUPPER (i))
7047 return 2;
7048 return 0;
7049 }
7050 _ACEOF
7051 rm -f conftest$ac_exeext
7052 if { (ac_try="$ac_link"
7053 case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056 esac
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_link") 2>&5
7059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7062 { (case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065 esac
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_try") 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7071 :
7072 else
7073 echo "$as_me: program exited with status $ac_status" >&5
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7076
7077 ( exit $ac_status )
7078 ac_cv_header_stdc=no
7079 fi
7080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7081 fi
7082
7083
7084 fi
7085 fi
7086 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7087 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7088 if test $ac_cv_header_stdc = yes; then
7089
7090 cat >>confdefs.h <<\_ACEOF
7091 #define STDC_HEADERS 1
7092 _ACEOF
7093
7094 fi
7095
7096 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7097 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7098 if test "${ac_cv_header_time+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101 cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h. */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 #include <sys/types.h>
7108 #include <sys/time.h>
7109 #include <time.h>
7110
7111 int
7112 main ()
7113 {
7114 if ((struct tm *) 0)
7115 return 0;
7116 ;
7117 return 0;
7118 }
7119 _ACEOF
7120 rm -f conftest.$ac_objext
7121 if { (ac_try="$ac_compile"
7122 case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125 esac
7126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127 (eval "$ac_compile") 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest.$ac_objext; then
7137 ac_cv_header_time=yes
7138 else
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7141
7142 ac_cv_header_time=no
7143 fi
7144
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 fi
7147 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7148 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7149 if test $ac_cv_header_time = yes; then
7150
7151 cat >>confdefs.h <<\_ACEOF
7152 #define TIME_WITH_SYS_TIME 1
7153 _ACEOF
7154
7155 fi
7156
7157 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7158 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7159 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 $ac_includes_default
7169 int
7170 main ()
7171 {
7172 #ifndef sys_siglist
7173 (void) sys_siglist;
7174 #endif
7175
7176 ;
7177 return 0;
7178 }
7179 _ACEOF
7180 rm -f conftest.$ac_objext
7181 if { (ac_try="$ac_compile"
7182 case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185 esac
7186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7187 (eval "$ac_compile") 2>conftest.er1
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
7197 ac_cv_have_decl_sys_siglist=yes
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7201
7202 ac_cv_have_decl_sys_siglist=no
7203 fi
7204
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 fi
7207 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7208 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7209 if test $ac_cv_have_decl_sys_siglist = yes; then
7210
7211 cat >>confdefs.h <<_ACEOF
7212 #define HAVE_DECL_SYS_SIGLIST 1
7213 _ACEOF
7214
7215
7216 else
7217 cat >>confdefs.h <<_ACEOF
7218 #define HAVE_DECL_SYS_SIGLIST 0
7219 _ACEOF
7220
7221
7222 fi
7223
7224
7225 if test $ac_cv_have_decl_sys_siglist != yes; then
7226 # For Tru64, at least:
7227 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7228 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7229 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 cat >conftest.$ac_ext <<_ACEOF
7233 /* confdefs.h. */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 $ac_includes_default
7239 int
7240 main ()
7241 {
7242 #ifndef __sys_siglist
7243 (void) __sys_siglist;
7244 #endif
7245
7246 ;
7247 return 0;
7248 }
7249 _ACEOF
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7252 case "(($ac_try" in
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7255 esac
7256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257 (eval "$ac_compile") 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } && {
7264 test -z "$ac_c_werror_flag" ||
7265 test ! -s conftest.err
7266 } && test -s conftest.$ac_objext; then
7267 ac_cv_have_decl___sys_siglist=yes
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7271
7272 ac_cv_have_decl___sys_siglist=no
7273 fi
7274
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 fi
7277 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7278 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7279 if test $ac_cv_have_decl___sys_siglist = yes; then
7280
7281 cat >>confdefs.h <<_ACEOF
7282 #define HAVE_DECL___SYS_SIGLIST 1
7283 _ACEOF
7284
7285
7286 else
7287 cat >>confdefs.h <<_ACEOF
7288 #define HAVE_DECL___SYS_SIGLIST 0
7289 _ACEOF
7290
7291
7292 fi
7293
7294
7295 if test $ac_cv_have_decl___sys_siglist = yes; then
7296
7297 cat >>confdefs.h <<\_ACEOF
7298 #define sys_siglist __sys_siglist
7299 _ACEOF
7300
7301 fi
7302 fi
7303 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7304 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7305 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <sys/types.h>
7315 #include <sys/wait.h>
7316 #ifndef WEXITSTATUS
7317 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7318 #endif
7319 #ifndef WIFEXITED
7320 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7321 #endif
7322
7323 int
7324 main ()
7325 {
7326 int s;
7327 wait (&s);
7328 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7329 ;
7330 return 0;
7331 }
7332 _ACEOF
7333 rm -f conftest.$ac_objext
7334 if { (ac_try="$ac_compile"
7335 case "(($ac_try" in
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7338 esac
7339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7340 (eval "$ac_compile") 2>conftest.er1
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } && {
7347 test -z "$ac_c_werror_flag" ||
7348 test ! -s conftest.err
7349 } && test -s conftest.$ac_objext; then
7350 ac_cv_header_sys_wait_h=yes
7351 else
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7354
7355 ac_cv_header_sys_wait_h=no
7356 fi
7357
7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 fi
7360 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7361 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7362 if test $ac_cv_header_sys_wait_h = yes; then
7363
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_SYS_WAIT_H 1
7366 _ACEOF
7367
7368 fi
7369
7370
7371 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7372 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7373 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h. */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 #ifdef TIME_WITH_SYS_TIME
7383 #include <sys/time.h>
7384 #include <time.h>
7385 #else
7386 #ifdef HAVE_SYS_TIME_H
7387 #include <sys/time.h>
7388 #else
7389 #include <time.h>
7390 #endif
7391 #endif
7392 #ifdef HAVE_UTIME_H
7393 #include <utime.h>
7394 #endif
7395 int
7396 main ()
7397 {
7398 static struct utimbuf x; x.actime = x.modtime;
7399 ;
7400 return 0;
7401 }
7402 _ACEOF
7403 rm -f conftest.$ac_objext
7404 if { (ac_try="$ac_compile"
7405 case "(($ac_try" in
7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407 *) ac_try_echo=$ac_try;;
7408 esac
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410 (eval "$ac_compile") 2>conftest.er1
7411 ac_status=$?
7412 grep -v '^ *+' conftest.er1 >conftest.err
7413 rm -f conftest.er1
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && {
7417 test -z "$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7419 } && test -s conftest.$ac_objext; then
7420 emacs_cv_struct_utimbuf=yes
7421 else
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425 emacs_cv_struct_utimbuf=no
7426 fi
7427
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 fi
7430 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7431 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7432 if test $emacs_cv_struct_utimbuf = yes; then
7433
7434 cat >>confdefs.h <<\_ACEOF
7435 #define HAVE_STRUCT_UTIMBUF 1
7436 _ACEOF
7437
7438 fi
7439
7440 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7441 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7442 if test "${ac_cv_type_signal+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h. */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 #include <sys/types.h>
7452 #include <signal.h>
7453
7454 int
7455 main ()
7456 {
7457 return *(signal (0, 0)) (0) == 1;
7458 ;
7459 return 0;
7460 }
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7464 case "(($ac_try" in
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7467 esac
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_compile") 2>conftest.er1
7470 ac_status=$?
7471 grep -v '^ *+' conftest.er1 >conftest.err
7472 rm -f conftest.er1
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest.$ac_objext; then
7479 ac_cv_type_signal=int
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484 ac_cv_type_signal=void
7485 fi
7486
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488 fi
7489 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7490 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7491
7492 cat >>confdefs.h <<_ACEOF
7493 #define RETSIGTYPE $ac_cv_type_signal
7494 _ACEOF
7495
7496
7497
7498 { echo "$as_me:$LINENO: checking for speed_t" >&5
7499 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7500 if test "${emacs_cv_speed_t+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 #include <termios.h>
7510 int
7511 main ()
7512 {
7513 speed_t x = 1;
7514 ;
7515 return 0;
7516 }
7517 _ACEOF
7518 rm -f conftest.$ac_objext
7519 if { (ac_try="$ac_compile"
7520 case "(($ac_try" in
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7523 esac
7524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7525 (eval "$ac_compile") 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } && {
7532 test -z "$ac_c_werror_flag" ||
7533 test ! -s conftest.err
7534 } && test -s conftest.$ac_objext; then
7535 emacs_cv_speed_t=yes
7536 else
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7539
7540 emacs_cv_speed_t=no
7541 fi
7542
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 fi
7545 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7546 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7547 if test $emacs_cv_speed_t = yes; then
7548
7549 cat >>confdefs.h <<\_ACEOF
7550 #define HAVE_SPEED_T 1
7551 _ACEOF
7552
7553 fi
7554
7555 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7556 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7557 if test "${emacs_cv_struct_timeval+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 #ifdef TIME_WITH_SYS_TIME
7567 #include <sys/time.h>
7568 #include <time.h>
7569 #else
7570 #ifdef HAVE_SYS_TIME_H
7571 #include <sys/time.h>
7572 #else
7573 #include <time.h>
7574 #endif
7575 #endif
7576 int
7577 main ()
7578 {
7579 static struct timeval x; x.tv_sec = x.tv_usec;
7580 ;
7581 return 0;
7582 }
7583 _ACEOF
7584 rm -f conftest.$ac_objext
7585 if { (ac_try="$ac_compile"
7586 case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589 esac
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
7592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest.$ac_objext; then
7601 emacs_cv_struct_timeval=yes
7602 else
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7605
7606 emacs_cv_struct_timeval=no
7607 fi
7608
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 fi
7611 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7612 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7613 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7614 if test $emacs_cv_struct_timeval = yes; then
7615
7616 cat >>confdefs.h <<\_ACEOF
7617 #define HAVE_TIMEVAL 1
7618 _ACEOF
7619
7620 fi
7621
7622 { echo "$as_me:$LINENO: checking for struct exception" >&5
7623 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7624 if test "${emacs_cv_struct_exception+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 #include <math.h>
7634 int
7635 main ()
7636 {
7637 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (ac_try="$ac_compile"
7644 case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647 esac
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
7659 emacs_cv_struct_exception=yes
7660 else
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 emacs_cv_struct_exception=no
7665 fi
7666
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668 fi
7669 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7670 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7671 HAVE_EXCEPTION=$emacs_cv_struct_exception
7672 if test $emacs_cv_struct_exception != yes; then
7673
7674 cat >>confdefs.h <<\_ACEOF
7675 #define NO_MATHERR 1
7676 _ACEOF
7677
7678 fi
7679
7680
7681 for ac_header in sys/socket.h
7682 do
7683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
7690 ac_res=`eval echo '${'$as_ac_Header'}'`
7691 { echo "$as_me:$LINENO: result: $ac_res" >&5
7692 echo "${ECHO_T}$ac_res" >&6; }
7693 else
7694 # Is the header compilable?
7695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7697 cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 $ac_includes_default
7704 #include <$ac_header>
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (ac_try="$ac_compile"
7708 case "(($ac_try" in
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7711 esac
7712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7713 (eval "$ac_compile") 2>conftest.er1
7714 ac_status=$?
7715 grep -v '^ *+' conftest.er1 >conftest.err
7716 rm -f conftest.er1
7717 cat conftest.err >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } && {
7720 test -z "$ac_c_werror_flag" ||
7721 test ! -s conftest.err
7722 } && test -s conftest.$ac_objext; then
7723 ac_header_compiler=yes
7724 else
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7727
7728 ac_header_compiler=no
7729 fi
7730
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7733 echo "${ECHO_T}$ac_header_compiler" >&6; }
7734
7735 # Is the header present?
7736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <$ac_header>
7745 _ACEOF
7746 if { (ac_try="$ac_cpp conftest.$ac_ext"
7747 case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7750 esac
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7753 ac_status=$?
7754 grep -v '^ *+' conftest.er1 >conftest.err
7755 rm -f conftest.er1
7756 cat conftest.err >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } >/dev/null && {
7759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7760 test ! -s conftest.err
7761 }; then
7762 ac_header_preproc=yes
7763 else
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7766
7767 ac_header_preproc=no
7768 fi
7769
7770 rm -f conftest.err conftest.$ac_ext
7771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7772 echo "${ECHO_T}$ac_header_preproc" >&6; }
7773
7774 # So? What about this header?
7775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7776 yes:no: )
7777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7781 ac_header_preproc=yes
7782 ;;
7783 no:yes:* )
7784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7796
7797 ;;
7798 esac
7799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804 eval "$as_ac_Header=\$ac_header_preproc"
7805 fi
7806 ac_res=`eval echo '${'$as_ac_Header'}'`
7807 { echo "$as_me:$LINENO: result: $ac_res" >&5
7808 echo "${ECHO_T}$ac_res" >&6; }
7809
7810 fi
7811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7812 cat >>confdefs.h <<_ACEOF
7813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7814 _ACEOF
7815
7816 fi
7817
7818 done
7819
7820
7821 for ac_header in net/if.h
7822 do
7823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 $ac_includes_default
7836 #if HAVE_SYS_SOCKET_H
7837 #include <sys/socket.h>
7838 #endif
7839
7840 #include <$ac_header>
7841 _ACEOF
7842 rm -f conftest.$ac_objext
7843 if { (ac_try="$ac_compile"
7844 case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847 esac
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_compile") 2>conftest.er1
7850 ac_status=$?
7851 grep -v '^ *+' conftest.er1 >conftest.err
7852 rm -f conftest.er1
7853 cat conftest.err >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } && {
7856 test -z "$ac_c_werror_flag" ||
7857 test ! -s conftest.err
7858 } && test -s conftest.$ac_objext; then
7859 eval "$as_ac_Header=yes"
7860 else
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864 eval "$as_ac_Header=no"
7865 fi
7866
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 fi
7869 ac_res=`eval echo '${'$as_ac_Header'}'`
7870 { echo "$as_me:$LINENO: result: $ac_res" >&5
7871 echo "${ECHO_T}$ac_res" >&6; }
7872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7873 cat >>confdefs.h <<_ACEOF
7874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7875 _ACEOF
7876
7877 fi
7878
7879 done
7880
7881
7882 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7883 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7884 if test "${ac_cv_struct_tm+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887 cat >conftest.$ac_ext <<_ACEOF
7888 /* confdefs.h. */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7893 #include <sys/types.h>
7894 #include <time.h>
7895
7896 int
7897 main ()
7898 {
7899 struct tm tm;
7900 int *p = &tm.tm_sec;
7901 return !p;
7902 ;
7903 return 0;
7904 }
7905 _ACEOF
7906 rm -f conftest.$ac_objext
7907 if { (ac_try="$ac_compile"
7908 case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_c_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.$ac_objext; then
7923 ac_cv_struct_tm=time.h
7924 else
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928 ac_cv_struct_tm=sys/time.h
7929 fi
7930
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 fi
7933 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7934 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7935 if test $ac_cv_struct_tm = sys/time.h; then
7936
7937 cat >>confdefs.h <<\_ACEOF
7938 #define TM_IN_SYS_TIME 1
7939 _ACEOF
7940
7941 fi
7942
7943 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7944 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7945 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948 cat >conftest.$ac_ext <<_ACEOF
7949 /* confdefs.h. */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 #include <sys/types.h>
7955 #include <$ac_cv_struct_tm>
7956
7957
7958 int
7959 main ()
7960 {
7961 static struct tm ac_aggr;
7962 if (ac_aggr.tm_zone)
7963 return 0;
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_member_struct_tm_tm_zone=yes
7986 else
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h. */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 #include <sys/types.h>
7997 #include <$ac_cv_struct_tm>
7998
7999
8000 int
8001 main ()
8002 {
8003 static struct tm ac_aggr;
8004 if (sizeof ac_aggr.tm_zone)
8005 return 0;
8006 ;
8007 return 0;
8008 }
8009 _ACEOF
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8012 case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8015 esac
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8027 ac_cv_member_struct_tm_tm_zone=yes
8028 else
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8031
8032 ac_cv_member_struct_tm_tm_zone=no
8033 fi
8034
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 fi
8037
8038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 fi
8040 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8041 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8042 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8043
8044 cat >>confdefs.h <<_ACEOF
8045 #define HAVE_STRUCT_TM_TM_ZONE 1
8046 _ACEOF
8047
8048
8049 fi
8050
8051 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8052
8053 cat >>confdefs.h <<\_ACEOF
8054 #define HAVE_TM_ZONE 1
8055 _ACEOF
8056
8057 else
8058 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8059 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8060 if test "${ac_cv_have_decl_tzname+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063 cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h. */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 #include <time.h>
8070
8071 int
8072 main ()
8073 {
8074 #ifndef tzname
8075 (void) tzname;
8076 #endif
8077
8078 ;
8079 return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8084 case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
8090 ac_status=$?
8091 grep -v '^ *+' conftest.er1 >conftest.err
8092 rm -f conftest.er1
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest.$ac_objext; then
8099 ac_cv_have_decl_tzname=yes
8100 else
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104 ac_cv_have_decl_tzname=no
8105 fi
8106
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 fi
8109 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8110 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8111 if test $ac_cv_have_decl_tzname = yes; then
8112
8113 cat >>confdefs.h <<_ACEOF
8114 #define HAVE_DECL_TZNAME 1
8115 _ACEOF
8116
8117
8118 else
8119 cat >>confdefs.h <<_ACEOF
8120 #define HAVE_DECL_TZNAME 0
8121 _ACEOF
8122
8123
8124 fi
8125
8126
8127 { echo "$as_me:$LINENO: checking for tzname" >&5
8128 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8129 if test "${ac_cv_var_tzname+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132 cat >conftest.$ac_ext <<_ACEOF
8133 /* confdefs.h. */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8138 #include <time.h>
8139 #if !HAVE_DECL_TZNAME
8140 extern char *tzname[];
8141 #endif
8142
8143 int
8144 main ()
8145 {
8146 return tzname[0][0];
8147 ;
8148 return 0;
8149 }
8150 _ACEOF
8151 rm -f conftest.$ac_objext conftest$ac_exeext
8152 if { (ac_try="$ac_link"
8153 case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8156 esac
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_link") 2>conftest.er1
8159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && {
8165 test -z "$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 } && test -s conftest$ac_exeext &&
8168 $as_test_x conftest$ac_exeext; then
8169 ac_cv_var_tzname=yes
8170 else
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8173
8174 ac_cv_var_tzname=no
8175 fi
8176
8177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8178 conftest$ac_exeext conftest.$ac_ext
8179 fi
8180 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8181 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8182 if test $ac_cv_var_tzname = yes; then
8183
8184 cat >>confdefs.h <<\_ACEOF
8185 #define HAVE_TZNAME 1
8186 _ACEOF
8187
8188 fi
8189 fi
8190
8191 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8192 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8193 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h. */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8202 #include <time.h>
8203
8204 int
8205 main ()
8206 {
8207 static struct tm ac_aggr;
8208 if (ac_aggr.tm_gmtoff)
8209 return 0;
8210 ;
8211 return 0;
8212 }
8213 _ACEOF
8214 rm -f conftest.$ac_objext
8215 if { (ac_try="$ac_compile"
8216 case "(($ac_try" in
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8219 esac
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_compile") 2>conftest.er1
8222 ac_status=$?
8223 grep -v '^ *+' conftest.er1 >conftest.err
8224 rm -f conftest.er1
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } && {
8228 test -z "$ac_c_werror_flag" ||
8229 test ! -s conftest.err
8230 } && test -s conftest.$ac_objext; then
8231 ac_cv_member_struct_tm_tm_gmtoff=yes
8232 else
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8235
8236 cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h. */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 #include <time.h>
8243
8244 int
8245 main ()
8246 {
8247 static struct tm ac_aggr;
8248 if (sizeof ac_aggr.tm_gmtoff)
8249 return 0;
8250 ;
8251 return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8256 case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_compile") 2>conftest.er1
8262 ac_status=$?
8263 grep -v '^ *+' conftest.er1 >conftest.err
8264 rm -f conftest.er1
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && {
8268 test -z "$ac_c_werror_flag" ||
8269 test ! -s conftest.err
8270 } && test -s conftest.$ac_objext; then
8271 ac_cv_member_struct_tm_tm_gmtoff=yes
8272 else
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8275
8276 ac_cv_member_struct_tm_tm_gmtoff=no
8277 fi
8278
8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280 fi
8281
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 fi
8284 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8285 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8286 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8287
8288 cat >>confdefs.h <<\_ACEOF
8289 #define HAVE_TM_GMTOFF 1
8290 _ACEOF
8291
8292 fi
8293
8294 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8295 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8296 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299 cat >conftest.$ac_ext <<_ACEOF
8300 /* confdefs.h. */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 $ac_includes_default
8306 #if HAVE_SYS_SOCKET_H
8307 #include <sys/socket.h>
8308 #endif
8309 #if HAVE_NET_IF_H
8310 #include <net/if.h>
8311 #endif
8312
8313 int
8314 main ()
8315 {
8316 static struct ifreq ac_aggr;
8317 if (ac_aggr.ifr_flags)
8318 return 0;
8319 ;
8320 return 0;
8321 }
8322 _ACEOF
8323 rm -f conftest.$ac_objext
8324 if { (ac_try="$ac_compile"
8325 case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8328 esac
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_compile") 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && {
8337 test -z "$ac_c_werror_flag" ||
8338 test ! -s conftest.err
8339 } && test -s conftest.$ac_objext; then
8340 ac_cv_member_struct_ifreq_ifr_flags=yes
8341 else
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345 cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h. */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 $ac_includes_default
8352 #if HAVE_SYS_SOCKET_H
8353 #include <sys/socket.h>
8354 #endif
8355 #if HAVE_NET_IF_H
8356 #include <net/if.h>
8357 #endif
8358
8359 int
8360 main ()
8361 {
8362 static struct ifreq ac_aggr;
8363 if (sizeof ac_aggr.ifr_flags)
8364 return 0;
8365 ;
8366 return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext
8370 if { (ac_try="$ac_compile"
8371 case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_compile") 2>conftest.er1
8377 ac_status=$?
8378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } && {
8383 test -z "$ac_c_werror_flag" ||
8384 test ! -s conftest.err
8385 } && test -s conftest.$ac_objext; then
8386 ac_cv_member_struct_ifreq_ifr_flags=yes
8387 else
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391 ac_cv_member_struct_ifreq_ifr_flags=no
8392 fi
8393
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 fi
8396
8397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398 fi
8399 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8400 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8401 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8402
8403 cat >>confdefs.h <<_ACEOF
8404 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8405 _ACEOF
8406
8407
8408 fi
8409 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8410 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8411 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414 cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h. */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 $ac_includes_default
8421 #if HAVE_SYS_SOCKET_H
8422 #include <sys/socket.h>
8423 #endif
8424 #if HAVE_NET_IF_H
8425 #include <net/if.h>
8426 #endif
8427
8428 int
8429 main ()
8430 {
8431 static struct ifreq ac_aggr;
8432 if (ac_aggr.ifr_hwaddr)
8433 return 0;
8434 ;
8435 return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext
8439 if { (ac_try="$ac_compile"
8440 case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.$ac_objext; then
8455 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8456 else
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8459
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h. */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 $ac_includes_default
8467 #if HAVE_SYS_SOCKET_H
8468 #include <sys/socket.h>
8469 #endif
8470 #if HAVE_NET_IF_H
8471 #include <net/if.h>
8472 #endif
8473
8474 int
8475 main ()
8476 {
8477 static struct ifreq ac_aggr;
8478 if (sizeof ac_aggr.ifr_hwaddr)
8479 return 0;
8480 ;
8481 return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8486 case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489 esac
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_compile") 2>conftest.er1
8492 ac_status=$?
8493 grep -v '^ *+' conftest.er1 >conftest.err
8494 rm -f conftest.er1
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } && {
8498 test -z "$ac_c_werror_flag" ||
8499 test ! -s conftest.err
8500 } && test -s conftest.$ac_objext; then
8501 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8502 else
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8507 fi
8508
8509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510 fi
8511
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513 fi
8514 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8515 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8516 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8517
8518 cat >>confdefs.h <<_ACEOF
8519 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8520 _ACEOF
8521
8522
8523 fi
8524 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8525 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8526 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h. */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 $ac_includes_default
8536 #if HAVE_SYS_SOCKET_H
8537 #include <sys/socket.h>
8538 #endif
8539 #if HAVE_NET_IF_H
8540 #include <net/if.h>
8541 #endif
8542
8543 int
8544 main ()
8545 {
8546 static struct ifreq ac_aggr;
8547 if (ac_aggr.ifr_netmask)
8548 return 0;
8549 ;
8550 return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8555 case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_compile") 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } && {
8567 test -z "$ac_c_werror_flag" ||
8568 test ! -s conftest.err
8569 } && test -s conftest.$ac_objext; then
8570 ac_cv_member_struct_ifreq_ifr_netmask=yes
8571 else
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575 cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h. */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 $ac_includes_default
8582 #if HAVE_SYS_SOCKET_H
8583 #include <sys/socket.h>
8584 #endif
8585 #if HAVE_NET_IF_H
8586 #include <net/if.h>
8587 #endif
8588
8589 int
8590 main ()
8591 {
8592 static struct ifreq ac_aggr;
8593 if (sizeof ac_aggr.ifr_netmask)
8594 return 0;
8595 ;
8596 return 0;
8597 }
8598 _ACEOF
8599 rm -f conftest.$ac_objext
8600 if { (ac_try="$ac_compile"
8601 case "(($ac_try" in
8602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603 *) ac_try_echo=$ac_try;;
8604 esac
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606 (eval "$ac_compile") 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && {
8613 test -z "$ac_c_werror_flag" ||
8614 test ! -s conftest.err
8615 } && test -s conftest.$ac_objext; then
8616 ac_cv_member_struct_ifreq_ifr_netmask=yes
8617 else
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8620
8621 ac_cv_member_struct_ifreq_ifr_netmask=no
8622 fi
8623
8624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 fi
8626
8627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 fi
8629 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8630 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8631 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8632
8633 cat >>confdefs.h <<_ACEOF
8634 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8635 _ACEOF
8636
8637
8638 fi
8639 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8640 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8641 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 else
8644 cat >conftest.$ac_ext <<_ACEOF
8645 /* confdefs.h. */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8650 $ac_includes_default
8651 #if HAVE_SYS_SOCKET_H
8652 #include <sys/socket.h>
8653 #endif
8654 #if HAVE_NET_IF_H
8655 #include <net/if.h>
8656 #endif
8657
8658 int
8659 main ()
8660 {
8661 static struct ifreq ac_aggr;
8662 if (ac_aggr.ifr_broadaddr)
8663 return 0;
8664 ;
8665 return 0;
8666 }
8667 _ACEOF
8668 rm -f conftest.$ac_objext
8669 if { (ac_try="$ac_compile"
8670 case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8673 esac
8674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_compile") 2>conftest.er1
8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } && {
8682 test -z "$ac_c_werror_flag" ||
8683 test ! -s conftest.err
8684 } && test -s conftest.$ac_objext; then
8685 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8686 else
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8689
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h. */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8696 $ac_includes_default
8697 #if HAVE_SYS_SOCKET_H
8698 #include <sys/socket.h>
8699 #endif
8700 #if HAVE_NET_IF_H
8701 #include <net/if.h>
8702 #endif
8703
8704 int
8705 main ()
8706 {
8707 static struct ifreq ac_aggr;
8708 if (sizeof ac_aggr.ifr_broadaddr)
8709 return 0;
8710 ;
8711 return 0;
8712 }
8713 _ACEOF
8714 rm -f conftest.$ac_objext
8715 if { (ac_try="$ac_compile"
8716 case "(($ac_try" in
8717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718 *) ac_try_echo=$ac_try;;
8719 esac
8720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.$ac_objext; then
8731 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8732 else
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8737 fi
8738
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 fi
8741
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 fi
8744 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8745 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8746 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8747
8748 cat >>confdefs.h <<_ACEOF
8749 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8750 _ACEOF
8751
8752
8753 fi
8754 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8755 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8756 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h. */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h. */
8765 $ac_includes_default
8766 #if HAVE_SYS_SOCKET_H
8767 #include <sys/socket.h>
8768 #endif
8769 #if HAVE_NET_IF_H
8770 #include <net/if.h>
8771 #endif
8772
8773 int
8774 main ()
8775 {
8776 static struct ifreq ac_aggr;
8777 if (ac_aggr.ifr_addr)
8778 return 0;
8779 ;
8780 return 0;
8781 }
8782 _ACEOF
8783 rm -f conftest.$ac_objext
8784 if { (ac_try="$ac_compile"
8785 case "(($ac_try" in
8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8788 esac
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_compile") 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } && {
8797 test -z "$ac_c_werror_flag" ||
8798 test ! -s conftest.err
8799 } && test -s conftest.$ac_objext; then
8800 ac_cv_member_struct_ifreq_ifr_addr=yes
8801 else
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8804
8805 cat >conftest.$ac_ext <<_ACEOF
8806 /* confdefs.h. */
8807 _ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8811 $ac_includes_default
8812 #if HAVE_SYS_SOCKET_H
8813 #include <sys/socket.h>
8814 #endif
8815 #if HAVE_NET_IF_H
8816 #include <net/if.h>
8817 #endif
8818
8819 int
8820 main ()
8821 {
8822 static struct ifreq ac_aggr;
8823 if (sizeof ac_aggr.ifr_addr)
8824 return 0;
8825 ;
8826 return 0;
8827 }
8828 _ACEOF
8829 rm -f conftest.$ac_objext
8830 if { (ac_try="$ac_compile"
8831 case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836 (eval "$ac_compile") 2>conftest.er1
8837 ac_status=$?
8838 grep -v '^ *+' conftest.er1 >conftest.err
8839 rm -f conftest.er1
8840 cat conftest.err >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } && {
8843 test -z "$ac_c_werror_flag" ||
8844 test ! -s conftest.err
8845 } && test -s conftest.$ac_objext; then
8846 ac_cv_member_struct_ifreq_ifr_addr=yes
8847 else
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8850
8851 ac_cv_member_struct_ifreq_ifr_addr=no
8852 fi
8853
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 fi
8856
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858 fi
8859 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8860 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8861 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8862
8863 cat >>confdefs.h <<_ACEOF
8864 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8865 _ACEOF
8866
8867
8868 fi
8869
8870
8871
8872 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8873 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8874 if test "$ac_cv_prog_cc_c89" != no; then
8875 { echo "$as_me:$LINENO: result: yes" >&5
8876 echo "${ECHO_T}yes" >&6; }
8877
8878 cat >>confdefs.h <<\_ACEOF
8879 #define PROTOTYPES 1
8880 _ACEOF
8881
8882
8883 cat >>confdefs.h <<\_ACEOF
8884 #define __PROTOTYPES 1
8885 _ACEOF
8886
8887 else
8888 { echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6; }
8890 fi
8891
8892 { echo "$as_me:$LINENO: checking for working volatile" >&5
8893 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8894 if test "${ac_cv_c_volatile+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897 cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h. */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8903
8904 int
8905 main ()
8906 {
8907
8908 volatile int x;
8909 int * volatile y = (int *) 0;
8910 return !x && !y;
8911 ;
8912 return 0;
8913 }
8914 _ACEOF
8915 rm -f conftest.$ac_objext
8916 if { (ac_try="$ac_compile"
8917 case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8920 esac
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_compile") 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest.$ac_objext; then
8932 ac_cv_c_volatile=yes
8933 else
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937 ac_cv_c_volatile=no
8938 fi
8939
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941 fi
8942 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8943 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8944 if test $ac_cv_c_volatile = no; then
8945
8946 cat >>confdefs.h <<\_ACEOF
8947 #define volatile
8948 _ACEOF
8949
8950 fi
8951
8952 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8953 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8954 if test "${ac_cv_c_const+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957 cat >conftest.$ac_ext <<_ACEOF
8958 /* confdefs.h. */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8963
8964 int
8965 main ()
8966 {
8967 /* FIXME: Include the comments suggested by Paul. */
8968 #ifndef __cplusplus
8969 /* Ultrix mips cc rejects this. */
8970 typedef int charset[2];
8971 const charset cs;
8972 /* SunOS 4.1.1 cc rejects this. */
8973 char const *const *pcpcc;
8974 char **ppc;
8975 /* NEC SVR4.0.2 mips cc rejects this. */
8976 struct point {int x, y;};
8977 static struct point const zero = {0,0};
8978 /* AIX XL C 1.02.0.0 rejects this.
8979 It does not let you subtract one const X* pointer from another in
8980 an arm of an if-expression whose if-part is not a constant
8981 expression */
8982 const char *g = "string";
8983 pcpcc = &g + (g ? g-g : 0);
8984 /* HPUX 7.0 cc rejects these. */
8985 ++pcpcc;
8986 ppc = (char**) pcpcc;
8987 pcpcc = (char const *const *) ppc;
8988 { /* SCO 3.2v4 cc rejects this. */
8989 char *t;
8990 char const *s = 0 ? (char *) 0 : (char const *) 0;
8991
8992 *t++ = 0;
8993 if (s) return 0;
8994 }
8995 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8996 int x[] = {25, 17};
8997 const int *foo = &x[0];
8998 ++foo;
8999 }
9000 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9001 typedef const int *iptr;
9002 iptr p = 0;
9003 ++p;
9004 }
9005 { /* AIX XL C 1.02.0.0 rejects this saying
9006 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9007 struct s { int j; const int *ap[3]; };
9008 struct s *b; b->j = 5;
9009 }
9010 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9011 const int foo = 10;
9012 if (!foo) return 0;
9013 }
9014 return !cs[0] && !zero.x;
9015 #endif
9016
9017 ;
9018 return 0;
9019 }
9020 _ACEOF
9021 rm -f conftest.$ac_objext
9022 if { (ac_try="$ac_compile"
9023 case "(($ac_try" in
9024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025 *) ac_try_echo=$ac_try;;
9026 esac
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028 (eval "$ac_compile") 2>conftest.er1
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } && {
9035 test -z "$ac_c_werror_flag" ||
9036 test ! -s conftest.err
9037 } && test -s conftest.$ac_objext; then
9038 ac_cv_c_const=yes
9039 else
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9042
9043 ac_cv_c_const=no
9044 fi
9045
9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 fi
9048 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9049 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9050 if test $ac_cv_c_const = no; then
9051
9052 cat >>confdefs.h <<\_ACEOF
9053 #define const
9054 _ACEOF
9055
9056 fi
9057
9058 { echo "$as_me:$LINENO: checking for void * support" >&5
9059 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9060 if test "${emacs_cv_void_star+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063 cat >conftest.$ac_ext <<_ACEOF
9064 /* confdefs.h. */
9065 _ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9069
9070 int
9071 main ()
9072 {
9073 void * foo;
9074 ;
9075 return 0;
9076 }
9077 _ACEOF
9078 rm -f conftest.$ac_objext
9079 if { (ac_try="$ac_compile"
9080 case "(($ac_try" in
9081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082 *) ac_try_echo=$ac_try;;
9083 esac
9084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9085 (eval "$ac_compile") 2>conftest.er1
9086 ac_status=$?
9087 grep -v '^ *+' conftest.er1 >conftest.err
9088 rm -f conftest.er1
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } && {
9092 test -z "$ac_c_werror_flag" ||
9093 test ! -s conftest.err
9094 } && test -s conftest.$ac_objext; then
9095 emacs_cv_void_star=yes
9096 else
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9099
9100 emacs_cv_void_star=no
9101 fi
9102
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 fi
9105 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9106 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9107 if test $emacs_cv_void_star = yes; then
9108 cat >>confdefs.h <<\_ACEOF
9109 #define POINTER_TYPE void
9110 _ACEOF
9111
9112 else
9113 cat >>confdefs.h <<\_ACEOF
9114 #define POINTER_TYPE char
9115 _ACEOF
9116
9117 fi
9118
9119
9120
9121
9122
9123 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9124 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9125 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9126 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129 cat >conftest.make <<\_ACEOF
9130 SHELL = /bin/sh
9131 all:
9132 @echo '@@@%%%=$(MAKE)=@@@%%%'
9133 _ACEOF
9134 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9135 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9136 *@@@%%%=?*=@@@%%%*)
9137 eval ac_cv_prog_make_${ac_make}_set=yes;;
9138 *)
9139 eval ac_cv_prog_make_${ac_make}_set=no;;
9140 esac
9141 rm -f conftest.make
9142 fi
9143 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9144 { echo "$as_me:$LINENO: result: yes" >&5
9145 echo "${ECHO_T}yes" >&6; }
9146 SET_MAKE=
9147 else
9148 { echo "$as_me:$LINENO: result: no" >&5
9149 echo "${ECHO_T}no" >&6; }
9150 SET_MAKE="MAKE=${MAKE-make}"
9151 fi
9152
9153
9154 { echo "$as_me:$LINENO: checking for long file names" >&5
9155 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9156 if test "${ac_cv_sys_long_file_names+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159 ac_cv_sys_long_file_names=yes
9160 # Test for long file names in all the places we know might matter:
9161 # . the current directory, where building will happen
9162 # $prefix/lib where we will be installing things
9163 # $exec_prefix/lib likewise
9164 # $TMPDIR if set, where it might want to write temporary files
9165 # /tmp where it might want to write temporary files
9166 # /var/tmp likewise
9167 # /usr/tmp likewise
9168 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9169 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9170 # in the usual case where exec_prefix is '${prefix}'.
9171 case $ac_dir in #(
9172 . | /* | ?:[\\/]*) ;; #(
9173 *) continue;;
9174 esac
9175 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9176 ac_xdir=$ac_dir/cf$$
9177 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9178 ac_tf1=$ac_xdir/conftest9012345
9179 ac_tf2=$ac_xdir/conftest9012346
9180 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9181 ac_cv_sys_long_file_names=no
9182 rm -f -r "$ac_xdir" 2>/dev/null
9183 test $ac_cv_sys_long_file_names = no && break
9184 done
9185 fi
9186 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9187 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9188 if test $ac_cv_sys_long_file_names = yes; then
9189
9190 cat >>confdefs.h <<\_ACEOF
9191 #define HAVE_LONG_FILE_NAMES 1
9192 _ACEOF
9193
9194 fi
9195
9196
9197 #### Choose a window system.
9198
9199 { echo "$as_me:$LINENO: checking for X" >&5
9200 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9201
9202
9203 # Check whether --with-x was given.
9204 if test "${with_x+set}" = set; then
9205 withval=$with_x;
9206 fi
9207
9208 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9209 if test "x$with_x" = xno; then
9210 # The user explicitly disabled X.
9211 have_x=disabled
9212 else
9213 case $x_includes,$x_libraries in #(
9214 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9215 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9216 { (exit 1); exit 1; }; };; #(
9217 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220 # One or both of the vars are not set, and there is no cached value.
9221 ac_x_includes=no ac_x_libraries=no
9222 rm -f -r conftest.dir
9223 if mkdir conftest.dir; then
9224 cd conftest.dir
9225 cat >Imakefile <<'_ACEOF'
9226 incroot:
9227 @echo incroot='${INCROOT}'
9228 usrlibdir:
9229 @echo usrlibdir='${USRLIBDIR}'
9230 libdir:
9231 @echo libdir='${LIBDIR}'
9232 _ACEOF
9233 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9235 for ac_var in incroot usrlibdir libdir; do
9236 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9237 done
9238 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9239 for ac_extension in a so sl; do
9240 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9241 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9242 ac_im_usrlibdir=$ac_im_libdir; break
9243 fi
9244 done
9245 # Screen out bogus values from the imake configuration. They are
9246 # bogus both because they are the default anyway, and because
9247 # using them would break gcc on systems where it needs fixed includes.
9248 case $ac_im_incroot in
9249 /usr/include) ac_x_includes= ;;
9250 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9251 esac
9252 case $ac_im_usrlibdir in
9253 /usr/lib | /lib) ;;
9254 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9255 esac
9256 fi
9257 cd ..
9258 rm -f -r conftest.dir
9259 fi
9260
9261 # Standard set of common directories for X headers.
9262 # Check X11 before X11Rn because it is often a symlink to the current release.
9263 ac_x_header_dirs='
9264 /usr/X11/include
9265 /usr/X11R6/include
9266 /usr/X11R5/include
9267 /usr/X11R4/include
9268
9269 /usr/include/X11
9270 /usr/include/X11R6
9271 /usr/include/X11R5
9272 /usr/include/X11R4
9273
9274 /usr/local/X11/include
9275 /usr/local/X11R6/include
9276 /usr/local/X11R5/include
9277 /usr/local/X11R4/include
9278
9279 /usr/local/include/X11
9280 /usr/local/include/X11R6
9281 /usr/local/include/X11R5
9282 /usr/local/include/X11R4
9283
9284 /usr/X386/include
9285 /usr/x386/include
9286 /usr/XFree86/include/X11
9287
9288 /usr/include
9289 /usr/local/include
9290 /usr/unsupported/include
9291 /usr/athena/include
9292 /usr/local/x11r5/include
9293 /usr/lpp/Xamples/include
9294
9295 /usr/openwin/include
9296 /usr/openwin/share/include'
9297
9298 if test "$ac_x_includes" = no; then
9299 # Guess where to find include files, by looking for Xlib.h.
9300 # First, try using that file with no special directory specified.
9301 cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h. */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 #include <X11/Xlib.h>
9308 _ACEOF
9309 if { (ac_try="$ac_cpp conftest.$ac_ext"
9310 case "(($ac_try" in
9311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312 *) ac_try_echo=$ac_try;;
9313 esac
9314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9316 ac_status=$?
9317 grep -v '^ *+' conftest.er1 >conftest.err
9318 rm -f conftest.er1
9319 cat conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } >/dev/null && {
9322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9323 test ! -s conftest.err
9324 }; then
9325 # We can compile using X headers with no special include directory.
9326 ac_x_includes=
9327 else
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9330
9331 for ac_dir in $ac_x_header_dirs; do
9332 if test -r "$ac_dir/X11/Xlib.h"; then
9333 ac_x_includes=$ac_dir
9334 break
9335 fi
9336 done
9337 fi
9338
9339 rm -f conftest.err conftest.$ac_ext
9340 fi # $ac_x_includes = no
9341
9342 if test "$ac_x_libraries" = no; then
9343 # Check for the libraries.
9344 # See if we find them without any special options.
9345 # Don't add to $LIBS permanently.
9346 ac_save_LIBS=$LIBS
9347 LIBS="-lX11 $LIBS"
9348 cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h. */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 #include <X11/Xlib.h>
9355 int
9356 main ()
9357 {
9358 XrmInitialize ()
9359 ;
9360 return 0;
9361 }
9362 _ACEOF
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (ac_try="$ac_link"
9365 case "(($ac_try" in
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9368 esac
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_link") 2>conftest.er1
9371 ac_status=$?
9372 grep -v '^ *+' conftest.er1 >conftest.err
9373 rm -f conftest.er1
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && {
9377 test -z "$ac_c_werror_flag" ||
9378 test ! -s conftest.err
9379 } && test -s conftest$ac_exeext &&
9380 $as_test_x conftest$ac_exeext; then
9381 LIBS=$ac_save_LIBS
9382 # We can link X programs with no special library path.
9383 ac_x_libraries=
9384 else
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 LIBS=$ac_save_LIBS
9389 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9390 do
9391 # Don't even attempt the hair of trying to link an X program!
9392 for ac_extension in a so sl; do
9393 if test -r "$ac_dir/libX11.$ac_extension"; then
9394 ac_x_libraries=$ac_dir
9395 break 2
9396 fi
9397 done
9398 done
9399 fi
9400
9401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9402 conftest$ac_exeext conftest.$ac_ext
9403 fi # $ac_x_libraries = no
9404
9405 case $ac_x_includes,$ac_x_libraries in #(
9406 no,* | *,no | *\'*)
9407 # Didn't find X, or a directory has "'" in its name.
9408 ac_cv_have_x="have_x=no";; #(
9409 *)
9410 # Record where we found X for the cache.
9411 ac_cv_have_x="have_x=yes\
9412 ac_x_includes='$ac_x_includes'\
9413 ac_x_libraries='$ac_x_libraries'"
9414 esac
9415 fi
9416 ;; #(
9417 *) have_x=yes;;
9418 esac
9419 eval "$ac_cv_have_x"
9420 fi # $with_x != no
9421
9422 if test "$have_x" != yes; then
9423 { echo "$as_me:$LINENO: result: $have_x" >&5
9424 echo "${ECHO_T}$have_x" >&6; }
9425 no_x=yes
9426 else
9427 # If each of the values was on the command line, it overrides each guess.
9428 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9429 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9430 # Update the cache value to reflect the command line values.
9431 ac_cv_have_x="have_x=yes\
9432 ac_x_includes='$x_includes'\
9433 ac_x_libraries='$x_libraries'"
9434 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9435 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9436 fi
9437
9438 if test "$no_x" = yes; then
9439 window_system=none
9440 else
9441 window_system=x11
9442 fi
9443
9444 if test "${x_libraries}" != NONE; then
9445 if test -n "${x_libraries}"; then
9446 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9447 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9448 fi
9449 x_default_search_path=""
9450 x_search_path=${x_libraries}
9451 if test -z "${x_search_path}"; then
9452 x_search_path=/usr/lib
9453 fi
9454 for x_library in `echo ${x_search_path}: | \
9455 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9456 x_search_path="\
9457 ${x_library}/X11/%L/%T/%N%C%S:\
9458 ${x_library}/X11/%l/%T/%N%C%S:\
9459 ${x_library}/X11/%T/%N%C%S:\
9460 ${x_library}/X11/%L/%T/%N%S:\
9461 ${x_library}/X11/%l/%T/%N%S:\
9462 ${x_library}/X11/%T/%N%S"
9463 if test x"${x_default_search_path}" = x; then
9464 x_default_search_path=${x_search_path}
9465 else
9466 x_default_search_path="${x_search_path}:${x_default_search_path}"
9467 fi
9468 done
9469 fi
9470 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9471 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9472 fi
9473
9474 if test x"${x_includes}" = x; then
9475 bitmapdir=/usr/include/X11/bitmaps
9476 else
9477 # accumulate include directories that have X11 bitmap subdirectories
9478 bmd_acc="dummyval"
9479 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9480 if test -d "${bmd}/X11/bitmaps"; then
9481 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9482 fi
9483 if test -d "${bmd}/bitmaps"; then
9484 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9485 fi
9486 done
9487 if test ${bmd_acc} != "dummyval"; then
9488 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9489 fi
9490 fi
9491
9492 HAVE_CARBON=no
9493 if test "${with_carbon}" != no; then
9494 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9495 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9496 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9497 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 fi
9500 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9501 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9502 else
9503 # Is the header compilable?
9504 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9505 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9506 cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h. */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 $ac_includes_default
9513 #include <Carbon/Carbon.h>
9514 _ACEOF
9515 rm -f conftest.$ac_objext
9516 if { (ac_try="$ac_compile"
9517 case "(($ac_try" in
9518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519 *) ac_try_echo=$ac_try;;
9520 esac
9521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9522 (eval "$ac_compile") 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && {
9529 test -z "$ac_c_werror_flag" ||
9530 test ! -s conftest.err
9531 } && test -s conftest.$ac_objext; then
9532 ac_header_compiler=yes
9533 else
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9536
9537 ac_header_compiler=no
9538 fi
9539
9540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9542 echo "${ECHO_T}$ac_header_compiler" >&6; }
9543
9544 # Is the header present?
9545 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9546 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9547 cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h. */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553 #include <Carbon/Carbon.h>
9554 _ACEOF
9555 if { (ac_try="$ac_cpp conftest.$ac_ext"
9556 case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559 esac
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } >/dev/null && {
9568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 }; then
9571 ac_header_preproc=yes
9572 else
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9575
9576 ac_header_preproc=no
9577 fi
9578
9579 rm -f conftest.err conftest.$ac_ext
9580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9581 echo "${ECHO_T}$ac_header_preproc" >&6; }
9582
9583 # So? What about this header?
9584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9585 yes:no: )
9586 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9587 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9588 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9589 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9590 ac_header_preproc=yes
9591 ;;
9592 no:yes:* )
9593 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9594 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9595 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9596 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9597 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9598 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9599 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9600 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9602 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9604 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9605
9606 ;;
9607 esac
9608 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9609 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9610 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9614 fi
9615 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9616 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9617
9618 fi
9619 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9620 HAVE_CARBON=yes
9621 fi
9622
9623
9624 fi
9625 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9626 if test "${with_carbon+set}" != set \
9627 && test "${carbon_appdir_x+set}" != set; then
9628 for var in with_x with_x_toolkit with_gtk with_xim \
9629 with_xpm with_jpeg with_tiff with_gif with_png; do
9630 if eval test \"\${$var+set}\" = set; then
9631 HAVE_CARBON=no
9632 break
9633 fi
9634 done
9635 fi
9636 fi
9637 if test "${HAVE_CARBON}" = yes; then
9638 window_system=mac
9639 fi
9640
9641 case "${window_system}" in
9642 x11 )
9643 HAVE_X_WINDOWS=yes
9644 HAVE_X11=yes
9645 case "${with_x_toolkit}" in
9646 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9647 motif ) USE_X_TOOLKIT=MOTIF ;;
9648 gtk ) with_gtk=yes
9649 USE_X_TOOLKIT=none ;;
9650 no ) USE_X_TOOLKIT=none ;;
9651 * )
9652 if test x"$with_gtk" = xyes; then
9653 USE_X_TOOLKIT=none
9654 else
9655 USE_X_TOOLKIT=maybe
9656 fi
9657 ;;
9658 esac
9659 ;;
9660 mac | none )
9661 HAVE_X_WINDOWS=no
9662 HAVE_X11=no
9663 USE_X_TOOLKIT=none
9664 ;;
9665 esac
9666
9667 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9668 # Extract the first word of "X", so it can be a program name with args.
9669 set dummy X; ac_word=$2
9670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9672 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675 if test -n "$HAVE_XSERVER"; then
9676 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9677 else
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9680 do
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9685 ac_cv_prog_HAVE_XSERVER="true"
9686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 break 2
9688 fi
9689 done
9690 done
9691 IFS=$as_save_IFS
9692
9693 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9694 fi
9695 fi
9696 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9697 if test -n "$HAVE_XSERVER"; then
9698 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9699 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9700 else
9701 { echo "$as_me:$LINENO: result: no" >&5
9702 echo "${ECHO_T}no" >&6; }
9703 fi
9704
9705
9706 if test "$HAVE_XSERVER" = true ||
9707 test -n "$DISPLAY" ||
9708 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9709 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9710 were found. You should install the relevant development files for X
9711 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9712 sure you have development files for image handling, i.e.
9713 tiff, gif, jpeg, png and xpm.
9714 If you are sure you want Emacs compiled without X window support, pass
9715 --without-x
9716 to configure." >&5
9717 echo "$as_me: error: You seem to be running X, but no X development libraries
9718 were found. You should install the relevant development files for X
9719 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9720 sure you have development files for image handling, i.e.
9721 tiff, gif, jpeg, png and xpm.
9722 If you are sure you want Emacs compiled without X window support, pass
9723 --without-x
9724 to configure." >&2;}
9725 { (exit 1); exit 1; }; }
9726 fi
9727 fi
9728
9729 ### If we're using X11, we should use the X menu package.
9730 HAVE_MENUS=no
9731 case ${HAVE_X11} in
9732 yes ) HAVE_MENUS=yes ;;
9733 esac
9734
9735 if test "${opsys}" = "hpux9"; then
9736 case "${x_libraries}" in
9737 *X11R4* )
9738 opsysfile="s/hpux9-x11r4.h"
9739 ;;
9740 esac
9741 fi
9742
9743 if test "${opsys}" = "hpux9shr"; then
9744 case "${x_libraries}" in
9745 *X11R4* )
9746 opsysfile="s/hpux9shxr4.h"
9747 ;;
9748 esac
9749 fi
9750
9751 ### Compute the unexec source name from the object name.
9752 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9753
9754 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9755 # Assume not, until told otherwise.
9756 GNU_MALLOC=yes
9757 doug_lea_malloc=yes
9758 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9759 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9760 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9771 #define malloc_get_state innocuous_malloc_get_state
9772
9773 /* System header to define __stub macros and hopefully few prototypes,
9774 which can conflict with char malloc_get_state (); below.
9775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9776 <limits.h> exists even on freestanding compilers. */
9777
9778 #ifdef __STDC__
9779 # include <limits.h>
9780 #else
9781 # include <assert.h>
9782 #endif
9783
9784 #undef malloc_get_state
9785
9786 /* Override any GCC internal prototype to avoid an error.
9787 Use char because int might match the return type of a GCC
9788 builtin and then its argument prototype would still apply. */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 char malloc_get_state ();
9793 /* The GNU C library defines this for functions which it implements
9794 to always fail with ENOSYS. Some functions are actually named
9795 something starting with __ and the normal name is an alias. */
9796 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9797 choke me
9798 #endif
9799
9800 int
9801 main ()
9802 {
9803 return malloc_get_state ();
9804 ;
9805 return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9810 case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813 esac
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_link") 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && {
9822 test -z "$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 } && test -s conftest$ac_exeext &&
9825 $as_test_x conftest$ac_exeext; then
9826 ac_cv_func_malloc_get_state=yes
9827 else
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9830
9831 ac_cv_func_malloc_get_state=no
9832 fi
9833
9834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9835 conftest$ac_exeext conftest.$ac_ext
9836 fi
9837 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9838 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9839 if test $ac_cv_func_malloc_get_state = yes; then
9840 :
9841 else
9842 doug_lea_malloc=no
9843 fi
9844
9845 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9846 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9847 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850 cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h. */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9858 #define malloc_set_state innocuous_malloc_set_state
9859
9860 /* System header to define __stub macros and hopefully few prototypes,
9861 which can conflict with char malloc_set_state (); below.
9862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863 <limits.h> exists even on freestanding compilers. */
9864
9865 #ifdef __STDC__
9866 # include <limits.h>
9867 #else
9868 # include <assert.h>
9869 #endif
9870
9871 #undef malloc_set_state
9872
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 char malloc_set_state ();
9880 /* The GNU C library defines this for functions which it implements
9881 to always fail with ENOSYS. Some functions are actually named
9882 something starting with __ and the normal name is an alias. */
9883 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9884 choke me
9885 #endif
9886
9887 int
9888 main ()
9889 {
9890 return malloc_set_state ();
9891 ;
9892 return 0;
9893 }
9894 _ACEOF
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9897 case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
9903 ac_status=$?
9904 grep -v '^ *+' conftest.er1 >conftest.err
9905 rm -f conftest.er1
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest$ac_exeext &&
9912 $as_test_x conftest$ac_exeext; then
9913 ac_cv_func_malloc_set_state=yes
9914 else
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9917
9918 ac_cv_func_malloc_set_state=no
9919 fi
9920
9921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9922 conftest$ac_exeext conftest.$ac_ext
9923 fi
9924 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9925 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9926 if test $ac_cv_func_malloc_set_state = yes; then
9927 :
9928 else
9929 doug_lea_malloc=no
9930 fi
9931
9932 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9933 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9934 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 else
9937 cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h. */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9943 extern void (* __after_morecore_hook)();
9944 int
9945 main ()
9946 {
9947 __after_morecore_hook = 0
9948 ;
9949 return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9954 case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_link") 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest$ac_exeext &&
9969 $as_test_x conftest$ac_exeext; then
9970 emacs_cv_var___after_morecore_hook=yes
9971 else
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 emacs_cv_var___after_morecore_hook=no
9976 fi
9977
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979 conftest$ac_exeext conftest.$ac_ext
9980 fi
9981 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9982 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9983 if test $emacs_cv_var___after_morecore_hook = no; then
9984 doug_lea_malloc=no
9985 fi
9986 if test "${system_malloc}" = "yes"; then
9987 GNU_MALLOC=no
9988 GNU_MALLOC_reason="
9989 (The GNU allocators don't work with this system configuration.)"
9990 fi
9991 if test "$doug_lea_malloc" = "yes" ; then
9992 if test "$GNU_MALLOC" = yes ; then
9993 GNU_MALLOC_reason="
9994 (Using Doug Lea's new malloc from the GNU C Library.)"
9995 fi
9996
9997 cat >>confdefs.h <<\_ACEOF
9998 #define DOUG_LEA_MALLOC 1
9999 _ACEOF
10000
10001 fi
10002
10003 if test x"${REL_ALLOC}" = x; then
10004 REL_ALLOC=${GNU_MALLOC}
10005 fi
10006
10007
10008
10009
10010 for ac_header in stdlib.h unistd.h
10011 do
10012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 fi
10019 ac_res=`eval echo '${'$as_ac_Header'}'`
10020 { echo "$as_me:$LINENO: result: $ac_res" >&5
10021 echo "${ECHO_T}$ac_res" >&6; }
10022 else
10023 # Is the header compilable?
10024 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h. */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032 $ac_includes_default
10033 #include <$ac_header>
10034 _ACEOF
10035 rm -f conftest.$ac_objext
10036 if { (ac_try="$ac_compile"
10037 case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_compile") 2>conftest.er1
10043 ac_status=$?
10044 grep -v '^ *+' conftest.er1 >conftest.err
10045 rm -f conftest.er1
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest.$ac_objext; then
10052 ac_header_compiler=yes
10053 else
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10056
10057 ac_header_compiler=no
10058 fi
10059
10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10062 echo "${ECHO_T}$ac_header_compiler" >&6; }
10063
10064 # Is the header present?
10065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10067 cat >conftest.$ac_ext <<_ACEOF
10068 /* confdefs.h. */
10069 _ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10073 #include <$ac_header>
10074 _ACEOF
10075 if { (ac_try="$ac_cpp conftest.$ac_ext"
10076 case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10079 esac
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } >/dev/null && {
10088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10089 test ! -s conftest.err
10090 }; then
10091 ac_header_preproc=yes
10092 else
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10095
10096 ac_header_preproc=no
10097 fi
10098
10099 rm -f conftest.err conftest.$ac_ext
10100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10101 echo "${ECHO_T}$ac_header_preproc" >&6; }
10102
10103 # So? What about this header?
10104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10105 yes:no: )
10106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10110 ac_header_preproc=yes
10111 ;;
10112 no:yes:* )
10113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10125
10126 ;;
10127 esac
10128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133 eval "$as_ac_Header=\$ac_header_preproc"
10134 fi
10135 ac_res=`eval echo '${'$as_ac_Header'}'`
10136 { echo "$as_me:$LINENO: result: $ac_res" >&5
10137 echo "${ECHO_T}$ac_res" >&6; }
10138
10139 fi
10140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10141 cat >>confdefs.h <<_ACEOF
10142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10143 _ACEOF
10144
10145 fi
10146
10147 done
10148
10149
10150 for ac_func in getpagesize
10151 do
10152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10166 #define $ac_func innocuous_$ac_func
10167
10168 /* System header to define __stub macros and hopefully few prototypes,
10169 which can conflict with char $ac_func (); below.
10170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10171 <limits.h> exists even on freestanding compilers. */
10172
10173 #ifdef __STDC__
10174 # include <limits.h>
10175 #else
10176 # include <assert.h>
10177 #endif
10178
10179 #undef $ac_func
10180
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10184 #ifdef __cplusplus
10185 extern "C"
10186 #endif
10187 char $ac_func ();
10188 /* The GNU C library defines this for functions which it implements
10189 to always fail with ENOSYS. Some functions are actually named
10190 something starting with __ and the normal name is an alias. */
10191 #if defined __stub_$ac_func || defined __stub___$ac_func
10192 choke me
10193 #endif
10194
10195 int
10196 main ()
10197 {
10198 return $ac_func ();
10199 ;
10200 return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (ac_try="$ac_link"
10205 case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && {
10217 test -z "$ac_c_werror_flag" ||
10218 test ! -s conftest.err
10219 } && test -s conftest$ac_exeext &&
10220 $as_test_x conftest$ac_exeext; then
10221 eval "$as_ac_var=yes"
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 eval "$as_ac_var=no"
10227 fi
10228
10229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10230 conftest$ac_exeext conftest.$ac_ext
10231 fi
10232 ac_res=`eval echo '${'$as_ac_var'}'`
10233 { echo "$as_me:$LINENO: result: $ac_res" >&5
10234 echo "${ECHO_T}$ac_res" >&6; }
10235 if test `eval echo '${'$as_ac_var'}'` = yes; then
10236 cat >>confdefs.h <<_ACEOF
10237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10238 _ACEOF
10239
10240 fi
10241 done
10242
10243 { echo "$as_me:$LINENO: checking for working mmap" >&5
10244 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10245 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248 if test "$cross_compiling" = yes; then
10249 ac_cv_func_mmap_fixed_mapped=no
10250 else
10251 cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h. */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 $ac_includes_default
10258 /* malloc might have been renamed as rpl_malloc. */
10259 #undef malloc
10260
10261 /* Thanks to Mike Haertel and Jim Avera for this test.
10262 Here is a matrix of mmap possibilities:
10263 mmap private not fixed
10264 mmap private fixed at somewhere currently unmapped
10265 mmap private fixed at somewhere already mapped
10266 mmap shared not fixed
10267 mmap shared fixed at somewhere currently unmapped
10268 mmap shared fixed at somewhere already mapped
10269 For private mappings, we should verify that changes cannot be read()
10270 back from the file, nor mmap's back from the file at a different
10271 address. (There have been systems where private was not correctly
10272 implemented like the infamous i386 svr4.0, and systems where the
10273 VM page cache was not coherent with the file system buffer cache
10274 like early versions of FreeBSD and possibly contemporary NetBSD.)
10275 For shared mappings, we should conversely verify that changes get
10276 propagated back to all the places they're supposed to be.
10277
10278 Grep wants private fixed already mapped.
10279 The main things grep needs to know about mmap are:
10280 * does it exist and is it safe to write into the mmap'd area
10281 * how to use it (BSD variants) */
10282
10283 #include <fcntl.h>
10284 #include <sys/mman.h>
10285
10286 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10287 char *malloc ();
10288 #endif
10289
10290 /* This mess was copied from the GNU getpagesize.h. */
10291 #ifndef HAVE_GETPAGESIZE
10292 /* Assume that all systems that can run configure have sys/param.h. */
10293 # ifndef HAVE_SYS_PARAM_H
10294 # define HAVE_SYS_PARAM_H 1
10295 # endif
10296
10297 # ifdef _SC_PAGESIZE
10298 # define getpagesize() sysconf(_SC_PAGESIZE)
10299 # else /* no _SC_PAGESIZE */
10300 # ifdef HAVE_SYS_PARAM_H
10301 # include <sys/param.h>
10302 # ifdef EXEC_PAGESIZE
10303 # define getpagesize() EXEC_PAGESIZE
10304 # else /* no EXEC_PAGESIZE */
10305 # ifdef NBPG
10306 # define getpagesize() NBPG * CLSIZE
10307 # ifndef CLSIZE
10308 # define CLSIZE 1
10309 # endif /* no CLSIZE */
10310 # else /* no NBPG */
10311 # ifdef NBPC
10312 # define getpagesize() NBPC
10313 # else /* no NBPC */
10314 # ifdef PAGESIZE
10315 # define getpagesize() PAGESIZE
10316 # endif /* PAGESIZE */
10317 # endif /* no NBPC */
10318 # endif /* no NBPG */
10319 # endif /* no EXEC_PAGESIZE */
10320 # else /* no HAVE_SYS_PARAM_H */
10321 # define getpagesize() 8192 /* punt totally */
10322 # endif /* no HAVE_SYS_PARAM_H */
10323 # endif /* no _SC_PAGESIZE */
10324
10325 #endif /* no HAVE_GETPAGESIZE */
10326
10327 int
10328 main ()
10329 {
10330 char *data, *data2, *data3;
10331 int i, pagesize;
10332 int fd;
10333
10334 pagesize = getpagesize ();
10335
10336 /* First, make a file with some known garbage in it. */
10337 data = (char *) malloc (pagesize);
10338 if (!data)
10339 return 1;
10340 for (i = 0; i < pagesize; ++i)
10341 *(data + i) = rand ();
10342 umask (0);
10343 fd = creat ("conftest.mmap", 0600);
10344 if (fd < 0)
10345 return 1;
10346 if (write (fd, data, pagesize) != pagesize)
10347 return 1;
10348 close (fd);
10349
10350 /* Next, try to mmap the file at a fixed address which already has
10351 something else allocated at it. If we can, also make sure that
10352 we see the same garbage. */
10353 fd = open ("conftest.mmap", O_RDWR);
10354 if (fd < 0)
10355 return 1;
10356 data2 = (char *) malloc (2 * pagesize);
10357 if (!data2)
10358 return 1;
10359 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10360 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10361 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10362 return 1;
10363 for (i = 0; i < pagesize; ++i)
10364 if (*(data + i) != *(data2 + i))
10365 return 1;
10366
10367 /* Finally, make sure that changes to the mapped area do not
10368 percolate back to the file as seen by read(). (This is a bug on
10369 some variants of i386 svr4.0.) */
10370 for (i = 0; i < pagesize; ++i)
10371 *(data2 + i) = *(data2 + i) + 1;
10372 data3 = (char *) malloc (pagesize);
10373 if (!data3)
10374 return 1;
10375 if (read (fd, data3, pagesize) != pagesize)
10376 return 1;
10377 for (i = 0; i < pagesize; ++i)
10378 if (*(data + i) != *(data3 + i))
10379 return 1;
10380 close (fd);
10381 return 0;
10382 }
10383 _ACEOF
10384 rm -f conftest$ac_exeext
10385 if { (ac_try="$ac_link"
10386 case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_link") 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10395 { (case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_try") 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; }; then
10404 ac_cv_func_mmap_fixed_mapped=yes
10405 else
10406 echo "$as_me: program exited with status $ac_status" >&5
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 ( exit $ac_status )
10411 ac_cv_func_mmap_fixed_mapped=no
10412 fi
10413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10414 fi
10415
10416
10417 fi
10418 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10419 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10420 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10421
10422 cat >>confdefs.h <<\_ACEOF
10423 #define HAVE_MMAP 1
10424 _ACEOF
10425
10426 fi
10427 rm -f conftest.mmap
10428
10429 if test $use_mmap_for_buffers = yes; then
10430 REL_ALLOC=no
10431 fi
10432
10433 LIBS="$libsrc_libs $LIBS"
10434
10435
10436 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10437 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10438 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441 ac_check_lib_save_LIBS=$LIBS
10442 LIBS="-ldnet $LIBS"
10443 cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h. */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449
10450 /* Override any GCC internal prototype to avoid an error.
10451 Use char because int might match the return type of a GCC
10452 builtin and then its argument prototype would still apply. */
10453 #ifdef __cplusplus
10454 extern "C"
10455 #endif
10456 char dnet_ntoa ();
10457 int
10458 main ()
10459 {
10460 return dnet_ntoa ();
10461 ;
10462 return 0;
10463 }
10464 _ACEOF
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (ac_try="$ac_link"
10467 case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10470 esac
10471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472 (eval "$ac_link") 2>conftest.er1
10473 ac_status=$?
10474 grep -v '^ *+' conftest.er1 >conftest.err
10475 rm -f conftest.er1
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } && {
10479 test -z "$ac_c_werror_flag" ||
10480 test ! -s conftest.err
10481 } && test -s conftest$ac_exeext &&
10482 $as_test_x conftest$ac_exeext; then
10483 ac_cv_lib_dnet_dnet_ntoa=yes
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 ac_cv_lib_dnet_dnet_ntoa=no
10489 fi
10490
10491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10492 conftest$ac_exeext conftest.$ac_ext
10493 LIBS=$ac_check_lib_save_LIBS
10494 fi
10495 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10496 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10497 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10498 cat >>confdefs.h <<_ACEOF
10499 #define HAVE_LIBDNET 1
10500 _ACEOF
10501
10502 LIBS="-ldnet $LIBS"
10503
10504 fi
10505
10506
10507 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10508 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10509 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512 ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-lXbsd $LIBS"
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h. */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520
10521
10522 int
10523 main ()
10524 {
10525 return main ();
10526 ;
10527 return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_link") 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest$ac_exeext &&
10547 $as_test_x conftest$ac_exeext; then
10548 ac_cv_lib_Xbsd_main=yes
10549 else
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 ac_cv_lib_Xbsd_main=no
10554 fi
10555
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557 conftest$ac_exeext conftest.$ac_ext
10558 LIBS=$ac_check_lib_save_LIBS
10559 fi
10560 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10561 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10562 if test $ac_cv_lib_Xbsd_main = yes; then
10563 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10564 fi
10565
10566
10567
10568 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10569 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10570 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573 ac_check_lib_save_LIBS=$LIBS
10574 LIBS="-lpthreads $LIBS"
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h. */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10585 #ifdef __cplusplus
10586 extern "C"
10587 #endif
10588 char cma_open ();
10589 int
10590 main ()
10591 {
10592 return cma_open ();
10593 ;
10594 return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (ac_try="$ac_link"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_link") 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest$ac_exeext &&
10614 $as_test_x conftest$ac_exeext; then
10615 ac_cv_lib_pthreads_cma_open=yes
10616 else
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_cv_lib_pthreads_cma_open=no
10621 fi
10622
10623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10624 conftest$ac_exeext conftest.$ac_ext
10625 LIBS=$ac_check_lib_save_LIBS
10626 fi
10627 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10628 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10629 if test $ac_cv_lib_pthreads_cma_open = yes; then
10630 cat >>confdefs.h <<_ACEOF
10631 #define HAVE_LIBPTHREADS 1
10632 _ACEOF
10633
10634 LIBS="-lpthreads $LIBS"
10635
10636 fi
10637
10638
10639 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10640 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10641 if test -d /usr/X386/include; then
10642 HAVE_XFREE386=yes
10643 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10644 else
10645 HAVE_XFREE386=no
10646 fi
10647 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10648 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10649
10650
10651 case ${host_os} in
10652 aix*)
10653 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10654 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10655 if test "${gdb_cv_bigtoc+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658
10659 case $GCC in
10660 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10661 *) gdb_cv_bigtoc=-bbigtoc ;;
10662 esac
10663
10664 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671
10672 int
10673 main ()
10674 {
10675 int i;
10676 ;
10677 return 0;
10678 }
10679 _ACEOF
10680 rm -f conftest.$ac_objext conftest$ac_exeext
10681 if { (ac_try="$ac_link"
10682 case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10685 esac
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_link") 2>conftest.er1
10688 ac_status=$?
10689 grep -v '^ *+' conftest.er1 >conftest.err
10690 rm -f conftest.er1
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } && {
10694 test -z "$ac_c_werror_flag" ||
10695 test ! -s conftest.err
10696 } && test -s conftest$ac_exeext &&
10697 $as_test_x conftest$ac_exeext; then
10698 :
10699 else
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10702
10703 gdb_cv_bigtoc=
10704 fi
10705
10706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10707 conftest$ac_exeext conftest.$ac_ext
10708
10709 fi
10710 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10711 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10712 ;;
10713 esac
10714
10715 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10716 # used for the tests that follow. We set them back to REAL_CFLAGS and
10717 # REAL_CPPFLAGS later on.
10718
10719 REAL_CPPFLAGS="$CPPFLAGS"
10720
10721 if test "${HAVE_X11}" = "yes"; then
10722 DEFS="$C_SWITCH_X_SITE $DEFS"
10723 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10724 LIBS="$LIBX $LIBS"
10725 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10726 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10727
10728 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10729 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10730 # but it's more convenient here to set LD_RUN_PATH
10731 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10732 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10733 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10734 export LD_RUN_PATH
10735 fi
10736
10737 if test "${opsys}" = "gnu-linux"; then
10738 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10739 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746
10747 int
10748 main ()
10749 {
10750 XOpenDisplay ("foo");
10751 ;
10752 return 0;
10753 }
10754 _ACEOF
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (ac_try="$ac_link"
10757 case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10760 esac
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762 (eval "$ac_link") 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext &&
10772 $as_test_x conftest$ac_exeext; then
10773 xlinux_first_failure=no
10774 else
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10777
10778 xlinux_first_failure=yes
10779 fi
10780
10781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10782 conftest$ac_exeext conftest.$ac_ext
10783 if test "${xlinux_first_failure}" = "yes"; then
10784 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10785 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10786 OLD_CPPFLAGS="$CPPFLAGS"
10787 OLD_LIBS="$LIBS"
10788 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10789 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10790 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10791 LIBS="$LIBS -b i486-linuxaout"
10792 cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h. */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798
10799 int
10800 main ()
10801 {
10802 XOpenDisplay ("foo");
10803 ;
10804 return 0;
10805 }
10806 _ACEOF
10807 rm -f conftest.$ac_objext conftest$ac_exeext
10808 if { (ac_try="$ac_link"
10809 case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812 esac
10813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_link") 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_c_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest$ac_exeext &&
10824 $as_test_x conftest$ac_exeext; then
10825 xlinux_second_failure=no
10826 else
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 xlinux_second_failure=yes
10831 fi
10832
10833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10834 conftest$ac_exeext conftest.$ac_ext
10835 if test "${xlinux_second_failure}" = "yes"; then
10836 # If we get the same failure with -b, there is no use adding -b.
10837 # So take it out. This plays safe.
10838 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10839 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10840 CPPFLAGS="$OLD_CPPFLAGS"
10841 LIBS="$OLD_LIBS"
10842 { echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6; }
10844 else
10845 { echo "$as_me:$LINENO: result: yes" >&5
10846 echo "${ECHO_T}yes" >&6; }
10847 fi
10848 else
10849 { echo "$as_me:$LINENO: result: no" >&5
10850 echo "${ECHO_T}no" >&6; }
10851 fi
10852 fi
10853
10854 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10855 # header files included from there.
10856 { echo "$as_me:$LINENO: checking for Xkb" >&5
10857 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10858 cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h. */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 #include <X11/Xlib.h>
10865 #include <X11/XKBlib.h>
10866 int
10867 main ()
10868 {
10869 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (ac_try="$ac_link"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_link") 2>conftest.er1
10882 ac_status=$?
10883 grep -v '^ *+' conftest.er1 >conftest.err
10884 rm -f conftest.er1
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } && {
10888 test -z "$ac_c_werror_flag" ||
10889 test ! -s conftest.err
10890 } && test -s conftest$ac_exeext &&
10891 $as_test_x conftest$ac_exeext; then
10892 emacs_xkb=yes
10893 else
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897 emacs_xkb=no
10898 fi
10899
10900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10901 conftest$ac_exeext conftest.$ac_ext
10902 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10903 echo "${ECHO_T}$emacs_xkb" >&6; }
10904 if test $emacs_xkb = yes; then
10905
10906 cat >>confdefs.h <<\_ACEOF
10907 #define HAVE_XKBGETKEYBOARD 1
10908 _ACEOF
10909
10910 fi
10911
10912
10913
10914
10915
10916 for ac_func in XrmSetDatabase XScreenResourceString \
10917 XScreenNumberOfScreen XSetWMProtocols
10918 do
10919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925 cat >conftest.$ac_ext <<_ACEOF
10926 /* confdefs.h. */
10927 _ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10933 #define $ac_func innocuous_$ac_func
10934
10935 /* System header to define __stub macros and hopefully few prototypes,
10936 which can conflict with char $ac_func (); below.
10937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10938 <limits.h> exists even on freestanding compilers. */
10939
10940 #ifdef __STDC__
10941 # include <limits.h>
10942 #else
10943 # include <assert.h>
10944 #endif
10945
10946 #undef $ac_func
10947
10948 /* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951 #ifdef __cplusplus
10952 extern "C"
10953 #endif
10954 char $ac_func ();
10955 /* The GNU C library defines this for functions which it implements
10956 to always fail with ENOSYS. Some functions are actually named
10957 something starting with __ and the normal name is an alias. */
10958 #if defined __stub_$ac_func || defined __stub___$ac_func
10959 choke me
10960 #endif
10961
10962 int
10963 main ()
10964 {
10965 return $ac_func ();
10966 ;
10967 return 0;
10968 }
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (ac_try="$ac_link"
10972 case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_link") 2>conftest.er1
10978 ac_status=$?
10979 grep -v '^ *+' conftest.er1 >conftest.err
10980 rm -f conftest.er1
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && {
10984 test -z "$ac_c_werror_flag" ||
10985 test ! -s conftest.err
10986 } && test -s conftest$ac_exeext &&
10987 $as_test_x conftest$ac_exeext; then
10988 eval "$as_ac_var=yes"
10989 else
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10992
10993 eval "$as_ac_var=no"
10994 fi
10995
10996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10997 conftest$ac_exeext conftest.$ac_ext
10998 fi
10999 ac_res=`eval echo '${'$as_ac_var'}'`
11000 { echo "$as_me:$LINENO: result: $ac_res" >&5
11001 echo "${ECHO_T}$ac_res" >&6; }
11002 if test `eval echo '${'$as_ac_var'}'` = yes; then
11003 cat >>confdefs.h <<_ACEOF
11004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11005 _ACEOF
11006
11007 fi
11008 done
11009
11010 fi
11011
11012 if test "${window_system}" = "x11"; then
11013 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11014 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11015 if test "${emacs_cv_x11_version_6+set}" = set; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018 cat >conftest.$ac_ext <<_ACEOF
11019 /* confdefs.h. */
11020 _ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024 #include <X11/Xlib.h>
11025 int
11026 main ()
11027 {
11028 #if XlibSpecificationRelease < 6
11029 fail;
11030 #endif
11031
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_c_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest$ac_exeext &&
11053 $as_test_x conftest$ac_exeext; then
11054 emacs_cv_x11_version_6=yes
11055 else
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059 emacs_cv_x11_version_6=no
11060 fi
11061
11062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11063 conftest$ac_exeext conftest.$ac_ext
11064 fi
11065
11066 if test $emacs_cv_x11_version_6 = yes; then
11067 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11068 echo "${ECHO_T}6 or newer" >&6; }
11069
11070 cat >>confdefs.h <<\_ACEOF
11071 #define HAVE_X11R6 1
11072 _ACEOF
11073
11074 else
11075 { echo "$as_me:$LINENO: result: before 6" >&5
11076 echo "${ECHO_T}before 6" >&6; }
11077 fi
11078 fi
11079
11080 if test "${window_system}" = "x11"; then
11081 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11082 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11083 if test "${emacs_cv_x11_version_5+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h. */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 #include <X11/Xlib.h>
11093 int
11094 main ()
11095 {
11096 #if XlibSpecificationRelease < 5
11097 fail;
11098 #endif
11099
11100 ;
11101 return 0;
11102 }
11103 _ACEOF
11104 rm -f conftest.$ac_objext conftest$ac_exeext
11105 if { (ac_try="$ac_link"
11106 case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_link") 2>conftest.er1
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } && {
11118 test -z "$ac_c_werror_flag" ||
11119 test ! -s conftest.err
11120 } && test -s conftest$ac_exeext &&
11121 $as_test_x conftest$ac_exeext; then
11122 emacs_cv_x11_version_5=yes
11123 else
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11126
11127 emacs_cv_x11_version_5=no
11128 fi
11129
11130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131 conftest$ac_exeext conftest.$ac_ext
11132 fi
11133
11134 if test $emacs_cv_x11_version_5 = yes; then
11135 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11136 echo "${ECHO_T}5 or newer" >&6; }
11137 HAVE_X11R5=yes
11138
11139 cat >>confdefs.h <<\_ACEOF
11140 #define HAVE_X11R5 1
11141 _ACEOF
11142
11143 else
11144 HAVE_X11R5=no
11145 { echo "$as_me:$LINENO: result: before 5" >&5
11146 echo "${ECHO_T}before 5" >&6; }
11147 fi
11148 fi
11149
11150 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11151 HAVE_RSVG=no
11152 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11153 if test "${with_rsvg}" != "no"; then
11154 if test "X${with_pkg_config_prog}" != X; then
11155 PKG_CONFIG="${with_pkg_config_prog}"
11156 fi
11157
11158 RSVG_REQUIRED=2.0.0
11159 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11160
11161
11162 succeeded=no
11163
11164 if test -z "$PKG_CONFIG"; then
11165 # Extract the first word of "pkg-config", so it can be a program name with args.
11166 set dummy pkg-config; ac_word=$2
11167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11169 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172 case $PKG_CONFIG in
11173 [\\/]* | ?:[\\/]*)
11174 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11175 ;;
11176 *)
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11179 do
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11184 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11186 break 2
11187 fi
11188 done
11189 done
11190 IFS=$as_save_IFS
11191
11192 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11193 ;;
11194 esac
11195 fi
11196 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11197 if test -n "$PKG_CONFIG"; then
11198 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11199 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11200 else
11201 { echo "$as_me:$LINENO: result: no" >&5
11202 echo "${ECHO_T}no" >&6; }
11203 fi
11204
11205
11206 fi
11207
11208 if test "$PKG_CONFIG" = "no" ; then
11209 :
11210 else
11211 PKG_CONFIG_MIN_VERSION=0.9.0
11212 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11213 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11214 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11215
11216 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11217 { echo "$as_me:$LINENO: result: yes" >&5
11218 echo "${ECHO_T}yes" >&6; }
11219 succeeded=yes
11220
11221 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11222 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11223 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11224 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11225 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11226
11227 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11228 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11229 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11230 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11231 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11232 else
11233 { echo "$as_me:$LINENO: result: no" >&5
11234 echo "${ECHO_T}no" >&6; }
11235 RSVG_CFLAGS=""
11236 RSVG_LIBS=""
11237 ## If we have a custom action on failure, don't print errors, but
11238 ## do set a variable so people can do so.
11239 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11240
11241 fi
11242
11243
11244
11245 else
11246 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11247 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11248 fi
11249 fi
11250
11251 if test $succeeded = yes; then
11252 :
11253 else
11254 :
11255 fi
11256
11257
11258
11259
11260 if test ".${RSVG_CFLAGS}" != "."; then
11261 HAVE_RSVG=yes
11262
11263 cat >>confdefs.h <<\_ACEOF
11264 #define HAVE_RSVG 1
11265 _ACEOF
11266
11267 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11268 LIBS="$RSVG_LIBS $LIBS"
11269 fi
11270 fi
11271 fi
11272
11273
11274 HAVE_GTK=no
11275 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11276 USE_X_TOOLKIT=none
11277 fi
11278 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11279 test "$USE_X_TOOLKIT" = "maybe"; then
11280 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11281 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11282 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11283 { (exit 1); exit 1; }; };
11284 fi
11285 GLIB_REQUIRED=2.6
11286 GTK_REQUIRED=2.6
11287 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11288
11289 if test "X${with_pkg_config_prog}" != X; then
11290 PKG_CONFIG="${with_pkg_config_prog}"
11291 fi
11292
11293 succeeded=no
11294
11295 if test -z "$PKG_CONFIG"; then
11296 # Extract the first word of "pkg-config", so it can be a program name with args.
11297 set dummy pkg-config; ac_word=$2
11298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303 case $PKG_CONFIG in
11304 [\\/]* | ?:[\\/]*)
11305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11306 ;;
11307 *)
11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11310 do
11311 IFS=$as_save_IFS
11312 test -z "$as_dir" && as_dir=.
11313 for ac_exec_ext in '' $ac_executable_extensions; do
11314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 break 2
11318 fi
11319 done
11320 done
11321 IFS=$as_save_IFS
11322
11323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11324 ;;
11325 esac
11326 fi
11327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11328 if test -n "$PKG_CONFIG"; then
11329 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11330 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11331 else
11332 { echo "$as_me:$LINENO: result: no" >&5
11333 echo "${ECHO_T}no" >&6; }
11334 fi
11335
11336
11337 fi
11338
11339 if test "$PKG_CONFIG" = "no" ; then
11340 pkg_check_gtk=no
11341 else
11342 PKG_CONFIG_MIN_VERSION=0.9.0
11343 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11344 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11345 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11346
11347 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11348 { echo "$as_me:$LINENO: result: yes" >&5
11349 echo "${ECHO_T}yes" >&6; }
11350 succeeded=yes
11351
11352 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11353 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11354 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11355 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11356 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11357
11358 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11359 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11360 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11361 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11362 echo "${ECHO_T}$GTK_LIBS" >&6; }
11363 else
11364 { echo "$as_me:$LINENO: result: no" >&5
11365 echo "${ECHO_T}no" >&6; }
11366 GTK_CFLAGS=""
11367 GTK_LIBS=""
11368 ## If we have a custom action on failure, don't print errors, but
11369 ## do set a variable so people can do so.
11370 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11371
11372 fi
11373
11374
11375
11376 else
11377 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11378 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11379 fi
11380 fi
11381
11382 if test $succeeded = yes; then
11383 pkg_check_gtk=yes
11384 else
11385 pkg_check_gtk=no
11386 fi
11387
11388 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11389 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11390 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11391 { (exit 1); exit 1; }; }
11392 fi
11393 fi
11394
11395
11396 if test x"$pkg_check_gtk" = xyes; then
11397
11398
11399
11400 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11401 CFLAGS="$CFLAGS $GTK_CFLAGS"
11402 LIBS="$GTK_LIBS $LIBS"
11403 GTK_COMPILES=no
11404
11405 for ac_func in gtk_main
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 GTK_COMPILES=yes
11495 fi
11496 done
11497
11498 if test "${GTK_COMPILES}" != "yes"; then
11499 if test "$USE_X_TOOLKIT" != "maybe"; then
11500 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11501 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11502 { (exit 1); exit 1; }; };
11503 fi
11504 else
11505 HAVE_GTK=yes
11506
11507 cat >>confdefs.h <<\_ACEOF
11508 #define HAVE_GTK 1
11509 _ACEOF
11510
11511 USE_X_TOOLKIT=none
11512 fi
11513
11514 fi
11515
11516
11517 if test "${HAVE_GTK}" = "yes"; then
11518
11519 if test "$with_toolkit_scroll_bars" != no; then
11520 with_toolkit_scroll_bars=yes
11521 fi
11522
11523 HAVE_GTK_MULTIDISPLAY=no
11524
11525 for ac_func in gdk_display_open
11526 do
11527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11541 #define $ac_func innocuous_$ac_func
11542
11543 /* System header to define __stub macros and hopefully few prototypes,
11544 which can conflict with char $ac_func (); below.
11545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11546 <limits.h> exists even on freestanding compilers. */
11547
11548 #ifdef __STDC__
11549 # include <limits.h>
11550 #else
11551 # include <assert.h>
11552 #endif
11553
11554 #undef $ac_func
11555
11556 /* Override any GCC internal prototype to avoid an error.
11557 Use char because int might match the return type of a GCC
11558 builtin and then its argument prototype would still apply. */
11559 #ifdef __cplusplus
11560 extern "C"
11561 #endif
11562 char $ac_func ();
11563 /* The GNU C library defines this for functions which it implements
11564 to always fail with ENOSYS. Some functions are actually named
11565 something starting with __ and the normal name is an alias. */
11566 #if defined __stub_$ac_func || defined __stub___$ac_func
11567 choke me
11568 #endif
11569
11570 int
11571 main ()
11572 {
11573 return $ac_func ();
11574 ;
11575 return 0;
11576 }
11577 _ACEOF
11578 rm -f conftest.$ac_objext conftest$ac_exeext
11579 if { (ac_try="$ac_link"
11580 case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583 esac
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_link") 2>conftest.er1
11586 ac_status=$?
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } && {
11592 test -z "$ac_c_werror_flag" ||
11593 test ! -s conftest.err
11594 } && test -s conftest$ac_exeext &&
11595 $as_test_x conftest$ac_exeext; then
11596 eval "$as_ac_var=yes"
11597 else
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11600
11601 eval "$as_ac_var=no"
11602 fi
11603
11604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11605 conftest$ac_exeext conftest.$ac_ext
11606 fi
11607 ac_res=`eval echo '${'$as_ac_var'}'`
11608 { echo "$as_me:$LINENO: result: $ac_res" >&5
11609 echo "${ECHO_T}$ac_res" >&6; }
11610 if test `eval echo '${'$as_ac_var'}'` = yes; then
11611 cat >>confdefs.h <<_ACEOF
11612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11613 _ACEOF
11614 HAVE_GTK_MULTIDISPLAY=yes
11615 fi
11616 done
11617
11618 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11619
11620 cat >>confdefs.h <<\_ACEOF
11621 #define HAVE_GTK_MULTIDISPLAY 1
11622 _ACEOF
11623
11624 fi
11625
11626 HAVE_GTK_FILE_SELECTION=no
11627
11628 for ac_func in gtk_file_selection_new
11629 do
11630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11644 #define $ac_func innocuous_$ac_func
11645
11646 /* System header to define __stub macros and hopefully few prototypes,
11647 which can conflict with char $ac_func (); below.
11648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649 <limits.h> exists even on freestanding compilers. */
11650
11651 #ifdef __STDC__
11652 # include <limits.h>
11653 #else
11654 # include <assert.h>
11655 #endif
11656
11657 #undef $ac_func
11658
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char $ac_func ();
11666 /* The GNU C library defines this for functions which it implements
11667 to always fail with ENOSYS. Some functions are actually named
11668 something starting with __ and the normal name is an alias. */
11669 #if defined __stub_$ac_func || defined __stub___$ac_func
11670 choke me
11671 #endif
11672
11673 int
11674 main ()
11675 {
11676 return $ac_func ();
11677 ;
11678 return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686 esac
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_link") 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest$ac_exeext &&
11698 $as_test_x conftest$ac_exeext; then
11699 eval "$as_ac_var=yes"
11700 else
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11703
11704 eval "$as_ac_var=no"
11705 fi
11706
11707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11708 conftest$ac_exeext conftest.$ac_ext
11709 fi
11710 ac_res=`eval echo '${'$as_ac_var'}'`
11711 { echo "$as_me:$LINENO: result: $ac_res" >&5
11712 echo "${ECHO_T}$ac_res" >&6; }
11713 if test `eval echo '${'$as_ac_var'}'` = yes; then
11714 cat >>confdefs.h <<_ACEOF
11715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11716 _ACEOF
11717 HAVE_GTK_FILE_SELECTION=yes
11718 fi
11719 done
11720
11721
11722 HAVE_GTK_FILE_CHOOSER=no
11723
11724 for ac_func in gtk_file_chooser_dialog_new
11725 do
11726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732 cat >conftest.$ac_ext <<_ACEOF
11733 /* confdefs.h. */
11734 _ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11740 #define $ac_func innocuous_$ac_func
11741
11742 /* System header to define __stub macros and hopefully few prototypes,
11743 which can conflict with char $ac_func (); below.
11744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11745 <limits.h> exists even on freestanding compilers. */
11746
11747 #ifdef __STDC__
11748 # include <limits.h>
11749 #else
11750 # include <assert.h>
11751 #endif
11752
11753 #undef $ac_func
11754
11755 /* Override any GCC internal prototype to avoid an error.
11756 Use char because int might match the return type of a GCC
11757 builtin and then its argument prototype would still apply. */
11758 #ifdef __cplusplus
11759 extern "C"
11760 #endif
11761 char $ac_func ();
11762 /* The GNU C library defines this for functions which it implements
11763 to always fail with ENOSYS. Some functions are actually named
11764 something starting with __ and the normal name is an alias. */
11765 #if defined __stub_$ac_func || defined __stub___$ac_func
11766 choke me
11767 #endif
11768
11769 int
11770 main ()
11771 {
11772 return $ac_func ();
11773 ;
11774 return 0;
11775 }
11776 _ACEOF
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (ac_try="$ac_link"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_link") 2>conftest.er1
11785 ac_status=$?
11786 grep -v '^ *+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest$ac_exeext &&
11794 $as_test_x conftest$ac_exeext; then
11795 eval "$as_ac_var=yes"
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 eval "$as_ac_var=no"
11801 fi
11802
11803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11804 conftest$ac_exeext conftest.$ac_ext
11805 fi
11806 ac_res=`eval echo '${'$as_ac_var'}'`
11807 { echo "$as_me:$LINENO: result: $ac_res" >&5
11808 echo "${ECHO_T}$ac_res" >&6; }
11809 if test `eval echo '${'$as_ac_var'}'` = yes; then
11810 cat >>confdefs.h <<_ACEOF
11811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11812 _ACEOF
11813 HAVE_GTK_FILE_CHOOSER=yes
11814 fi
11815 done
11816
11817
11818 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11819 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11820
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_GTK_FILE_BOTH 1
11823 _ACEOF
11824
11825 fi
11826
11827 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11828 HAVE_GTK_AND_PTHREAD=no
11829
11830 for ac_header in pthread.h
11831 do
11832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 fi
11839 ac_res=`eval echo '${'$as_ac_Header'}'`
11840 { echo "$as_me:$LINENO: result: $ac_res" >&5
11841 echo "${ECHO_T}$ac_res" >&6; }
11842 else
11843 # Is the header compilable?
11844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h. */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 $ac_includes_default
11853 #include <$ac_header>
11854 _ACEOF
11855 rm -f conftest.$ac_objext
11856 if { (ac_try="$ac_compile"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860 esac
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_compile") 2>conftest.er1
11863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } && {
11869 test -z "$ac_c_werror_flag" ||
11870 test ! -s conftest.err
11871 } && test -s conftest.$ac_objext; then
11872 ac_header_compiler=yes
11873 else
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877 ac_header_compiler=no
11878 fi
11879
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11882 echo "${ECHO_T}$ac_header_compiler" >&6; }
11883
11884 # Is the header present?
11885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11887 cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h. */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 #include <$ac_header>
11894 _ACEOF
11895 if { (ac_try="$ac_cpp conftest.$ac_ext"
11896 case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11899 esac
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } >/dev/null && {
11908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11909 test ! -s conftest.err
11910 }; then
11911 ac_header_preproc=yes
11912 else
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 ac_header_preproc=no
11917 fi
11918
11919 rm -f conftest.err conftest.$ac_ext
11920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11921 echo "${ECHO_T}$ac_header_preproc" >&6; }
11922
11923 # So? What about this header?
11924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11925 yes:no: )
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11930 ac_header_preproc=yes
11931 ;;
11932 no:yes:* )
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11945
11946 ;;
11947 esac
11948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953 eval "$as_ac_Header=\$ac_header_preproc"
11954 fi
11955 ac_res=`eval echo '${'$as_ac_Header'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957 echo "${ECHO_T}$ac_res" >&6; }
11958
11959 fi
11960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11961 cat >>confdefs.h <<_ACEOF
11962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11963 _ACEOF
11964
11965 fi
11966
11967 done
11968
11969 if test "$ac_cv_header_pthread_h"; then
11970 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11971 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11972 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975 ac_check_lib_save_LIBS=$LIBS
11976 LIBS="-lpthread $LIBS"
11977 cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h. */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983
11984 /* Override any GCC internal prototype to avoid an error.
11985 Use char because int might match the return type of a GCC
11986 builtin and then its argument prototype would still apply. */
11987 #ifdef __cplusplus
11988 extern "C"
11989 #endif
11990 char pthread_self ();
11991 int
11992 main ()
11993 {
11994 return pthread_self ();
11995 ;
11996 return 0;
11997 }
11998 _ACEOF
11999 rm -f conftest.$ac_objext conftest$ac_exeext
12000 if { (ac_try="$ac_link"
12001 case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12004 esac
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_link") 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } && {
12013 test -z "$ac_c_werror_flag" ||
12014 test ! -s conftest.err
12015 } && test -s conftest$ac_exeext &&
12016 $as_test_x conftest$ac_exeext; then
12017 ac_cv_lib_pthread_pthread_self=yes
12018 else
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12021
12022 ac_cv_lib_pthread_pthread_self=no
12023 fi
12024
12025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12026 conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12028 fi
12029 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12030 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12031 if test $ac_cv_lib_pthread_pthread_self = yes; then
12032 HAVE_GTK_AND_PTHREAD=yes
12033 fi
12034
12035 fi
12036 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12037 GTK_LIBS="$GTK_LIBS -lpthread"
12038
12039 cat >>confdefs.h <<\_ACEOF
12040 #define HAVE_GTK_AND_PTHREAD 1
12041 _ACEOF
12042
12043 fi
12044 fi
12045 fi
12046
12047 ### Link with -lXft if available to work around a bug.
12048 HAVE_XFT=maybe
12049 if test "${HAVE_GTK}" = "yes"; then
12050 if test "X${with_pkg_config_prog}" != X; then
12051 PKG_CONFIG="${with_pkg_config_prog}"
12052 fi
12053
12054
12055 succeeded=no
12056
12057 if test -z "$PKG_CONFIG"; then
12058 # Extract the first word of "pkg-config", so it can be a program name with args.
12059 set dummy pkg-config; ac_word=$2
12060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12062 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065 case $PKG_CONFIG in
12066 [\\/]* | ?:[\\/]*)
12067 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12068 ;;
12069 *)
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12072 do
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12077 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 break 2
12080 fi
12081 done
12082 done
12083 IFS=$as_save_IFS
12084
12085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12086 ;;
12087 esac
12088 fi
12089 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12090 if test -n "$PKG_CONFIG"; then
12091 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12092 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12093 else
12094 { echo "$as_me:$LINENO: result: no" >&5
12095 echo "${ECHO_T}no" >&6; }
12096 fi
12097
12098
12099 fi
12100
12101 if test "$PKG_CONFIG" = "no" ; then
12102 HAVE_XFT=no
12103 else
12104 PKG_CONFIG_MIN_VERSION=0.9.0
12105 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12106 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12107 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12108
12109 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12110 { echo "$as_me:$LINENO: result: yes" >&5
12111 echo "${ECHO_T}yes" >&6; }
12112 succeeded=yes
12113
12114 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12115 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12116 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12117 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12118 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12119
12120 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12121 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12122 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12123 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12124 echo "${ECHO_T}$XFT_LIBS" >&6; }
12125 else
12126 { echo "$as_me:$LINENO: result: no" >&5
12127 echo "${ECHO_T}no" >&6; }
12128 XFT_CFLAGS=""
12129 XFT_LIBS=""
12130 ## If we have a custom action on failure, don't print errors, but
12131 ## do set a variable so people can do so.
12132 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12133
12134 fi
12135
12136
12137
12138 else
12139 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12140 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12141 fi
12142 fi
12143
12144 if test $succeeded = yes; then
12145 :
12146 else
12147 HAVE_XFT=no
12148 fi
12149
12150 if test "$HAVE_XFT" != no; then
12151 OLD_CFLAGS="$CPPFLAGS"
12152 OLD_CPPFLAGS="$CFLAGS"
12153 OLD_LIBS="$LIBS"
12154 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12155 CFLAGS="$CFLAGS $XFT_CFLAGS"
12156 LIBS="$XFT_LIBS $LIBS"
12157 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12158 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12159 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12160 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 fi
12163 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12164 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12165 else
12166 # Is the header compilable?
12167 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12168 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 $ac_includes_default
12176 #include <X11/Xft/Xft.h>
12177 _ACEOF
12178 rm -f conftest.$ac_objext
12179 if { (ac_try="$ac_compile"
12180 case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12183 esac
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_compile") 2>conftest.er1
12186 ac_status=$?
12187 grep -v '^ *+' conftest.er1 >conftest.err
12188 rm -f conftest.er1
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest.$ac_objext; then
12195 ac_header_compiler=yes
12196 else
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12199
12200 ac_header_compiler=no
12201 fi
12202
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12205 echo "${ECHO_T}$ac_header_compiler" >&6; }
12206
12207 # Is the header present?
12208 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12209 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 #include <X11/Xft/Xft.h>
12217 _ACEOF
12218 if { (ac_try="$ac_cpp conftest.$ac_ext"
12219 case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } >/dev/null && {
12231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 }; then
12234 ac_header_preproc=yes
12235 else
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_header_preproc=no
12240 fi
12241
12242 rm -f conftest.err conftest.$ac_ext
12243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12244 echo "${ECHO_T}$ac_header_preproc" >&6; }
12245
12246 # So? What about this header?
12247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12248 yes:no: )
12249 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12250 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12252 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12253 ac_header_preproc=yes
12254 ;;
12255 no:yes:* )
12256 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12257 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12259 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12261 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12262 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12263 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12264 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12265 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12267 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12268
12269 ;;
12270 esac
12271 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12272 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12273 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12276 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12277 fi
12278 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12279 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12280
12281 fi
12282 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12283 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12284 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12285 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288 ac_check_lib_save_LIBS=$LIBS
12289 LIBS="-lXft $XFT_LIBS $LIBS"
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296
12297 /* Override any GCC internal prototype to avoid an error.
12298 Use char because int might match the return type of a GCC
12299 builtin and then its argument prototype would still apply. */
12300 #ifdef __cplusplus
12301 extern "C"
12302 #endif
12303 char XftFontOpen ();
12304 int
12305 main ()
12306 {
12307 return XftFontOpen ();
12308 ;
12309 return 0;
12310 }
12311 _ACEOF
12312 rm -f conftest.$ac_objext conftest$ac_exeext
12313 if { (ac_try="$ac_link"
12314 case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12317 esac
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_link") 2>conftest.er1
12320 ac_status=$?
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } && {
12326 test -z "$ac_c_werror_flag" ||
12327 test ! -s conftest.err
12328 } && test -s conftest$ac_exeext &&
12329 $as_test_x conftest$ac_exeext; then
12330 ac_cv_lib_Xft_XftFontOpen=yes
12331 else
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12334
12335 ac_cv_lib_Xft_XftFontOpen=no
12336 fi
12337
12338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12339 conftest$ac_exeext conftest.$ac_ext
12340 LIBS=$ac_check_lib_save_LIBS
12341 fi
12342 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12343 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12344 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12345 HAVE_XFT=yes
12346 fi
12347
12348 fi
12349
12350
12351
12352 if test "${HAVE_XFT}" = "yes"; then
12353
12354 cat >>confdefs.h <<\_ACEOF
12355 #define HAVE_XFT 1
12356 _ACEOF
12357
12358
12359 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12360 else
12361 CFLAGS="$OLD_CPPFLAGS"
12362 CFLAGS="$OLD_CFLAGS"
12363 LIBS="$OLD_LIBS"
12364 fi
12365 fi
12366 fi
12367
12368 HAVE_XAW3D=no
12369 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12370 if test x"${HAVE_X11R5}" != xyes; then
12371 USE_X_TOOLKIT=none
12372 else
12373 if test "$with_xaw3d" != no; then
12374 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12375 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12376 if test "${emacs_cv_xaw3d+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379 cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h. */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385
12386 #include <X11/Intrinsic.h>
12387 #include <X11/Xaw3d/Simple.h>
12388 int
12389 main ()
12390 {
12391
12392 ;
12393 return 0;
12394 }
12395 _ACEOF
12396 rm -f conftest.$ac_objext conftest$ac_exeext
12397 if { (ac_try="$ac_link"
12398 case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12401 esac
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_link") 2>conftest.er1
12404 ac_status=$?
12405 grep -v '^ *+' conftest.er1 >conftest.err
12406 rm -f conftest.er1
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest$ac_exeext &&
12413 $as_test_x conftest$ac_exeext; then
12414 emacs_cv_xaw3d=yes
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 emacs_cv_xaw3d=no
12420 fi
12421
12422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12423 conftest$ac_exeext conftest.$ac_ext
12424 fi
12425
12426 else
12427 emacs_cv_xaw3d=no
12428 fi
12429 if test $emacs_cv_xaw3d = yes; then
12430 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12431 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12432 USE_X_TOOLKIT=LUCID
12433 HAVE_XAW3D=yes
12434
12435 cat >>confdefs.h <<\_ACEOF
12436 #define HAVE_XAW3D 1
12437 _ACEOF
12438
12439 else
12440 { echo "$as_me:$LINENO: result: no" >&5
12441 echo "${ECHO_T}no" >&6; }
12442 { echo "$as_me:$LINENO: checking for libXaw" >&5
12443 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12444 if test "${emacs_cv_xaw+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 else
12447 cat >conftest.$ac_ext <<_ACEOF
12448 /* confdefs.h. */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453
12454 #include <X11/Intrinsic.h>
12455 #include <X11/Xaw/Simple.h>
12456 int
12457 main ()
12458 {
12459
12460 ;
12461 return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (ac_try="$ac_link"
12466 case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12469 esac
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_link") 2>conftest.er1
12472 ac_status=$?
12473 grep -v '^ *+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } && {
12478 test -z "$ac_c_werror_flag" ||
12479 test ! -s conftest.err
12480 } && test -s conftest$ac_exeext &&
12481 $as_test_x conftest$ac_exeext; then
12482 emacs_cv_xaw=yes
12483 else
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 emacs_cv_xaw=no
12488 fi
12489
12490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12491 conftest$ac_exeext conftest.$ac_ext
12492 fi
12493
12494 if test $emacs_cv_xaw = yes; then
12495 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12496 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12497 USE_X_TOOLKIT=LUCID
12498 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12499 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12500 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12501 { (exit 1); exit 1; }; }
12502 else
12503 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12504 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12505 USE_X_TOOLKIT=none
12506 fi
12507 fi
12508 fi
12509 fi
12510
12511 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12512
12513 if test "${USE_X_TOOLKIT}" != "none"; then
12514 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12515 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12516 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h. */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 #include <X11/Intrinsic.h>
12526 int
12527 main ()
12528 {
12529 #if XtSpecificationRelease < 6
12530 fail;
12531 #endif
12532
12533 ;
12534 return 0;
12535 }
12536 _ACEOF
12537 rm -f conftest.$ac_objext conftest$ac_exeext
12538 if { (ac_try="$ac_link"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_link") 2>conftest.er1
12545 ac_status=$?
12546 grep -v '^ *+' conftest.er1 >conftest.err
12547 rm -f conftest.er1
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } && {
12551 test -z "$ac_c_werror_flag" ||
12552 test ! -s conftest.err
12553 } && test -s conftest$ac_exeext &&
12554 $as_test_x conftest$ac_exeext; then
12555 emacs_cv_x11_toolkit_version_6=yes
12556 else
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12559
12560 emacs_cv_x11_toolkit_version_6=no
12561 fi
12562
12563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12564 conftest$ac_exeext conftest.$ac_ext
12565 fi
12566
12567 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12568 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12569 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12570 echo "${ECHO_T}6 or newer" >&6; }
12571
12572 cat >>confdefs.h <<\_ACEOF
12573 #define HAVE_X11XTR6 1
12574 _ACEOF
12575
12576 else
12577 { echo "$as_me:$LINENO: result: before 6" >&5
12578 echo "${ECHO_T}before 6" >&6; }
12579 fi
12580
12581 OLDLIBS="$LIBS"
12582 if test x$HAVE_X11XTR6 = xyes; then
12583 LIBS="-lXt -lSM -lICE $LIBS"
12584 else
12585 LIBS="-lXt $LIBS"
12586 fi
12587
12588 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12589 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12590 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593 ac_check_lib_save_LIBS=$LIBS
12594 LIBS="-lXmu $LIBS"
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601
12602 /* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12605 #ifdef __cplusplus
12606 extern "C"
12607 #endif
12608 char XmuConvertStandardSelection ();
12609 int
12610 main ()
12611 {
12612 return XmuConvertStandardSelection ();
12613 ;
12614 return 0;
12615 }
12616 _ACEOF
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12622 esac
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_link") 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } && {
12631 test -z "$ac_c_werror_flag" ||
12632 test ! -s conftest.err
12633 } && test -s conftest$ac_exeext &&
12634 $as_test_x conftest$ac_exeext; then
12635 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12636 else
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12641 fi
12642
12643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12644 conftest$ac_exeext conftest.$ac_ext
12645 LIBS=$ac_check_lib_save_LIBS
12646 fi
12647 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12648 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12649 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12650 cat >>confdefs.h <<_ACEOF
12651 #define HAVE_LIBXMU 1
12652 _ACEOF
12653
12654 LIBS="-lXmu $LIBS"
12655
12656 fi
12657
12658 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12659 fi
12660
12661 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12662 if test "${HAVE_X11}" = "yes"; then
12663 if test "${USE_X_TOOLKIT}" != "none"; then
12664
12665 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12666 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12667 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 else
12670 ac_check_lib_save_LIBS=$LIBS
12671 LIBS="-lXext $LIBS"
12672 cat >conftest.$ac_ext <<_ACEOF
12673 /* confdefs.h. */
12674 _ACEOF
12675 cat confdefs.h >>conftest.$ac_ext
12676 cat >>conftest.$ac_ext <<_ACEOF
12677 /* end confdefs.h. */
12678
12679 /* Override any GCC internal prototype to avoid an error.
12680 Use char because int might match the return type of a GCC
12681 builtin and then its argument prototype would still apply. */
12682 #ifdef __cplusplus
12683 extern "C"
12684 #endif
12685 char XShapeQueryExtension ();
12686 int
12687 main ()
12688 {
12689 return XShapeQueryExtension ();
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 rm -f conftest.$ac_objext conftest$ac_exeext
12695 if { (ac_try="$ac_link"
12696 case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12699 esac
12700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701 (eval "$ac_link") 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } && {
12708 test -z "$ac_c_werror_flag" ||
12709 test ! -s conftest.err
12710 } && test -s conftest$ac_exeext &&
12711 $as_test_x conftest$ac_exeext; then
12712 ac_cv_lib_Xext_XShapeQueryExtension=yes
12713 else
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12716
12717 ac_cv_lib_Xext_XShapeQueryExtension=no
12718 fi
12719
12720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12721 conftest$ac_exeext conftest.$ac_ext
12722 LIBS=$ac_check_lib_save_LIBS
12723 fi
12724 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12725 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12726 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12727 cat >>confdefs.h <<_ACEOF
12728 #define HAVE_LIBXEXT 1
12729 _ACEOF
12730
12731 LIBS="-lXext $LIBS"
12732
12733 fi
12734
12735 fi
12736 fi
12737
12738 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12739 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12740 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12741 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744 cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h. */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 #include <Xm/Xm.h>
12751 int
12752 main ()
12753 {
12754 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12755 int x = 5;
12756 #else
12757 Motif version prior to 2.1.
12758 #endif
12759 ;
12760 return 0;
12761 }
12762 _ACEOF
12763 rm -f conftest.$ac_objext
12764 if { (ac_try="$ac_compile"
12765 case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12768 esac
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_compile") 2>conftest.er1
12771 ac_status=$?
12772 grep -v '^ *+' conftest.er1 >conftest.err
12773 rm -f conftest.er1
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } && {
12777 test -z "$ac_c_werror_flag" ||
12778 test ! -s conftest.err
12779 } && test -s conftest.$ac_objext; then
12780 emacs_cv_motif_version_2_1=yes
12781 else
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12784
12785 emacs_cv_motif_version_2_1=no
12786 fi
12787
12788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789 fi
12790 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12791 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12792 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12793 if test $emacs_cv_motif_version_2_1 = yes; then
12794 HAVE_LIBXP=no
12795
12796 cat >>confdefs.h <<\_ACEOF
12797 #define HAVE_MOTIF_2_1 1
12798 _ACEOF
12799
12800 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12801 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12802 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805 ac_check_lib_save_LIBS=$LIBS
12806 LIBS="-lXp $LIBS"
12807 cat >conftest.$ac_ext <<_ACEOF
12808 /* confdefs.h. */
12809 _ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12813
12814 /* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 char XpCreateContext ();
12821 int
12822 main ()
12823 {
12824 return XpCreateContext ();
12825 ;
12826 return 0;
12827 }
12828 _ACEOF
12829 rm -f conftest.$ac_objext conftest$ac_exeext
12830 if { (ac_try="$ac_link"
12831 case "(($ac_try" in
12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12834 esac
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836 (eval "$ac_link") 2>conftest.er1
12837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } && {
12843 test -z "$ac_c_werror_flag" ||
12844 test ! -s conftest.err
12845 } && test -s conftest$ac_exeext &&
12846 $as_test_x conftest$ac_exeext; then
12847 ac_cv_lib_Xp_XpCreateContext=yes
12848 else
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12851
12852 ac_cv_lib_Xp_XpCreateContext=no
12853 fi
12854
12855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12856 conftest$ac_exeext conftest.$ac_ext
12857 LIBS=$ac_check_lib_save_LIBS
12858 fi
12859 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12860 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12861 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12862 HAVE_LIBXP=yes
12863 fi
12864
12865 if test ${HAVE_LIBXP} = yes; then
12866
12867 cat >>confdefs.h <<\_ACEOF
12868 #define HAVE_LIBXP 1
12869 _ACEOF
12870
12871 fi
12872 else
12873 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12874 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12875 if test "${emacs_cv_lesstif+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 else
12878 # We put this in CFLAGS temporarily to precede other -I options
12879 # that might be in CFLAGS temporarily.
12880 # We put this in CPPFLAGS where it precedes the other -I options.
12881 OLD_CPPFLAGS=$CPPFLAGS
12882 OLD_CFLAGS=$CFLAGS
12883 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12884 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12885 cat >conftest.$ac_ext <<_ACEOF
12886 /* confdefs.h. */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12891 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12892 int
12893 main ()
12894 {
12895 int x = 5;
12896 ;
12897 return 0;
12898 }
12899 _ACEOF
12900 rm -f conftest.$ac_objext
12901 if { (ac_try="$ac_compile"
12902 case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_compile") 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest.$ac_objext; then
12917 emacs_cv_lesstif=yes
12918 else
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12921
12922 emacs_cv_lesstif=no
12923 fi
12924
12925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12926 fi
12927 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12928 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12929 if test $emacs_cv_lesstif = yes; then
12930 # Make sure this -I option remains in CPPFLAGS after it is set
12931 # back to REAL_CPPFLAGS.
12932 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12933 # have those other -I options anyway. Ultimately, having this
12934 # directory ultimately in CPPFLAGS will be enough.
12935 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12936 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12937 else
12938 CFLAGS=$OLD_CFLAGS
12939 CPPFLAGS=$OLD_CPPFLAGS
12940 fi
12941 fi
12942 fi
12943
12944
12945
12946 USE_TOOLKIT_SCROLL_BARS=no
12947 if test "${with_toolkit_scroll_bars}" != "no"; then
12948 if test "${USE_X_TOOLKIT}" != "none"; then
12949 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12950 cat >>confdefs.h <<\_ACEOF
12951 #define USE_TOOLKIT_SCROLL_BARS 1
12952 _ACEOF
12953
12954 HAVE_XAW3D=no
12955 USE_TOOLKIT_SCROLL_BARS=yes
12956 elif test "${HAVE_XAW3D}" = "yes"; then
12957 cat >>confdefs.h <<\_ACEOF
12958 #define USE_TOOLKIT_SCROLL_BARS 1
12959 _ACEOF
12960
12961 USE_TOOLKIT_SCROLL_BARS=yes
12962 fi
12963 elif test "${HAVE_GTK}" = "yes"; then
12964 cat >>confdefs.h <<\_ACEOF
12965 #define USE_TOOLKIT_SCROLL_BARS 1
12966 _ACEOF
12967
12968 USE_TOOLKIT_SCROLL_BARS=yes
12969 elif test "${HAVE_CARBON}" = "yes"; then
12970 cat >>confdefs.h <<\_ACEOF
12971 #define USE_TOOLKIT_SCROLL_BARS 1
12972 _ACEOF
12973
12974 USE_TOOLKIT_SCROLL_BARS=yes
12975 fi
12976 fi
12977
12978 cat >conftest.$ac_ext <<_ACEOF
12979 /* confdefs.h. */
12980 _ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12984
12985 #include <X11/Xlib.h>
12986 #include <X11/Xresource.h>
12987 int
12988 main ()
12989 {
12990 XIMProc callback;
12991 ;
12992 return 0;
12993 }
12994 _ACEOF
12995 rm -f conftest.$ac_objext
12996 if { (ac_try="$ac_compile"
12997 case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_compile") 2>conftest.er1
13003 ac_status=$?
13004 grep -v '^ *+' conftest.er1 >conftest.err
13005 rm -f conftest.er1
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } && {
13009 test -z "$ac_c_werror_flag" ||
13010 test ! -s conftest.err
13011 } && test -s conftest.$ac_objext; then
13012 HAVE_XIM=yes
13013
13014 cat >>confdefs.h <<\_ACEOF
13015 #define HAVE_XIM 1
13016 _ACEOF
13017
13018 else
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13021
13022 HAVE_XIM=no
13023 fi
13024
13025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13026
13027
13028 if test "${with_xim}" != "no"; then
13029
13030 cat >>confdefs.h <<\_ACEOF
13031 #define USE_XIM 1
13032 _ACEOF
13033
13034 fi
13035
13036
13037 if test "${HAVE_XIM}" != "no"; then
13038 late_CFLAGS=$CFLAGS
13039 if test "$GCC" = yes; then
13040 CFLAGS="$CFLAGS --pedantic-errors"
13041 fi
13042 cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h. */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13048
13049 #include <X11/Xlib.h>
13050 #include <X11/Xresource.h>
13051 int
13052 main ()
13053 {
13054 Display *display;
13055 XrmDatabase db;
13056 char *res_name;
13057 char *res_class;
13058 XIMProc callback;
13059 XPointer *client_data;
13060 #ifndef __GNUC__
13061 /* If we're not using GCC, it's probably not XFree86, and this is
13062 probably right, but we can't use something like --pedantic-errors. */
13063 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13064 char*, XIMProc, XPointer*);
13065 #endif
13066 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13067 client_data);
13068 ;
13069 return 0;
13070 }
13071 _ACEOF
13072 rm -f conftest.$ac_objext
13073 if { (ac_try="$ac_compile"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_compile") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } && {
13086 test -z "$ac_c_werror_flag" ||
13087 test ! -s conftest.err
13088 } && test -s conftest.$ac_objext; then
13089 emacs_cv_arg6_star=yes
13090 else
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094
13095 fi
13096
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098
13099 if test "$emacs_cv_arg6_star" = yes; then
13100 cat >>confdefs.h <<\_ACEOF
13101 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13102 _ACEOF
13103
13104 else
13105 cat >>confdefs.h <<\_ACEOF
13106 #define XRegisterIMInstantiateCallback_arg6 XPointer
13107 _ACEOF
13108
13109 fi
13110 CFLAGS=$late_CFLAGS
13111 fi
13112
13113 ### Use -lXpm if available, unless `--with-xpm=no'.
13114 HAVE_XPM=no
13115 if test "${HAVE_X11}" = "yes"; then
13116 if test "${with_xpm}" != "no"; then
13117 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13118 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13119 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13120 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 fi
13123 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13124 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13125 else
13126 # Is the header compilable?
13127 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13128 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13129 cat >conftest.$ac_ext <<_ACEOF
13130 /* confdefs.h. */
13131 _ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13135 $ac_includes_default
13136 #include <X11/xpm.h>
13137 _ACEOF
13138 rm -f conftest.$ac_objext
13139 if { (ac_try="$ac_compile"
13140 case "(($ac_try" in
13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13143 esac
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145 (eval "$ac_compile") 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } && {
13152 test -z "$ac_c_werror_flag" ||
13153 test ! -s conftest.err
13154 } && test -s conftest.$ac_objext; then
13155 ac_header_compiler=yes
13156 else
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13159
13160 ac_header_compiler=no
13161 fi
13162
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13165 echo "${ECHO_T}$ac_header_compiler" >&6; }
13166
13167 # Is the header present?
13168 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13169 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13170 cat >conftest.$ac_ext <<_ACEOF
13171 /* confdefs.h. */
13172 _ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13176 #include <X11/xpm.h>
13177 _ACEOF
13178 if { (ac_try="$ac_cpp conftest.$ac_ext"
13179 case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } >/dev/null && {
13191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13192 test ! -s conftest.err
13193 }; then
13194 ac_header_preproc=yes
13195 else
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199 ac_header_preproc=no
13200 fi
13201
13202 rm -f conftest.err conftest.$ac_ext
13203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13204 echo "${ECHO_T}$ac_header_preproc" >&6; }
13205
13206 # So? What about this header?
13207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13208 yes:no: )
13209 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13210 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13212 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13213 ac_header_preproc=yes
13214 ;;
13215 no:yes:* )
13216 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13217 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13219 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13220 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13221 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13222 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13223 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13225 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13227 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13228
13229 ;;
13230 esac
13231 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13232 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13233 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236 ac_cv_header_X11_xpm_h=$ac_header_preproc
13237 fi
13238 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13239 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13240
13241 fi
13242 if test $ac_cv_header_X11_xpm_h = yes; then
13243 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13244 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13245 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13248 ac_check_lib_save_LIBS=$LIBS
13249 LIBS="-lXpm -lX11 $LIBS"
13250 cat >conftest.$ac_ext <<_ACEOF
13251 /* confdefs.h. */
13252 _ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256
13257 /* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply. */
13260 #ifdef __cplusplus
13261 extern "C"
13262 #endif
13263 char XpmReadFileToPixmap ();
13264 int
13265 main ()
13266 {
13267 return XpmReadFileToPixmap ();
13268 ;
13269 return 0;
13270 }
13271 _ACEOF
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (ac_try="$ac_link"
13274 case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13277 esac
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_link") 2>conftest.er1
13280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } && {
13286 test -z "$ac_c_werror_flag" ||
13287 test ! -s conftest.err
13288 } && test -s conftest$ac_exeext &&
13289 $as_test_x conftest$ac_exeext; then
13290 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13291 else
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13294
13295 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13296 fi
13297
13298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13299 conftest$ac_exeext conftest.$ac_ext
13300 LIBS=$ac_check_lib_save_LIBS
13301 fi
13302 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13303 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13304 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13305 HAVE_XPM=yes
13306 fi
13307
13308 fi
13309
13310
13311 if test "${HAVE_XPM}" = "yes"; then
13312 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13313 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13314 cat >conftest.$ac_ext <<_ACEOF
13315 /* confdefs.h. */
13316 _ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13320 #include "X11/xpm.h"
13321 #ifndef XpmReturnAllocPixels
13322 no_return_alloc_pixels
13323 #endif
13324
13325 _ACEOF
13326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13327 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13328 HAVE_XPM=no
13329 else
13330 HAVE_XPM=yes
13331 fi
13332 rm -f conftest*
13333
13334
13335 if test "${HAVE_XPM}" = "yes"; then
13336 { echo "$as_me:$LINENO: result: yes" >&5
13337 echo "${ECHO_T}yes" >&6; }
13338 else
13339 { echo "$as_me:$LINENO: result: no" >&5
13340 echo "${ECHO_T}no" >&6; }
13341 fi
13342 fi
13343 fi
13344
13345 if test "${HAVE_XPM}" = "yes"; then
13346
13347 cat >>confdefs.h <<\_ACEOF
13348 #define HAVE_XPM 1
13349 _ACEOF
13350
13351 fi
13352 fi
13353
13354 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13355 HAVE_JPEG=no
13356 if test "${HAVE_X11}" = "yes"; then
13357 if test "${with_jpeg}" != "no"; then
13358 if test "${ac_cv_header_jerror_h+set}" = set; then
13359 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13360 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13361 if test "${ac_cv_header_jerror_h+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 fi
13364 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13365 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13366 else
13367 # Is the header compilable?
13368 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13369 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h. */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 $ac_includes_default
13377 #include <jerror.h>
13378 _ACEOF
13379 rm -f conftest.$ac_objext
13380 if { (ac_try="$ac_compile"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_compile") 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } && {
13393 test -z "$ac_c_werror_flag" ||
13394 test ! -s conftest.err
13395 } && test -s conftest.$ac_objext; then
13396 ac_header_compiler=yes
13397 else
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13400
13401 ac_header_compiler=no
13402 fi
13403
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13406 echo "${ECHO_T}$ac_header_compiler" >&6; }
13407
13408 # Is the header present?
13409 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13410 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h. */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 #include <jerror.h>
13418 _ACEOF
13419 if { (ac_try="$ac_cpp conftest.$ac_ext"
13420 case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423 esac
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13426 ac_status=$?
13427 grep -v '^ *+' conftest.er1 >conftest.err
13428 rm -f conftest.er1
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } >/dev/null && {
13432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13433 test ! -s conftest.err
13434 }; then
13435 ac_header_preproc=yes
13436 else
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13439
13440 ac_header_preproc=no
13441 fi
13442
13443 rm -f conftest.err conftest.$ac_ext
13444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13445 echo "${ECHO_T}$ac_header_preproc" >&6; }
13446
13447 # So? What about this header?
13448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13449 yes:no: )
13450 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13451 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13453 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13454 ac_header_preproc=yes
13455 ;;
13456 no:yes:* )
13457 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13458 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13460 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13462 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13464 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13466 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13468 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13469
13470 ;;
13471 esac
13472 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13473 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13474 if test "${ac_cv_header_jerror_h+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477 ac_cv_header_jerror_h=$ac_header_preproc
13478 fi
13479 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13480 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13481
13482 fi
13483 if test $ac_cv_header_jerror_h = yes; then
13484 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13485 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13486 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489 ac_check_lib_save_LIBS=$LIBS
13490 LIBS="-ljpeg $LIBS"
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h. */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497
13498 /* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13501 #ifdef __cplusplus
13502 extern "C"
13503 #endif
13504 char jpeg_destroy_compress ();
13505 int
13506 main ()
13507 {
13508 return jpeg_destroy_compress ();
13509 ;
13510 return 0;
13511 }
13512 _ACEOF
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_link") 2>conftest.er1
13521 ac_status=$?
13522 grep -v '^ *+' conftest.er1 >conftest.err
13523 rm -f conftest.er1
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } && {
13527 test -z "$ac_c_werror_flag" ||
13528 test ! -s conftest.err
13529 } && test -s conftest$ac_exeext &&
13530 $as_test_x conftest$ac_exeext; then
13531 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13537 fi
13538
13539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13540 conftest$ac_exeext conftest.$ac_ext
13541 LIBS=$ac_check_lib_save_LIBS
13542 fi
13543 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13544 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13545 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13546 HAVE_JPEG=yes
13547 fi
13548
13549 fi
13550
13551
13552 fi
13553
13554
13555 if test "${HAVE_JPEG}" = "yes"; then
13556 cat >>confdefs.h <<\_ACEOF
13557 #define HAVE_JPEG 1
13558 _ACEOF
13559
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h. */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 #include <jpeglib.h>
13567 version=JPEG_LIB_VERSION
13568
13569 _ACEOF
13570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13571 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13572 cat >>confdefs.h <<\_ACEOF
13573 #define HAVE_JPEG 1
13574 _ACEOF
13575
13576 else
13577 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13578 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13579 HAVE_JPEG=no
13580 fi
13581 rm -f conftest*
13582
13583 fi
13584 fi
13585
13586 ### Use -lpng if available, unless `--with-png=no'.
13587 HAVE_PNG=no
13588 if test "${HAVE_X11}" = "yes"; then
13589 if test "${with_png}" != "no"; then
13590 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13591 # in /usr/include/libpng.
13592
13593
13594 for ac_header in png.h libpng/png.h
13595 do
13596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 fi
13603 ac_res=`eval echo '${'$as_ac_Header'}'`
13604 { echo "$as_me:$LINENO: result: $ac_res" >&5
13605 echo "${ECHO_T}$ac_res" >&6; }
13606 else
13607 # Is the header compilable?
13608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h. */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 $ac_includes_default
13617 #include <$ac_header>
13618 _ACEOF
13619 rm -f conftest.$ac_objext
13620 if { (ac_try="$ac_compile"
13621 case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13624 esac
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_compile") 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } && {
13633 test -z "$ac_c_werror_flag" ||
13634 test ! -s conftest.err
13635 } && test -s conftest.$ac_objext; then
13636 ac_header_compiler=yes
13637 else
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 ac_header_compiler=no
13642 fi
13643
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13646 echo "${ECHO_T}$ac_header_compiler" >&6; }
13647
13648 # Is the header present?
13649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13651 cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h. */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13657 #include <$ac_header>
13658 _ACEOF
13659 if { (ac_try="$ac_cpp conftest.$ac_ext"
13660 case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13663 esac
13664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13666 ac_status=$?
13667 grep -v '^ *+' conftest.er1 >conftest.err
13668 rm -f conftest.er1
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } >/dev/null && {
13672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13673 test ! -s conftest.err
13674 }; then
13675 ac_header_preproc=yes
13676 else
13677 echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13679
13680 ac_header_preproc=no
13681 fi
13682
13683 rm -f conftest.err conftest.$ac_ext
13684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13685 echo "${ECHO_T}$ac_header_preproc" >&6; }
13686
13687 # So? What about this header?
13688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13689 yes:no: )
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13694 ac_header_preproc=yes
13695 ;;
13696 no:yes:* )
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13709
13710 ;;
13711 esac
13712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 else
13717 eval "$as_ac_Header=\$ac_header_preproc"
13718 fi
13719 ac_res=`eval echo '${'$as_ac_Header'}'`
13720 { echo "$as_me:$LINENO: result: $ac_res" >&5
13721 echo "${ECHO_T}$ac_res" >&6; }
13722
13723 fi
13724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13725 cat >>confdefs.h <<_ACEOF
13726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13727 _ACEOF
13728
13729 fi
13730
13731 done
13732
13733 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13734 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13735 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13736 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 else
13739 ac_check_lib_save_LIBS=$LIBS
13740 LIBS="-lpng -lz -lm $LIBS"
13741 cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h. */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13747
13748 /* Override any GCC internal prototype to avoid an error.
13749 Use char because int might match the return type of a GCC
13750 builtin and then its argument prototype would still apply. */
13751 #ifdef __cplusplus
13752 extern "C"
13753 #endif
13754 char png_get_channels ();
13755 int
13756 main ()
13757 {
13758 return png_get_channels ();
13759 ;
13760 return 0;
13761 }
13762 _ACEOF
13763 rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (ac_try="$ac_link"
13765 case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_link") 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } && {
13777 test -z "$ac_c_werror_flag" ||
13778 test ! -s conftest.err
13779 } && test -s conftest$ac_exeext &&
13780 $as_test_x conftest$ac_exeext; then
13781 ac_cv_lib_png_png_get_channels=yes
13782 else
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13785
13786 ac_cv_lib_png_png_get_channels=no
13787 fi
13788
13789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13790 conftest$ac_exeext conftest.$ac_ext
13791 LIBS=$ac_check_lib_save_LIBS
13792 fi
13793 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13794 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13795 if test $ac_cv_lib_png_png_get_channels = yes; then
13796 HAVE_PNG=yes
13797 fi
13798
13799 fi
13800 fi
13801
13802 if test "${HAVE_PNG}" = "yes"; then
13803
13804 cat >>confdefs.h <<\_ACEOF
13805 #define HAVE_PNG 1
13806 _ACEOF
13807
13808 fi
13809 fi
13810
13811 ### Use -ltiff if available, unless `--with-tiff=no'.
13812 HAVE_TIFF=no
13813 if test "${HAVE_X11}" = "yes"; then
13814 if test "${with_tiff}" != "no"; then
13815 if test "${ac_cv_header_tiffio_h+set}" = set; then
13816 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13817 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13818 if test "${ac_cv_header_tiffio_h+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 fi
13821 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13822 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13823 else
13824 # Is the header compilable?
13825 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13826 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13827 cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h. */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 $ac_includes_default
13834 #include <tiffio.h>
13835 _ACEOF
13836 rm -f conftest.$ac_objext
13837 if { (ac_try="$ac_compile"
13838 case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13841 esac
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_compile") 2>conftest.er1
13844 ac_status=$?
13845 grep -v '^ *+' conftest.er1 >conftest.err
13846 rm -f conftest.er1
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } && {
13850 test -z "$ac_c_werror_flag" ||
13851 test ! -s conftest.err
13852 } && test -s conftest.$ac_objext; then
13853 ac_header_compiler=yes
13854 else
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 ac_header_compiler=no
13859 fi
13860
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13863 echo "${ECHO_T}$ac_header_compiler" >&6; }
13864
13865 # Is the header present?
13866 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13867 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13868 cat >conftest.$ac_ext <<_ACEOF
13869 /* confdefs.h. */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 #include <tiffio.h>
13875 _ACEOF
13876 if { (ac_try="$ac_cpp conftest.$ac_ext"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13880 esac
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13883 ac_status=$?
13884 grep -v '^ *+' conftest.er1 >conftest.err
13885 rm -f conftest.er1
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } >/dev/null && {
13889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 }; then
13892 ac_header_preproc=yes
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897 ac_header_preproc=no
13898 fi
13899
13900 rm -f conftest.err conftest.$ac_ext
13901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13902 echo "${ECHO_T}$ac_header_preproc" >&6; }
13903
13904 # So? What about this header?
13905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13906 yes:no: )
13907 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13908 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13910 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13911 ac_header_preproc=yes
13912 ;;
13913 no:yes:* )
13914 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13915 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13916 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13917 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13918 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13919 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13921 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13922 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13923 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13924 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13925 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13926
13927 ;;
13928 esac
13929 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13930 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13931 if test "${ac_cv_header_tiffio_h+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 else
13934 ac_cv_header_tiffio_h=$ac_header_preproc
13935 fi
13936 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13937 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13938
13939 fi
13940 if test $ac_cv_header_tiffio_h = yes; then
13941 tifflibs="-lz -lm"
13942 # At least one tiff package requires the jpeg library.
13943 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13944 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13945 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13946 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13949 ac_check_lib_save_LIBS=$LIBS
13950 LIBS="-ltiff $tifflibs $LIBS"
13951 cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h. */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13957
13958 /* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
13961 #ifdef __cplusplus
13962 extern "C"
13963 #endif
13964 char TIFFGetVersion ();
13965 int
13966 main ()
13967 {
13968 return TIFFGetVersion ();
13969 ;
13970 return 0;
13971 }
13972 _ACEOF
13973 rm -f conftest.$ac_objext conftest$ac_exeext
13974 if { (ac_try="$ac_link"
13975 case "(($ac_try" in
13976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13978 esac
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_link") 2>conftest.er1
13981 ac_status=$?
13982 grep -v '^ *+' conftest.er1 >conftest.err
13983 rm -f conftest.er1
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } && {
13987 test -z "$ac_c_werror_flag" ||
13988 test ! -s conftest.err
13989 } && test -s conftest$ac_exeext &&
13990 $as_test_x conftest$ac_exeext; then
13991 ac_cv_lib_tiff_TIFFGetVersion=yes
13992 else
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13995
13996 ac_cv_lib_tiff_TIFFGetVersion=no
13997 fi
13998
13999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14000 conftest$ac_exeext conftest.$ac_ext
14001 LIBS=$ac_check_lib_save_LIBS
14002 fi
14003 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14004 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14005 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14006 HAVE_TIFF=yes
14007 fi
14008
14009 fi
14010
14011
14012 fi
14013
14014 if test "${HAVE_TIFF}" = "yes"; then
14015
14016 cat >>confdefs.h <<\_ACEOF
14017 #define HAVE_TIFF 1
14018 _ACEOF
14019
14020 fi
14021 fi
14022
14023 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14024 HAVE_GIF=no
14025 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14026 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14027 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14028 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14029 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 fi
14032 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14033 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14034 else
14035 # Is the header compilable?
14036 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14037 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14038 cat >conftest.$ac_ext <<_ACEOF
14039 /* confdefs.h. */
14040 _ACEOF
14041 cat confdefs.h >>conftest.$ac_ext
14042 cat >>conftest.$ac_ext <<_ACEOF
14043 /* end confdefs.h. */
14044 $ac_includes_default
14045 #include <gif_lib.h>
14046 _ACEOF
14047 rm -f conftest.$ac_objext
14048 if { (ac_try="$ac_compile"
14049 case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14052 esac
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_compile") 2>conftest.er1
14055 ac_status=$?
14056 grep -v '^ *+' conftest.er1 >conftest.err
14057 rm -f conftest.er1
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } && {
14061 test -z "$ac_c_werror_flag" ||
14062 test ! -s conftest.err
14063 } && test -s conftest.$ac_objext; then
14064 ac_header_compiler=yes
14065 else
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069 ac_header_compiler=no
14070 fi
14071
14072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14074 echo "${ECHO_T}$ac_header_compiler" >&6; }
14075
14076 # Is the header present?
14077 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14078 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14079 cat >conftest.$ac_ext <<_ACEOF
14080 /* confdefs.h. */
14081 _ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14085 #include <gif_lib.h>
14086 _ACEOF
14087 if { (ac_try="$ac_cpp conftest.$ac_ext"
14088 case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14091 esac
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } >/dev/null && {
14100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14101 test ! -s conftest.err
14102 }; then
14103 ac_header_preproc=yes
14104 else
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14107
14108 ac_header_preproc=no
14109 fi
14110
14111 rm -f conftest.err conftest.$ac_ext
14112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14113 echo "${ECHO_T}$ac_header_preproc" >&6; }
14114
14115 # So? What about this header?
14116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14117 yes:no: )
14118 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14119 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14121 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14122 ac_header_preproc=yes
14123 ;;
14124 no:yes:* )
14125 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14126 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14128 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14130 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14132 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14134 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14136 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14137
14138 ;;
14139 esac
14140 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14141 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14142 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 ac_cv_header_gif_lib_h=$ac_header_preproc
14146 fi
14147 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14148 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14149
14150 fi
14151 if test $ac_cv_header_gif_lib_h = yes; then
14152 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14153 # Earlier versions can crash Emacs.
14154 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14155 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14156 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159 ac_check_lib_save_LIBS=$LIBS
14160 LIBS="-lgif $LIBS"
14161 cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h. */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167
14168 /* Override any GCC internal prototype to avoid an error.
14169 Use char because int might match the return type of a GCC
14170 builtin and then its argument prototype would still apply. */
14171 #ifdef __cplusplus
14172 extern "C"
14173 #endif
14174 char EGifPutExtensionLast ();
14175 int
14176 main ()
14177 {
14178 return EGifPutExtensionLast ();
14179 ;
14180 return 0;
14181 }
14182 _ACEOF
14183 rm -f conftest.$ac_objext conftest$ac_exeext
14184 if { (ac_try="$ac_link"
14185 case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14188 esac
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_link") 2>conftest.er1
14191 ac_status=$?
14192 grep -v '^ *+' conftest.er1 >conftest.err
14193 rm -f conftest.er1
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } && {
14197 test -z "$ac_c_werror_flag" ||
14198 test ! -s conftest.err
14199 } && test -s conftest$ac_exeext &&
14200 $as_test_x conftest$ac_exeext; then
14201 ac_cv_lib_gif_EGifPutExtensionLast=yes
14202 else
14203 echo "$as_me: failed program was:" >&5
14204 sed 's/^/| /' conftest.$ac_ext >&5
14205
14206 ac_cv_lib_gif_EGifPutExtensionLast=no
14207 fi
14208
14209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14210 conftest$ac_exeext conftest.$ac_ext
14211 LIBS=$ac_check_lib_save_LIBS
14212 fi
14213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14214 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14215 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14216 HAVE_GIF=yes
14217 else
14218 try_libungif=yes
14219 fi
14220
14221 fi
14222
14223
14224
14225 if test "$HAVE_GIF" = yes; then
14226 ac_gif_lib_name="-lgif"
14227 fi
14228
14229 # If gif_lib.h but no libgif, try libungif.
14230 if test x"$try_libungif" = xyes; then
14231 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14232 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14233 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 else
14236 ac_check_lib_save_LIBS=$LIBS
14237 LIBS="-lungif $LIBS"
14238 cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h. */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244
14245 /* Override any GCC internal prototype to avoid an error.
14246 Use char because int might match the return type of a GCC
14247 builtin and then its argument prototype would still apply. */
14248 #ifdef __cplusplus
14249 extern "C"
14250 #endif
14251 char EGifPutExtensionLast ();
14252 int
14253 main ()
14254 {
14255 return EGifPutExtensionLast ();
14256 ;
14257 return 0;
14258 }
14259 _ACEOF
14260 rm -f conftest.$ac_objext conftest$ac_exeext
14261 if { (ac_try="$ac_link"
14262 case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14265 esac
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_link") 2>conftest.er1
14268 ac_status=$?
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } && {
14274 test -z "$ac_c_werror_flag" ||
14275 test ! -s conftest.err
14276 } && test -s conftest$ac_exeext &&
14277 $as_test_x conftest$ac_exeext; then
14278 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14279 else
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14282
14283 ac_cv_lib_ungif_EGifPutExtensionLast=no
14284 fi
14285
14286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14287 conftest$ac_exeext conftest.$ac_ext
14288 LIBS=$ac_check_lib_save_LIBS
14289 fi
14290 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14291 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14292 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14293 HAVE_GIF=yes
14294 fi
14295
14296
14297 if test "$HAVE_GIF" = yes; then
14298
14299 cat >>confdefs.h <<\_ACEOF
14300 #define LIBGIF -lungif
14301 _ACEOF
14302
14303 ac_gif_lib_name="-lungif"
14304 fi
14305 fi
14306
14307 if test "${HAVE_GIF}" = "yes"; then
14308
14309 cat >>confdefs.h <<\_ACEOF
14310 #define HAVE_GIF 1
14311 _ACEOF
14312
14313 fi
14314 fi
14315
14316 if test "${HAVE_X11}" = "yes"; then
14317 MISSING=""
14318 WITH_NO=""
14319 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14320 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14321 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14322 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14323 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14324 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14325 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14326 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14327 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14328 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14329
14330 if test "X${MISSING}" != X; then
14331 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14332 $MISSING
14333 Maybe some development libraries/packages are missing?
14334 If you don't want to link with them give
14335 $WITH_NO
14336 as options to configure" >&5
14337 echo "$as_me: error: The following required libraries were not found:
14338 $MISSING
14339 Maybe some development libraries/packages are missing?
14340 If you don't want to link with them give
14341 $WITH_NO
14342 as options to configure" >&2;}
14343 { (exit 1); exit 1; }; }
14344 fi
14345 fi
14346
14347 ### Use -lgpm if available, unless `--with-gpm=no'.
14348 HAVE_GPM=no
14349 if test "${with_gpm}" != "no"; then
14350 if test "${ac_cv_header_gpm_h+set}" = set; then
14351 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14352 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14353 if test "${ac_cv_header_gpm_h+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 fi
14356 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14357 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14358 else
14359 # Is the header compilable?
14360 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14361 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14362 cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h. */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 $ac_includes_default
14369 #include <gpm.h>
14370 _ACEOF
14371 rm -f conftest.$ac_objext
14372 if { (ac_try="$ac_compile"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_compile") 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest.$ac_objext; then
14388 ac_header_compiler=yes
14389 else
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393 ac_header_compiler=no
14394 fi
14395
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14398 echo "${ECHO_T}$ac_header_compiler" >&6; }
14399
14400 # Is the header present?
14401 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14402 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14403 cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h. */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14409 #include <gpm.h>
14410 _ACEOF
14411 if { (ac_try="$ac_cpp conftest.$ac_ext"
14412 case "(($ac_try" in
14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414 *) ac_try_echo=$ac_try;;
14415 esac
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } >/dev/null && {
14424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14425 test ! -s conftest.err
14426 }; then
14427 ac_header_preproc=yes
14428 else
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14431
14432 ac_header_preproc=no
14433 fi
14434
14435 rm -f conftest.err conftest.$ac_ext
14436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14437 echo "${ECHO_T}$ac_header_preproc" >&6; }
14438
14439 # So? What about this header?
14440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14441 yes:no: )
14442 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14443 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14444 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14445 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14446 ac_header_preproc=yes
14447 ;;
14448 no:yes:* )
14449 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14450 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14452 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14453 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14454 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14456 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14458 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14460 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14461
14462 ;;
14463 esac
14464 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14465 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14466 if test "${ac_cv_header_gpm_h+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469 ac_cv_header_gpm_h=$ac_header_preproc
14470 fi
14471 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14472 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14473
14474 fi
14475 if test $ac_cv_header_gpm_h = yes; then
14476 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14477 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14478 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481 ac_check_lib_save_LIBS=$LIBS
14482 LIBS="-lgpm $LIBS"
14483 cat >conftest.$ac_ext <<_ACEOF
14484 /* confdefs.h. */
14485 _ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14489
14490 /* Override any GCC internal prototype to avoid an error.
14491 Use char because int might match the return type of a GCC
14492 builtin and then its argument prototype would still apply. */
14493 #ifdef __cplusplus
14494 extern "C"
14495 #endif
14496 char Gpm_Open ();
14497 int
14498 main ()
14499 {
14500 return Gpm_Open ();
14501 ;
14502 return 0;
14503 }
14504 _ACEOF
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (ac_try="$ac_link"
14507 case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14510 esac
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_link") 2>conftest.er1
14513 ac_status=$?
14514 grep -v '^ *+' conftest.er1 >conftest.err
14515 rm -f conftest.er1
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && {
14519 test -z "$ac_c_werror_flag" ||
14520 test ! -s conftest.err
14521 } && test -s conftest$ac_exeext &&
14522 $as_test_x conftest$ac_exeext; then
14523 ac_cv_lib_gpm_Gpm_Open=yes
14524 else
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14527
14528 ac_cv_lib_gpm_Gpm_Open=no
14529 fi
14530
14531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14532 conftest$ac_exeext conftest.$ac_ext
14533 LIBS=$ac_check_lib_save_LIBS
14534 fi
14535 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14536 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14537 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14538 HAVE_GPM=yes
14539 fi
14540
14541 fi
14542
14543
14544 fi
14545
14546 if test "${HAVE_GPM}" = "yes"; then
14547
14548 cat >>confdefs.h <<\_ACEOF
14549 #define HAVE_GPM 1
14550 _ACEOF
14551
14552 fi
14553
14554 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14555 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14556 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14557 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 fi
14560 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14561 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14562 else
14563 # Is the header compilable?
14564 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14565 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14566 cat >conftest.$ac_ext <<_ACEOF
14567 /* confdefs.h. */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14572 $ac_includes_default
14573 #include <malloc/malloc.h>
14574 _ACEOF
14575 rm -f conftest.$ac_objext
14576 if { (ac_try="$ac_compile"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580 esac
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_compile") 2>conftest.er1
14583 ac_status=$?
14584 grep -v '^ *+' conftest.er1 >conftest.err
14585 rm -f conftest.er1
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } && {
14589 test -z "$ac_c_werror_flag" ||
14590 test ! -s conftest.err
14591 } && test -s conftest.$ac_objext; then
14592 ac_header_compiler=yes
14593 else
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 ac_header_compiler=no
14598 fi
14599
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14602 echo "${ECHO_T}$ac_header_compiler" >&6; }
14603
14604 # Is the header present?
14605 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14606 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14607 cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h. */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 #include <malloc/malloc.h>
14614 _ACEOF
14615 if { (ac_try="$ac_cpp conftest.$ac_ext"
14616 case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14619 esac
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14622 ac_status=$?
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } >/dev/null && {
14628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14629 test ! -s conftest.err
14630 }; then
14631 ac_header_preproc=yes
14632 else
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636 ac_header_preproc=no
14637 fi
14638
14639 rm -f conftest.err conftest.$ac_ext
14640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14641 echo "${ECHO_T}$ac_header_preproc" >&6; }
14642
14643 # So? What about this header?
14644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14645 yes:no: )
14646 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14647 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14649 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14650 ac_header_preproc=yes
14651 ;;
14652 no:yes:* )
14653 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14654 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14656 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14658 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14660 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14662 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14664 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14665
14666 ;;
14667 esac
14668 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14669 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14670 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14674 fi
14675 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14676 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14677
14678 fi
14679 if test $ac_cv_header_malloc_malloc_h = yes; then
14680
14681 cat >>confdefs.h <<\_ACEOF
14682 #define HAVE_MALLOC_MALLOC_H 1
14683 _ACEOF
14684
14685 fi
14686
14687
14688
14689 ### Use Mac OS X Carbon API to implement GUI.
14690 if test "${HAVE_CARBON}" = "yes"; then
14691
14692 cat >>confdefs.h <<\_ACEOF
14693 #define HAVE_CARBON 1
14694 _ACEOF
14695
14696 ## Specify the install directory
14697 carbon_appdir=
14698 if test "${carbon_appdir_x}" != ""; then
14699 case ${carbon_appdir_x} in
14700 y | ye | yes) carbon_appdir=/Applications ;;
14701 * ) carbon_appdir=${carbon_appdir_x} ;;
14702 esac
14703 fi
14704 # We also have mouse menus.
14705 HAVE_MENUS=yes
14706 fi
14707
14708 ### Use session management (-lSM -lICE) if available
14709 HAVE_X_SM=no
14710 if test "${HAVE_X11}" = "yes"; then
14711 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14712 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14713 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14714 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 fi
14717 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14718 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14719 else
14720 # Is the header compilable?
14721 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14722 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14723 cat >conftest.$ac_ext <<_ACEOF
14724 /* confdefs.h. */
14725 _ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 $ac_includes_default
14730 #include <X11/SM/SMlib.h>
14731 _ACEOF
14732 rm -f conftest.$ac_objext
14733 if { (ac_try="$ac_compile"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_compile") 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_c_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest.$ac_objext; then
14749 ac_header_compiler=yes
14750 else
14751 echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754 ac_header_compiler=no
14755 fi
14756
14757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14759 echo "${ECHO_T}$ac_header_compiler" >&6; }
14760
14761 # Is the header present?
14762 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14763 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14764 cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h. */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 #include <X11/SM/SMlib.h>
14771 _ACEOF
14772 if { (ac_try="$ac_cpp conftest.$ac_ext"
14773 case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14776 esac
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } >/dev/null && {
14785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14786 test ! -s conftest.err
14787 }; then
14788 ac_header_preproc=yes
14789 else
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ac_header_preproc=no
14794 fi
14795
14796 rm -f conftest.err conftest.$ac_ext
14797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14798 echo "${ECHO_T}$ac_header_preproc" >&6; }
14799
14800 # So? What about this header?
14801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14802 yes:no: )
14803 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14804 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14806 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14807 ac_header_preproc=yes
14808 ;;
14809 no:yes:* )
14810 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14811 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14813 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14814 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14815 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14816 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14817 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14819 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14821 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14822
14823 ;;
14824 esac
14825 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14826 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14827 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14831 fi
14832 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14833 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14834
14835 fi
14836 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14837 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14838 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14839 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842 ac_check_lib_save_LIBS=$LIBS
14843 LIBS="-lSM -lICE $LIBS"
14844 cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h. */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14850
14851 /* Override any GCC internal prototype to avoid an error.
14852 Use char because int might match the return type of a GCC
14853 builtin and then its argument prototype would still apply. */
14854 #ifdef __cplusplus
14855 extern "C"
14856 #endif
14857 char SmcOpenConnection ();
14858 int
14859 main ()
14860 {
14861 return SmcOpenConnection ();
14862 ;
14863 return 0;
14864 }
14865 _ACEOF
14866 rm -f conftest.$ac_objext conftest$ac_exeext
14867 if { (ac_try="$ac_link"
14868 case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14871 esac
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873 (eval "$ac_link") 2>conftest.er1
14874 ac_status=$?
14875 grep -v '^ *+' conftest.er1 >conftest.err
14876 rm -f conftest.er1
14877 cat conftest.err >&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && {
14880 test -z "$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 } && test -s conftest$ac_exeext &&
14883 $as_test_x conftest$ac_exeext; then
14884 ac_cv_lib_SM_SmcOpenConnection=yes
14885 else
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14888
14889 ac_cv_lib_SM_SmcOpenConnection=no
14890 fi
14891
14892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14893 conftest$ac_exeext conftest.$ac_ext
14894 LIBS=$ac_check_lib_save_LIBS
14895 fi
14896 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14897 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14898 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14899 HAVE_X_SM=yes
14900 fi
14901
14902 fi
14903
14904
14905
14906 if test "${HAVE_X_SM}" = "yes"; then
14907
14908 cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_X_SM 1
14910 _ACEOF
14911
14912 case "$LIBS" in
14913 *-lSM*) ;;
14914 *) LIBS="-lSM -lICE $LIBS" ;;
14915 esac
14916 fi
14917 fi
14918
14919 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14920 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14921 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14922 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 else
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h. */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 #include <netdb.h>
14932 int
14933 main ()
14934 {
14935 return h_errno;
14936 ;
14937 return 0;
14938 }
14939 _ACEOF
14940 rm -f conftest.$ac_objext conftest$ac_exeext
14941 if { (ac_try="$ac_link"
14942 case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14945 esac
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_link") 2>conftest.er1
14948 ac_status=$?
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } && {
14954 test -z "$ac_c_werror_flag" ||
14955 test ! -s conftest.err
14956 } && test -s conftest$ac_exeext &&
14957 $as_test_x conftest$ac_exeext; then
14958 emacs_cv_netdb_declares_h_errno=yes
14959 else
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14962
14963 emacs_cv_netdb_declares_h_errno=no
14964 fi
14965
14966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14967 conftest$ac_exeext conftest.$ac_ext
14968 fi
14969 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14970 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14971 if test $emacs_cv_netdb_declares_h_errno = yes; then
14972
14973 cat >>confdefs.h <<\_ACEOF
14974 #define HAVE_H_ERRNO 1
14975 _ACEOF
14976
14977 fi
14978
14979 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14980 # for constant arguments. Useless!
14981 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14982 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14983 if test "${ac_cv_working_alloca_h+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 else
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h. */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992 #include <alloca.h>
14993 int
14994 main ()
14995 {
14996 char *p = (char *) alloca (2 * sizeof (int));
14997 if (p) return 0;
14998 ;
14999 return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (ac_try="$ac_link"
15004 case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15007 esac
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_link") 2>conftest.er1
15010 ac_status=$?
15011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } && {
15016 test -z "$ac_c_werror_flag" ||
15017 test ! -s conftest.err
15018 } && test -s conftest$ac_exeext &&
15019 $as_test_x conftest$ac_exeext; then
15020 ac_cv_working_alloca_h=yes
15021 else
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025 ac_cv_working_alloca_h=no
15026 fi
15027
15028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15029 conftest$ac_exeext conftest.$ac_ext
15030 fi
15031 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15032 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15033 if test $ac_cv_working_alloca_h = yes; then
15034
15035 cat >>confdefs.h <<\_ACEOF
15036 #define HAVE_ALLOCA_H 1
15037 _ACEOF
15038
15039 fi
15040
15041 { echo "$as_me:$LINENO: checking for alloca" >&5
15042 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15043 if test "${ac_cv_func_alloca_works+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 else
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h. */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 #ifdef __GNUC__
15053 # define alloca __builtin_alloca
15054 #else
15055 # ifdef _MSC_VER
15056 # include <malloc.h>
15057 # define alloca _alloca
15058 # else
15059 # ifdef HAVE_ALLOCA_H
15060 # include <alloca.h>
15061 # else
15062 # ifdef _AIX
15063 #pragma alloca
15064 # else
15065 # ifndef alloca /* predefined by HP cc +Olibcalls */
15066 char *alloca ();
15067 # endif
15068 # endif
15069 # endif
15070 # endif
15071 #endif
15072
15073 int
15074 main ()
15075 {
15076 char *p = (char *) alloca (1);
15077 if (p) return 0;
15078 ;
15079 return 0;
15080 }
15081 _ACEOF
15082 rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (ac_try="$ac_link"
15084 case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15087 esac
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_link") 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } && {
15096 test -z "$ac_c_werror_flag" ||
15097 test ! -s conftest.err
15098 } && test -s conftest$ac_exeext &&
15099 $as_test_x conftest$ac_exeext; then
15100 ac_cv_func_alloca_works=yes
15101 else
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105 ac_cv_func_alloca_works=no
15106 fi
15107
15108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15109 conftest$ac_exeext conftest.$ac_ext
15110 fi
15111 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15112 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15113
15114 if test $ac_cv_func_alloca_works = yes; then
15115
15116 cat >>confdefs.h <<\_ACEOF
15117 #define HAVE_ALLOCA 1
15118 _ACEOF
15119
15120 else
15121 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15122 # that cause trouble. Some versions do not even contain alloca or
15123 # contain a buggy version. If you still want to use their alloca,
15124 # use ar to extract alloca.o from them instead of compiling alloca.c.
15125
15126 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15127
15128 cat >>confdefs.h <<\_ACEOF
15129 #define C_ALLOCA 1
15130 _ACEOF
15131
15132
15133 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15134 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15135 if test "${ac_cv_os_cray+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138 cat >conftest.$ac_ext <<_ACEOF
15139 /* confdefs.h. */
15140 _ACEOF
15141 cat confdefs.h >>conftest.$ac_ext
15142 cat >>conftest.$ac_ext <<_ACEOF
15143 /* end confdefs.h. */
15144 #if defined CRAY && ! defined CRAY2
15145 webecray
15146 #else
15147 wenotbecray
15148 #endif
15149
15150 _ACEOF
15151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15152 $EGREP "webecray" >/dev/null 2>&1; then
15153 ac_cv_os_cray=yes
15154 else
15155 ac_cv_os_cray=no
15156 fi
15157 rm -f conftest*
15158
15159 fi
15160 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15161 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15162 if test $ac_cv_os_cray = yes; then
15163 for ac_func in _getb67 GETB67 getb67; do
15164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170 cat >conftest.$ac_ext <<_ACEOF
15171 /* confdefs.h. */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15178 #define $ac_func innocuous_$ac_func
15179
15180 /* System header to define __stub macros and hopefully few prototypes,
15181 which can conflict with char $ac_func (); below.
15182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15183 <limits.h> exists even on freestanding compilers. */
15184
15185 #ifdef __STDC__
15186 # include <limits.h>
15187 #else
15188 # include <assert.h>
15189 #endif
15190
15191 #undef $ac_func
15192
15193 /* Override any GCC internal prototype to avoid an error.
15194 Use char because int might match the return type of a GCC
15195 builtin and then its argument prototype would still apply. */
15196 #ifdef __cplusplus
15197 extern "C"
15198 #endif
15199 char $ac_func ();
15200 /* The GNU C library defines this for functions which it implements
15201 to always fail with ENOSYS. Some functions are actually named
15202 something starting with __ and the normal name is an alias. */
15203 #if defined __stub_$ac_func || defined __stub___$ac_func
15204 choke me
15205 #endif
15206
15207 int
15208 main ()
15209 {
15210 return $ac_func ();
15211 ;
15212 return 0;
15213 }
15214 _ACEOF
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (ac_try="$ac_link"
15217 case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15220 esac
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_link") 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } && {
15229 test -z "$ac_c_werror_flag" ||
15230 test ! -s conftest.err
15231 } && test -s conftest$ac_exeext &&
15232 $as_test_x conftest$ac_exeext; then
15233 eval "$as_ac_var=yes"
15234 else
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238 eval "$as_ac_var=no"
15239 fi
15240
15241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15242 conftest$ac_exeext conftest.$ac_ext
15243 fi
15244 ac_res=`eval echo '${'$as_ac_var'}'`
15245 { echo "$as_me:$LINENO: result: $ac_res" >&5
15246 echo "${ECHO_T}$ac_res" >&6; }
15247 if test `eval echo '${'$as_ac_var'}'` = yes; then
15248
15249 cat >>confdefs.h <<_ACEOF
15250 #define CRAY_STACKSEG_END $ac_func
15251 _ACEOF
15252
15253 break
15254 fi
15255
15256 done
15257 fi
15258
15259 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15260 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15261 if test "${ac_cv_c_stack_direction+set}" = set; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15263 else
15264 if test "$cross_compiling" = yes; then
15265 ac_cv_c_stack_direction=0
15266 else
15267 cat >conftest.$ac_ext <<_ACEOF
15268 /* confdefs.h. */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 $ac_includes_default
15274 int
15275 find_stack_direction ()
15276 {
15277 static char *addr = 0;
15278 auto char dummy;
15279 if (addr == 0)
15280 {
15281 addr = &dummy;
15282 return find_stack_direction ();
15283 }
15284 else
15285 return (&dummy > addr) ? 1 : -1;
15286 }
15287
15288 int
15289 main ()
15290 {
15291 return find_stack_direction () < 0;
15292 }
15293 _ACEOF
15294 rm -f conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15299 esac
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_link") 2>&5
15302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15305 { (case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_try") 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 ac_cv_c_stack_direction=1
15315 else
15316 echo "$as_me: program exited with status $ac_status" >&5
15317 echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15319
15320 ( exit $ac_status )
15321 ac_cv_c_stack_direction=-1
15322 fi
15323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15324 fi
15325
15326
15327 fi
15328 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15329 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15330
15331 cat >>confdefs.h <<_ACEOF
15332 #define STACK_DIRECTION $ac_cv_c_stack_direction
15333 _ACEOF
15334
15335
15336 fi
15337
15338
15339 # fmod, logb, and frexp are found in -lm on most systems.
15340 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15341
15342 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15343 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15344 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347 ac_check_lib_save_LIBS=$LIBS
15348 LIBS="-lm $LIBS"
15349 cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h. */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355
15356 /* Override any GCC internal prototype to avoid an error.
15357 Use char because int might match the return type of a GCC
15358 builtin and then its argument prototype would still apply. */
15359 #ifdef __cplusplus
15360 extern "C"
15361 #endif
15362 char sqrt ();
15363 int
15364 main ()
15365 {
15366 return sqrt ();
15367 ;
15368 return 0;
15369 }
15370 _ACEOF
15371 rm -f conftest.$ac_objext conftest$ac_exeext
15372 if { (ac_try="$ac_link"
15373 case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15376 esac
15377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_link") 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } && {
15385 test -z "$ac_c_werror_flag" ||
15386 test ! -s conftest.err
15387 } && test -s conftest$ac_exeext &&
15388 $as_test_x conftest$ac_exeext; then
15389 ac_cv_lib_m_sqrt=yes
15390 else
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15393
15394 ac_cv_lib_m_sqrt=no
15395 fi
15396
15397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15398 conftest$ac_exeext conftest.$ac_ext
15399 LIBS=$ac_check_lib_save_LIBS
15400 fi
15401 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15402 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15403 if test $ac_cv_lib_m_sqrt = yes; then
15404 cat >>confdefs.h <<_ACEOF
15405 #define HAVE_LIBM 1
15406 _ACEOF
15407
15408 LIBS="-lm $LIBS"
15409
15410 fi
15411
15412
15413 # Check for mail-locking functions in a "mail" library. Probably this should
15414 # have the same check as for liblockfile below.
15415
15416 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15417 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15418 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 else
15421 ac_check_lib_save_LIBS=$LIBS
15422 LIBS="-lmail $LIBS"
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
15430 /* Override any GCC internal prototype to avoid an error.
15431 Use char because int might match the return type of a GCC
15432 builtin and then its argument prototype would still apply. */
15433 #ifdef __cplusplus
15434 extern "C"
15435 #endif
15436 char maillock ();
15437 int
15438 main ()
15439 {
15440 return maillock ();
15441 ;
15442 return 0;
15443 }
15444 _ACEOF
15445 rm -f conftest.$ac_objext conftest$ac_exeext
15446 if { (ac_try="$ac_link"
15447 case "(($ac_try" in
15448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449 *) ac_try_echo=$ac_try;;
15450 esac
15451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15452 (eval "$ac_link") 2>conftest.er1
15453 ac_status=$?
15454 grep -v '^ *+' conftest.er1 >conftest.err
15455 rm -f conftest.er1
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } && {
15459 test -z "$ac_c_werror_flag" ||
15460 test ! -s conftest.err
15461 } && test -s conftest$ac_exeext &&
15462 $as_test_x conftest$ac_exeext; then
15463 ac_cv_lib_mail_maillock=yes
15464 else
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 ac_cv_lib_mail_maillock=no
15469 fi
15470
15471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15472 conftest$ac_exeext conftest.$ac_ext
15473 LIBS=$ac_check_lib_save_LIBS
15474 fi
15475 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15476 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15477 if test $ac_cv_lib_mail_maillock = yes; then
15478 cat >>confdefs.h <<_ACEOF
15479 #define HAVE_LIBMAIL 1
15480 _ACEOF
15481
15482 LIBS="-lmail $LIBS"
15483
15484 fi
15485
15486
15487 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15488 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15489 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492 ac_check_lib_save_LIBS=$LIBS
15493 LIBS="-llockfile $LIBS"
15494 cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h. */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500
15501 /* Override any GCC internal prototype to avoid an error.
15502 Use char because int might match the return type of a GCC
15503 builtin and then its argument prototype would still apply. */
15504 #ifdef __cplusplus
15505 extern "C"
15506 #endif
15507 char maillock ();
15508 int
15509 main ()
15510 {
15511 return maillock ();
15512 ;
15513 return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext conftest$ac_exeext
15517 if { (ac_try="$ac_link"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_link") 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } && {
15530 test -z "$ac_c_werror_flag" ||
15531 test ! -s conftest.err
15532 } && test -s conftest$ac_exeext &&
15533 $as_test_x conftest$ac_exeext; then
15534 ac_cv_lib_lockfile_maillock=yes
15535 else
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 ac_cv_lib_lockfile_maillock=no
15540 fi
15541
15542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15543 conftest$ac_exeext conftest.$ac_ext
15544 LIBS=$ac_check_lib_save_LIBS
15545 fi
15546 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15547 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15548 if test $ac_cv_lib_lockfile_maillock = yes; then
15549 cat >>confdefs.h <<_ACEOF
15550 #define HAVE_LIBLOCKFILE 1
15551 _ACEOF
15552
15553 LIBS="-llockfile $LIBS"
15554
15555 fi
15556
15557 # If we have the shared liblockfile, assume we must use it for mail
15558 # locking (e.g. Debian). If we couldn't link against liblockfile
15559 # (no liblockfile.a installed), ensure that we don't need to.
15560 if test "$ac_cv_lib_lockfile_maillock" = no; then
15561 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15562 set dummy liblockfile.so; ac_word=$2
15563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15565 if test "${ac_cv_prog_liblockfile+set}" = set; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 else
15568 if test -n "$liblockfile"; then
15569 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15570 else
15571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15572 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15573 for as_dir in $as_dummy
15574 do
15575 IFS=$as_save_IFS
15576 test -z "$as_dir" && as_dir=.
15577 for ac_exec_ext in '' $ac_executable_extensions; do
15578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15579 ac_cv_prog_liblockfile="yes"
15580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15581 break 2
15582 fi
15583 done
15584 done
15585 IFS=$as_save_IFS
15586
15587 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15588 fi
15589 fi
15590 liblockfile=$ac_cv_prog_liblockfile
15591 if test -n "$liblockfile"; then
15592 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15593 echo "${ECHO_T}$liblockfile" >&6; }
15594 else
15595 { echo "$as_me:$LINENO: result: no" >&5
15596 echo "${ECHO_T}no" >&6; }
15597 fi
15598
15599
15600 if test $ac_cv_prog_liblockfile = yes; then
15601 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15602 This probably means that movemail could lose mail.
15603 There may be a \`development' package to install containing liblockfile." >&5
15604 echo "$as_me: error: Shared liblockfile found but can't link against it.
15605 This probably means that movemail could lose mail.
15606 There may be a \`development' package to install containing liblockfile." >&2;}
15607 { (exit 1); exit 1; }; }
15608 else :
15609 fi
15610 fi
15611
15612 for ac_func in touchlock
15613 do
15614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h. */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15628 #define $ac_func innocuous_$ac_func
15629
15630 /* System header to define __stub macros and hopefully few prototypes,
15631 which can conflict with char $ac_func (); below.
15632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15633 <limits.h> exists even on freestanding compilers. */
15634
15635 #ifdef __STDC__
15636 # include <limits.h>
15637 #else
15638 # include <assert.h>
15639 #endif
15640
15641 #undef $ac_func
15642
15643 /* Override any GCC internal prototype to avoid an error.
15644 Use char because int might match the return type of a GCC
15645 builtin and then its argument prototype would still apply. */
15646 #ifdef __cplusplus
15647 extern "C"
15648 #endif
15649 char $ac_func ();
15650 /* The GNU C library defines this for functions which it implements
15651 to always fail with ENOSYS. Some functions are actually named
15652 something starting with __ and the normal name is an alias. */
15653 #if defined __stub_$ac_func || defined __stub___$ac_func
15654 choke me
15655 #endif
15656
15657 int
15658 main ()
15659 {
15660 return $ac_func ();
15661 ;
15662 return 0;
15663 }
15664 _ACEOF
15665 rm -f conftest.$ac_objext conftest$ac_exeext
15666 if { (ac_try="$ac_link"
15667 case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15670 esac
15671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_link") 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } && {
15679 test -z "$ac_c_werror_flag" ||
15680 test ! -s conftest.err
15681 } && test -s conftest$ac_exeext &&
15682 $as_test_x conftest$ac_exeext; then
15683 eval "$as_ac_var=yes"
15684 else
15685 echo "$as_me: failed program was:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15687
15688 eval "$as_ac_var=no"
15689 fi
15690
15691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15692 conftest$ac_exeext conftest.$ac_ext
15693 fi
15694 ac_res=`eval echo '${'$as_ac_var'}'`
15695 { echo "$as_me:$LINENO: result: $ac_res" >&5
15696 echo "${ECHO_T}$ac_res" >&6; }
15697 if test `eval echo '${'$as_ac_var'}'` = yes; then
15698 cat >>confdefs.h <<_ACEOF
15699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15700 _ACEOF
15701
15702 fi
15703 done
15704
15705
15706 for ac_header in maillock.h
15707 do
15708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 fi
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15718 else
15719 # Is the header compilable?
15720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15722 cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h. */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15728 $ac_includes_default
15729 #include <$ac_header>
15730 _ACEOF
15731 rm -f conftest.$ac_objext
15732 if { (ac_try="$ac_compile"
15733 case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15736 esac
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_compile") 2>conftest.er1
15739 ac_status=$?
15740 grep -v '^ *+' conftest.er1 >conftest.err
15741 rm -f conftest.er1
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } && {
15745 test -z "$ac_c_werror_flag" ||
15746 test ! -s conftest.err
15747 } && test -s conftest.$ac_objext; then
15748 ac_header_compiler=yes
15749 else
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 ac_header_compiler=no
15754 fi
15755
15756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15758 echo "${ECHO_T}$ac_header_compiler" >&6; }
15759
15760 # Is the header present?
15761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h. */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 #include <$ac_header>
15770 _ACEOF
15771 if { (ac_try="$ac_cpp conftest.$ac_ext"
15772 case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15775 esac
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15778 ac_status=$?
15779 grep -v '^ *+' conftest.er1 >conftest.err
15780 rm -f conftest.er1
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } >/dev/null && {
15784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15785 test ! -s conftest.err
15786 }; then
15787 ac_header_preproc=yes
15788 else
15789 echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15791
15792 ac_header_preproc=no
15793 fi
15794
15795 rm -f conftest.err conftest.$ac_ext
15796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15797 echo "${ECHO_T}$ac_header_preproc" >&6; }
15798
15799 # So? What about this header?
15800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15801 yes:no: )
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15806 ac_header_preproc=yes
15807 ;;
15808 no:yes:* )
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15821
15822 ;;
15823 esac
15824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 else
15829 eval "$as_ac_Header=\$ac_header_preproc"
15830 fi
15831 ac_res=`eval echo '${'$as_ac_Header'}'`
15832 { echo "$as_me:$LINENO: result: $ac_res" >&5
15833 echo "${ECHO_T}$ac_res" >&6; }
15834
15835 fi
15836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15837 cat >>confdefs.h <<_ACEOF
15838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15839 _ACEOF
15840
15841 fi
15842
15843 done
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915 for ac_func in gethostname getdomainname dup2 \
15916 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15917 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15918 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15919 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15920 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15921 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15922 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15923 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15924 do
15925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931 cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h. */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15939 #define $ac_func innocuous_$ac_func
15940
15941 /* System header to define __stub macros and hopefully few prototypes,
15942 which can conflict with char $ac_func (); below.
15943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15944 <limits.h> exists even on freestanding compilers. */
15945
15946 #ifdef __STDC__
15947 # include <limits.h>
15948 #else
15949 # include <assert.h>
15950 #endif
15951
15952 #undef $ac_func
15953
15954 /* Override any GCC internal prototype to avoid an error.
15955 Use char because int might match the return type of a GCC
15956 builtin and then its argument prototype would still apply. */
15957 #ifdef __cplusplus
15958 extern "C"
15959 #endif
15960 char $ac_func ();
15961 /* The GNU C library defines this for functions which it implements
15962 to always fail with ENOSYS. Some functions are actually named
15963 something starting with __ and the normal name is an alias. */
15964 #if defined __stub_$ac_func || defined __stub___$ac_func
15965 choke me
15966 #endif
15967
15968 int
15969 main ()
15970 {
15971 return $ac_func ();
15972 ;
15973 return 0;
15974 }
15975 _ACEOF
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (ac_try="$ac_link"
15978 case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15981 esac
15982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983 (eval "$ac_link") 2>conftest.er1
15984 ac_status=$?
15985 grep -v '^ *+' conftest.er1 >conftest.err
15986 rm -f conftest.er1
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } && {
15990 test -z "$ac_c_werror_flag" ||
15991 test ! -s conftest.err
15992 } && test -s conftest$ac_exeext &&
15993 $as_test_x conftest$ac_exeext; then
15994 eval "$as_ac_var=yes"
15995 else
15996 echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15998
15999 eval "$as_ac_var=no"
16000 fi
16001
16002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16003 conftest$ac_exeext conftest.$ac_ext
16004 fi
16005 ac_res=`eval echo '${'$as_ac_var'}'`
16006 { echo "$as_me:$LINENO: result: $ac_res" >&5
16007 echo "${ECHO_T}$ac_res" >&6; }
16008 if test `eval echo '${'$as_ac_var'}'` = yes; then
16009 cat >>confdefs.h <<_ACEOF
16010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16011 _ACEOF
16012
16013 fi
16014 done
16015
16016
16017
16018 for ac_header in sys/un.h
16019 do
16020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16025 echo $ECHO_N "(cached) $ECHO_C" >&6
16026 fi
16027 ac_res=`eval echo '${'$as_ac_Header'}'`
16028 { echo "$as_me:$LINENO: result: $ac_res" >&5
16029 echo "${ECHO_T}$ac_res" >&6; }
16030 else
16031 # Is the header compilable?
16032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16034 cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h. */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 $ac_includes_default
16041 #include <$ac_header>
16042 _ACEOF
16043 rm -f conftest.$ac_objext
16044 if { (ac_try="$ac_compile"
16045 case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16048 esac
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_compile") 2>conftest.er1
16051 ac_status=$?
16052 grep -v '^ *+' conftest.er1 >conftest.err
16053 rm -f conftest.er1
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } && {
16057 test -z "$ac_c_werror_flag" ||
16058 test ! -s conftest.err
16059 } && test -s conftest.$ac_objext; then
16060 ac_header_compiler=yes
16061 else
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16064
16065 ac_header_compiler=no
16066 fi
16067
16068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16070 echo "${ECHO_T}$ac_header_compiler" >&6; }
16071
16072 # Is the header present?
16073 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16075 cat >conftest.$ac_ext <<_ACEOF
16076 /* confdefs.h. */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16081 #include <$ac_header>
16082 _ACEOF
16083 if { (ac_try="$ac_cpp conftest.$ac_ext"
16084 case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16090 ac_status=$?
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } >/dev/null && {
16096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16097 test ! -s conftest.err
16098 }; then
16099 ac_header_preproc=yes
16100 else
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104 ac_header_preproc=no
16105 fi
16106
16107 rm -f conftest.err conftest.$ac_ext
16108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16109 echo "${ECHO_T}$ac_header_preproc" >&6; }
16110
16111 # So? What about this header?
16112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16113 yes:no: )
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16118 ac_header_preproc=yes
16119 ;;
16120 no:yes:* )
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16133
16134 ;;
16135 esac
16136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141 eval "$as_ac_Header=\$ac_header_preproc"
16142 fi
16143 ac_res=`eval echo '${'$as_ac_Header'}'`
16144 { echo "$as_me:$LINENO: result: $ac_res" >&5
16145 echo "${ECHO_T}$ac_res" >&6; }
16146
16147 fi
16148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16149 cat >>confdefs.h <<_ACEOF
16150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16151 _ACEOF
16152
16153 fi
16154
16155 done
16156
16157
16158
16159
16160
16161
16162 for ac_header in $ac_header_list
16163 do
16164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 fi
16171 ac_res=`eval echo '${'$as_ac_Header'}'`
16172 { echo "$as_me:$LINENO: result: $ac_res" >&5
16173 echo "${ECHO_T}$ac_res" >&6; }
16174 else
16175 # Is the header compilable?
16176 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16178 cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h. */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 $ac_includes_default
16185 #include <$ac_header>
16186 _ACEOF
16187 rm -f conftest.$ac_objext
16188 if { (ac_try="$ac_compile"
16189 case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16192 esac
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_compile") 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } && {
16201 test -z "$ac_c_werror_flag" ||
16202 test ! -s conftest.err
16203 } && test -s conftest.$ac_objext; then
16204 ac_header_compiler=yes
16205 else
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16208
16209 ac_header_compiler=no
16210 fi
16211
16212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16214 echo "${ECHO_T}$ac_header_compiler" >&6; }
16215
16216 # Is the header present?
16217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16219 cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h. */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 #include <$ac_header>
16226 _ACEOF
16227 if { (ac_try="$ac_cpp conftest.$ac_ext"
16228 case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16231 esac
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16234 ac_status=$?
16235 grep -v '^ *+' conftest.er1 >conftest.err
16236 rm -f conftest.er1
16237 cat conftest.err >&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } >/dev/null && {
16240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16241 test ! -s conftest.err
16242 }; then
16243 ac_header_preproc=yes
16244 else
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248 ac_header_preproc=no
16249 fi
16250
16251 rm -f conftest.err conftest.$ac_ext
16252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16253 echo "${ECHO_T}$ac_header_preproc" >&6; }
16254
16255 # So? What about this header?
16256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16257 yes:no: )
16258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16262 ac_header_preproc=yes
16263 ;;
16264 no:yes:* )
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16277
16278 ;;
16279 esac
16280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16283 echo $ECHO_N "(cached) $ECHO_C" >&6
16284 else
16285 eval "$as_ac_Header=\$ac_header_preproc"
16286 fi
16287 ac_res=`eval echo '${'$as_ac_Header'}'`
16288 { echo "$as_me:$LINENO: result: $ac_res" >&5
16289 echo "${ECHO_T}$ac_res" >&6; }
16290
16291 fi
16292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16293 cat >>confdefs.h <<_ACEOF
16294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16295 _ACEOF
16296
16297 fi
16298
16299 done
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309 for ac_func in $ac_func_list
16310 do
16311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317 cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h. */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16325 #define $ac_func innocuous_$ac_func
16326
16327 /* System header to define __stub macros and hopefully few prototypes,
16328 which can conflict with char $ac_func (); below.
16329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16330 <limits.h> exists even on freestanding compilers. */
16331
16332 #ifdef __STDC__
16333 # include <limits.h>
16334 #else
16335 # include <assert.h>
16336 #endif
16337
16338 #undef $ac_func
16339
16340 /* Override any GCC internal prototype to avoid an error.
16341 Use char because int might match the return type of a GCC
16342 builtin and then its argument prototype would still apply. */
16343 #ifdef __cplusplus
16344 extern "C"
16345 #endif
16346 char $ac_func ();
16347 /* The GNU C library defines this for functions which it implements
16348 to always fail with ENOSYS. Some functions are actually named
16349 something starting with __ and the normal name is an alias. */
16350 #if defined __stub_$ac_func || defined __stub___$ac_func
16351 choke me
16352 #endif
16353
16354 int
16355 main ()
16356 {
16357 return $ac_func ();
16358 ;
16359 return 0;
16360 }
16361 _ACEOF
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (ac_try="$ac_link"
16364 case "(($ac_try" in
16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16367 esac
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369 (eval "$ac_link") 2>conftest.er1
16370 ac_status=$?
16371 grep -v '^ *+' conftest.er1 >conftest.err
16372 rm -f conftest.er1
16373 cat conftest.err >&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } && {
16376 test -z "$ac_c_werror_flag" ||
16377 test ! -s conftest.err
16378 } && test -s conftest$ac_exeext &&
16379 $as_test_x conftest$ac_exeext; then
16380 eval "$as_ac_var=yes"
16381 else
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385 eval "$as_ac_var=no"
16386 fi
16387
16388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16389 conftest$ac_exeext conftest.$ac_ext
16390 fi
16391 ac_res=`eval echo '${'$as_ac_var'}'`
16392 { echo "$as_me:$LINENO: result: $ac_res" >&5
16393 echo "${ECHO_T}$ac_res" >&6; }
16394 if test `eval echo '${'$as_ac_var'}'` = yes; then
16395 cat >>confdefs.h <<_ACEOF
16396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16397 _ACEOF
16398
16399 fi
16400 done
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418 { echo "$as_me:$LINENO: checking for working mktime" >&5
16419 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16420 if test "${ac_cv_func_working_mktime+set}" = set; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 else
16423 if test "$cross_compiling" = yes; then
16424 ac_cv_func_working_mktime=no
16425 else
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h. */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 /* Test program from Paul Eggert and Tony Leneis. */
16433 #ifdef TIME_WITH_SYS_TIME
16434 # include <sys/time.h>
16435 # include <time.h>
16436 #else
16437 # ifdef HAVE_SYS_TIME_H
16438 # include <sys/time.h>
16439 # else
16440 # include <time.h>
16441 # endif
16442 #endif
16443
16444 #include <stdlib.h>
16445
16446 #ifdef HAVE_UNISTD_H
16447 # include <unistd.h>
16448 #endif
16449
16450 #ifndef HAVE_ALARM
16451 # define alarm(X) /* empty */
16452 #endif
16453
16454 /* Work around redefinition to rpl_putenv by other config tests. */
16455 #undef putenv
16456
16457 static time_t time_t_max;
16458 static time_t time_t_min;
16459
16460 /* Values we'll use to set the TZ environment variable. */
16461 static char *tz_strings[] = {
16462 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16463 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16464 };
16465 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16466
16467 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16468 Based on a problem report from Andreas Jaeger. */
16469 static int
16470 spring_forward_gap ()
16471 {
16472 /* glibc (up to about 1998-10-07) failed this test. */
16473 struct tm tm;
16474
16475 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16476 instead of "TZ=America/Vancouver" in order to detect the bug even
16477 on systems that don't support the Olson extension, or don't have the
16478 full zoneinfo tables installed. */
16479 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16480
16481 tm.tm_year = 98;
16482 tm.tm_mon = 3;
16483 tm.tm_mday = 5;
16484 tm.tm_hour = 2;
16485 tm.tm_min = 0;
16486 tm.tm_sec = 0;
16487 tm.tm_isdst = -1;
16488 return mktime (&tm) != (time_t) -1;
16489 }
16490
16491 static int
16492 mktime_test1 (now)
16493 time_t now;
16494 {
16495 struct tm *lt;
16496 return ! (lt = localtime (&now)) || mktime (lt) == now;
16497 }
16498
16499 static int
16500 mktime_test (now)
16501 time_t now;
16502 {
16503 return (mktime_test1 (now)
16504 && mktime_test1 ((time_t) (time_t_max - now))
16505 && mktime_test1 ((time_t) (time_t_min + now)));
16506 }
16507
16508 static int
16509 irix_6_4_bug ()
16510 {
16511 /* Based on code from Ariel Faigon. */
16512 struct tm tm;
16513 tm.tm_year = 96;
16514 tm.tm_mon = 3;
16515 tm.tm_mday = 0;
16516 tm.tm_hour = 0;
16517 tm.tm_min = 0;
16518 tm.tm_sec = 0;
16519 tm.tm_isdst = -1;
16520 mktime (&tm);
16521 return tm.tm_mon == 2 && tm.tm_mday == 31;
16522 }
16523
16524 static int
16525 bigtime_test (j)
16526 int j;
16527 {
16528 struct tm tm;
16529 time_t now;
16530 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16531 now = mktime (&tm);
16532 if (now != (time_t) -1)
16533 {
16534 struct tm *lt = localtime (&now);
16535 if (! (lt
16536 && lt->tm_year == tm.tm_year
16537 && lt->tm_mon == tm.tm_mon
16538 && lt->tm_mday == tm.tm_mday
16539 && lt->tm_hour == tm.tm_hour
16540 && lt->tm_min == tm.tm_min
16541 && lt->tm_sec == tm.tm_sec
16542 && lt->tm_yday == tm.tm_yday
16543 && lt->tm_wday == tm.tm_wday
16544 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16545 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16546 return 0;
16547 }
16548 return 1;
16549 }
16550
16551 static int
16552 year_2050_test ()
16553 {
16554 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16555 ignoring leap seconds. */
16556 unsigned long int answer = 2527315200UL;
16557
16558 struct tm tm;
16559 time_t t;
16560 tm.tm_year = 2050 - 1900;
16561 tm.tm_mon = 2 - 1;
16562 tm.tm_mday = 1;
16563 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16564 tm.tm_isdst = -1;
16565
16566 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16567 instead of "TZ=America/Vancouver" in order to detect the bug even
16568 on systems that don't support the Olson extension, or don't have the
16569 full zoneinfo tables installed. */
16570 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16571
16572 t = mktime (&tm);
16573
16574 /* Check that the result is either a failure, or close enough
16575 to the correct answer that we can assume the discrepancy is
16576 due to leap seconds. */
16577 return (t == (time_t) -1
16578 || (0 < t && answer - 120 <= t && t <= answer + 120));
16579 }
16580
16581 int
16582 main ()
16583 {
16584 time_t t, delta;
16585 int i, j;
16586
16587 /* This test makes some buggy mktime implementations loop.
16588 Give up after 60 seconds; a mktime slower than that
16589 isn't worth using anyway. */
16590 alarm (60);
16591
16592 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16593 continue;
16594 time_t_max--;
16595 if ((time_t) -1 < 0)
16596 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16597 continue;
16598 delta = time_t_max / 997; /* a suitable prime number */
16599 for (i = 0; i < N_STRINGS; i++)
16600 {
16601 if (tz_strings[i])
16602 putenv (tz_strings[i]);
16603
16604 for (t = 0; t <= time_t_max - delta; t += delta)
16605 if (! mktime_test (t))
16606 return 1;
16607 if (! (mktime_test ((time_t) 1)
16608 && mktime_test ((time_t) (60 * 60))
16609 && mktime_test ((time_t) (60 * 60 * 24))))
16610 return 1;
16611
16612 for (j = 1; 0 < j; j *= 2)
16613 if (! bigtime_test (j))
16614 return 1;
16615 if (! bigtime_test (j - 1))
16616 return 1;
16617 }
16618 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16619 }
16620 _ACEOF
16621 rm -f conftest$ac_exeext
16622 if { (ac_try="$ac_link"
16623 case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16626 esac
16627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628 (eval "$ac_link") 2>&5
16629 ac_status=$?
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; }; then
16641 ac_cv_func_working_mktime=yes
16642 else
16643 echo "$as_me: program exited with status $ac_status" >&5
16644 echo "$as_me: failed program was:" >&5
16645 sed 's/^/| /' conftest.$ac_ext >&5
16646
16647 ( exit $ac_status )
16648 ac_cv_func_working_mktime=no
16649 fi
16650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16651 fi
16652
16653
16654 fi
16655 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16656 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16657 if test $ac_cv_func_working_mktime = no; then
16658 case " $LIBOBJS " in
16659 *" mktime.$ac_objext "* ) ;;
16660 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16661 ;;
16662 esac
16663
16664 fi
16665
16666 if test "$ac_cv_func_working_mktime" = no; then
16667
16668 cat >>confdefs.h <<\_ACEOF
16669 #define BROKEN_MKTIME 1
16670 _ACEOF
16671
16672 fi
16673
16674 ac_have_func=no # yes means we've found a way to get the load average.
16675
16676 # Make sure getloadavg.c is where it belongs, at configure-time.
16677 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16678 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16679 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16680 { (exit 1); exit 1; }; }
16681
16682 ac_save_LIBS=$LIBS
16683
16684 # Check for getloadavg, but be sure not to touch the cache variable.
16685 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16686 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16687 if test "${ac_cv_func_getloadavg+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16689 else
16690 cat >conftest.$ac_ext <<_ACEOF
16691 /* confdefs.h. */
16692 _ACEOF
16693 cat confdefs.h >>conftest.$ac_ext
16694 cat >>conftest.$ac_ext <<_ACEOF
16695 /* end confdefs.h. */
16696 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16698 #define getloadavg innocuous_getloadavg
16699
16700 /* System header to define __stub macros and hopefully few prototypes,
16701 which can conflict with char getloadavg (); below.
16702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16703 <limits.h> exists even on freestanding compilers. */
16704
16705 #ifdef __STDC__
16706 # include <limits.h>
16707 #else
16708 # include <assert.h>
16709 #endif
16710
16711 #undef getloadavg
16712
16713 /* Override any GCC internal prototype to avoid an error.
16714 Use char because int might match the return type of a GCC
16715 builtin and then its argument prototype would still apply. */
16716 #ifdef __cplusplus
16717 extern "C"
16718 #endif
16719 char getloadavg ();
16720 /* The GNU C library defines this for functions which it implements
16721 to always fail with ENOSYS. Some functions are actually named
16722 something starting with __ and the normal name is an alias. */
16723 #if defined __stub_getloadavg || defined __stub___getloadavg
16724 choke me
16725 #endif
16726
16727 int
16728 main ()
16729 {
16730 return getloadavg ();
16731 ;
16732 return 0;
16733 }
16734 _ACEOF
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_link") 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } && {
16749 test -z "$ac_c_werror_flag" ||
16750 test ! -s conftest.err
16751 } && test -s conftest$ac_exeext &&
16752 $as_test_x conftest$ac_exeext; then
16753 ac_cv_func_getloadavg=yes
16754 else
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16757
16758 ac_cv_func_getloadavg=no
16759 fi
16760
16761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16762 conftest$ac_exeext conftest.$ac_ext
16763 fi
16764 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16765 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16766 if test $ac_cv_func_getloadavg = yes; then
16767 exit 0
16768 else
16769 exit 1
16770 fi
16771 ) && ac_have_func=yes
16772
16773 # On HPUX9, an unprivileged user can get load averages through this function.
16774
16775 for ac_func in pstat_getdynamic
16776 do
16777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 else
16783 cat >conftest.$ac_ext <<_ACEOF
16784 /* confdefs.h. */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16791 #define $ac_func innocuous_$ac_func
16792
16793 /* System header to define __stub macros and hopefully few prototypes,
16794 which can conflict with char $ac_func (); below.
16795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16796 <limits.h> exists even on freestanding compilers. */
16797
16798 #ifdef __STDC__
16799 # include <limits.h>
16800 #else
16801 # include <assert.h>
16802 #endif
16803
16804 #undef $ac_func
16805
16806 /* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
16809 #ifdef __cplusplus
16810 extern "C"
16811 #endif
16812 char $ac_func ();
16813 /* The GNU C library defines this for functions which it implements
16814 to always fail with ENOSYS. Some functions are actually named
16815 something starting with __ and the normal name is an alias. */
16816 #if defined __stub_$ac_func || defined __stub___$ac_func
16817 choke me
16818 #endif
16819
16820 int
16821 main ()
16822 {
16823 return $ac_func ();
16824 ;
16825 return 0;
16826 }
16827 _ACEOF
16828 rm -f conftest.$ac_objext conftest$ac_exeext
16829 if { (ac_try="$ac_link"
16830 case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833 esac
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_link") 2>conftest.er1
16836 ac_status=$?
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } && {
16842 test -z "$ac_c_werror_flag" ||
16843 test ! -s conftest.err
16844 } && test -s conftest$ac_exeext &&
16845 $as_test_x conftest$ac_exeext; then
16846 eval "$as_ac_var=yes"
16847 else
16848 echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16850
16851 eval "$as_ac_var=no"
16852 fi
16853
16854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16855 conftest$ac_exeext conftest.$ac_ext
16856 fi
16857 ac_res=`eval echo '${'$as_ac_var'}'`
16858 { echo "$as_me:$LINENO: result: $ac_res" >&5
16859 echo "${ECHO_T}$ac_res" >&6; }
16860 if test `eval echo '${'$as_ac_var'}'` = yes; then
16861 cat >>confdefs.h <<_ACEOF
16862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16863 _ACEOF
16864
16865 fi
16866 done
16867
16868
16869 # Solaris has libkstat which does not require root.
16870
16871 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16872 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16873 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 else
16876 ac_check_lib_save_LIBS=$LIBS
16877 LIBS="-lkstat $LIBS"
16878 cat >conftest.$ac_ext <<_ACEOF
16879 /* confdefs.h. */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884
16885 /* Override any GCC internal prototype to avoid an error.
16886 Use char because int might match the return type of a GCC
16887 builtin and then its argument prototype would still apply. */
16888 #ifdef __cplusplus
16889 extern "C"
16890 #endif
16891 char kstat_open ();
16892 int
16893 main ()
16894 {
16895 return kstat_open ();
16896 ;
16897 return 0;
16898 }
16899 _ACEOF
16900 rm -f conftest.$ac_objext conftest$ac_exeext
16901 if { (ac_try="$ac_link"
16902 case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_link") 2>conftest.er1
16908 ac_status=$?
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } && {
16914 test -z "$ac_c_werror_flag" ||
16915 test ! -s conftest.err
16916 } && test -s conftest$ac_exeext &&
16917 $as_test_x conftest$ac_exeext; then
16918 ac_cv_lib_kstat_kstat_open=yes
16919 else
16920 echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16922
16923 ac_cv_lib_kstat_kstat_open=no
16924 fi
16925
16926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16927 conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16929 fi
16930 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16931 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16932 if test $ac_cv_lib_kstat_kstat_open = yes; then
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_LIBKSTAT 1
16935 _ACEOF
16936
16937 LIBS="-lkstat $LIBS"
16938
16939 fi
16940
16941 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16942
16943 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16944 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16945 # to get the right answer into the cache.
16946 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16947 if test $ac_have_func = no; then
16948 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16949 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16950 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953 ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-lelf $LIBS"
16955 cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h. */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16961
16962 /* Override any GCC internal prototype to avoid an error.
16963 Use char because int might match the return type of a GCC
16964 builtin and then its argument prototype would still apply. */
16965 #ifdef __cplusplus
16966 extern "C"
16967 #endif
16968 char elf_begin ();
16969 int
16970 main ()
16971 {
16972 return elf_begin ();
16973 ;
16974 return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (ac_try="$ac_link"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16982 esac
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_link") 2>conftest.er1
16985 ac_status=$?
16986 grep -v '^ *+' conftest.er1 >conftest.err
16987 rm -f conftest.er1
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } && {
16991 test -z "$ac_c_werror_flag" ||
16992 test ! -s conftest.err
16993 } && test -s conftest$ac_exeext &&
16994 $as_test_x conftest$ac_exeext; then
16995 ac_cv_lib_elf_elf_begin=yes
16996 else
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000 ac_cv_lib_elf_elf_begin=no
17001 fi
17002
17003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17004 conftest$ac_exeext conftest.$ac_ext
17005 LIBS=$ac_check_lib_save_LIBS
17006 fi
17007 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17008 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17009 if test $ac_cv_lib_elf_elf_begin = yes; then
17010 LIBS="-lelf $LIBS"
17011 fi
17012
17013 fi
17014 if test $ac_have_func = no; then
17015 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17016 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17017 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 else
17020 ac_check_lib_save_LIBS=$LIBS
17021 LIBS="-lkvm $LIBS"
17022 cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h. */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028
17029 /* Override any GCC internal prototype to avoid an error.
17030 Use char because int might match the return type of a GCC
17031 builtin and then its argument prototype would still apply. */
17032 #ifdef __cplusplus
17033 extern "C"
17034 #endif
17035 char kvm_open ();
17036 int
17037 main ()
17038 {
17039 return kvm_open ();
17040 ;
17041 return 0;
17042 }
17043 _ACEOF
17044 rm -f conftest.$ac_objext conftest$ac_exeext
17045 if { (ac_try="$ac_link"
17046 case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17049 esac
17050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051 (eval "$ac_link") 2>conftest.er1
17052 ac_status=$?
17053 grep -v '^ *+' conftest.er1 >conftest.err
17054 rm -f conftest.er1
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } && {
17058 test -z "$ac_c_werror_flag" ||
17059 test ! -s conftest.err
17060 } && test -s conftest$ac_exeext &&
17061 $as_test_x conftest$ac_exeext; then
17062 ac_cv_lib_kvm_kvm_open=yes
17063 else
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067 ac_cv_lib_kvm_kvm_open=no
17068 fi
17069
17070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17071 conftest$ac_exeext conftest.$ac_ext
17072 LIBS=$ac_check_lib_save_LIBS
17073 fi
17074 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17075 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17076 if test $ac_cv_lib_kvm_kvm_open = yes; then
17077 LIBS="-lkvm $LIBS"
17078 fi
17079
17080 # Check for the 4.4BSD definition of getloadavg.
17081 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17082 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17083 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086 ac_check_lib_save_LIBS=$LIBS
17087 LIBS="-lutil $LIBS"
17088 cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h. */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17094
17095 /* Override any GCC internal prototype to avoid an error.
17096 Use char because int might match the return type of a GCC
17097 builtin and then its argument prototype would still apply. */
17098 #ifdef __cplusplus
17099 extern "C"
17100 #endif
17101 char getloadavg ();
17102 int
17103 main ()
17104 {
17105 return getloadavg ();
17106 ;
17107 return 0;
17108 }
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_link") 2>conftest.er1
17118 ac_status=$?
17119 grep -v '^ *+' conftest.er1 >conftest.err
17120 rm -f conftest.er1
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest$ac_exeext &&
17127 $as_test_x conftest$ac_exeext; then
17128 ac_cv_lib_util_getloadavg=yes
17129 else
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 ac_cv_lib_util_getloadavg=no
17134 fi
17135
17136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137 conftest$ac_exeext conftest.$ac_ext
17138 LIBS=$ac_check_lib_save_LIBS
17139 fi
17140 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17141 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17142 if test $ac_cv_lib_util_getloadavg = yes; then
17143 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17144 fi
17145
17146 fi
17147
17148 if test $ac_have_func = no; then
17149 # There is a commonly available library for RS/6000 AIX.
17150 # Since it is not a standard part of AIX, it might be installed locally.
17151 ac_getloadavg_LIBS=$LIBS
17152 LIBS="-L/usr/local/lib $LIBS"
17153 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17154 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17155 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17158 ac_check_lib_save_LIBS=$LIBS
17159 LIBS="-lgetloadavg $LIBS"
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h. */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166
17167 /* Override any GCC internal prototype to avoid an error.
17168 Use char because int might match the return type of a GCC
17169 builtin and then its argument prototype would still apply. */
17170 #ifdef __cplusplus
17171 extern "C"
17172 #endif
17173 char getloadavg ();
17174 int
17175 main ()
17176 {
17177 return getloadavg ();
17178 ;
17179 return 0;
17180 }
17181 _ACEOF
17182 rm -f conftest.$ac_objext conftest$ac_exeext
17183 if { (ac_try="$ac_link"
17184 case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17187 esac
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_link") 2>conftest.er1
17190 ac_status=$?
17191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && {
17196 test -z "$ac_c_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest$ac_exeext &&
17199 $as_test_x conftest$ac_exeext; then
17200 ac_cv_lib_getloadavg_getloadavg=yes
17201 else
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17204
17205 ac_cv_lib_getloadavg_getloadavg=no
17206 fi
17207
17208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17209 conftest$ac_exeext conftest.$ac_ext
17210 LIBS=$ac_check_lib_save_LIBS
17211 fi
17212 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17213 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17214 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17215 LIBS="-lgetloadavg $LIBS"
17216 else
17217 LIBS=$ac_getloadavg_LIBS
17218 fi
17219
17220 fi
17221
17222 # Make sure it is really in the library, if we think we found it,
17223 # otherwise set up the replacement function.
17224
17225 for ac_func in getloadavg
17226 do
17227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233 cat >conftest.$ac_ext <<_ACEOF
17234 /* confdefs.h. */
17235 _ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17241 #define $ac_func innocuous_$ac_func
17242
17243 /* System header to define __stub macros and hopefully few prototypes,
17244 which can conflict with char $ac_func (); below.
17245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17246 <limits.h> exists even on freestanding compilers. */
17247
17248 #ifdef __STDC__
17249 # include <limits.h>
17250 #else
17251 # include <assert.h>
17252 #endif
17253
17254 #undef $ac_func
17255
17256 /* Override any GCC internal prototype to avoid an error.
17257 Use char because int might match the return type of a GCC
17258 builtin and then its argument prototype would still apply. */
17259 #ifdef __cplusplus
17260 extern "C"
17261 #endif
17262 char $ac_func ();
17263 /* The GNU C library defines this for functions which it implements
17264 to always fail with ENOSYS. Some functions are actually named
17265 something starting with __ and the normal name is an alias. */
17266 #if defined __stub_$ac_func || defined __stub___$ac_func
17267 choke me
17268 #endif
17269
17270 int
17271 main ()
17272 {
17273 return $ac_func ();
17274 ;
17275 return 0;
17276 }
17277 _ACEOF
17278 rm -f conftest.$ac_objext conftest$ac_exeext
17279 if { (ac_try="$ac_link"
17280 case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17283 esac
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_link") 2>conftest.er1
17286 ac_status=$?
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } && {
17292 test -z "$ac_c_werror_flag" ||
17293 test ! -s conftest.err
17294 } && test -s conftest$ac_exeext &&
17295 $as_test_x conftest$ac_exeext; then
17296 eval "$as_ac_var=yes"
17297 else
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17300
17301 eval "$as_ac_var=no"
17302 fi
17303
17304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17305 conftest$ac_exeext conftest.$ac_ext
17306 fi
17307 ac_res=`eval echo '${'$as_ac_var'}'`
17308 { echo "$as_me:$LINENO: result: $ac_res" >&5
17309 echo "${ECHO_T}$ac_res" >&6; }
17310 if test `eval echo '${'$as_ac_var'}'` = yes; then
17311 cat >>confdefs.h <<_ACEOF
17312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17313 _ACEOF
17314
17315 else
17316 case " $LIBOBJS " in
17317 *" getloadavg.$ac_objext "* ) ;;
17318 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17319 ;;
17320 esac
17321
17322
17323 cat >>confdefs.h <<\_ACEOF
17324 #define C_GETLOADAVG 1
17325 _ACEOF
17326
17327 # Figure out what our getloadavg.c needs.
17328 ac_have_func=no
17329 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17330 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17331 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17332 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 fi
17335 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17336 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17337 else
17338 # Is the header compilable?
17339 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17340 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17341 cat >conftest.$ac_ext <<_ACEOF
17342 /* confdefs.h. */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 $ac_includes_default
17348 #include <sys/dg_sys_info.h>
17349 _ACEOF
17350 rm -f conftest.$ac_objext
17351 if { (ac_try="$ac_compile"
17352 case "(($ac_try" in
17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17354 *) ac_try_echo=$ac_try;;
17355 esac
17356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17357 (eval "$ac_compile") 2>conftest.er1
17358 ac_status=$?
17359 grep -v '^ *+' conftest.er1 >conftest.err
17360 rm -f conftest.er1
17361 cat conftest.err >&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } && {
17364 test -z "$ac_c_werror_flag" ||
17365 test ! -s conftest.err
17366 } && test -s conftest.$ac_objext; then
17367 ac_header_compiler=yes
17368 else
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372 ac_header_compiler=no
17373 fi
17374
17375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17377 echo "${ECHO_T}$ac_header_compiler" >&6; }
17378
17379 # Is the header present?
17380 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17381 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17382 cat >conftest.$ac_ext <<_ACEOF
17383 /* confdefs.h. */
17384 _ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17388 #include <sys/dg_sys_info.h>
17389 _ACEOF
17390 if { (ac_try="$ac_cpp conftest.$ac_ext"
17391 case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17394 esac
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17397 ac_status=$?
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } >/dev/null && {
17403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17404 test ! -s conftest.err
17405 }; then
17406 ac_header_preproc=yes
17407 else
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17410
17411 ac_header_preproc=no
17412 fi
17413
17414 rm -f conftest.err conftest.$ac_ext
17415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17416 echo "${ECHO_T}$ac_header_preproc" >&6; }
17417
17418 # So? What about this header?
17419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17420 yes:no: )
17421 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17422 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17423 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17424 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17425 ac_header_preproc=yes
17426 ;;
17427 no:yes:* )
17428 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17429 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17430 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17431 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17433 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17435 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17437 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17438 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17439 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17440
17441 ;;
17442 esac
17443 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17444 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17445 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17449 fi
17450 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17451 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17452
17453 fi
17454 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17455 ac_have_func=yes
17456
17457 cat >>confdefs.h <<\_ACEOF
17458 #define DGUX 1
17459 _ACEOF
17460
17461
17462 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17463 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17464 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467 ac_check_lib_save_LIBS=$LIBS
17468 LIBS="-ldgc $LIBS"
17469 cat >conftest.$ac_ext <<_ACEOF
17470 /* confdefs.h. */
17471 _ACEOF
17472 cat confdefs.h >>conftest.$ac_ext
17473 cat >>conftest.$ac_ext <<_ACEOF
17474 /* end confdefs.h. */
17475
17476 /* Override any GCC internal prototype to avoid an error.
17477 Use char because int might match the return type of a GCC
17478 builtin and then its argument prototype would still apply. */
17479 #ifdef __cplusplus
17480 extern "C"
17481 #endif
17482 char dg_sys_info ();
17483 int
17484 main ()
17485 {
17486 return dg_sys_info ();
17487 ;
17488 return 0;
17489 }
17490 _ACEOF
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (ac_try="$ac_link"
17493 case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17496 esac
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_link") 2>conftest.er1
17499 ac_status=$?
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } && {
17505 test -z "$ac_c_werror_flag" ||
17506 test ! -s conftest.err
17507 } && test -s conftest$ac_exeext &&
17508 $as_test_x conftest$ac_exeext; then
17509 ac_cv_lib_dgc_dg_sys_info=yes
17510 else
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17513
17514 ac_cv_lib_dgc_dg_sys_info=no
17515 fi
17516
17517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17518 conftest$ac_exeext conftest.$ac_ext
17519 LIBS=$ac_check_lib_save_LIBS
17520 fi
17521 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17522 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17523 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525 #define HAVE_LIBDGC 1
17526 _ACEOF
17527
17528 LIBS="-ldgc $LIBS"
17529
17530 fi
17531
17532 fi
17533
17534
17535
17536 if test "${ac_cv_header_locale_h+set}" = set; then
17537 { echo "$as_me:$LINENO: checking for locale.h" >&5
17538 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17539 if test "${ac_cv_header_locale_h+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 fi
17542 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17543 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17544 else
17545 # Is the header compilable?
17546 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17547 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17548 cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h. */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17554 $ac_includes_default
17555 #include <locale.h>
17556 _ACEOF
17557 rm -f conftest.$ac_objext
17558 if { (ac_try="$ac_compile"
17559 case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17565 ac_status=$?
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } && {
17571 test -z "$ac_c_werror_flag" ||
17572 test ! -s conftest.err
17573 } && test -s conftest.$ac_objext; then
17574 ac_header_compiler=yes
17575 else
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17578
17579 ac_header_compiler=no
17580 fi
17581
17582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17584 echo "${ECHO_T}$ac_header_compiler" >&6; }
17585
17586 # Is the header present?
17587 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17588 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17589 cat >conftest.$ac_ext <<_ACEOF
17590 /* confdefs.h. */
17591 _ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h. */
17595 #include <locale.h>
17596 _ACEOF
17597 if { (ac_try="$ac_cpp conftest.$ac_ext"
17598 case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17604 ac_status=$?
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } >/dev/null && {
17610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17611 test ! -s conftest.err
17612 }; then
17613 ac_header_preproc=yes
17614 else
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17617
17618 ac_header_preproc=no
17619 fi
17620
17621 rm -f conftest.err conftest.$ac_ext
17622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17623 echo "${ECHO_T}$ac_header_preproc" >&6; }
17624
17625 # So? What about this header?
17626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17627 yes:no: )
17628 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17629 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17630 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17631 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17632 ac_header_preproc=yes
17633 ;;
17634 no:yes:* )
17635 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17636 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17637 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17638 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17639 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17640 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17641 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17642 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17643 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17644 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17645 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17646 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17647
17648 ;;
17649 esac
17650 { echo "$as_me:$LINENO: checking for locale.h" >&5
17651 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17652 if test "${ac_cv_header_locale_h+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655 ac_cv_header_locale_h=$ac_header_preproc
17656 fi
17657 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17658 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17659
17660 fi
17661
17662
17663
17664 for ac_func in setlocale
17665 do
17666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17667 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17669 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 else
17672 cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h. */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17680 #define $ac_func innocuous_$ac_func
17681
17682 /* System header to define __stub macros and hopefully few prototypes,
17683 which can conflict with char $ac_func (); below.
17684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17685 <limits.h> exists even on freestanding compilers. */
17686
17687 #ifdef __STDC__
17688 # include <limits.h>
17689 #else
17690 # include <assert.h>
17691 #endif
17692
17693 #undef $ac_func
17694
17695 /* Override any GCC internal prototype to avoid an error.
17696 Use char because int might match the return type of a GCC
17697 builtin and then its argument prototype would still apply. */
17698 #ifdef __cplusplus
17699 extern "C"
17700 #endif
17701 char $ac_func ();
17702 /* The GNU C library defines this for functions which it implements
17703 to always fail with ENOSYS. Some functions are actually named
17704 something starting with __ and the normal name is an alias. */
17705 #if defined __stub_$ac_func || defined __stub___$ac_func
17706 choke me
17707 #endif
17708
17709 int
17710 main ()
17711 {
17712 return $ac_func ();
17713 ;
17714 return 0;
17715 }
17716 _ACEOF
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (ac_try="$ac_link"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17722 esac
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_link") 2>conftest.er1
17725 ac_status=$?
17726 grep -v '^ *+' conftest.er1 >conftest.err
17727 rm -f conftest.er1
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } && {
17731 test -z "$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 } && test -s conftest$ac_exeext &&
17734 $as_test_x conftest$ac_exeext; then
17735 eval "$as_ac_var=yes"
17736 else
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17739
17740 eval "$as_ac_var=no"
17741 fi
17742
17743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17744 conftest$ac_exeext conftest.$ac_ext
17745 fi
17746 ac_res=`eval echo '${'$as_ac_var'}'`
17747 { echo "$as_me:$LINENO: result: $ac_res" >&5
17748 echo "${ECHO_T}$ac_res" >&6; }
17749 if test `eval echo '${'$as_ac_var'}'` = yes; then
17750 cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17752 _ACEOF
17753
17754 fi
17755 done
17756
17757
17758 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17759 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17760 # Irix 4.0.5F has the header but not the library.
17761 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17762 ac_have_func=yes
17763
17764 cat >>confdefs.h <<\_ACEOF
17765 #define SVR4 1
17766 _ACEOF
17767
17768 fi
17769
17770 if test $ac_have_func = no; then
17771 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17772 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17773 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17774 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 fi
17777 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17778 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17779 else
17780 # Is the header compilable?
17781 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17782 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17783 cat >conftest.$ac_ext <<_ACEOF
17784 /* confdefs.h. */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 $ac_includes_default
17790 #include <inq_stats/cpustats.h>
17791 _ACEOF
17792 rm -f conftest.$ac_objext
17793 if { (ac_try="$ac_compile"
17794 case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17797 esac
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799 (eval "$ac_compile") 2>conftest.er1
17800 ac_status=$?
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } && {
17806 test -z "$ac_c_werror_flag" ||
17807 test ! -s conftest.err
17808 } && test -s conftest.$ac_objext; then
17809 ac_header_compiler=yes
17810 else
17811 echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17813
17814 ac_header_compiler=no
17815 fi
17816
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17819 echo "${ECHO_T}$ac_header_compiler" >&6; }
17820
17821 # Is the header present?
17822 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17823 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17824 cat >conftest.$ac_ext <<_ACEOF
17825 /* confdefs.h. */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 #include <inq_stats/cpustats.h>
17831 _ACEOF
17832 if { (ac_try="$ac_cpp conftest.$ac_ext"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } >/dev/null && {
17845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17846 test ! -s conftest.err
17847 }; then
17848 ac_header_preproc=yes
17849 else
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17852
17853 ac_header_preproc=no
17854 fi
17855
17856 rm -f conftest.err conftest.$ac_ext
17857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17858 echo "${ECHO_T}$ac_header_preproc" >&6; }
17859
17860 # So? What about this header?
17861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17862 yes:no: )
17863 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17864 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17865 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17866 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17867 ac_header_preproc=yes
17868 ;;
17869 no:yes:* )
17870 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17871 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17872 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17873 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17874 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17875 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17876 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17877 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17878 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17879 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17880 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17881 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17882
17883 ;;
17884 esac
17885 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17886 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17887 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 else
17890 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17891 fi
17892 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17893 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17894
17895 fi
17896 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17897 ac_have_func=yes
17898
17899 cat >>confdefs.h <<\_ACEOF
17900 #define UMAX 1
17901 _ACEOF
17902
17903
17904 cat >>confdefs.h <<\_ACEOF
17905 #define UMAX4_3 1
17906 _ACEOF
17907
17908 fi
17909
17910
17911 fi
17912
17913 if test $ac_have_func = no; then
17914 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17915 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17916 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17917 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 fi
17920 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17921 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17922 else
17923 # Is the header compilable?
17924 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17925 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17926 cat >conftest.$ac_ext <<_ACEOF
17927 /* confdefs.h. */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 $ac_includes_default
17933 #include <sys/cpustats.h>
17934 _ACEOF
17935 rm -f conftest.$ac_objext
17936 if { (ac_try="$ac_compile"
17937 case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17940 esac
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_compile") 2>conftest.er1
17943 ac_status=$?
17944 grep -v '^ *+' conftest.er1 >conftest.err
17945 rm -f conftest.er1
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } && {
17949 test -z "$ac_c_werror_flag" ||
17950 test ! -s conftest.err
17951 } && test -s conftest.$ac_objext; then
17952 ac_header_compiler=yes
17953 else
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17956
17957 ac_header_compiler=no
17958 fi
17959
17960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17962 echo "${ECHO_T}$ac_header_compiler" >&6; }
17963
17964 # Is the header present?
17965 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17966 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17967 cat >conftest.$ac_ext <<_ACEOF
17968 /* confdefs.h. */
17969 _ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17973 #include <sys/cpustats.h>
17974 _ACEOF
17975 if { (ac_try="$ac_cpp conftest.$ac_ext"
17976 case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17979 esac
17980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17982 ac_status=$?
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } >/dev/null && {
17988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17989 test ! -s conftest.err
17990 }; then
17991 ac_header_preproc=yes
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17995
17996 ac_header_preproc=no
17997 fi
17998
17999 rm -f conftest.err conftest.$ac_ext
18000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18001 echo "${ECHO_T}$ac_header_preproc" >&6; }
18002
18003 # So? What about this header?
18004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18005 yes:no: )
18006 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18007 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18008 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18009 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18010 ac_header_preproc=yes
18011 ;;
18012 no:yes:* )
18013 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18014 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18015 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18016 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18017 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18018 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18019 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18020 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18021 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18022 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18023 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18024 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18025
18026 ;;
18027 esac
18028 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18029 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18030 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 else
18033 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18034 fi
18035 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18036 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18037
18038 fi
18039 if test $ac_cv_header_sys_cpustats_h = yes; then
18040 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18041 #define UMAX 1
18042 _ACEOF
18043
18044 fi
18045
18046
18047 fi
18048
18049 if test $ac_have_func = no; then
18050
18051 for ac_header in mach/mach.h
18052 do
18053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18059 fi
18060 ac_res=`eval echo '${'$as_ac_Header'}'`
18061 { echo "$as_me:$LINENO: result: $ac_res" >&5
18062 echo "${ECHO_T}$ac_res" >&6; }
18063 else
18064 # Is the header compilable?
18065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18067 cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h. */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 $ac_includes_default
18074 #include <$ac_header>
18075 _ACEOF
18076 rm -f conftest.$ac_objext
18077 if { (ac_try="$ac_compile"
18078 case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18081 esac
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_compile") 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } && {
18090 test -z "$ac_c_werror_flag" ||
18091 test ! -s conftest.err
18092 } && test -s conftest.$ac_objext; then
18093 ac_header_compiler=yes
18094 else
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18097
18098 ac_header_compiler=no
18099 fi
18100
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18103 echo "${ECHO_T}$ac_header_compiler" >&6; }
18104
18105 # Is the header present?
18106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18108 cat >conftest.$ac_ext <<_ACEOF
18109 /* confdefs.h. */
18110 _ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18114 #include <$ac_header>
18115 _ACEOF
18116 if { (ac_try="$ac_cpp conftest.$ac_ext"
18117 case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18123 ac_status=$?
18124 grep -v '^ *+' conftest.er1 >conftest.err
18125 rm -f conftest.er1
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } >/dev/null && {
18129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18130 test ! -s conftest.err
18131 }; then
18132 ac_header_preproc=yes
18133 else
18134 echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18136
18137 ac_header_preproc=no
18138 fi
18139
18140 rm -f conftest.err conftest.$ac_ext
18141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18142 echo "${ECHO_T}$ac_header_preproc" >&6; }
18143
18144 # So? What about this header?
18145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18146 yes:no: )
18147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18151 ac_header_preproc=yes
18152 ;;
18153 no:yes:* )
18154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18166
18167 ;;
18168 esac
18169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174 eval "$as_ac_Header=\$ac_header_preproc"
18175 fi
18176 ac_res=`eval echo '${'$as_ac_Header'}'`
18177 { echo "$as_me:$LINENO: result: $ac_res" >&5
18178 echo "${ECHO_T}$ac_res" >&6; }
18179
18180 fi
18181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18182 cat >>confdefs.h <<_ACEOF
18183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18184 _ACEOF
18185
18186 fi
18187
18188 done
18189
18190 fi
18191
18192
18193 for ac_header in nlist.h
18194 do
18195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 fi
18202 ac_res=`eval echo '${'$as_ac_Header'}'`
18203 { echo "$as_me:$LINENO: result: $ac_res" >&5
18204 echo "${ECHO_T}$ac_res" >&6; }
18205 else
18206 # Is the header compilable?
18207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h. */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 $ac_includes_default
18216 #include <$ac_header>
18217 _ACEOF
18218 rm -f conftest.$ac_objext
18219 if { (ac_try="$ac_compile"
18220 case "(($ac_try" in
18221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18222 *) ac_try_echo=$ac_try;;
18223 esac
18224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18225 (eval "$ac_compile") 2>conftest.er1
18226 ac_status=$?
18227 grep -v '^ *+' conftest.er1 >conftest.err
18228 rm -f conftest.er1
18229 cat conftest.err >&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } && {
18232 test -z "$ac_c_werror_flag" ||
18233 test ! -s conftest.err
18234 } && test -s conftest.$ac_objext; then
18235 ac_header_compiler=yes
18236 else
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18239
18240 ac_header_compiler=no
18241 fi
18242
18243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18245 echo "${ECHO_T}$ac_header_compiler" >&6; }
18246
18247 # Is the header present?
18248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18250 cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h. */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 #include <$ac_header>
18257 _ACEOF
18258 if { (ac_try="$ac_cpp conftest.$ac_ext"
18259 case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262 esac
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18265 ac_status=$?
18266 grep -v '^ *+' conftest.er1 >conftest.err
18267 rm -f conftest.er1
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } >/dev/null && {
18271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18272 test ! -s conftest.err
18273 }; then
18274 ac_header_preproc=yes
18275 else
18276 echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18278
18279 ac_header_preproc=no
18280 fi
18281
18282 rm -f conftest.err conftest.$ac_ext
18283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18284 echo "${ECHO_T}$ac_header_preproc" >&6; }
18285
18286 # So? What about this header?
18287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18288 yes:no: )
18289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18293 ac_header_preproc=yes
18294 ;;
18295 no:yes:* )
18296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18308
18309 ;;
18310 esac
18311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18315 else
18316 eval "$as_ac_Header=\$ac_header_preproc"
18317 fi
18318 ac_res=`eval echo '${'$as_ac_Header'}'`
18319 { echo "$as_me:$LINENO: result: $ac_res" >&5
18320 echo "${ECHO_T}$ac_res" >&6; }
18321
18322 fi
18323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18324 cat >>confdefs.h <<_ACEOF
18325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18326 _ACEOF
18327 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18328 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18329 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 else
18332 cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h. */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18338 #include <nlist.h>
18339
18340 int
18341 main ()
18342 {
18343 static struct nlist ac_aggr;
18344 if (ac_aggr.n_un.n_name)
18345 return 0;
18346 ;
18347 return 0;
18348 }
18349 _ACEOF
18350 rm -f conftest.$ac_objext
18351 if { (ac_try="$ac_compile"
18352 case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_compile") 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } && {
18364 test -z "$ac_c_werror_flag" ||
18365 test ! -s conftest.err
18366 } && test -s conftest.$ac_objext; then
18367 ac_cv_member_struct_nlist_n_un_n_name=yes
18368 else
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18371
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h. */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 #include <nlist.h>
18379
18380 int
18381 main ()
18382 {
18383 static struct nlist ac_aggr;
18384 if (sizeof ac_aggr.n_un.n_name)
18385 return 0;
18386 ;
18387 return 0;
18388 }
18389 _ACEOF
18390 rm -f conftest.$ac_objext
18391 if { (ac_try="$ac_compile"
18392 case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18395 esac
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_compile") 2>conftest.er1
18398 ac_status=$?
18399 grep -v '^ *+' conftest.er1 >conftest.err
18400 rm -f conftest.er1
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } && {
18404 test -z "$ac_c_werror_flag" ||
18405 test ! -s conftest.err
18406 } && test -s conftest.$ac_objext; then
18407 ac_cv_member_struct_nlist_n_un_n_name=yes
18408 else
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412 ac_cv_member_struct_nlist_n_un_n_name=no
18413 fi
18414
18415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18416 fi
18417
18418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18419 fi
18420 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18421 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18422 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18423
18424 cat >>confdefs.h <<_ACEOF
18425 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18426 _ACEOF
18427
18428
18429 cat >>confdefs.h <<\_ACEOF
18430 #define NLIST_NAME_UNION 1
18431 _ACEOF
18432
18433 fi
18434
18435
18436 fi
18437
18438 done
18439
18440 fi
18441 done
18442
18443
18444 # Some definitions of getloadavg require that the program be installed setgid.
18445 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18446 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18447 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18450 cat >conftest.$ac_ext <<_ACEOF
18451 /* confdefs.h. */
18452 _ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18456 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18457 #ifdef LDAV_PRIVILEGED
18458 Yowza Am I SETGID yet
18459 #endif
18460 _ACEOF
18461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18462 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18463 ac_cv_func_getloadavg_setgid=yes
18464 else
18465 ac_cv_func_getloadavg_setgid=no
18466 fi
18467 rm -f conftest*
18468
18469 fi
18470 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18471 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18472 if test $ac_cv_func_getloadavg_setgid = yes; then
18473 NEED_SETGID=true
18474
18475 cat >>confdefs.h <<\_ACEOF
18476 #define GETLOADAVG_PRIVILEGED 1
18477 _ACEOF
18478
18479 else
18480 NEED_SETGID=false
18481 fi
18482
18483 if test $ac_cv_func_getloadavg_setgid = yes; then
18484 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18485 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18486 if test "${ac_cv_group_kmem+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18488 else
18489 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18490 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18491 # If we got an error (system does not support symlinks), try without -L.
18492 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18493 ac_cv_group_kmem=`echo $ac_ls_output \
18494 | sed -ne 's/[ ][ ]*/ /g;
18495 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18496 / /s/.* //;p;'`
18497
18498 fi
18499 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18500 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18501 KMEM_GROUP=$ac_cv_group_kmem
18502 fi
18503 if test "x$ac_save_LIBS" = x; then
18504 GETLOADAVG_LIBS=$LIBS
18505 else
18506 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18507 fi
18508 LIBS=$ac_save_LIBS
18509
18510
18511
18512 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18513 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18514 if test "${ac_cv_sys_largefile_source+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517 while :; do
18518 cat >conftest.$ac_ext <<_ACEOF
18519 /* confdefs.h. */
18520 _ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18524 #include <stdio.h>
18525 int
18526 main ()
18527 {
18528 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18529 ;
18530 return 0;
18531 }
18532 _ACEOF
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (ac_try="$ac_link"
18535 case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18538 esac
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_link") 2>conftest.er1
18541 ac_status=$?
18542 grep -v '^ *+' conftest.er1 >conftest.err
18543 rm -f conftest.er1
18544 cat conftest.err >&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } && {
18547 test -z "$ac_c_werror_flag" ||
18548 test ! -s conftest.err
18549 } && test -s conftest$ac_exeext &&
18550 $as_test_x conftest$ac_exeext; then
18551 ac_cv_sys_largefile_source=no; break
18552 else
18553 echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18555
18556
18557 fi
18558
18559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18560 conftest$ac_exeext conftest.$ac_ext
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 #define _LARGEFILE_SOURCE 1
18568 #include <stdio.h>
18569 int
18570 main ()
18571 {
18572 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18573 ;
18574 return 0;
18575 }
18576 _ACEOF
18577 rm -f conftest.$ac_objext conftest$ac_exeext
18578 if { (ac_try="$ac_link"
18579 case "(($ac_try" in
18580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18581 *) ac_try_echo=$ac_try;;
18582 esac
18583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18584 (eval "$ac_link") 2>conftest.er1
18585 ac_status=$?
18586 grep -v '^ *+' conftest.er1 >conftest.err
18587 rm -f conftest.er1
18588 cat conftest.err >&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } && {
18591 test -z "$ac_c_werror_flag" ||
18592 test ! -s conftest.err
18593 } && test -s conftest$ac_exeext &&
18594 $as_test_x conftest$ac_exeext; then
18595 ac_cv_sys_largefile_source=1; break
18596 else
18597 echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18599
18600
18601 fi
18602
18603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18604 conftest$ac_exeext conftest.$ac_ext
18605 ac_cv_sys_largefile_source=unknown
18606 break
18607 done
18608 fi
18609 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18610 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18611 case $ac_cv_sys_largefile_source in #(
18612 no | unknown) ;;
18613 *)
18614 cat >>confdefs.h <<_ACEOF
18615 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18616 _ACEOF
18617 ;;
18618 esac
18619 rm -f conftest*
18620
18621 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18622 # in glibc 2.1.3, but that breaks too many other things.
18623 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18624 if test $ac_cv_sys_largefile_source != unknown; then
18625
18626 cat >>confdefs.h <<\_ACEOF
18627 #define HAVE_FSEEKO 1
18628 _ACEOF
18629
18630 fi
18631
18632
18633 # Configure getopt.
18634 # getopt.m4 serial 10
18635
18636 # The getopt module assume you want GNU getopt, with getopt_long etc,
18637 # rather than vanilla POSIX getopt. This means your your code should
18638 # always include <getopt.h> for the getopt prototypes.
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650 # Prerequisites of lib/getopt*.
18651
18652
18653
18654
18655 GETOPT_H=
18656
18657 for ac_header in getopt.h
18658 do
18659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 fi
18666 ac_res=`eval echo '${'$as_ac_Header'}'`
18667 { echo "$as_me:$LINENO: result: $ac_res" >&5
18668 echo "${ECHO_T}$ac_res" >&6; }
18669 else
18670 # Is the header compilable?
18671 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18673 cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h. */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 $ac_includes_default
18680 #include <$ac_header>
18681 _ACEOF
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_compile") 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } && {
18696 test -z "$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18698 } && test -s conftest.$ac_objext; then
18699 ac_header_compiler=yes
18700 else
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 ac_header_compiler=no
18705 fi
18706
18707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18709 echo "${ECHO_T}$ac_header_compiler" >&6; }
18710
18711 # Is the header present?
18712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h. */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h. */
18720 #include <$ac_header>
18721 _ACEOF
18722 if { (ac_try="$ac_cpp conftest.$ac_ext"
18723 case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18726 esac
18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18729 ac_status=$?
18730 grep -v '^ *+' conftest.er1 >conftest.err
18731 rm -f conftest.er1
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } >/dev/null && {
18735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18736 test ! -s conftest.err
18737 }; then
18738 ac_header_preproc=yes
18739 else
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18742
18743 ac_header_preproc=no
18744 fi
18745
18746 rm -f conftest.err conftest.$ac_ext
18747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18748 echo "${ECHO_T}$ac_header_preproc" >&6; }
18749
18750 # So? What about this header?
18751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18752 yes:no: )
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18757 ac_header_preproc=yes
18758 ;;
18759 no:yes:* )
18760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18772
18773 ;;
18774 esac
18775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18778 echo $ECHO_N "(cached) $ECHO_C" >&6
18779 else
18780 eval "$as_ac_Header=\$ac_header_preproc"
18781 fi
18782 ac_res=`eval echo '${'$as_ac_Header'}'`
18783 { echo "$as_me:$LINENO: result: $ac_res" >&5
18784 echo "${ECHO_T}$ac_res" >&6; }
18785
18786 fi
18787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18788 cat >>confdefs.h <<_ACEOF
18789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18790 _ACEOF
18791
18792 else
18793 GETOPT_H=getopt.h
18794 fi
18795
18796 done
18797
18798 if test -z "$GETOPT_H"; then
18799
18800 for ac_func in getopt_long_only
18801 do
18802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808 cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h. */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18816 #define $ac_func innocuous_$ac_func
18817
18818 /* System header to define __stub macros and hopefully few prototypes,
18819 which can conflict with char $ac_func (); below.
18820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18821 <limits.h> exists even on freestanding compilers. */
18822
18823 #ifdef __STDC__
18824 # include <limits.h>
18825 #else
18826 # include <assert.h>
18827 #endif
18828
18829 #undef $ac_func
18830
18831 /* Override any GCC internal prototype to avoid an error.
18832 Use char because int might match the return type of a GCC
18833 builtin and then its argument prototype would still apply. */
18834 #ifdef __cplusplus
18835 extern "C"
18836 #endif
18837 char $ac_func ();
18838 /* The GNU C library defines this for functions which it implements
18839 to always fail with ENOSYS. Some functions are actually named
18840 something starting with __ and the normal name is an alias. */
18841 #if defined __stub_$ac_func || defined __stub___$ac_func
18842 choke me
18843 #endif
18844
18845 int
18846 main ()
18847 {
18848 return $ac_func ();
18849 ;
18850 return 0;
18851 }
18852 _ACEOF
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (ac_try="$ac_link"
18855 case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18858 esac
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_link") 2>conftest.er1
18861 ac_status=$?
18862 grep -v '^ *+' conftest.er1 >conftest.err
18863 rm -f conftest.er1
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } && {
18867 test -z "$ac_c_werror_flag" ||
18868 test ! -s conftest.err
18869 } && test -s conftest$ac_exeext &&
18870 $as_test_x conftest$ac_exeext; then
18871 eval "$as_ac_var=yes"
18872 else
18873 echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18875
18876 eval "$as_ac_var=no"
18877 fi
18878
18879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18880 conftest$ac_exeext conftest.$ac_ext
18881 fi
18882 ac_res=`eval echo '${'$as_ac_var'}'`
18883 { echo "$as_me:$LINENO: result: $ac_res" >&5
18884 echo "${ECHO_T}$ac_res" >&6; }
18885 if test `eval echo '${'$as_ac_var'}'` = yes; then
18886 cat >>confdefs.h <<_ACEOF
18887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18888 _ACEOF
18889
18890 else
18891 GETOPT_H=getopt.h
18892 fi
18893 done
18894
18895 fi
18896
18897 if test -z "$GETOPT_H"; then
18898 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18899 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18900 if test "${ac_cv_have_decl_optreset+set}" = set; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18902 else
18903 cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h. */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909 #include <getopt.h>
18910
18911 int
18912 main ()
18913 {
18914 #ifndef optreset
18915 (void) optreset;
18916 #endif
18917
18918 ;
18919 return 0;
18920 }
18921 _ACEOF
18922 rm -f conftest.$ac_objext
18923 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
18939 ac_cv_have_decl_optreset=yes
18940 else
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944 ac_cv_have_decl_optreset=no
18945 fi
18946
18947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18948 fi
18949 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18950 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18951 if test $ac_cv_have_decl_optreset = yes; then
18952 GETOPT_H=getopt.h
18953 fi
18954
18955 fi
18956
18957 if test -z "$GETOPT_H"; then
18958 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18959 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18960 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963 if test "$cross_compiling" = yes; then
18964 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18965 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18966 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969 cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h. */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18975 #include <getopt.h>
18976
18977 int
18978 main ()
18979 {
18980 #ifndef getopt_clip
18981 (void) getopt_clip;
18982 #endif
18983
18984 ;
18985 return 0;
18986 }
18987 _ACEOF
18988 rm -f conftest.$ac_objext
18989 if { (ac_try="$ac_compile"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18993 esac
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_compile") 2>conftest.er1
18996 ac_status=$?
18997 grep -v '^ *+' conftest.er1 >conftest.err
18998 rm -f conftest.er1
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } && {
19002 test -z "$ac_c_werror_flag" ||
19003 test ! -s conftest.err
19004 } && test -s conftest.$ac_objext; then
19005 ac_cv_have_decl_getopt_clip=yes
19006 else
19007 echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 ac_cv_have_decl_getopt_clip=no
19011 fi
19012
19013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19014 fi
19015 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19016 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19017 if test $ac_cv_have_decl_getopt_clip = yes; then
19018 gl_cv_func_gnu_getopt=no
19019 else
19020 gl_cv_func_gnu_getopt=yes
19021 fi
19022
19023 else
19024 cat >conftest.$ac_ext <<_ACEOF
19025 /* confdefs.h. */
19026 _ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030 #include <getopt.h>
19031 int
19032 main ()
19033 {
19034
19035 char *myargv[3];
19036 myargv[0] = "conftest";
19037 myargv[1] = "-+";
19038 myargv[2] = 0;
19039 return getopt (2, myargv, "+a") != '?';
19040
19041 ;
19042 return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_link") 2>&5
19053 ac_status=$?
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19056 { (case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_try") 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; }; then
19065 gl_cv_func_gnu_getopt=yes
19066 else
19067 echo "$as_me: program exited with status $ac_status" >&5
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19070
19071 ( exit $ac_status )
19072 gl_cv_func_gnu_getopt=no
19073 fi
19074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19075 fi
19076
19077
19078 fi
19079 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19080 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19081 if test "$gl_cv_func_gnu_getopt" = "no"; then
19082 GETOPT_H=getopt.h
19083 fi
19084 fi
19085
19086
19087
19088 if test -n "$GETOPT_H"; then
19089
19090
19091 GETOPT_H=getopt.h
19092
19093 cat >>confdefs.h <<\_ACEOF
19094 #define __GETOPT_PREFIX rpl_
19095 _ACEOF
19096
19097
19098
19099 :
19100 GETOPTOBJS='getopt.o getopt1.o'
19101
19102 fi
19103
19104
19105
19106
19107 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19108 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19109 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112 # Use it with a single arg.
19113 cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h. */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19119 $ac_includes_default
19120 int
19121 main ()
19122 {
19123 getpgrp (0);
19124 ;
19125 return 0;
19126 }
19127 _ACEOF
19128 rm -f conftest.$ac_objext
19129 if { (ac_try="$ac_compile"
19130 case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19133 esac
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_compile") 2>conftest.er1
19136 ac_status=$?
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest.$ac_objext; then
19145 ac_cv_func_getpgrp_void=no
19146 else
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 ac_cv_func_getpgrp_void=yes
19151 fi
19152
19153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19154
19155 fi
19156 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19157 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19158 if test $ac_cv_func_getpgrp_void = yes; then
19159
19160 cat >>confdefs.h <<\_ACEOF
19161 #define GETPGRP_VOID 1
19162 _ACEOF
19163
19164 fi
19165
19166
19167
19168 for ac_func in strftime
19169 do
19170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 else
19176 cat >conftest.$ac_ext <<_ACEOF
19177 /* confdefs.h. */
19178 _ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h. */
19182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19184 #define $ac_func innocuous_$ac_func
19185
19186 /* System header to define __stub macros and hopefully few prototypes,
19187 which can conflict with char $ac_func (); below.
19188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19189 <limits.h> exists even on freestanding compilers. */
19190
19191 #ifdef __STDC__
19192 # include <limits.h>
19193 #else
19194 # include <assert.h>
19195 #endif
19196
19197 #undef $ac_func
19198
19199 /* Override any GCC internal prototype to avoid an error.
19200 Use char because int might match the return type of a GCC
19201 builtin and then its argument prototype would still apply. */
19202 #ifdef __cplusplus
19203 extern "C"
19204 #endif
19205 char $ac_func ();
19206 /* The GNU C library defines this for functions which it implements
19207 to always fail with ENOSYS. Some functions are actually named
19208 something starting with __ and the normal name is an alias. */
19209 #if defined __stub_$ac_func || defined __stub___$ac_func
19210 choke me
19211 #endif
19212
19213 int
19214 main ()
19215 {
19216 return $ac_func ();
19217 ;
19218 return 0;
19219 }
19220 _ACEOF
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (ac_try="$ac_link"
19223 case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19226 esac
19227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_link") 2>conftest.er1
19229 ac_status=$?
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } && {
19235 test -z "$ac_c_werror_flag" ||
19236 test ! -s conftest.err
19237 } && test -s conftest$ac_exeext &&
19238 $as_test_x conftest$ac_exeext; then
19239 eval "$as_ac_var=yes"
19240 else
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 eval "$as_ac_var=no"
19245 fi
19246
19247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19248 conftest$ac_exeext conftest.$ac_ext
19249 fi
19250 ac_res=`eval echo '${'$as_ac_var'}'`
19251 { echo "$as_me:$LINENO: result: $ac_res" >&5
19252 echo "${ECHO_T}$ac_res" >&6; }
19253 if test `eval echo '${'$as_ac_var'}'` = yes; then
19254 cat >>confdefs.h <<_ACEOF
19255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19256 _ACEOF
19257
19258 else
19259 # strftime is in -lintl on SCO UNIX.
19260 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19261 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19262 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 else
19265 ac_check_lib_save_LIBS=$LIBS
19266 LIBS="-lintl $LIBS"
19267 cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h. */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273
19274 /* Override any GCC internal prototype to avoid an error.
19275 Use char because int might match the return type of a GCC
19276 builtin and then its argument prototype would still apply. */
19277 #ifdef __cplusplus
19278 extern "C"
19279 #endif
19280 char strftime ();
19281 int
19282 main ()
19283 {
19284 return strftime ();
19285 ;
19286 return 0;
19287 }
19288 _ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (ac_try="$ac_link"
19291 case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_link") 2>conftest.er1
19297 ac_status=$?
19298 grep -v '^ *+' conftest.er1 >conftest.err
19299 rm -f conftest.er1
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } && {
19303 test -z "$ac_c_werror_flag" ||
19304 test ! -s conftest.err
19305 } && test -s conftest$ac_exeext &&
19306 $as_test_x conftest$ac_exeext; then
19307 ac_cv_lib_intl_strftime=yes
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312 ac_cv_lib_intl_strftime=no
19313 fi
19314
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19318 fi
19319 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19320 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19321 if test $ac_cv_lib_intl_strftime = yes; then
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE_STRFTIME 1
19324 _ACEOF
19325
19326 LIBS="-lintl $LIBS"
19327 fi
19328
19329 fi
19330 done
19331
19332
19333 # UNIX98 PTYs.
19334
19335 for ac_func in grantpt
19336 do
19337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 else
19343 cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h. */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19351 #define $ac_func innocuous_$ac_func
19352
19353 /* System header to define __stub macros and hopefully few prototypes,
19354 which can conflict with char $ac_func (); below.
19355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19356 <limits.h> exists even on freestanding compilers. */
19357
19358 #ifdef __STDC__
19359 # include <limits.h>
19360 #else
19361 # include <assert.h>
19362 #endif
19363
19364 #undef $ac_func
19365
19366 /* Override any GCC internal prototype to avoid an error.
19367 Use char because int might match the return type of a GCC
19368 builtin and then its argument prototype would still apply. */
19369 #ifdef __cplusplus
19370 extern "C"
19371 #endif
19372 char $ac_func ();
19373 /* The GNU C library defines this for functions which it implements
19374 to always fail with ENOSYS. Some functions are actually named
19375 something starting with __ and the normal name is an alias. */
19376 #if defined __stub_$ac_func || defined __stub___$ac_func
19377 choke me
19378 #endif
19379
19380 int
19381 main ()
19382 {
19383 return $ac_func ();
19384 ;
19385 return 0;
19386 }
19387 _ACEOF
19388 rm -f conftest.$ac_objext conftest$ac_exeext
19389 if { (ac_try="$ac_link"
19390 case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19393 esac
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395 (eval "$ac_link") 2>conftest.er1
19396 ac_status=$?
19397 grep -v '^ *+' conftest.er1 >conftest.err
19398 rm -f conftest.er1
19399 cat conftest.err >&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } && {
19402 test -z "$ac_c_werror_flag" ||
19403 test ! -s conftest.err
19404 } && test -s conftest$ac_exeext &&
19405 $as_test_x conftest$ac_exeext; then
19406 eval "$as_ac_var=yes"
19407 else
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411 eval "$as_ac_var=no"
19412 fi
19413
19414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19415 conftest$ac_exeext conftest.$ac_ext
19416 fi
19417 ac_res=`eval echo '${'$as_ac_var'}'`
19418 { echo "$as_me:$LINENO: result: $ac_res" >&5
19419 echo "${ECHO_T}$ac_res" >&6; }
19420 if test `eval echo '${'$as_ac_var'}'` = yes; then
19421 cat >>confdefs.h <<_ACEOF
19422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19423 _ACEOF
19424
19425 fi
19426 done
19427
19428
19429 # PTY-related GNU extensions.
19430
19431 for ac_func in getpt
19432 do
19433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19438 else
19439 cat >conftest.$ac_ext <<_ACEOF
19440 /* confdefs.h. */
19441 _ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19447 #define $ac_func innocuous_$ac_func
19448
19449 /* System header to define __stub macros and hopefully few prototypes,
19450 which can conflict with char $ac_func (); below.
19451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19452 <limits.h> exists even on freestanding compilers. */
19453
19454 #ifdef __STDC__
19455 # include <limits.h>
19456 #else
19457 # include <assert.h>
19458 #endif
19459
19460 #undef $ac_func
19461
19462 /* Override any GCC internal prototype to avoid an error.
19463 Use char because int might match the return type of a GCC
19464 builtin and then its argument prototype would still apply. */
19465 #ifdef __cplusplus
19466 extern "C"
19467 #endif
19468 char $ac_func ();
19469 /* The GNU C library defines this for functions which it implements
19470 to always fail with ENOSYS. Some functions are actually named
19471 something starting with __ and the normal name is an alias. */
19472 #if defined __stub_$ac_func || defined __stub___$ac_func
19473 choke me
19474 #endif
19475
19476 int
19477 main ()
19478 {
19479 return $ac_func ();
19480 ;
19481 return 0;
19482 }
19483 _ACEOF
19484 rm -f conftest.$ac_objext conftest$ac_exeext
19485 if { (ac_try="$ac_link"
19486 case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19489 esac
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_link") 2>conftest.er1
19492 ac_status=$?
19493 grep -v '^ *+' conftest.er1 >conftest.err
19494 rm -f conftest.er1
19495 cat conftest.err >&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } && {
19498 test -z "$ac_c_werror_flag" ||
19499 test ! -s conftest.err
19500 } && test -s conftest$ac_exeext &&
19501 $as_test_x conftest$ac_exeext; then
19502 eval "$as_ac_var=yes"
19503 else
19504 echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19506
19507 eval "$as_ac_var=no"
19508 fi
19509
19510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19511 conftest$ac_exeext conftest.$ac_ext
19512 fi
19513 ac_res=`eval echo '${'$as_ac_var'}'`
19514 { echo "$as_me:$LINENO: result: $ac_res" >&5
19515 echo "${ECHO_T}$ac_res" >&6; }
19516 if test `eval echo '${'$as_ac_var'}'` = yes; then
19517 cat >>confdefs.h <<_ACEOF
19518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19519 _ACEOF
19520
19521 fi
19522 done
19523
19524
19525 # Check this now, so that we will NOT find the above functions in ncurses.
19526 # That is because we have not set up to link ncurses in lib-src.
19527 # It's better to believe a function is not available
19528 # than to expect to find it in ncurses.
19529
19530 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19531 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19532 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 else
19535 ac_check_lib_save_LIBS=$LIBS
19536 LIBS="-lncurses $LIBS"
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543
19544 /* Override any GCC internal prototype to avoid an error.
19545 Use char because int might match the return type of a GCC
19546 builtin and then its argument prototype would still apply. */
19547 #ifdef __cplusplus
19548 extern "C"
19549 #endif
19550 char tparm ();
19551 int
19552 main ()
19553 {
19554 return tparm ();
19555 ;
19556 return 0;
19557 }
19558 _ACEOF
19559 rm -f conftest.$ac_objext conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19564 esac
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_link") 2>conftest.er1
19567 ac_status=$?
19568 grep -v '^ *+' conftest.er1 >conftest.err
19569 rm -f conftest.er1
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } && {
19573 test -z "$ac_c_werror_flag" ||
19574 test ! -s conftest.err
19575 } && test -s conftest$ac_exeext &&
19576 $as_test_x conftest$ac_exeext; then
19577 ac_cv_lib_ncurses_tparm=yes
19578 else
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582 ac_cv_lib_ncurses_tparm=no
19583 fi
19584
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586 conftest$ac_exeext conftest.$ac_ext
19587 LIBS=$ac_check_lib_save_LIBS
19588 fi
19589 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19590 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19591 if test $ac_cv_lib_ncurses_tparm = yes; then
19592 cat >>confdefs.h <<_ACEOF
19593 #define HAVE_LIBNCURSES 1
19594 _ACEOF
19595
19596 LIBS="-lncurses $LIBS"
19597
19598 fi
19599
19600
19601 # Do we need the Hesiod library to provide the support routines?
19602 if test "$with_hesiod" = yes ; then
19603 # Don't set $LIBS here -- see comments above.
19604 resolv=no
19605 { echo "$as_me:$LINENO: checking for res_send" >&5
19606 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19607 if test "${ac_cv_func_res_send+set}" = set; then
19608 echo $ECHO_N "(cached) $ECHO_C" >&6
19609 else
19610 cat >conftest.$ac_ext <<_ACEOF
19611 /* confdefs.h. */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19616 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19618 #define res_send innocuous_res_send
19619
19620 /* System header to define __stub macros and hopefully few prototypes,
19621 which can conflict with char res_send (); below.
19622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19623 <limits.h> exists even on freestanding compilers. */
19624
19625 #ifdef __STDC__
19626 # include <limits.h>
19627 #else
19628 # include <assert.h>
19629 #endif
19630
19631 #undef res_send
19632
19633 /* Override any GCC internal prototype to avoid an error.
19634 Use char because int might match the return type of a GCC
19635 builtin and then its argument prototype would still apply. */
19636 #ifdef __cplusplus
19637 extern "C"
19638 #endif
19639 char res_send ();
19640 /* The GNU C library defines this for functions which it implements
19641 to always fail with ENOSYS. Some functions are actually named
19642 something starting with __ and the normal name is an alias. */
19643 #if defined __stub_res_send || defined __stub___res_send
19644 choke me
19645 #endif
19646
19647 int
19648 main ()
19649 {
19650 return res_send ();
19651 ;
19652 return 0;
19653 }
19654 _ACEOF
19655 rm -f conftest.$ac_objext conftest$ac_exeext
19656 if { (ac_try="$ac_link"
19657 case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19660 esac
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_link") 2>conftest.er1
19663 ac_status=$?
19664 grep -v '^ *+' conftest.er1 >conftest.err
19665 rm -f conftest.er1
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } && {
19669 test -z "$ac_c_werror_flag" ||
19670 test ! -s conftest.err
19671 } && test -s conftest$ac_exeext &&
19672 $as_test_x conftest$ac_exeext; then
19673 ac_cv_func_res_send=yes
19674 else
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678 ac_cv_func_res_send=no
19679 fi
19680
19681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19682 conftest$ac_exeext conftest.$ac_ext
19683 fi
19684 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19685 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19686 if test $ac_cv_func_res_send = yes; then
19687 :
19688 else
19689 { echo "$as_me:$LINENO: checking for __res_send" >&5
19690 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19691 if test "${ac_cv_func___res_send+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19693 else
19694 cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h. */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19700 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19702 #define __res_send innocuous___res_send
19703
19704 /* System header to define __stub macros and hopefully few prototypes,
19705 which can conflict with char __res_send (); below.
19706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19707 <limits.h> exists even on freestanding compilers. */
19708
19709 #ifdef __STDC__
19710 # include <limits.h>
19711 #else
19712 # include <assert.h>
19713 #endif
19714
19715 #undef __res_send
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 __res_send ();
19724 /* The GNU C library defines this for functions which it implements
19725 to always fail with ENOSYS. Some functions are actually named
19726 something starting with __ and the normal name is an alias. */
19727 #if defined __stub___res_send || defined __stub_____res_send
19728 choke me
19729 #endif
19730
19731 int
19732 main ()
19733 {
19734 return __res_send ();
19735 ;
19736 return 0;
19737 }
19738 _ACEOF
19739 rm -f conftest.$ac_objext conftest$ac_exeext
19740 if { (ac_try="$ac_link"
19741 case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19744 esac
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_link") 2>conftest.er1
19747 ac_status=$?
19748 grep -v '^ *+' conftest.er1 >conftest.err
19749 rm -f conftest.er1
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } && {
19753 test -z "$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19755 } && test -s conftest$ac_exeext &&
19756 $as_test_x conftest$ac_exeext; then
19757 ac_cv_func___res_send=yes
19758 else
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19761
19762 ac_cv_func___res_send=no
19763 fi
19764
19765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19766 conftest$ac_exeext conftest.$ac_ext
19767 fi
19768 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19769 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19770 if test $ac_cv_func___res_send = yes; then
19771 :
19772 else
19773 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19774 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19775 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778 ac_check_lib_save_LIBS=$LIBS
19779 LIBS="-lresolv $LIBS"
19780 cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h. */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19786
19787 /* Override any GCC internal prototype to avoid an error.
19788 Use char because int might match the return type of a GCC
19789 builtin and then its argument prototype would still apply. */
19790 #ifdef __cplusplus
19791 extern "C"
19792 #endif
19793 char res_send ();
19794 int
19795 main ()
19796 {
19797 return res_send ();
19798 ;
19799 return 0;
19800 }
19801 _ACEOF
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (ac_try="$ac_link"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807 esac
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_link") 2>conftest.er1
19810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest$ac_exeext &&
19819 $as_test_x conftest$ac_exeext; then
19820 ac_cv_lib_resolv_res_send=yes
19821 else
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825 ac_cv_lib_resolv_res_send=no
19826 fi
19827
19828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19829 conftest$ac_exeext conftest.$ac_ext
19830 LIBS=$ac_check_lib_save_LIBS
19831 fi
19832 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19833 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19834 if test $ac_cv_lib_resolv_res_send = yes; then
19835 resolv=yes
19836 else
19837 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19838 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19839 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19840 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 else
19842 ac_check_lib_save_LIBS=$LIBS
19843 LIBS="-lresolv $LIBS"
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h. */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850
19851 /* Override any GCC internal prototype to avoid an error.
19852 Use char because int might match the return type of a GCC
19853 builtin and then its argument prototype would still apply. */
19854 #ifdef __cplusplus
19855 extern "C"
19856 #endif
19857 char __res_send ();
19858 int
19859 main ()
19860 {
19861 return __res_send ();
19862 ;
19863 return 0;
19864 }
19865 _ACEOF
19866 rm -f conftest.$ac_objext conftest$ac_exeext
19867 if { (ac_try="$ac_link"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_link") 2>conftest.er1
19874 ac_status=$?
19875 grep -v '^ *+' conftest.er1 >conftest.err
19876 rm -f conftest.er1
19877 cat conftest.err >&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } && {
19880 test -z "$ac_c_werror_flag" ||
19881 test ! -s conftest.err
19882 } && test -s conftest$ac_exeext &&
19883 $as_test_x conftest$ac_exeext; then
19884 ac_cv_lib_resolv___res_send=yes
19885 else
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19888
19889 ac_cv_lib_resolv___res_send=no
19890 fi
19891
19892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19893 conftest$ac_exeext conftest.$ac_ext
19894 LIBS=$ac_check_lib_save_LIBS
19895 fi
19896 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19897 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19898 if test $ac_cv_lib_resolv___res_send = yes; then
19899 resolv=yes
19900 fi
19901
19902 fi
19903
19904 fi
19905
19906 fi
19907
19908 if test "$resolv" = yes ; then
19909 RESOLVLIB=-lresolv
19910
19911 cat >>confdefs.h <<\_ACEOF
19912 #define HAVE_LIBRESOLV 1
19913 _ACEOF
19914
19915 else
19916 RESOLVLIB=
19917 fi
19918 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19919 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19920 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19921 echo $ECHO_N "(cached) $ECHO_C" >&6
19922 else
19923 cat >conftest.$ac_ext <<_ACEOF
19924 /* confdefs.h. */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19929 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19931 #define hes_getmailhost innocuous_hes_getmailhost
19932
19933 /* System header to define __stub macros and hopefully few prototypes,
19934 which can conflict with char hes_getmailhost (); below.
19935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19936 <limits.h> exists even on freestanding compilers. */
19937
19938 #ifdef __STDC__
19939 # include <limits.h>
19940 #else
19941 # include <assert.h>
19942 #endif
19943
19944 #undef hes_getmailhost
19945
19946 /* Override any GCC internal prototype to avoid an error.
19947 Use char because int might match the return type of a GCC
19948 builtin and then its argument prototype would still apply. */
19949 #ifdef __cplusplus
19950 extern "C"
19951 #endif
19952 char hes_getmailhost ();
19953 /* The GNU C library defines this for functions which it implements
19954 to always fail with ENOSYS. Some functions are actually named
19955 something starting with __ and the normal name is an alias. */
19956 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19957 choke me
19958 #endif
19959
19960 int
19961 main ()
19962 {
19963 return hes_getmailhost ();
19964 ;
19965 return 0;
19966 }
19967 _ACEOF
19968 rm -f conftest.$ac_objext conftest$ac_exeext
19969 if { (ac_try="$ac_link"
19970 case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19973 esac
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_link") 2>conftest.er1
19976 ac_status=$?
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } && {
19982 test -z "$ac_c_werror_flag" ||
19983 test ! -s conftest.err
19984 } && test -s conftest$ac_exeext &&
19985 $as_test_x conftest$ac_exeext; then
19986 ac_cv_func_hes_getmailhost=yes
19987 else
19988 echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19990
19991 ac_cv_func_hes_getmailhost=no
19992 fi
19993
19994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19995 conftest$ac_exeext conftest.$ac_ext
19996 fi
19997 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19998 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19999 if test $ac_cv_func_hes_getmailhost = yes; then
20000 :
20001 else
20002 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20003 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20004 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20007 ac_check_lib_save_LIBS=$LIBS
20008 LIBS="-lhesiod $RESOLVLIB $LIBS"
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h. */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015
20016 /* Override any GCC internal prototype to avoid an error.
20017 Use char because int might match the return type of a GCC
20018 builtin and then its argument prototype would still apply. */
20019 #ifdef __cplusplus
20020 extern "C"
20021 #endif
20022 char hes_getmailhost ();
20023 int
20024 main ()
20025 {
20026 return hes_getmailhost ();
20027 ;
20028 return 0;
20029 }
20030 _ACEOF
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (ac_try="$ac_link"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_link") 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest$ac_exeext &&
20048 $as_test_x conftest$ac_exeext; then
20049 ac_cv_lib_hesiod_hes_getmailhost=yes
20050 else
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054 ac_cv_lib_hesiod_hes_getmailhost=no
20055 fi
20056
20057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20058 conftest$ac_exeext conftest.$ac_ext
20059 LIBS=$ac_check_lib_save_LIBS
20060 fi
20061 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20062 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20063 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20064
20065 cat >>confdefs.h <<\_ACEOF
20066 #define HAVE_LIBHESIOD 1
20067 _ACEOF
20068
20069 else
20070 :
20071 fi
20072
20073 fi
20074
20075 fi
20076
20077 # These tell us which Kerberos-related libraries to use.
20078 if test "${with_kerberos+set}" = set; then
20079
20080 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20081 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20082 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 else
20085 ac_check_lib_save_LIBS=$LIBS
20086 LIBS="-lcom_err $LIBS"
20087 cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h. */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20093
20094 /* Override any GCC internal prototype to avoid an error.
20095 Use char because int might match the return type of a GCC
20096 builtin and then its argument prototype would still apply. */
20097 #ifdef __cplusplus
20098 extern "C"
20099 #endif
20100 char com_err ();
20101 int
20102 main ()
20103 {
20104 return com_err ();
20105 ;
20106 return 0;
20107 }
20108 _ACEOF
20109 rm -f conftest.$ac_objext conftest$ac_exeext
20110 if { (ac_try="$ac_link"
20111 case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20114 esac
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_link") 2>conftest.er1
20117 ac_status=$?
20118 grep -v '^ *+' conftest.er1 >conftest.err
20119 rm -f conftest.er1
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } && {
20123 test -z "$ac_c_werror_flag" ||
20124 test ! -s conftest.err
20125 } && test -s conftest$ac_exeext &&
20126 $as_test_x conftest$ac_exeext; then
20127 ac_cv_lib_com_err_com_err=yes
20128 else
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20131
20132 ac_cv_lib_com_err_com_err=no
20133 fi
20134
20135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20136 conftest$ac_exeext conftest.$ac_ext
20137 LIBS=$ac_check_lib_save_LIBS
20138 fi
20139 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20140 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20141 if test $ac_cv_lib_com_err_com_err = yes; then
20142 cat >>confdefs.h <<_ACEOF
20143 #define HAVE_LIBCOM_ERR 1
20144 _ACEOF
20145
20146 LIBS="-lcom_err $LIBS"
20147
20148 fi
20149
20150
20151 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20152 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20153 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 else
20156 ac_check_lib_save_LIBS=$LIBS
20157 LIBS="-lk5crypto $LIBS"
20158 cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h. */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20164
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20168 #ifdef __cplusplus
20169 extern "C"
20170 #endif
20171 char mit_des_cbc_encrypt ();
20172 int
20173 main ()
20174 {
20175 return mit_des_cbc_encrypt ();
20176 ;
20177 return 0;
20178 }
20179 _ACEOF
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (ac_try="$ac_link"
20182 case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20185 esac
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_link") 2>conftest.er1
20188 ac_status=$?
20189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } && {
20194 test -z "$ac_c_werror_flag" ||
20195 test ! -s conftest.err
20196 } && test -s conftest$ac_exeext &&
20197 $as_test_x conftest$ac_exeext; then
20198 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20199 else
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20202
20203 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20204 fi
20205
20206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20207 conftest$ac_exeext conftest.$ac_ext
20208 LIBS=$ac_check_lib_save_LIBS
20209 fi
20210 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20211 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20212 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20213 cat >>confdefs.h <<_ACEOF
20214 #define HAVE_LIBK5CRYPTO 1
20215 _ACEOF
20216
20217 LIBS="-lk5crypto $LIBS"
20218
20219 fi
20220
20221
20222 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20223 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20224 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 else
20227 ac_check_lib_save_LIBS=$LIBS
20228 LIBS="-lcrypto $LIBS"
20229 cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h. */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235
20236 /* Override any GCC internal prototype to avoid an error.
20237 Use char because int might match the return type of a GCC
20238 builtin and then its argument prototype would still apply. */
20239 #ifdef __cplusplus
20240 extern "C"
20241 #endif
20242 char mit_des_cbc_encrypt ();
20243 int
20244 main ()
20245 {
20246 return mit_des_cbc_encrypt ();
20247 ;
20248 return 0;
20249 }
20250 _ACEOF
20251 rm -f conftest.$ac_objext conftest$ac_exeext
20252 if { (ac_try="$ac_link"
20253 case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20256 esac
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_link") 2>conftest.er1
20259 ac_status=$?
20260 grep -v '^ *+' conftest.er1 >conftest.err
20261 rm -f conftest.er1
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } && {
20265 test -z "$ac_c_werror_flag" ||
20266 test ! -s conftest.err
20267 } && test -s conftest$ac_exeext &&
20268 $as_test_x conftest$ac_exeext; then
20269 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20270 else
20271 echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20275 fi
20276
20277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20278 conftest$ac_exeext conftest.$ac_ext
20279 LIBS=$ac_check_lib_save_LIBS
20280 fi
20281 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20282 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20283 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20284 cat >>confdefs.h <<_ACEOF
20285 #define HAVE_LIBCRYPTO 1
20286 _ACEOF
20287
20288 LIBS="-lcrypto $LIBS"
20289
20290 fi
20291
20292
20293 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20294 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20295 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298 ac_check_lib_save_LIBS=$LIBS
20299 LIBS="-lkrb5 $LIBS"
20300 cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h. */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20306
20307 /* Override any GCC internal prototype to avoid an error.
20308 Use char because int might match the return type of a GCC
20309 builtin and then its argument prototype would still apply. */
20310 #ifdef __cplusplus
20311 extern "C"
20312 #endif
20313 char krb5_init_context ();
20314 int
20315 main ()
20316 {
20317 return krb5_init_context ();
20318 ;
20319 return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323 if { (ac_try="$ac_link"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_link") 2>conftest.er1
20330 ac_status=$?
20331 grep -v '^ *+' conftest.er1 >conftest.err
20332 rm -f conftest.er1
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && {
20336 test -z "$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 } && test -s conftest$ac_exeext &&
20339 $as_test_x conftest$ac_exeext; then
20340 ac_cv_lib_krb5_krb5_init_context=yes
20341 else
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_cv_lib_krb5_krb5_init_context=no
20346 fi
20347
20348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20349 conftest$ac_exeext conftest.$ac_ext
20350 LIBS=$ac_check_lib_save_LIBS
20351 fi
20352 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20353 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20354 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20355 cat >>confdefs.h <<_ACEOF
20356 #define HAVE_LIBKRB5 1
20357 _ACEOF
20358
20359 LIBS="-lkrb5 $LIBS"
20360
20361 fi
20362
20363 if test "${with_kerberos5+set}" != set; then
20364
20365 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20366 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20367 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 else
20370 ac_check_lib_save_LIBS=$LIBS
20371 LIBS="-ldes425 $LIBS"
20372 cat >conftest.$ac_ext <<_ACEOF
20373 /* confdefs.h. */
20374 _ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h. */
20378
20379 /* Override any GCC internal prototype to avoid an error.
20380 Use char because int might match the return type of a GCC
20381 builtin and then its argument prototype would still apply. */
20382 #ifdef __cplusplus
20383 extern "C"
20384 #endif
20385 char des_cbc_encrypt ();
20386 int
20387 main ()
20388 {
20389 return des_cbc_encrypt ();
20390 ;
20391 return 0;
20392 }
20393 _ACEOF
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (ac_try="$ac_link"
20396 case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20399 esac
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401 (eval "$ac_link") 2>conftest.er1
20402 ac_status=$?
20403 grep -v '^ *+' conftest.er1 >conftest.err
20404 rm -f conftest.er1
20405 cat conftest.err >&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } && {
20408 test -z "$ac_c_werror_flag" ||
20409 test ! -s conftest.err
20410 } && test -s conftest$ac_exeext &&
20411 $as_test_x conftest$ac_exeext; then
20412 ac_cv_lib_des425_des_cbc_encrypt=yes
20413 else
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20416
20417 ac_cv_lib_des425_des_cbc_encrypt=no
20418 fi
20419
20420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20421 conftest$ac_exeext conftest.$ac_ext
20422 LIBS=$ac_check_lib_save_LIBS
20423 fi
20424 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20425 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20426 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20427 cat >>confdefs.h <<_ACEOF
20428 #define HAVE_LIBDES425 1
20429 _ACEOF
20430
20431 LIBS="-ldes425 $LIBS"
20432
20433 else
20434
20435 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20436 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20437 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439 else
20440 ac_check_lib_save_LIBS=$LIBS
20441 LIBS="-ldes $LIBS"
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h. */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20448
20449 /* Override any GCC internal prototype to avoid an error.
20450 Use char because int might match the return type of a GCC
20451 builtin and then its argument prototype would still apply. */
20452 #ifdef __cplusplus
20453 extern "C"
20454 #endif
20455 char des_cbc_encrypt ();
20456 int
20457 main ()
20458 {
20459 return des_cbc_encrypt ();
20460 ;
20461 return 0;
20462 }
20463 _ACEOF
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (ac_try="$ac_link"
20466 case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_link") 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } && {
20478 test -z "$ac_c_werror_flag" ||
20479 test ! -s conftest.err
20480 } && test -s conftest$ac_exeext &&
20481 $as_test_x conftest$ac_exeext; then
20482 ac_cv_lib_des_des_cbc_encrypt=yes
20483 else
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20486
20487 ac_cv_lib_des_des_cbc_encrypt=no
20488 fi
20489
20490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20491 conftest$ac_exeext conftest.$ac_ext
20492 LIBS=$ac_check_lib_save_LIBS
20493 fi
20494 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20495 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20496 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20497 cat >>confdefs.h <<_ACEOF
20498 #define HAVE_LIBDES 1
20499 _ACEOF
20500
20501 LIBS="-ldes $LIBS"
20502
20503 fi
20504
20505 fi
20506
20507
20508 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20509 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20510 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513 ac_check_lib_save_LIBS=$LIBS
20514 LIBS="-lkrb4 $LIBS"
20515 cat >conftest.$ac_ext <<_ACEOF
20516 /* confdefs.h. */
20517 _ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20521
20522 /* Override any GCC internal prototype to avoid an error.
20523 Use char because int might match the return type of a GCC
20524 builtin and then its argument prototype would still apply. */
20525 #ifdef __cplusplus
20526 extern "C"
20527 #endif
20528 char krb_get_cred ();
20529 int
20530 main ()
20531 {
20532 return krb_get_cred ();
20533 ;
20534 return 0;
20535 }
20536 _ACEOF
20537 rm -f conftest.$ac_objext conftest$ac_exeext
20538 if { (ac_try="$ac_link"
20539 case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20542 esac
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_link") 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } && {
20551 test -z "$ac_c_werror_flag" ||
20552 test ! -s conftest.err
20553 } && test -s conftest$ac_exeext &&
20554 $as_test_x conftest$ac_exeext; then
20555 ac_cv_lib_krb4_krb_get_cred=yes
20556 else
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560 ac_cv_lib_krb4_krb_get_cred=no
20561 fi
20562
20563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20564 conftest$ac_exeext conftest.$ac_ext
20565 LIBS=$ac_check_lib_save_LIBS
20566 fi
20567 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20568 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20569 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20570 cat >>confdefs.h <<_ACEOF
20571 #define HAVE_LIBKRB4 1
20572 _ACEOF
20573
20574 LIBS="-lkrb4 $LIBS"
20575
20576 else
20577
20578 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20579 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20580 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 else
20583 ac_check_lib_save_LIBS=$LIBS
20584 LIBS="-lkrb $LIBS"
20585 cat >conftest.$ac_ext <<_ACEOF
20586 /* confdefs.h. */
20587 _ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h. */
20591
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply. */
20595 #ifdef __cplusplus
20596 extern "C"
20597 #endif
20598 char krb_get_cred ();
20599 int
20600 main ()
20601 {
20602 return krb_get_cred ();
20603 ;
20604 return 0;
20605 }
20606 _ACEOF
20607 rm -f conftest.$ac_objext conftest$ac_exeext
20608 if { (ac_try="$ac_link"
20609 case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20612 esac
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_link") 2>conftest.er1
20615 ac_status=$?
20616 grep -v '^ *+' conftest.er1 >conftest.err
20617 rm -f conftest.er1
20618 cat conftest.err >&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && {
20621 test -z "$ac_c_werror_flag" ||
20622 test ! -s conftest.err
20623 } && test -s conftest$ac_exeext &&
20624 $as_test_x conftest$ac_exeext; then
20625 ac_cv_lib_krb_krb_get_cred=yes
20626 else
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20629
20630 ac_cv_lib_krb_krb_get_cred=no
20631 fi
20632
20633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20634 conftest$ac_exeext conftest.$ac_ext
20635 LIBS=$ac_check_lib_save_LIBS
20636 fi
20637 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20638 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20639 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20640 cat >>confdefs.h <<_ACEOF
20641 #define HAVE_LIBKRB 1
20642 _ACEOF
20643
20644 LIBS="-lkrb $LIBS"
20645
20646 fi
20647
20648 fi
20649
20650 fi
20651
20652 if test "${with_kerberos5+set}" = set; then
20653
20654 for ac_header in krb5.h
20655 do
20656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 fi
20663 ac_res=`eval echo '${'$as_ac_Header'}'`
20664 { echo "$as_me:$LINENO: result: $ac_res" >&5
20665 echo "${ECHO_T}$ac_res" >&6; }
20666 else
20667 # Is the header compilable?
20668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20670 cat >conftest.$ac_ext <<_ACEOF
20671 /* confdefs.h. */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 $ac_includes_default
20677 #include <$ac_header>
20678 _ACEOF
20679 rm -f conftest.$ac_objext
20680 if { (ac_try="$ac_compile"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_compile") 2>conftest.er1
20687 ac_status=$?
20688 grep -v '^ *+' conftest.er1 >conftest.err
20689 rm -f conftest.er1
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } && {
20693 test -z "$ac_c_werror_flag" ||
20694 test ! -s conftest.err
20695 } && test -s conftest.$ac_objext; then
20696 ac_header_compiler=yes
20697 else
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701 ac_header_compiler=no
20702 fi
20703
20704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20706 echo "${ECHO_T}$ac_header_compiler" >&6; }
20707
20708 # Is the header present?
20709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20711 cat >conftest.$ac_ext <<_ACEOF
20712 /* confdefs.h. */
20713 _ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h. */
20717 #include <$ac_header>
20718 _ACEOF
20719 if { (ac_try="$ac_cpp conftest.$ac_ext"
20720 case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20723 esac
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20726 ac_status=$?
20727 grep -v '^ *+' conftest.er1 >conftest.err
20728 rm -f conftest.er1
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } >/dev/null && {
20732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 }; then
20735 ac_header_preproc=yes
20736 else
20737 echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20739
20740 ac_header_preproc=no
20741 fi
20742
20743 rm -f conftest.err conftest.$ac_ext
20744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20745 echo "${ECHO_T}$ac_header_preproc" >&6; }
20746
20747 # So? What about this header?
20748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20749 yes:no: )
20750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20754 ac_header_preproc=yes
20755 ;;
20756 no:yes:* )
20757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20769
20770 ;;
20771 esac
20772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777 eval "$as_ac_Header=\$ac_header_preproc"
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
20783 fi
20784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20785 cat >>confdefs.h <<_ACEOF
20786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20787 _ACEOF
20788
20789 fi
20790
20791 done
20792
20793 else
20794
20795 for ac_header in des.h
20796 do
20797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20803 fi
20804 ac_res=`eval echo '${'$as_ac_Header'}'`
20805 { echo "$as_me:$LINENO: result: $ac_res" >&5
20806 echo "${ECHO_T}$ac_res" >&6; }
20807 else
20808 # Is the header compilable?
20809 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20811 cat >conftest.$ac_ext <<_ACEOF
20812 /* confdefs.h. */
20813 _ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h. */
20817 $ac_includes_default
20818 #include <$ac_header>
20819 _ACEOF
20820 rm -f conftest.$ac_objext
20821 if { (ac_try="$ac_compile"
20822 case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20825 esac
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_compile") 2>conftest.er1
20828 ac_status=$?
20829 grep -v '^ *+' conftest.er1 >conftest.err
20830 rm -f conftest.er1
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } && {
20834 test -z "$ac_c_werror_flag" ||
20835 test ! -s conftest.err
20836 } && test -s conftest.$ac_objext; then
20837 ac_header_compiler=yes
20838 else
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842 ac_header_compiler=no
20843 fi
20844
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20847 echo "${ECHO_T}$ac_header_compiler" >&6; }
20848
20849 # Is the header present?
20850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20852 cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h. */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 #include <$ac_header>
20859 _ACEOF
20860 if { (ac_try="$ac_cpp conftest.$ac_ext"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20864 esac
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } >/dev/null && {
20873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 }; then
20876 ac_header_preproc=yes
20877 else
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20880
20881 ac_header_preproc=no
20882 fi
20883
20884 rm -f conftest.err conftest.$ac_ext
20885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20886 echo "${ECHO_T}$ac_header_preproc" >&6; }
20887
20888 # So? What about this header?
20889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20890 yes:no: )
20891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20895 ac_header_preproc=yes
20896 ;;
20897 no:yes:* )
20898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20910
20911 ;;
20912 esac
20913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20917 else
20918 eval "$as_ac_Header=\$ac_header_preproc"
20919 fi
20920 ac_res=`eval echo '${'$as_ac_Header'}'`
20921 { echo "$as_me:$LINENO: result: $ac_res" >&5
20922 echo "${ECHO_T}$ac_res" >&6; }
20923
20924 fi
20925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20926 cat >>confdefs.h <<_ACEOF
20927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20928 _ACEOF
20929
20930 else
20931
20932 for ac_header in kerberosIV/des.h
20933 do
20934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20940 fi
20941 ac_res=`eval echo '${'$as_ac_Header'}'`
20942 { echo "$as_me:$LINENO: result: $ac_res" >&5
20943 echo "${ECHO_T}$ac_res" >&6; }
20944 else
20945 # Is the header compilable?
20946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20948 cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h. */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 $ac_includes_default
20955 #include <$ac_header>
20956 _ACEOF
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20962 esac
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_compile") 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest.$ac_objext; then
20974 ac_header_compiler=yes
20975 else
20976 echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20978
20979 ac_header_compiler=no
20980 fi
20981
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20984 echo "${ECHO_T}$ac_header_compiler" >&6; }
20985
20986 # Is the header present?
20987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20989 cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h. */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 #include <$ac_header>
20996 _ACEOF
20997 if { (ac_try="$ac_cpp conftest.$ac_ext"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21004 ac_status=$?
21005 grep -v '^ *+' conftest.er1 >conftest.err
21006 rm -f conftest.er1
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } >/dev/null && {
21010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21011 test ! -s conftest.err
21012 }; then
21013 ac_header_preproc=yes
21014 else
21015 echo "$as_me: failed program was:" >&5
21016 sed 's/^/| /' conftest.$ac_ext >&5
21017
21018 ac_header_preproc=no
21019 fi
21020
21021 rm -f conftest.err conftest.$ac_ext
21022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21023 echo "${ECHO_T}$ac_header_preproc" >&6; }
21024
21025 # So? What about this header?
21026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21027 yes:no: )
21028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21032 ac_header_preproc=yes
21033 ;;
21034 no:yes:* )
21035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21047
21048 ;;
21049 esac
21050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21053 echo $ECHO_N "(cached) $ECHO_C" >&6
21054 else
21055 eval "$as_ac_Header=\$ac_header_preproc"
21056 fi
21057 ac_res=`eval echo '${'$as_ac_Header'}'`
21058 { echo "$as_me:$LINENO: result: $ac_res" >&5
21059 echo "${ECHO_T}$ac_res" >&6; }
21060
21061 fi
21062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21063 cat >>confdefs.h <<_ACEOF
21064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21065 _ACEOF
21066
21067 else
21068
21069 for ac_header in kerberos/des.h
21070 do
21071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21077 fi
21078 ac_res=`eval echo '${'$as_ac_Header'}'`
21079 { echo "$as_me:$LINENO: result: $ac_res" >&5
21080 echo "${ECHO_T}$ac_res" >&6; }
21081 else
21082 # Is the header compilable?
21083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21085 cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h. */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091 $ac_includes_default
21092 #include <$ac_header>
21093 _ACEOF
21094 rm -f conftest.$ac_objext
21095 if { (ac_try="$ac_compile"
21096 case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21099 esac
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_compile") 2>conftest.er1
21102 ac_status=$?
21103 grep -v '^ *+' conftest.er1 >conftest.err
21104 rm -f conftest.er1
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } && {
21108 test -z "$ac_c_werror_flag" ||
21109 test ! -s conftest.err
21110 } && test -s conftest.$ac_objext; then
21111 ac_header_compiler=yes
21112 else
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21115
21116 ac_header_compiler=no
21117 fi
21118
21119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21121 echo "${ECHO_T}$ac_header_compiler" >&6; }
21122
21123 # Is the header present?
21124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21126 cat >conftest.$ac_ext <<_ACEOF
21127 /* confdefs.h. */
21128 _ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h. */
21132 #include <$ac_header>
21133 _ACEOF
21134 if { (ac_try="$ac_cpp conftest.$ac_ext"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21138 esac
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21141 ac_status=$?
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } >/dev/null && {
21147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 }; then
21150 ac_header_preproc=yes
21151 else
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 ac_header_preproc=no
21156 fi
21157
21158 rm -f conftest.err conftest.$ac_ext
21159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21160 echo "${ECHO_T}$ac_header_preproc" >&6; }
21161
21162 # So? What about this header?
21163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21164 yes:no: )
21165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21169 ac_header_preproc=yes
21170 ;;
21171 no:yes:* )
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21184
21185 ;;
21186 esac
21187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21191 else
21192 eval "$as_ac_Header=\$ac_header_preproc"
21193 fi
21194 ac_res=`eval echo '${'$as_ac_Header'}'`
21195 { echo "$as_me:$LINENO: result: $ac_res" >&5
21196 echo "${ECHO_T}$ac_res" >&6; }
21197
21198 fi
21199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21200 cat >>confdefs.h <<_ACEOF
21201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21202 _ACEOF
21203
21204 fi
21205
21206 done
21207
21208 fi
21209
21210 done
21211
21212 fi
21213
21214 done
21215
21216
21217 for ac_header in krb.h
21218 do
21219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21224 echo $ECHO_N "(cached) $ECHO_C" >&6
21225 fi
21226 ac_res=`eval echo '${'$as_ac_Header'}'`
21227 { echo "$as_me:$LINENO: result: $ac_res" >&5
21228 echo "${ECHO_T}$ac_res" >&6; }
21229 else
21230 # Is the header compilable?
21231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21233 cat >conftest.$ac_ext <<_ACEOF
21234 /* confdefs.h. */
21235 _ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h. */
21239 $ac_includes_default
21240 #include <$ac_header>
21241 _ACEOF
21242 rm -f conftest.$ac_objext
21243 if { (ac_try="$ac_compile"
21244 case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21247 esac
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_compile") 2>conftest.er1
21250 ac_status=$?
21251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest.$ac_objext; then
21259 ac_header_compiler=yes
21260 else
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264 ac_header_compiler=no
21265 fi
21266
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21269 echo "${ECHO_T}$ac_header_compiler" >&6; }
21270
21271 # Is the header present?
21272 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21274 cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h. */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21280 #include <$ac_header>
21281 _ACEOF
21282 if { (ac_try="$ac_cpp conftest.$ac_ext"
21283 case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21286 esac
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21289 ac_status=$?
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } >/dev/null && {
21295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21296 test ! -s conftest.err
21297 }; then
21298 ac_header_preproc=yes
21299 else
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303 ac_header_preproc=no
21304 fi
21305
21306 rm -f conftest.err conftest.$ac_ext
21307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21308 echo "${ECHO_T}$ac_header_preproc" >&6; }
21309
21310 # So? What about this header?
21311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21312 yes:no: )
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21317 ac_header_preproc=yes
21318 ;;
21319 no:yes:* )
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21332
21333 ;;
21334 esac
21335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 else
21340 eval "$as_ac_Header=\$ac_header_preproc"
21341 fi
21342 ac_res=`eval echo '${'$as_ac_Header'}'`
21343 { echo "$as_me:$LINENO: result: $ac_res" >&5
21344 echo "${ECHO_T}$ac_res" >&6; }
21345
21346 fi
21347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21348 cat >>confdefs.h <<_ACEOF
21349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21350 _ACEOF
21351
21352 else
21353
21354 for ac_header in kerberosIV/krb.h
21355 do
21356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 fi
21363 ac_res=`eval echo '${'$as_ac_Header'}'`
21364 { echo "$as_me:$LINENO: result: $ac_res" >&5
21365 echo "${ECHO_T}$ac_res" >&6; }
21366 else
21367 # Is the header compilable?
21368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21370 cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h. */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21376 $ac_includes_default
21377 #include <$ac_header>
21378 _ACEOF
21379 rm -f conftest.$ac_objext
21380 if { (ac_try="$ac_compile"
21381 case "(($ac_try" in
21382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383 *) ac_try_echo=$ac_try;;
21384 esac
21385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21386 (eval "$ac_compile") 2>conftest.er1
21387 ac_status=$?
21388 grep -v '^ *+' conftest.er1 >conftest.err
21389 rm -f conftest.er1
21390 cat conftest.err >&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } && {
21393 test -z "$ac_c_werror_flag" ||
21394 test ! -s conftest.err
21395 } && test -s conftest.$ac_objext; then
21396 ac_header_compiler=yes
21397 else
21398 echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21400
21401 ac_header_compiler=no
21402 fi
21403
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21406 echo "${ECHO_T}$ac_header_compiler" >&6; }
21407
21408 # Is the header present?
21409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21411 cat >conftest.$ac_ext <<_ACEOF
21412 /* confdefs.h. */
21413 _ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21417 #include <$ac_header>
21418 _ACEOF
21419 if { (ac_try="$ac_cpp conftest.$ac_ext"
21420 case "(($ac_try" in
21421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422 *) ac_try_echo=$ac_try;;
21423 esac
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21426 ac_status=$?
21427 grep -v '^ *+' conftest.er1 >conftest.err
21428 rm -f conftest.er1
21429 cat conftest.err >&5
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); } >/dev/null && {
21432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21433 test ! -s conftest.err
21434 }; then
21435 ac_header_preproc=yes
21436 else
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21439
21440 ac_header_preproc=no
21441 fi
21442
21443 rm -f conftest.err conftest.$ac_ext
21444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21445 echo "${ECHO_T}$ac_header_preproc" >&6; }
21446
21447 # So? What about this header?
21448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21449 yes:no: )
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21454 ac_header_preproc=yes
21455 ;;
21456 no:yes:* )
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21469
21470 ;;
21471 esac
21472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
21476 else
21477 eval "$as_ac_Header=\$ac_header_preproc"
21478 fi
21479 ac_res=`eval echo '${'$as_ac_Header'}'`
21480 { echo "$as_me:$LINENO: result: $ac_res" >&5
21481 echo "${ECHO_T}$ac_res" >&6; }
21482
21483 fi
21484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21485 cat >>confdefs.h <<_ACEOF
21486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21487 _ACEOF
21488
21489 else
21490
21491 for ac_header in kerberos/krb.h
21492 do
21493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21499 fi
21500 ac_res=`eval echo '${'$as_ac_Header'}'`
21501 { echo "$as_me:$LINENO: result: $ac_res" >&5
21502 echo "${ECHO_T}$ac_res" >&6; }
21503 else
21504 # Is the header compilable?
21505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21507 cat >conftest.$ac_ext <<_ACEOF
21508 /* confdefs.h. */
21509 _ACEOF
21510 cat confdefs.h >>conftest.$ac_ext
21511 cat >>conftest.$ac_ext <<_ACEOF
21512 /* end confdefs.h. */
21513 $ac_includes_default
21514 #include <$ac_header>
21515 _ACEOF
21516 rm -f conftest.$ac_objext
21517 if { (ac_try="$ac_compile"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523 (eval "$ac_compile") 2>conftest.er1
21524 ac_status=$?
21525 grep -v '^ *+' conftest.er1 >conftest.err
21526 rm -f conftest.er1
21527 cat conftest.err >&5
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } && {
21530 test -z "$ac_c_werror_flag" ||
21531 test ! -s conftest.err
21532 } && test -s conftest.$ac_objext; then
21533 ac_header_compiler=yes
21534 else
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538 ac_header_compiler=no
21539 fi
21540
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21543 echo "${ECHO_T}$ac_header_compiler" >&6; }
21544
21545 # Is the header present?
21546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21548 cat >conftest.$ac_ext <<_ACEOF
21549 /* confdefs.h. */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 #include <$ac_header>
21555 _ACEOF
21556 if { (ac_try="$ac_cpp conftest.$ac_ext"
21557 case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21560 esac
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21563 ac_status=$?
21564 grep -v '^ *+' conftest.er1 >conftest.err
21565 rm -f conftest.er1
21566 cat conftest.err >&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } >/dev/null && {
21569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21571 }; then
21572 ac_header_preproc=yes
21573 else
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21576
21577 ac_header_preproc=no
21578 fi
21579
21580 rm -f conftest.err conftest.$ac_ext
21581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21582 echo "${ECHO_T}$ac_header_preproc" >&6; }
21583
21584 # So? What about this header?
21585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21586 yes:no: )
21587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21591 ac_header_preproc=yes
21592 ;;
21593 no:yes:* )
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21606
21607 ;;
21608 esac
21609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21613 else
21614 eval "$as_ac_Header=\$ac_header_preproc"
21615 fi
21616 ac_res=`eval echo '${'$as_ac_Header'}'`
21617 { echo "$as_me:$LINENO: result: $ac_res" >&5
21618 echo "${ECHO_T}$ac_res" >&6; }
21619
21620 fi
21621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21622 cat >>confdefs.h <<_ACEOF
21623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21624 _ACEOF
21625
21626 fi
21627
21628 done
21629
21630 fi
21631
21632 done
21633
21634 fi
21635
21636 done
21637
21638 fi
21639
21640 for ac_header in com_err.h
21641 do
21642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 fi
21649 ac_res=`eval echo '${'$as_ac_Header'}'`
21650 { echo "$as_me:$LINENO: result: $ac_res" >&5
21651 echo "${ECHO_T}$ac_res" >&6; }
21652 else
21653 # Is the header compilable?
21654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21656 cat >conftest.$ac_ext <<_ACEOF
21657 /* confdefs.h. */
21658 _ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h. */
21662 $ac_includes_default
21663 #include <$ac_header>
21664 _ACEOF
21665 rm -f conftest.$ac_objext
21666 if { (ac_try="$ac_compile"
21667 case "(($ac_try" in
21668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669 *) ac_try_echo=$ac_try;;
21670 esac
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672 (eval "$ac_compile") 2>conftest.er1
21673 ac_status=$?
21674 grep -v '^ *+' conftest.er1 >conftest.err
21675 rm -f conftest.er1
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } && {
21679 test -z "$ac_c_werror_flag" ||
21680 test ! -s conftest.err
21681 } && test -s conftest.$ac_objext; then
21682 ac_header_compiler=yes
21683 else
21684 echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21686
21687 ac_header_compiler=no
21688 fi
21689
21690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21692 echo "${ECHO_T}$ac_header_compiler" >&6; }
21693
21694 # Is the header present?
21695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21697 cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h. */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 #include <$ac_header>
21704 _ACEOF
21705 if { (ac_try="$ac_cpp conftest.$ac_ext"
21706 case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21709 esac
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21712 ac_status=$?
21713 grep -v '^ *+' conftest.er1 >conftest.err
21714 rm -f conftest.er1
21715 cat conftest.err >&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } >/dev/null && {
21718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21719 test ! -s conftest.err
21720 }; then
21721 ac_header_preproc=yes
21722 else
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21725
21726 ac_header_preproc=no
21727 fi
21728
21729 rm -f conftest.err conftest.$ac_ext
21730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21731 echo "${ECHO_T}$ac_header_preproc" >&6; }
21732
21733 # So? What about this header?
21734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21735 yes:no: )
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21740 ac_header_preproc=yes
21741 ;;
21742 no:yes:* )
21743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21755
21756 ;;
21757 esac
21758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21761 echo $ECHO_N "(cached) $ECHO_C" >&6
21762 else
21763 eval "$as_ac_Header=\$ac_header_preproc"
21764 fi
21765 ac_res=`eval echo '${'$as_ac_Header'}'`
21766 { echo "$as_me:$LINENO: result: $ac_res" >&5
21767 echo "${ECHO_T}$ac_res" >&6; }
21768
21769 fi
21770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21771 cat >>confdefs.h <<_ACEOF
21772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21773 _ACEOF
21774
21775 fi
21776
21777 done
21778
21779 fi
21780
21781 # Solaris requires -lintl if you want strerror (which calls dgettext)
21782 # to return localized messages.
21783
21784 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21785 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21786 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789 ac_check_lib_save_LIBS=$LIBS
21790 LIBS="-lintl $LIBS"
21791 cat >conftest.$ac_ext <<_ACEOF
21792 /* confdefs.h. */
21793 _ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h. */
21797
21798 /* Override any GCC internal prototype to avoid an error.
21799 Use char because int might match the return type of a GCC
21800 builtin and then its argument prototype would still apply. */
21801 #ifdef __cplusplus
21802 extern "C"
21803 #endif
21804 char dgettext ();
21805 int
21806 main ()
21807 {
21808 return dgettext ();
21809 ;
21810 return 0;
21811 }
21812 _ACEOF
21813 rm -f conftest.$ac_objext conftest$ac_exeext
21814 if { (ac_try="$ac_link"
21815 case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21818 esac
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_link") 2>conftest.er1
21821 ac_status=$?
21822 grep -v '^ *+' conftest.er1 >conftest.err
21823 rm -f conftest.er1
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } && {
21827 test -z "$ac_c_werror_flag" ||
21828 test ! -s conftest.err
21829 } && test -s conftest$ac_exeext &&
21830 $as_test_x conftest$ac_exeext; then
21831 ac_cv_lib_intl_dgettext=yes
21832 else
21833 echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21835
21836 ac_cv_lib_intl_dgettext=no
21837 fi
21838
21839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21840 conftest$ac_exeext conftest.$ac_ext
21841 LIBS=$ac_check_lib_save_LIBS
21842 fi
21843 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21844 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21845 if test $ac_cv_lib_intl_dgettext = yes; then
21846 cat >>confdefs.h <<_ACEOF
21847 #define HAVE_LIBINTL 1
21848 _ACEOF
21849
21850 LIBS="-lintl $LIBS"
21851
21852 fi
21853
21854
21855 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21856 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21857 if test "${emacs_cv_localtime_cache+set}" = set; then
21858 echo $ECHO_N "(cached) $ECHO_C" >&6
21859 else
21860 if test x$ac_cv_func_tzset = xyes; then
21861 if test "$cross_compiling" = yes; then
21862 # If we have tzset, assume the worst when cross-compiling.
21863 emacs_cv_localtime_cache=yes
21864 else
21865 cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h. */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h. */
21871 #include <time.h>
21872 extern char **environ;
21873 unset_TZ ()
21874 {
21875 char **from, **to;
21876 for (to = from = environ; (*to = *from); from++)
21877 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21878 to++;
21879 }
21880 char TZ_GMT0[] = "TZ=GMT0";
21881 char TZ_PST8[] = "TZ=PST8";
21882 main()
21883 {
21884 time_t now = time ((time_t *) 0);
21885 int hour_GMT0, hour_unset;
21886 if (putenv (TZ_GMT0) != 0)
21887 exit (1);
21888 hour_GMT0 = localtime (&now)->tm_hour;
21889 unset_TZ ();
21890 hour_unset = localtime (&now)->tm_hour;
21891 if (putenv (TZ_PST8) != 0)
21892 exit (1);
21893 if (localtime (&now)->tm_hour == hour_GMT0)
21894 exit (1);
21895 unset_TZ ();
21896 if (localtime (&now)->tm_hour != hour_unset)
21897 exit (1);
21898 exit (0);
21899 }
21900 _ACEOF
21901 rm -f conftest$ac_exeext
21902 if { (ac_try="$ac_link"
21903 case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21906 esac
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_link") 2>&5
21909 ac_status=$?
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21912 { (case "(($ac_try" in
21913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914 *) ac_try_echo=$ac_try;;
21915 esac
21916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21917 (eval "$ac_try") 2>&5
21918 ac_status=$?
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); }; }; then
21921 emacs_cv_localtime_cache=no
21922 else
21923 echo "$as_me: program exited with status $ac_status" >&5
21924 echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21926
21927 ( exit $ac_status )
21928 emacs_cv_localtime_cache=yes
21929 fi
21930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21931 fi
21932
21933
21934 else
21935 # If we lack tzset, report that localtime does not cache TZ,
21936 # since we can't invalidate the cache if we don't have tzset.
21937 emacs_cv_localtime_cache=no
21938 fi
21939 fi
21940 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21941 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21942 if test $emacs_cv_localtime_cache = yes; then
21943
21944 cat >>confdefs.h <<\_ACEOF
21945 #define LOCALTIME_CACHE 1
21946 _ACEOF
21947
21948 fi
21949
21950 if test "x$HAVE_TIMEVAL" = xyes; then
21951
21952 for ac_func in gettimeofday
21953 do
21954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
21959 else
21960 cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h. */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21968 #define $ac_func innocuous_$ac_func
21969
21970 /* System header to define __stub macros and hopefully few prototypes,
21971 which can conflict with char $ac_func (); below.
21972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21973 <limits.h> exists even on freestanding compilers. */
21974
21975 #ifdef __STDC__
21976 # include <limits.h>
21977 #else
21978 # include <assert.h>
21979 #endif
21980
21981 #undef $ac_func
21982
21983 /* Override any GCC internal prototype to avoid an error.
21984 Use char because int might match the return type of a GCC
21985 builtin and then its argument prototype would still apply. */
21986 #ifdef __cplusplus
21987 extern "C"
21988 #endif
21989 char $ac_func ();
21990 /* The GNU C library defines this for functions which it implements
21991 to always fail with ENOSYS. Some functions are actually named
21992 something starting with __ and the normal name is an alias. */
21993 #if defined __stub_$ac_func || defined __stub___$ac_func
21994 choke me
21995 #endif
21996
21997 int
21998 main ()
21999 {
22000 return $ac_func ();
22001 ;
22002 return 0;
22003 }
22004 _ACEOF
22005 rm -f conftest.$ac_objext conftest$ac_exeext
22006 if { (ac_try="$ac_link"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_link") 2>conftest.er1
22013 ac_status=$?
22014 grep -v '^ *+' conftest.er1 >conftest.err
22015 rm -f conftest.er1
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } && {
22019 test -z "$ac_c_werror_flag" ||
22020 test ! -s conftest.err
22021 } && test -s conftest$ac_exeext &&
22022 $as_test_x conftest$ac_exeext; then
22023 eval "$as_ac_var=yes"
22024 else
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22027
22028 eval "$as_ac_var=no"
22029 fi
22030
22031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22032 conftest$ac_exeext conftest.$ac_ext
22033 fi
22034 ac_res=`eval echo '${'$as_ac_var'}'`
22035 { echo "$as_me:$LINENO: result: $ac_res" >&5
22036 echo "${ECHO_T}$ac_res" >&6; }
22037 if test `eval echo '${'$as_ac_var'}'` = yes; then
22038 cat >>confdefs.h <<_ACEOF
22039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22040 _ACEOF
22041
22042 fi
22043 done
22044
22045 if test $ac_cv_func_gettimeofday = yes; then
22046 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22047 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22048 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 else
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h. */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057
22058 #ifdef TIME_WITH_SYS_TIME
22059 #include <sys/time.h>
22060 #include <time.h>
22061 #else
22062 #ifdef HAVE_SYS_TIME_H
22063 #include <sys/time.h>
22064 #else
22065 #include <time.h>
22066 #endif
22067 #endif
22068 int
22069 main ()
22070 {
22071 struct timeval time;
22072 gettimeofday (&time, 0);
22073 ;
22074 return 0;
22075 }
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22085 ac_status=$?
22086 grep -v '^ *+' conftest.er1 >conftest.err
22087 rm -f conftest.er1
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22094 emacs_cv_gettimeofday_two_arguments=yes
22095 else
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099 emacs_cv_gettimeofday_two_arguments=no
22100 fi
22101
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 fi
22104 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22105 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22106 if test $emacs_cv_gettimeofday_two_arguments = no; then
22107
22108 cat >>confdefs.h <<\_ACEOF
22109 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22110 _ACEOF
22111
22112 fi
22113 fi
22114 fi
22115
22116 ok_so_far=yes
22117 { echo "$as_me:$LINENO: checking for socket" >&5
22118 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22119 if test "${ac_cv_func_socket+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22121 else
22122 cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h. */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22130 #define socket innocuous_socket
22131
22132 /* System header to define __stub macros and hopefully few prototypes,
22133 which can conflict with char socket (); below.
22134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22135 <limits.h> exists even on freestanding compilers. */
22136
22137 #ifdef __STDC__
22138 # include <limits.h>
22139 #else
22140 # include <assert.h>
22141 #endif
22142
22143 #undef socket
22144
22145 /* Override any GCC internal prototype to avoid an error.
22146 Use char because int might match the return type of a GCC
22147 builtin and then its argument prototype would still apply. */
22148 #ifdef __cplusplus
22149 extern "C"
22150 #endif
22151 char socket ();
22152 /* The GNU C library defines this for functions which it implements
22153 to always fail with ENOSYS. Some functions are actually named
22154 something starting with __ and the normal name is an alias. */
22155 #if defined __stub_socket || defined __stub___socket
22156 choke me
22157 #endif
22158
22159 int
22160 main ()
22161 {
22162 return socket ();
22163 ;
22164 return 0;
22165 }
22166 _ACEOF
22167 rm -f conftest.$ac_objext conftest$ac_exeext
22168 if { (ac_try="$ac_link"
22169 case "(($ac_try" in
22170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171 *) ac_try_echo=$ac_try;;
22172 esac
22173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22174 (eval "$ac_link") 2>conftest.er1
22175 ac_status=$?
22176 grep -v '^ *+' conftest.er1 >conftest.err
22177 rm -f conftest.er1
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && {
22181 test -z "$ac_c_werror_flag" ||
22182 test ! -s conftest.err
22183 } && test -s conftest$ac_exeext &&
22184 $as_test_x conftest$ac_exeext; then
22185 ac_cv_func_socket=yes
22186 else
22187 echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22189
22190 ac_cv_func_socket=no
22191 fi
22192
22193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22194 conftest$ac_exeext conftest.$ac_ext
22195 fi
22196 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22197 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22198 if test $ac_cv_func_socket = yes; then
22199 :
22200 else
22201 ok_so_far=no
22202 fi
22203
22204 if test $ok_so_far = yes; then
22205 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22206 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22207 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22208 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 fi
22211 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22212 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22213 else
22214 # Is the header compilable?
22215 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22216 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22217 cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h. */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22223 $ac_includes_default
22224 #include <netinet/in.h>
22225 _ACEOF
22226 rm -f conftest.$ac_objext
22227 if { (ac_try="$ac_compile"
22228 case "(($ac_try" in
22229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230 *) ac_try_echo=$ac_try;;
22231 esac
22232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22233 (eval "$ac_compile") 2>conftest.er1
22234 ac_status=$?
22235 grep -v '^ *+' conftest.er1 >conftest.err
22236 rm -f conftest.er1
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } && {
22240 test -z "$ac_c_werror_flag" ||
22241 test ! -s conftest.err
22242 } && test -s conftest.$ac_objext; then
22243 ac_header_compiler=yes
22244 else
22245 echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22247
22248 ac_header_compiler=no
22249 fi
22250
22251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22253 echo "${ECHO_T}$ac_header_compiler" >&6; }
22254
22255 # Is the header present?
22256 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22257 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22258 cat >conftest.$ac_ext <<_ACEOF
22259 /* confdefs.h. */
22260 _ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22264 #include <netinet/in.h>
22265 _ACEOF
22266 if { (ac_try="$ac_cpp conftest.$ac_ext"
22267 case "(($ac_try" in
22268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269 *) ac_try_echo=$ac_try;;
22270 esac
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22273 ac_status=$?
22274 grep -v '^ *+' conftest.er1 >conftest.err
22275 rm -f conftest.er1
22276 cat conftest.err >&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } >/dev/null && {
22279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22280 test ! -s conftest.err
22281 }; then
22282 ac_header_preproc=yes
22283 else
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22286
22287 ac_header_preproc=no
22288 fi
22289
22290 rm -f conftest.err conftest.$ac_ext
22291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22292 echo "${ECHO_T}$ac_header_preproc" >&6; }
22293
22294 # So? What about this header?
22295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22296 yes:no: )
22297 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22298 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22299 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22300 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22301 ac_header_preproc=yes
22302 ;;
22303 no:yes:* )
22304 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22305 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22306 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22307 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22308 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22309 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22310 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22311 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22312 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22313 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22314 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22315 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22316
22317 ;;
22318 esac
22319 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22320 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22321 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324 ac_cv_header_netinet_in_h=$ac_header_preproc
22325 fi
22326 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22327 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22328
22329 fi
22330 if test $ac_cv_header_netinet_in_h = yes; then
22331 :
22332 else
22333 ok_so_far=no
22334 fi
22335
22336
22337 fi
22338 if test $ok_so_far = yes; then
22339 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22340 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22341 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22342 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22343 echo $ECHO_N "(cached) $ECHO_C" >&6
22344 fi
22345 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22346 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22347 else
22348 # Is the header compilable?
22349 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22350 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22351 cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h. */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 $ac_includes_default
22358 #include <arpa/inet.h>
22359 _ACEOF
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22365 esac
22366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22367 (eval "$ac_compile") 2>conftest.er1
22368 ac_status=$?
22369 grep -v '^ *+' conftest.er1 >conftest.err
22370 rm -f conftest.er1
22371 cat conftest.err >&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); } && {
22374 test -z "$ac_c_werror_flag" ||
22375 test ! -s conftest.err
22376 } && test -s conftest.$ac_objext; then
22377 ac_header_compiler=yes
22378 else
22379 echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22381
22382 ac_header_compiler=no
22383 fi
22384
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22387 echo "${ECHO_T}$ac_header_compiler" >&6; }
22388
22389 # Is the header present?
22390 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22391 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22392 cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h. */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22398 #include <arpa/inet.h>
22399 _ACEOF
22400 if { (ac_try="$ac_cpp conftest.$ac_ext"
22401 case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404 esac
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22407 ac_status=$?
22408 grep -v '^ *+' conftest.er1 >conftest.err
22409 rm -f conftest.er1
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } >/dev/null && {
22413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 }; then
22416 ac_header_preproc=yes
22417 else
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22420
22421 ac_header_preproc=no
22422 fi
22423
22424 rm -f conftest.err conftest.$ac_ext
22425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22426 echo "${ECHO_T}$ac_header_preproc" >&6; }
22427
22428 # So? What about this header?
22429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22430 yes:no: )
22431 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22432 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22433 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22434 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22435 ac_header_preproc=yes
22436 ;;
22437 no:yes:* )
22438 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22439 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22440 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22441 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22442 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22443 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22444 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22445 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22446 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22447 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22448 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22449 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22450
22451 ;;
22452 esac
22453 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22454 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22455 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22456 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 else
22458 ac_cv_header_arpa_inet_h=$ac_header_preproc
22459 fi
22460 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22461 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22462
22463 fi
22464 if test $ac_cv_header_arpa_inet_h = yes; then
22465 :
22466 else
22467 ok_so_far=no
22468 fi
22469
22470
22471 fi
22472 if test $ok_so_far = yes; then
22473
22474 cat >>confdefs.h <<\_ACEOF
22475 #define HAVE_INET_SOCKETS 1
22476 _ACEOF
22477
22478 fi
22479
22480
22481 for ac_header in sys/ioctl.h
22482 do
22483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22489 fi
22490 ac_res=`eval echo '${'$as_ac_Header'}'`
22491 { echo "$as_me:$LINENO: result: $ac_res" >&5
22492 echo "${ECHO_T}$ac_res" >&6; }
22493 else
22494 # Is the header compilable?
22495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22497 cat >conftest.$ac_ext <<_ACEOF
22498 /* confdefs.h. */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 $ac_includes_default
22504 #include <$ac_header>
22505 _ACEOF
22506 rm -f conftest.$ac_objext
22507 if { (ac_try="$ac_compile"
22508 case "(($ac_try" in
22509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510 *) ac_try_echo=$ac_try;;
22511 esac
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513 (eval "$ac_compile") 2>conftest.er1
22514 ac_status=$?
22515 grep -v '^ *+' conftest.er1 >conftest.err
22516 rm -f conftest.er1
22517 cat conftest.err >&5
22518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } && {
22520 test -z "$ac_c_werror_flag" ||
22521 test ! -s conftest.err
22522 } && test -s conftest.$ac_objext; then
22523 ac_header_compiler=yes
22524 else
22525 echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22527
22528 ac_header_compiler=no
22529 fi
22530
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22533 echo "${ECHO_T}$ac_header_compiler" >&6; }
22534
22535 # Is the header present?
22536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h. */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 #include <$ac_header>
22545 _ACEOF
22546 if { (ac_try="$ac_cpp conftest.$ac_ext"
22547 case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22550 esac
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22553 ac_status=$?
22554 grep -v '^ *+' conftest.er1 >conftest.err
22555 rm -f conftest.er1
22556 cat conftest.err >&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } >/dev/null && {
22559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22560 test ! -s conftest.err
22561 }; then
22562 ac_header_preproc=yes
22563 else
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567 ac_header_preproc=no
22568 fi
22569
22570 rm -f conftest.err conftest.$ac_ext
22571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22572 echo "${ECHO_T}$ac_header_preproc" >&6; }
22573
22574 # So? What about this header?
22575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22576 yes:no: )
22577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22581 ac_header_preproc=yes
22582 ;;
22583 no:yes:* )
22584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22596
22597 ;;
22598 esac
22599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22602 echo $ECHO_N "(cached) $ECHO_C" >&6
22603 else
22604 eval "$as_ac_Header=\$ac_header_preproc"
22605 fi
22606 ac_res=`eval echo '${'$as_ac_Header'}'`
22607 { echo "$as_me:$LINENO: result: $ac_res" >&5
22608 echo "${ECHO_T}$ac_res" >&6; }
22609
22610 fi
22611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22612 cat >>confdefs.h <<_ACEOF
22613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22614 _ACEOF
22615
22616 fi
22617
22618 done
22619
22620
22621 if test -f /usr/lpp/X11/bin/smt.exp; then
22622
22623 cat >>confdefs.h <<\_ACEOF
22624 #define HAVE_AIX_SMT_EXP 1
22625 _ACEOF
22626
22627 fi
22628
22629 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22630 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22631 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22632 { echo "$as_me:$LINENO: result: yes" >&5
22633 echo "${ECHO_T}yes" >&6; }
22634
22635 cat >>confdefs.h <<\_ACEOF
22636 #define HAVE_DEV_PTMX 1
22637 _ACEOF
22638
22639 else
22640 { echo "$as_me:$LINENO: result: no" >&5
22641 echo "${ECHO_T}no" >&6; }
22642 fi
22643
22644 { echo "$as_me:$LINENO: checking for pid_t" >&5
22645 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22646 if test "${ac_cv_type_pid_t+set}" = set; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 else
22649 cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h. */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22655 $ac_includes_default
22656 typedef pid_t ac__type_new_;
22657 int
22658 main ()
22659 {
22660 if ((ac__type_new_ *) 0)
22661 return 0;
22662 if (sizeof (ac__type_new_))
22663 return 0;
22664 ;
22665 return 0;
22666 }
22667 _ACEOF
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22673 esac
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_compile") 2>conftest.er1
22676 ac_status=$?
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } && {
22682 test -z "$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 } && test -s conftest.$ac_objext; then
22685 ac_cv_type_pid_t=yes
22686 else
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690 ac_cv_type_pid_t=no
22691 fi
22692
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694 fi
22695 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22696 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22697 if test $ac_cv_type_pid_t = yes; then
22698 :
22699 else
22700
22701 cat >>confdefs.h <<_ACEOF
22702 #define pid_t int
22703 _ACEOF
22704
22705 fi
22706
22707
22708 for ac_header in vfork.h
22709 do
22710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 fi
22717 ac_res=`eval echo '${'$as_ac_Header'}'`
22718 { echo "$as_me:$LINENO: result: $ac_res" >&5
22719 echo "${ECHO_T}$ac_res" >&6; }
22720 else
22721 # Is the header compilable?
22722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22724 cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h. */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22730 $ac_includes_default
22731 #include <$ac_header>
22732 _ACEOF
22733 rm -f conftest.$ac_objext
22734 if { (ac_try="$ac_compile"
22735 case "(($ac_try" in
22736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22737 *) ac_try_echo=$ac_try;;
22738 esac
22739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22740 (eval "$ac_compile") 2>conftest.er1
22741 ac_status=$?
22742 grep -v '^ *+' conftest.er1 >conftest.err
22743 rm -f conftest.er1
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } && {
22747 test -z "$ac_c_werror_flag" ||
22748 test ! -s conftest.err
22749 } && test -s conftest.$ac_objext; then
22750 ac_header_compiler=yes
22751 else
22752 echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22754
22755 ac_header_compiler=no
22756 fi
22757
22758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22760 echo "${ECHO_T}$ac_header_compiler" >&6; }
22761
22762 # Is the header present?
22763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22765 cat >conftest.$ac_ext <<_ACEOF
22766 /* confdefs.h. */
22767 _ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 #include <$ac_header>
22772 _ACEOF
22773 if { (ac_try="$ac_cpp conftest.$ac_ext"
22774 case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22777 esac
22778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22780 ac_status=$?
22781 grep -v '^ *+' conftest.er1 >conftest.err
22782 rm -f conftest.er1
22783 cat conftest.err >&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } >/dev/null && {
22786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22787 test ! -s conftest.err
22788 }; then
22789 ac_header_preproc=yes
22790 else
22791 echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22793
22794 ac_header_preproc=no
22795 fi
22796
22797 rm -f conftest.err conftest.$ac_ext
22798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22799 echo "${ECHO_T}$ac_header_preproc" >&6; }
22800
22801 # So? What about this header?
22802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22803 yes:no: )
22804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22808 ac_header_preproc=yes
22809 ;;
22810 no:yes:* )
22811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22823
22824 ;;
22825 esac
22826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22829 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 else
22831 eval "$as_ac_Header=\$ac_header_preproc"
22832 fi
22833 ac_res=`eval echo '${'$as_ac_Header'}'`
22834 { echo "$as_me:$LINENO: result: $ac_res" >&5
22835 echo "${ECHO_T}$ac_res" >&6; }
22836
22837 fi
22838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22839 cat >>confdefs.h <<_ACEOF
22840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22841 _ACEOF
22842
22843 fi
22844
22845 done
22846
22847
22848
22849 for ac_func in fork vfork
22850 do
22851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 else
22857 cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h. */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22865 #define $ac_func innocuous_$ac_func
22866
22867 /* System header to define __stub macros and hopefully few prototypes,
22868 which can conflict with char $ac_func (); below.
22869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22870 <limits.h> exists even on freestanding compilers. */
22871
22872 #ifdef __STDC__
22873 # include <limits.h>
22874 #else
22875 # include <assert.h>
22876 #endif
22877
22878 #undef $ac_func
22879
22880 /* Override any GCC internal prototype to avoid an error.
22881 Use char because int might match the return type of a GCC
22882 builtin and then its argument prototype would still apply. */
22883 #ifdef __cplusplus
22884 extern "C"
22885 #endif
22886 char $ac_func ();
22887 /* The GNU C library defines this for functions which it implements
22888 to always fail with ENOSYS. Some functions are actually named
22889 something starting with __ and the normal name is an alias. */
22890 #if defined __stub_$ac_func || defined __stub___$ac_func
22891 choke me
22892 #endif
22893
22894 int
22895 main ()
22896 {
22897 return $ac_func ();
22898 ;
22899 return 0;
22900 }
22901 _ACEOF
22902 rm -f conftest.$ac_objext conftest$ac_exeext
22903 if { (ac_try="$ac_link"
22904 case "(($ac_try" in
22905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906 *) ac_try_echo=$ac_try;;
22907 esac
22908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22909 (eval "$ac_link") 2>conftest.er1
22910 ac_status=$?
22911 grep -v '^ *+' conftest.er1 >conftest.err
22912 rm -f conftest.er1
22913 cat conftest.err >&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } && {
22916 test -z "$ac_c_werror_flag" ||
22917 test ! -s conftest.err
22918 } && test -s conftest$ac_exeext &&
22919 $as_test_x conftest$ac_exeext; then
22920 eval "$as_ac_var=yes"
22921 else
22922 echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22924
22925 eval "$as_ac_var=no"
22926 fi
22927
22928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22929 conftest$ac_exeext conftest.$ac_ext
22930 fi
22931 ac_res=`eval echo '${'$as_ac_var'}'`
22932 { echo "$as_me:$LINENO: result: $ac_res" >&5
22933 echo "${ECHO_T}$ac_res" >&6; }
22934 if test `eval echo '${'$as_ac_var'}'` = yes; then
22935 cat >>confdefs.h <<_ACEOF
22936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22937 _ACEOF
22938
22939 fi
22940 done
22941
22942 if test "x$ac_cv_func_fork" = xyes; then
22943 { echo "$as_me:$LINENO: checking for working fork" >&5
22944 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22945 if test "${ac_cv_func_fork_works+set}" = set; then
22946 echo $ECHO_N "(cached) $ECHO_C" >&6
22947 else
22948 if test "$cross_compiling" = yes; then
22949 ac_cv_func_fork_works=cross
22950 else
22951 cat >conftest.$ac_ext <<_ACEOF
22952 /* confdefs.h. */
22953 _ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h. */
22957 $ac_includes_default
22958 int
22959 main ()
22960 {
22961
22962 /* By Ruediger Kuhlmann. */
22963 return fork () < 0;
22964
22965 ;
22966 return 0;
22967 }
22968 _ACEOF
22969 rm -f conftest$ac_exeext
22970 if { (ac_try="$ac_link"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22974 esac
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_link") 2>&5
22977 ac_status=$?
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22980 { (case "(($ac_try" in
22981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982 *) ac_try_echo=$ac_try;;
22983 esac
22984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985 (eval "$ac_try") 2>&5
22986 ac_status=$?
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); }; }; then
22989 ac_cv_func_fork_works=yes
22990 else
22991 echo "$as_me: program exited with status $ac_status" >&5
22992 echo "$as_me: failed program was:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22994
22995 ( exit $ac_status )
22996 ac_cv_func_fork_works=no
22997 fi
22998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22999 fi
23000
23001
23002 fi
23003 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23004 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23005
23006 else
23007 ac_cv_func_fork_works=$ac_cv_func_fork
23008 fi
23009 if test "x$ac_cv_func_fork_works" = xcross; then
23010 case $host in
23011 *-*-amigaos* | *-*-msdosdjgpp*)
23012 # Override, as these systems have only a dummy fork() stub
23013 ac_cv_func_fork_works=no
23014 ;;
23015 *)
23016 ac_cv_func_fork_works=yes
23017 ;;
23018 esac
23019 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23020 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23021 fi
23022 ac_cv_func_vfork_works=$ac_cv_func_vfork
23023 if test "x$ac_cv_func_vfork" = xyes; then
23024 { echo "$as_me:$LINENO: checking for working vfork" >&5
23025 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23026 if test "${ac_cv_func_vfork_works+set}" = set; then
23027 echo $ECHO_N "(cached) $ECHO_C" >&6
23028 else
23029 if test "$cross_compiling" = yes; then
23030 ac_cv_func_vfork_works=cross
23031 else
23032 cat >conftest.$ac_ext <<_ACEOF
23033 /* confdefs.h. */
23034 _ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h. */
23038 /* Thanks to Paul Eggert for this test. */
23039 $ac_includes_default
23040 #include <sys/wait.h>
23041 #ifdef HAVE_VFORK_H
23042 # include <vfork.h>
23043 #endif
23044 /* On some sparc systems, changes by the child to local and incoming
23045 argument registers are propagated back to the parent. The compiler
23046 is told about this with #include <vfork.h>, but some compilers
23047 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23048 static variable whose address is put into a register that is
23049 clobbered by the vfork. */
23050 static void
23051 #ifdef __cplusplus
23052 sparc_address_test (int arg)
23053 # else
23054 sparc_address_test (arg) int arg;
23055 #endif
23056 {
23057 static pid_t child;
23058 if (!child) {
23059 child = vfork ();
23060 if (child < 0) {
23061 perror ("vfork");
23062 _exit(2);
23063 }
23064 if (!child) {
23065 arg = getpid();
23066 write(-1, "", 0);
23067 _exit (arg);
23068 }
23069 }
23070 }
23071
23072 int
23073 main ()
23074 {
23075 pid_t parent = getpid ();
23076 pid_t child;
23077
23078 sparc_address_test (0);
23079
23080 child = vfork ();
23081
23082 if (child == 0) {
23083 /* Here is another test for sparc vfork register problems. This
23084 test uses lots of local variables, at least as many local
23085 variables as main has allocated so far including compiler
23086 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23087 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23088 reuse the register of parent for one of the local variables,
23089 since it will think that parent can't possibly be used any more
23090 in this routine. Assigning to the local variable will thus
23091 munge parent in the parent process. */
23092 pid_t
23093 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23094 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23095 /* Convince the compiler that p..p7 are live; otherwise, it might
23096 use the same hardware register for all 8 local variables. */
23097 if (p != p1 || p != p2 || p != p3 || p != p4
23098 || p != p5 || p != p6 || p != p7)
23099 _exit(1);
23100
23101 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23102 from child file descriptors. If the child closes a descriptor
23103 before it execs or exits, this munges the parent's descriptor
23104 as well. Test for this by closing stdout in the child. */
23105 _exit(close(fileno(stdout)) != 0);
23106 } else {
23107 int status;
23108 struct stat st;
23109
23110 while (wait(&status) != child)
23111 ;
23112 return (
23113 /* Was there some problem with vforking? */
23114 child < 0
23115
23116 /* Did the child fail? (This shouldn't happen.) */
23117 || status
23118
23119 /* Did the vfork/compiler bug occur? */
23120 || parent != getpid()
23121
23122 /* Did the file descriptor bug occur? */
23123 || fstat(fileno(stdout), &st) != 0
23124 );
23125 }
23126 }
23127 _ACEOF
23128 rm -f conftest$ac_exeext
23129 if { (ac_try="$ac_link"
23130 case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23133 esac
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135 (eval "$ac_link") 2>&5
23136 ac_status=$?
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23139 { (case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23142 esac
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_try") 2>&5
23145 ac_status=$?
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; }; then
23148 ac_cv_func_vfork_works=yes
23149 else
23150 echo "$as_me: program exited with status $ac_status" >&5
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23153
23154 ( exit $ac_status )
23155 ac_cv_func_vfork_works=no
23156 fi
23157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23158 fi
23159
23160
23161 fi
23162 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23163 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23164
23165 fi;
23166 if test "x$ac_cv_func_fork_works" = xcross; then
23167 ac_cv_func_vfork_works=$ac_cv_func_vfork
23168 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23169 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23170 fi
23171
23172 if test "x$ac_cv_func_vfork_works" = xyes; then
23173
23174 cat >>confdefs.h <<\_ACEOF
23175 #define HAVE_WORKING_VFORK 1
23176 _ACEOF
23177
23178 else
23179
23180 cat >>confdefs.h <<\_ACEOF
23181 #define vfork fork
23182 _ACEOF
23183
23184 fi
23185 if test "x$ac_cv_func_fork_works" = xyes; then
23186
23187 cat >>confdefs.h <<\_ACEOF
23188 #define HAVE_WORKING_FORK 1
23189 _ACEOF
23190
23191 fi
23192
23193
23194 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23195 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23196 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23198 else
23199 cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h. */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23205 #include <langinfo.h>
23206 int
23207 main ()
23208 {
23209 char* cs = nl_langinfo(CODESET);
23210 ;
23211 return 0;
23212 }
23213 _ACEOF
23214 rm -f conftest.$ac_objext conftest$ac_exeext
23215 if { (ac_try="$ac_link"
23216 case "(($ac_try" in
23217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23219 esac
23220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23221 (eval "$ac_link") 2>conftest.er1
23222 ac_status=$?
23223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } && {
23228 test -z "$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23230 } && test -s conftest$ac_exeext &&
23231 $as_test_x conftest$ac_exeext; then
23232 emacs_cv_langinfo_codeset=yes
23233 else
23234 echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23236
23237 emacs_cv_langinfo_codeset=no
23238 fi
23239
23240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23241 conftest$ac_exeext conftest.$ac_ext
23242
23243 fi
23244 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23245 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23246 if test $emacs_cv_langinfo_codeset = yes; then
23247
23248 cat >>confdefs.h <<\_ACEOF
23249 #define HAVE_LANGINFO_CODESET 1
23250 _ACEOF
23251
23252 fi
23253
23254 { echo "$as_me:$LINENO: checking for size_t" >&5
23255 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23256 if test "${ac_cv_type_size_t+set}" = set; then
23257 echo $ECHO_N "(cached) $ECHO_C" >&6
23258 else
23259 cat >conftest.$ac_ext <<_ACEOF
23260 /* confdefs.h. */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h. */
23265 $ac_includes_default
23266 typedef size_t ac__type_new_;
23267 int
23268 main ()
23269 {
23270 if ((ac__type_new_ *) 0)
23271 return 0;
23272 if (sizeof (ac__type_new_))
23273 return 0;
23274 ;
23275 return 0;
23276 }
23277 _ACEOF
23278 rm -f conftest.$ac_objext
23279 if { (ac_try="$ac_compile"
23280 case "(($ac_try" in
23281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282 *) ac_try_echo=$ac_try;;
23283 esac
23284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23285 (eval "$ac_compile") 2>conftest.er1
23286 ac_status=$?
23287 grep -v '^ *+' conftest.er1 >conftest.err
23288 rm -f conftest.er1
23289 cat conftest.err >&5
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } && {
23292 test -z "$ac_c_werror_flag" ||
23293 test ! -s conftest.err
23294 } && test -s conftest.$ac_objext; then
23295 ac_cv_type_size_t=yes
23296 else
23297 echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23299
23300 ac_cv_type_size_t=no
23301 fi
23302
23303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23304 fi
23305 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23306 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23307 if test $ac_cv_type_size_t = yes; then
23308
23309 cat >>confdefs.h <<_ACEOF
23310 #define HAVE_SIZE_T 1
23311 _ACEOF
23312
23313
23314 fi
23315
23316
23317 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23318 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23319 if test "${ac_cv_type_mbstate_t+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23321 else
23322 cat >conftest.$ac_ext <<_ACEOF
23323 /* confdefs.h. */
23324 _ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23328 $ac_includes_default
23329 # include <wchar.h>
23330 int
23331 main ()
23332 {
23333 mbstate_t x; return sizeof x;
23334 ;
23335 return 0;
23336 }
23337 _ACEOF
23338 rm -f conftest.$ac_objext
23339 if { (ac_try="$ac_compile"
23340 case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23343 esac
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_compile") 2>conftest.er1
23346 ac_status=$?
23347 grep -v '^ *+' conftest.er1 >conftest.err
23348 rm -f conftest.er1
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } && {
23352 test -z "$ac_c_werror_flag" ||
23353 test ! -s conftest.err
23354 } && test -s conftest.$ac_objext; then
23355 ac_cv_type_mbstate_t=yes
23356 else
23357 echo "$as_me: failed program was:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23359
23360 ac_cv_type_mbstate_t=no
23361 fi
23362
23363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364 fi
23365 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23366 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23367 if test $ac_cv_type_mbstate_t = yes; then
23368
23369 cat >>confdefs.h <<\_ACEOF
23370 #define HAVE_MBSTATE_T 1
23371 _ACEOF
23372
23373 else
23374
23375 cat >>confdefs.h <<\_ACEOF
23376 #define mbstate_t int
23377 _ACEOF
23378
23379 fi
23380
23381 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23382 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23383 if test "${emacs_cv_c_restrict+set}" = set; then
23384 echo $ECHO_N "(cached) $ECHO_C" >&6
23385 else
23386 cat >conftest.$ac_ext <<_ACEOF
23387 /* confdefs.h. */
23388 _ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h. */
23392 void fred (int *restrict x);
23393 int
23394 main ()
23395 {
23396
23397 ;
23398 return 0;
23399 }
23400 _ACEOF
23401 rm -f conftest.$ac_objext
23402 if { (ac_try="$ac_compile"
23403 case "(($ac_try" in
23404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23409 ac_status=$?
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23418 emacs_cv_c_restrict=yes
23419 else
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23422
23423 cat >conftest.$ac_ext <<_ACEOF
23424 /* confdefs.h. */
23425 _ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 void fred (int *__restrict x);
23430 int
23431 main ()
23432 {
23433
23434 ;
23435 return 0;
23436 }
23437 _ACEOF
23438 rm -f conftest.$ac_objext
23439 if { (ac_try="$ac_compile"
23440 case "(($ac_try" in
23441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442 *) ac_try_echo=$ac_try;;
23443 esac
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445 (eval "$ac_compile") 2>conftest.er1
23446 ac_status=$?
23447 grep -v '^ *+' conftest.er1 >conftest.err
23448 rm -f conftest.er1
23449 cat conftest.err >&5
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); } && {
23452 test -z "$ac_c_werror_flag" ||
23453 test ! -s conftest.err
23454 } && test -s conftest.$ac_objext; then
23455 emacs_cv_c_restrict=__restrict
23456 else
23457 echo "$as_me: failed program was:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23459
23460 emacs_cv_c_restrict=no
23461 fi
23462
23463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23464 fi
23465
23466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467 fi
23468 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23469 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23470 case "$emacs_cv_c_restrict" in
23471 yes) emacs_restrict=restrict;;
23472 no) emacs_restrict="";;
23473 *) emacs_restrict="$emacs_cv_c_restrict";;
23474 esac
23475 if test "$emacs_restrict" != __restrict; then
23476
23477 cat >>confdefs.h <<_ACEOF
23478 #define __restrict $emacs_restrict
23479 _ACEOF
23480
23481 fi
23482
23483 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23484 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23485 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 else
23488 cat >conftest.$ac_ext <<_ACEOF
23489 /* confdefs.h. */
23490 _ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23494 void fred (int x[__restrict]);
23495 int
23496 main ()
23497 {
23498
23499 ;
23500 return 0;
23501 }
23502 _ACEOF
23503 rm -f conftest.$ac_objext
23504 if { (ac_try="$ac_compile"
23505 case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23508 esac
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_compile") 2>conftest.er1
23511 ac_status=$?
23512 grep -v '^ *+' conftest.er1 >conftest.err
23513 rm -f conftest.er1
23514 cat conftest.err >&5
23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516 (exit $ac_status); } && {
23517 test -z "$ac_c_werror_flag" ||
23518 test ! -s conftest.err
23519 } && test -s conftest.$ac_objext; then
23520 emacs_cv_c_restrict_arr=yes
23521 else
23522 echo "$as_me: failed program was:" >&5
23523 sed 's/^/| /' conftest.$ac_ext >&5
23524
23525 emacs_cv_c_restrict_arr=no
23526 fi
23527
23528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23529 fi
23530 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23531 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23532 if test "$emacs_cv_c_restrict_arr" = yes; then
23533
23534 cat >>confdefs.h <<\_ACEOF
23535 #define __restrict_arr __restrict
23536 _ACEOF
23537
23538 fi
23539
23540
23541
23542 # Set up the CFLAGS for real compilation, so we can substitute it.
23543 CFLAGS="$REAL_CFLAGS"
23544 CPPFLAGS="$REAL_CPPFLAGS"
23545
23546 #### Find out which version of Emacs this is.
23547 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23548 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23549 if test x"${version}" = x; then
23550 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23551 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23552 { (exit 1); exit 1; }; }
23553 fi
23554
23555 ### Specify what sort of things we'll be editing into Makefile and config.h.
23556 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592 cat >>confdefs.h <<_ACEOF
23593 #define EMACS_CONFIGURATION "${canonical}"
23594 _ACEOF
23595
23596
23597 cat >>confdefs.h <<_ACEOF
23598 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23599 _ACEOF
23600
23601
23602 cat >>confdefs.h <<_ACEOF
23603 #define config_machfile "${machfile}"
23604 _ACEOF
23605
23606
23607 cat >>confdefs.h <<_ACEOF
23608 #define config_opsysfile "${opsysfile}"
23609 _ACEOF
23610
23611
23612 cat >>confdefs.h <<_ACEOF
23613 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23614 _ACEOF
23615
23616
23617 cat >>confdefs.h <<_ACEOF
23618 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23619 _ACEOF
23620
23621
23622 cat >>confdefs.h <<_ACEOF
23623 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23624 _ACEOF
23625
23626
23627 cat >>confdefs.h <<_ACEOF
23628 #define UNEXEC_SRC ${UNEXEC_SRC}
23629 _ACEOF
23630
23631
23632 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23633
23634 cat >>confdefs.h <<\_ACEOF
23635 #define HAVE_X_WINDOWS 1
23636 _ACEOF
23637
23638 fi
23639 if test "${USE_X_TOOLKIT}" != "none" ; then
23640
23641 cat >>confdefs.h <<\_ACEOF
23642 #define USE_X_TOOLKIT 1
23643 _ACEOF
23644
23645 fi
23646 if test "${HAVE_X11}" = "yes" ; then
23647
23648 cat >>confdefs.h <<\_ACEOF
23649 #define HAVE_X11 1
23650 _ACEOF
23651
23652 fi
23653 if test "${HAVE_XFREE386}" = "yes" ; then
23654
23655 cat >>confdefs.h <<\_ACEOF
23656 #define HAVE_XFREE386 1
23657 _ACEOF
23658
23659 fi
23660 if test "${HAVE_MENUS}" = "yes" ; then
23661
23662 cat >>confdefs.h <<\_ACEOF
23663 #define HAVE_MENUS 1
23664 _ACEOF
23665
23666 fi
23667 if test "${GNU_MALLOC}" = "yes" ; then
23668
23669 cat >>confdefs.h <<\_ACEOF
23670 #define GNU_MALLOC 1
23671 _ACEOF
23672
23673 fi
23674 if test "${REL_ALLOC}" = "yes" ; then
23675
23676 cat >>confdefs.h <<\_ACEOF
23677 #define REL_ALLOC 1
23678 _ACEOF
23679
23680 fi
23681
23682
23683
23684
23685
23686
23687 #### Report on what we decided to do.
23688 #### Report GTK as a toolkit, even if it doesn't use Xt.
23689 #### It makes printing result more understandable as using GTK sets
23690 #### toolkit_scroll_bars to yes by default.
23691 if test "${HAVE_GTK}" = "yes"; then
23692 USE_X_TOOLKIT=GTK
23693 fi
23694
23695 echo "
23696 Configured for \`${canonical}'.
23697
23698 Where should the build process find the source code? ${srcdir}
23699 What operating system and machine description files should Emacs use?
23700 \`${opsysfile}' and \`${machfile}'
23701 What compiler should emacs be built with? ${CC} ${CFLAGS}
23702 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23703 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23704 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23705 What window system should Emacs use? ${window_system}
23706 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23707
23708 if test -n "${x_includes}"; then
23709 echo " Where do we find X Windows header files? ${x_includes}"
23710 else
23711 echo " Where do we find X Windows header files? Standard dirs"
23712 fi
23713 if test -n "${x_libraries}"; then
23714 echo " Where do we find X Windows libraries? ${x_libraries}"
23715 else
23716 echo " Where do we find X Windows libraries? Standard dirs"
23717 fi
23718
23719 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23720 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23721 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23722 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23723 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23724 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23725 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23726 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23727 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23728 echo
23729
23730 if test $USE_XASSERTS = yes; then
23731 echo " Compiling with asserts turned on."
23732 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23733 echo
23734 fi
23735
23736 if test "$USE_X_TOOLKIT" = GTK; then
23737 case "$canonical" in
23738 *cygwin*)
23739 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23740 will probably get a crash on startup. If this happens, please use another
23741 toolkit for Emacs. See etc/PROBLEMS for more information."
23742 ;;
23743 esac
23744 fi
23745
23746
23747
23748 # Remove any trailing slashes in these variables.
23749 test "${prefix}" != NONE &&
23750 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23751 test "${exec_prefix}" != NONE &&
23752 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23753
23754 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23755 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23756 ## from Makefile.c can correctly provide the arg `-traditional' to the
23757 ## C preprocessor.
23758
23759 cat >conftest.$ac_ext <<_ACEOF
23760 /* confdefs.h. */
23761 _ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h. */
23765 yes..yes
23766 _ACEOF
23767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23768 $EGREP "yes..yes" >/dev/null 2>&1; then
23769 CPP_NEED_TRADITIONAL=no
23770 else
23771 CPP_NEED_TRADITIONAL=yes
23772 fi
23773 rm -f conftest*
23774
23775
23776 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"
23777
23778 ac_config_commands="$ac_config_commands default"
23779
23780 cat >confcache <<\_ACEOF
23781 # This file is a shell script that caches the results of configure
23782 # tests run on this system so they can be shared between configure
23783 # scripts and configure runs, see configure's option --config-cache.
23784 # It is not useful on other systems. If it contains results you don't
23785 # want to keep, you may remove or edit it.
23786 #
23787 # config.status only pays attention to the cache file if you give it
23788 # the --recheck option to rerun configure.
23789 #
23790 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23791 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23792 # following values.
23793
23794 _ACEOF
23795
23796 # The following way of writing the cache mishandles newlines in values,
23797 # but we know of no workaround that is simple, portable, and efficient.
23798 # So, we kill variables containing newlines.
23799 # Ultrix sh set writes to stderr and can't be redirected directly,
23800 # and sets the high bit in the cache file unless we assign to the vars.
23801 (
23802 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23803 eval ac_val=\$$ac_var
23804 case $ac_val in #(
23805 *${as_nl}*)
23806 case $ac_var in #(
23807 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23808 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23809 esac
23810 case $ac_var in #(
23811 _ | IFS | as_nl) ;; #(
23812 *) $as_unset $ac_var ;;
23813 esac ;;
23814 esac
23815 done
23816
23817 (set) 2>&1 |
23818 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23819 *${as_nl}ac_space=\ *)
23820 # `set' does not quote correctly, so add quotes (double-quote
23821 # substitution turns \\\\ into \\, and sed turns \\ into \).
23822 sed -n \
23823 "s/'/'\\\\''/g;
23824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23825 ;; #(
23826 *)
23827 # `set' quotes correctly as required by POSIX, so do not add quotes.
23828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23829 ;;
23830 esac |
23831 sort
23832 ) |
23833 sed '
23834 /^ac_cv_env_/b end
23835 t clear
23836 :clear
23837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23838 t end
23839 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23840 :end' >>confcache
23841 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23842 if test -w "$cache_file"; then
23843 test "x$cache_file" != "x/dev/null" &&
23844 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23845 echo "$as_me: updating cache $cache_file" >&6;}
23846 cat confcache >$cache_file
23847 else
23848 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23849 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23850 fi
23851 fi
23852 rm -f confcache
23853
23854 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23855 # Let make expand exec_prefix.
23856 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23857
23858 DEFS=-DHAVE_CONFIG_H
23859
23860 ac_libobjs=
23861 ac_ltlibobjs=
23862 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23863 # 1. Remove the extension, and $U if already installed.
23864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23865 ac_i=`echo "$ac_i" | sed "$ac_script"`
23866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23867 # will be set to the directory where LIBOBJS objects are built.
23868 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23869 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23870 done
23871 LIBOBJS=$ac_libobjs
23872
23873 LTLIBOBJS=$ac_ltlibobjs
23874
23875
23876
23877 : ${CONFIG_STATUS=./config.status}
23878 ac_clean_files_save=$ac_clean_files
23879 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23880 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23881 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23882 cat >$CONFIG_STATUS <<_ACEOF
23883 #! $SHELL
23884 # Generated by $as_me.
23885 # Run this file to recreate the current configuration.
23886 # Compiler output produced by configure, useful for debugging
23887 # configure, is in config.log if it exists.
23888
23889 debug=false
23890 ac_cs_recheck=false
23891 ac_cs_silent=false
23892 SHELL=\${CONFIG_SHELL-$SHELL}
23893 _ACEOF
23894
23895 cat >>$CONFIG_STATUS <<\_ACEOF
23896 ## --------------------- ##
23897 ## M4sh Initialization. ##
23898 ## --------------------- ##
23899
23900 # Be more Bourne compatible
23901 DUALCASE=1; export DUALCASE # for MKS sh
23902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23903 emulate sh
23904 NULLCMD=:
23905 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23906 # is contrary to our usage. Disable this feature.
23907 alias -g '${1+"$@"}'='"$@"'
23908 setopt NO_GLOB_SUBST
23909 else
23910 case `(set -o) 2>/dev/null` in
23911 *posix*) set -o posix ;;
23912 esac
23913
23914 fi
23915
23916
23917
23918
23919 # PATH needs CR
23920 # Avoid depending upon Character Ranges.
23921 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23922 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23923 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23924 as_cr_digits='0123456789'
23925 as_cr_alnum=$as_cr_Letters$as_cr_digits
23926
23927 # The user is always right.
23928 if test "${PATH_SEPARATOR+set}" != set; then
23929 echo "#! /bin/sh" >conf$$.sh
23930 echo "exit 0" >>conf$$.sh
23931 chmod +x conf$$.sh
23932 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23933 PATH_SEPARATOR=';'
23934 else
23935 PATH_SEPARATOR=:
23936 fi
23937 rm -f conf$$.sh
23938 fi
23939
23940 # Support unset when possible.
23941 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23942 as_unset=unset
23943 else
23944 as_unset=false
23945 fi
23946
23947
23948 # IFS
23949 # We need space, tab and new line, in precisely that order. Quoting is
23950 # there to prevent editors from complaining about space-tab.
23951 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23952 # splitting by setting IFS to empty value.)
23953 as_nl='
23954 '
23955 IFS=" "" $as_nl"
23956
23957 # Find who we are. Look in the path if we contain no directory separator.
23958 case $0 in
23959 *[\\/]* ) as_myself=$0 ;;
23960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23961 for as_dir in $PATH
23962 do
23963 IFS=$as_save_IFS
23964 test -z "$as_dir" && as_dir=.
23965 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23966 done
23967 IFS=$as_save_IFS
23968
23969 ;;
23970 esac
23971 # We did not find ourselves, most probably we were run as `sh COMMAND'
23972 # in which case we are not to be found in the path.
23973 if test "x$as_myself" = x; then
23974 as_myself=$0
23975 fi
23976 if test ! -f "$as_myself"; then
23977 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23978 { (exit 1); exit 1; }
23979 fi
23980
23981 # Work around bugs in pre-3.0 UWIN ksh.
23982 for as_var in ENV MAIL MAILPATH
23983 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23984 done
23985 PS1='$ '
23986 PS2='> '
23987 PS4='+ '
23988
23989 # NLS nuisances.
23990 for as_var in \
23991 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23992 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23993 LC_TELEPHONE LC_TIME
23994 do
23995 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23996 eval $as_var=C; export $as_var
23997 else
23998 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23999 fi
24000 done
24001
24002 # Required to use basename.
24003 if expr a : '\(a\)' >/dev/null 2>&1 &&
24004 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24005 as_expr=expr
24006 else
24007 as_expr=false
24008 fi
24009
24010 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24011 as_basename=basename
24012 else
24013 as_basename=false
24014 fi
24015
24016
24017 # Name of the executable.
24018 as_me=`$as_basename -- "$0" ||
24019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24020 X"$0" : 'X\(//\)$' \| \
24021 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24022 echo X/"$0" |
24023 sed '/^.*\/\([^/][^/]*\)\/*$/{
24024 s//\1/
24025 q
24026 }
24027 /^X\/\(\/\/\)$/{
24028 s//\1/
24029 q
24030 }
24031 /^X\/\(\/\).*/{
24032 s//\1/
24033 q
24034 }
24035 s/.*/./; q'`
24036
24037 # CDPATH.
24038 $as_unset CDPATH
24039
24040
24041
24042 as_lineno_1=$LINENO
24043 as_lineno_2=$LINENO
24044 test "x$as_lineno_1" != "x$as_lineno_2" &&
24045 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24046
24047 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24048 # uniformly replaced by the line number. The first 'sed' inserts a
24049 # line-number line after each line using $LINENO; the second 'sed'
24050 # does the real work. The second script uses 'N' to pair each
24051 # line-number line with the line containing $LINENO, and appends
24052 # trailing '-' during substitution so that $LINENO is not a special
24053 # case at line end.
24054 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24055 # scripts with optimization help from Paolo Bonzini. Blame Lee
24056 # E. McMahon (1931-1989) for sed's syntax. :-)
24057 sed -n '
24058 p
24059 /[$]LINENO/=
24060 ' <$as_myself |
24061 sed '
24062 s/[$]LINENO.*/&-/
24063 t lineno
24064 b
24065 :lineno
24066 N
24067 :loop
24068 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24069 t loop
24070 s/-\n.*//
24071 ' >$as_me.lineno &&
24072 chmod +x "$as_me.lineno" ||
24073 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24074 { (exit 1); exit 1; }; }
24075
24076 # Don't try to exec as it changes $[0], causing all sort of problems
24077 # (the dirname of $[0] is not the place where we might find the
24078 # original and so on. Autoconf is especially sensitive to this).
24079 . "./$as_me.lineno"
24080 # Exit status is that of the last command.
24081 exit
24082 }
24083
24084
24085 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24086 as_dirname=dirname
24087 else
24088 as_dirname=false
24089 fi
24090
24091 ECHO_C= ECHO_N= ECHO_T=
24092 case `echo -n x` in
24093 -n*)
24094 case `echo 'x\c'` in
24095 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24096 *) ECHO_C='\c';;
24097 esac;;
24098 *)
24099 ECHO_N='-n';;
24100 esac
24101
24102 if expr a : '\(a\)' >/dev/null 2>&1 &&
24103 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24104 as_expr=expr
24105 else
24106 as_expr=false
24107 fi
24108
24109 rm -f conf$$ conf$$.exe conf$$.file
24110 if test -d conf$$.dir; then
24111 rm -f conf$$.dir/conf$$.file
24112 else
24113 rm -f conf$$.dir
24114 mkdir conf$$.dir
24115 fi
24116 echo >conf$$.file
24117 if ln -s conf$$.file conf$$ 2>/dev/null; then
24118 as_ln_s='ln -s'
24119 # ... but there are two gotchas:
24120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24122 # In both cases, we have to default to `cp -p'.
24123 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24124 as_ln_s='cp -p'
24125 elif ln conf$$.file conf$$ 2>/dev/null; then
24126 as_ln_s=ln
24127 else
24128 as_ln_s='cp -p'
24129 fi
24130 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24131 rmdir conf$$.dir 2>/dev/null
24132
24133 if mkdir -p . 2>/dev/null; then
24134 as_mkdir_p=:
24135 else
24136 test -d ./-p && rmdir ./-p
24137 as_mkdir_p=false
24138 fi
24139
24140 if test -x / >/dev/null 2>&1; then
24141 as_test_x='test -x'
24142 else
24143 if ls -dL / >/dev/null 2>&1; then
24144 as_ls_L_option=L
24145 else
24146 as_ls_L_option=
24147 fi
24148 as_test_x='
24149 eval sh -c '\''
24150 if test -d "$1"; then
24151 test -d "$1/.";
24152 else
24153 case $1 in
24154 -*)set "./$1";;
24155 esac;
24156 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24157 ???[sx]*):;;*)false;;esac;fi
24158 '\'' sh
24159 '
24160 fi
24161 as_executable_p=$as_test_x
24162
24163 # Sed expression to map a string onto a valid CPP name.
24164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24165
24166 # Sed expression to map a string onto a valid variable name.
24167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24168
24169
24170 exec 6>&1
24171
24172 # Save the log message, to keep $[0] and so on meaningful, and to
24173 # report actual input values of CONFIG_FILES etc. instead of their
24174 # values after options handling.
24175 ac_log="
24176 This file was extended by $as_me, which was
24177 generated by GNU Autoconf 2.61. Invocation command line was
24178
24179 CONFIG_FILES = $CONFIG_FILES
24180 CONFIG_HEADERS = $CONFIG_HEADERS
24181 CONFIG_LINKS = $CONFIG_LINKS
24182 CONFIG_COMMANDS = $CONFIG_COMMANDS
24183 $ $0 $@
24184
24185 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24186 "
24187
24188 _ACEOF
24189
24190 cat >>$CONFIG_STATUS <<_ACEOF
24191 # Files that config.status was made for.
24192 config_files="$ac_config_files"
24193 config_headers="$ac_config_headers"
24194 config_commands="$ac_config_commands"
24195
24196 _ACEOF
24197
24198 cat >>$CONFIG_STATUS <<\_ACEOF
24199 ac_cs_usage="\
24200 \`$as_me' instantiates files from templates according to the
24201 current configuration.
24202
24203 Usage: $0 [OPTIONS] [FILE]...
24204
24205 -h, --help print this help, then exit
24206 -V, --version print version number and configuration settings, then exit
24207 -q, --quiet do not print progress messages
24208 -d, --debug don't remove temporary files
24209 --recheck update $as_me by reconfiguring in the same conditions
24210 --file=FILE[:TEMPLATE]
24211 instantiate the configuration file FILE
24212 --header=FILE[:TEMPLATE]
24213 instantiate the configuration header FILE
24214
24215 Configuration files:
24216 $config_files
24217
24218 Configuration headers:
24219 $config_headers
24220
24221 Configuration commands:
24222 $config_commands
24223
24224 Report bugs to <bug-autoconf@gnu.org>."
24225
24226 _ACEOF
24227 cat >>$CONFIG_STATUS <<_ACEOF
24228 ac_cs_version="\\
24229 config.status
24230 configured by $0, generated by GNU Autoconf 2.61,
24231 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24232
24233 Copyright (C) 2006 Free Software Foundation, Inc.
24234 This config.status script is free software; the Free Software Foundation
24235 gives unlimited permission to copy, distribute and modify it."
24236
24237 ac_pwd='$ac_pwd'
24238 srcdir='$srcdir'
24239 INSTALL='$INSTALL'
24240 _ACEOF
24241
24242 cat >>$CONFIG_STATUS <<\_ACEOF
24243 # If no file are specified by the user, then we need to provide default
24244 # value. By we need to know if files were specified by the user.
24245 ac_need_defaults=:
24246 while test $# != 0
24247 do
24248 case $1 in
24249 --*=*)
24250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24252 ac_shift=:
24253 ;;
24254 *)
24255 ac_option=$1
24256 ac_optarg=$2
24257 ac_shift=shift
24258 ;;
24259 esac
24260
24261 case $ac_option in
24262 # Handling of the options.
24263 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24264 ac_cs_recheck=: ;;
24265 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24266 echo "$ac_cs_version"; exit ;;
24267 --debug | --debu | --deb | --de | --d | -d )
24268 debug=: ;;
24269 --file | --fil | --fi | --f )
24270 $ac_shift
24271 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24272 ac_need_defaults=false;;
24273 --header | --heade | --head | --hea )
24274 $ac_shift
24275 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24276 ac_need_defaults=false;;
24277 --he | --h)
24278 # Conflict between --help and --header
24279 { echo "$as_me: error: ambiguous option: $1
24280 Try \`$0 --help' for more information." >&2
24281 { (exit 1); exit 1; }; };;
24282 --help | --hel | -h )
24283 echo "$ac_cs_usage"; exit ;;
24284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24285 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24286 ac_cs_silent=: ;;
24287
24288 # This is an error.
24289 -*) { echo "$as_me: error: unrecognized option: $1
24290 Try \`$0 --help' for more information." >&2
24291 { (exit 1); exit 1; }; } ;;
24292
24293 *) ac_config_targets="$ac_config_targets $1"
24294 ac_need_defaults=false ;;
24295
24296 esac
24297 shift
24298 done
24299
24300 ac_configure_extra_args=
24301
24302 if $ac_cs_silent; then
24303 exec 6>/dev/null
24304 ac_configure_extra_args="$ac_configure_extra_args --silent"
24305 fi
24306
24307 _ACEOF
24308 cat >>$CONFIG_STATUS <<_ACEOF
24309 if \$ac_cs_recheck; then
24310 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24311 CONFIG_SHELL=$SHELL
24312 export CONFIG_SHELL
24313 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24314 fi
24315
24316 _ACEOF
24317 cat >>$CONFIG_STATUS <<\_ACEOF
24318 exec 5>>config.log
24319 {
24320 echo
24321 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24322 ## Running $as_me. ##
24323 _ASBOX
24324 echo "$ac_log"
24325 } >&5
24326
24327 _ACEOF
24328 cat >>$CONFIG_STATUS <<_ACEOF
24329 #
24330 # INIT-COMMANDS
24331 #
24332 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24333
24334 _ACEOF
24335
24336 cat >>$CONFIG_STATUS <<\_ACEOF
24337
24338 # Handling of arguments.
24339 for ac_config_target in $ac_config_targets
24340 do
24341 case $ac_config_target in
24342 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24343 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24344 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24345 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24346 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24347 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24348 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24349 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24350 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24351 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24352 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24353 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24354
24355 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24356 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24357 { (exit 1); exit 1; }; };;
24358 esac
24359 done
24360
24361
24362 # If the user did not use the arguments to specify the items to instantiate,
24363 # then the envvar interface is used. Set only those that are not.
24364 # We use the long form for the default assignment because of an extremely
24365 # bizarre bug on SunOS 4.1.3.
24366 if $ac_need_defaults; then
24367 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24368 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24369 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24370 fi
24371
24372 # Have a temporary directory for convenience. Make it in the build tree
24373 # simply because there is no reason against having it here, and in addition,
24374 # creating and moving files from /tmp can sometimes cause problems.
24375 # Hook for its removal unless debugging.
24376 # Note that there is a small window in which the directory will not be cleaned:
24377 # after its creation but before its name has been assigned to `$tmp'.
24378 $debug ||
24379 {
24380 tmp=
24381 trap 'exit_status=$?
24382 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24383 ' 0
24384 trap '{ (exit 1); exit 1; }' 1 2 13 15
24385 }
24386 # Create a (secure) tmp directory for tmp files.
24387
24388 {
24389 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24390 test -n "$tmp" && test -d "$tmp"
24391 } ||
24392 {
24393 tmp=./conf$$-$RANDOM
24394 (umask 077 && mkdir "$tmp")
24395 } ||
24396 {
24397 echo "$me: cannot create a temporary directory in ." >&2
24398 { (exit 1); exit 1; }
24399 }
24400
24401 #
24402 # Set up the sed scripts for CONFIG_FILES section.
24403 #
24404
24405 # No need to generate the scripts if there are no CONFIG_FILES.
24406 # This happens for instance when ./config.status config.h
24407 if test -n "$CONFIG_FILES"; then
24408
24409 _ACEOF
24410
24411
24412
24413 ac_delim='%!_!# '
24414 for ac_last_try in false false false false false :; do
24415 cat >conf$$subs.sed <<_ACEOF
24416 SHELL!$SHELL$ac_delim
24417 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24418 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24419 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24420 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24421 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24422 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24423 exec_prefix!$exec_prefix$ac_delim
24424 prefix!$prefix$ac_delim
24425 program_transform_name!$program_transform_name$ac_delim
24426 bindir!$bindir$ac_delim
24427 sbindir!$sbindir$ac_delim
24428 libexecdir!$libexecdir$ac_delim
24429 datarootdir!$datarootdir$ac_delim
24430 datadir!$datadir$ac_delim
24431 sysconfdir!$sysconfdir$ac_delim
24432 sharedstatedir!$sharedstatedir$ac_delim
24433 localstatedir!$localstatedir$ac_delim
24434 includedir!$includedir$ac_delim
24435 oldincludedir!$oldincludedir$ac_delim
24436 docdir!$docdir$ac_delim
24437 infodir!$infodir$ac_delim
24438 htmldir!$htmldir$ac_delim
24439 dvidir!$dvidir$ac_delim
24440 pdfdir!$pdfdir$ac_delim
24441 psdir!$psdir$ac_delim
24442 libdir!$libdir$ac_delim
24443 localedir!$localedir$ac_delim
24444 mandir!$mandir$ac_delim
24445 DEFS!$DEFS$ac_delim
24446 ECHO_C!$ECHO_C$ac_delim
24447 ECHO_N!$ECHO_N$ac_delim
24448 ECHO_T!$ECHO_T$ac_delim
24449 LIBS!$LIBS$ac_delim
24450 build_alias!$build_alias$ac_delim
24451 host_alias!$host_alias$ac_delim
24452 target_alias!$target_alias$ac_delim
24453 MAINT!$MAINT$ac_delim
24454 build!$build$ac_delim
24455 build_cpu!$build_cpu$ac_delim
24456 build_vendor!$build_vendor$ac_delim
24457 build_os!$build_os$ac_delim
24458 host!$host$ac_delim
24459 host_cpu!$host_cpu$ac_delim
24460 host_vendor!$host_vendor$ac_delim
24461 host_os!$host_os$ac_delim
24462 CC!$CC$ac_delim
24463 CFLAGS!$CFLAGS$ac_delim
24464 LDFLAGS!$LDFLAGS$ac_delim
24465 CPPFLAGS!$CPPFLAGS$ac_delim
24466 ac_ct_CC!$ac_ct_CC$ac_delim
24467 EXEEXT!$EXEEXT$ac_delim
24468 OBJEXT!$OBJEXT$ac_delim
24469 CPP!$CPP$ac_delim
24470 GREP!$GREP$ac_delim
24471 EGREP!$EGREP$ac_delim
24472 LN_S!$LN_S$ac_delim
24473 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24474 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24475 INSTALL_DATA!$INSTALL_DATA$ac_delim
24476 RANLIB!$RANLIB$ac_delim
24477 INSTALL_INFO!$INSTALL_INFO$ac_delim
24478 GZIP_PROG!$GZIP_PROG$ac_delim
24479 MAKEINFO!$MAKEINFO$ac_delim
24480 LIBSOUND!$LIBSOUND$ac_delim
24481 PKG_CONFIG!$PKG_CONFIG$ac_delim
24482 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24483 ALSA_LIBS!$ALSA_LIBS$ac_delim
24484 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24485 SET_MAKE!$SET_MAKE$ac_delim
24486 XMKMF!$XMKMF$ac_delim
24487 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24488 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24489 RSVG_LIBS!$RSVG_LIBS$ac_delim
24490 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24491 GTK_LIBS!$GTK_LIBS$ac_delim
24492 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24493 XFT_LIBS!$XFT_LIBS$ac_delim
24494 ALLOCA!$ALLOCA$ac_delim
24495 liblockfile!$liblockfile$ac_delim
24496 LIBOBJS!$LIBOBJS$ac_delim
24497 NEED_SETGID!$NEED_SETGID$ac_delim
24498 KMEM_GROUP!$KMEM_GROUP$ac_delim
24499 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24500 GETOPT_H!$GETOPT_H$ac_delim
24501 GETOPTOBJS!$GETOPTOBJS$ac_delim
24502 version!$version$ac_delim
24503 configuration!$configuration$ac_delim
24504 canonical!$canonical$ac_delim
24505 srcdir!$srcdir$ac_delim
24506 lispdir!$lispdir$ac_delim
24507 locallisppath!$locallisppath$ac_delim
24508 lisppath!$lisppath$ac_delim
24509 x_default_search_path!$x_default_search_path$ac_delim
24510 etcdir!$etcdir$ac_delim
24511 archlibdir!$archlibdir$ac_delim
24512 bitmapdir!$bitmapdir$ac_delim
24513 _ACEOF
24514
24515 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24516 break
24517 elif $ac_last_try; then
24518 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24519 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24520 { (exit 1); exit 1; }; }
24521 else
24522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24523 fi
24524 done
24525
24526 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24527 if test -n "$ac_eof"; then
24528 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24529 ac_eof=`expr $ac_eof + 1`
24530 fi
24531
24532 cat >>$CONFIG_STATUS <<_ACEOF
24533 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24534 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24535 _ACEOF
24536 sed '
24537 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24538 s/^/s,@/; s/!/@,|#_!!_#|/
24539 :n
24540 t n
24541 s/'"$ac_delim"'$/,g/; t
24542 s/$/\\/; p
24543 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24544 ' >>$CONFIG_STATUS <conf$$subs.sed
24545 rm -f conf$$subs.sed
24546 cat >>$CONFIG_STATUS <<_ACEOF
24547 CEOF$ac_eof
24548 _ACEOF
24549
24550
24551 ac_delim='%!_!# '
24552 for ac_last_try in false false false false false :; do
24553 cat >conf$$subs.sed <<_ACEOF
24554 gamedir!$gamedir$ac_delim
24555 gameuser!$gameuser$ac_delim
24556 c_switch_system!$c_switch_system$ac_delim
24557 c_switch_machine!$c_switch_machine$ac_delim
24558 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24559 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24560 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24561 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24562 machfile!$machfile$ac_delim
24563 opsysfile!$opsysfile$ac_delim
24564 carbon_appdir!$carbon_appdir$ac_delim
24565 LTLIBOBJS!$LTLIBOBJS$ac_delim
24566 _ACEOF
24567
24568 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24569 break
24570 elif $ac_last_try; then
24571 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24572 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24573 { (exit 1); exit 1; }; }
24574 else
24575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24576 fi
24577 done
24578
24579 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24580 if test -n "$ac_eof"; then
24581 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24582 ac_eof=`expr $ac_eof + 1`
24583 fi
24584
24585 cat >>$CONFIG_STATUS <<_ACEOF
24586 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24588 _ACEOF
24589 sed '
24590 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24591 s/^/s,@/; s/!/@,|#_!!_#|/
24592 :n
24593 t n
24594 s/'"$ac_delim"'$/,g/; t
24595 s/$/\\/; p
24596 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24597 ' >>$CONFIG_STATUS <conf$$subs.sed
24598 rm -f conf$$subs.sed
24599 cat >>$CONFIG_STATUS <<_ACEOF
24600 :end
24601 s/|#_!!_#|//g
24602 CEOF$ac_eof
24603 _ACEOF
24604
24605
24606 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24607 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24608 # trailing colons and then remove the whole line if VPATH becomes empty
24609 # (actually we leave an empty line to preserve line numbers).
24610 if test "x$srcdir" = x.; then
24611 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24612 s/:*\$(srcdir):*/:/
24613 s/:*\${srcdir}:*/:/
24614 s/:*@srcdir@:*/:/
24615 s/^\([^=]*=[ ]*\):*/\1/
24616 s/:*$//
24617 s/^[^=]*=[ ]*$//
24618 }'
24619 fi
24620
24621 cat >>$CONFIG_STATUS <<\_ACEOF
24622 fi # test -n "$CONFIG_FILES"
24623
24624
24625 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24626 do
24627 case $ac_tag in
24628 :[FHLC]) ac_mode=$ac_tag; continue;;
24629 esac
24630 case $ac_mode$ac_tag in
24631 :[FHL]*:*);;
24632 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24633 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24634 { (exit 1); exit 1; }; };;
24635 :[FH]-) ac_tag=-:-;;
24636 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24637 esac
24638 ac_save_IFS=$IFS
24639 IFS=:
24640 set x $ac_tag
24641 IFS=$ac_save_IFS
24642 shift
24643 ac_file=$1
24644 shift
24645
24646 case $ac_mode in
24647 :L) ac_source=$1;;
24648 :[FH])
24649 ac_file_inputs=
24650 for ac_f
24651 do
24652 case $ac_f in
24653 -) ac_f="$tmp/stdin";;
24654 *) # Look for the file first in the build tree, then in the source tree
24655 # (if the path is not absolute). The absolute path cannot be DOS-style,
24656 # because $ac_f cannot contain `:'.
24657 test -f "$ac_f" ||
24658 case $ac_f in
24659 [\\/$]*) false;;
24660 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24661 esac ||
24662 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24663 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24664 { (exit 1); exit 1; }; };;
24665 esac
24666 ac_file_inputs="$ac_file_inputs $ac_f"
24667 done
24668
24669 # Let's still pretend it is `configure' which instantiates (i.e., don't
24670 # use $as_me), people would be surprised to read:
24671 # /* config.h. Generated by config.status. */
24672 configure_input="Generated from "`IFS=:
24673 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24674 if test x"$ac_file" != x-; then
24675 configure_input="$ac_file. $configure_input"
24676 { echo "$as_me:$LINENO: creating $ac_file" >&5
24677 echo "$as_me: creating $ac_file" >&6;}
24678 fi
24679
24680 case $ac_tag in
24681 *:-:* | *:-) cat >"$tmp/stdin";;
24682 esac
24683 ;;
24684 esac
24685
24686 ac_dir=`$as_dirname -- "$ac_file" ||
24687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24688 X"$ac_file" : 'X\(//\)[^/]' \| \
24689 X"$ac_file" : 'X\(//\)$' \| \
24690 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24691 echo X"$ac_file" |
24692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24693 s//\1/
24694 q
24695 }
24696 /^X\(\/\/\)[^/].*/{
24697 s//\1/
24698 q
24699 }
24700 /^X\(\/\/\)$/{
24701 s//\1/
24702 q
24703 }
24704 /^X\(\/\).*/{
24705 s//\1/
24706 q
24707 }
24708 s/.*/./; q'`
24709 { as_dir="$ac_dir"
24710 case $as_dir in #(
24711 -*) as_dir=./$as_dir;;
24712 esac
24713 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24714 as_dirs=
24715 while :; do
24716 case $as_dir in #(
24717 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24718 *) as_qdir=$as_dir;;
24719 esac
24720 as_dirs="'$as_qdir' $as_dirs"
24721 as_dir=`$as_dirname -- "$as_dir" ||
24722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24723 X"$as_dir" : 'X\(//\)[^/]' \| \
24724 X"$as_dir" : 'X\(//\)$' \| \
24725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24726 echo X"$as_dir" |
24727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24728 s//\1/
24729 q
24730 }
24731 /^X\(\/\/\)[^/].*/{
24732 s//\1/
24733 q
24734 }
24735 /^X\(\/\/\)$/{
24736 s//\1/
24737 q
24738 }
24739 /^X\(\/\).*/{
24740 s//\1/
24741 q
24742 }
24743 s/.*/./; q'`
24744 test -d "$as_dir" && break
24745 done
24746 test -z "$as_dirs" || eval "mkdir $as_dirs"
24747 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24748 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24749 { (exit 1); exit 1; }; }; }
24750 ac_builddir=.
24751
24752 case "$ac_dir" in
24753 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24754 *)
24755 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24756 # A ".." for each directory in $ac_dir_suffix.
24757 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24758 case $ac_top_builddir_sub in
24759 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24760 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24761 esac ;;
24762 esac
24763 ac_abs_top_builddir=$ac_pwd
24764 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24765 # for backward compatibility:
24766 ac_top_builddir=$ac_top_build_prefix
24767
24768 case $srcdir in
24769 .) # We are building in place.
24770 ac_srcdir=.
24771 ac_top_srcdir=$ac_top_builddir_sub
24772 ac_abs_top_srcdir=$ac_pwd ;;
24773 [\\/]* | ?:[\\/]* ) # Absolute name.
24774 ac_srcdir=$srcdir$ac_dir_suffix;
24775 ac_top_srcdir=$srcdir
24776 ac_abs_top_srcdir=$srcdir ;;
24777 *) # Relative name.
24778 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24779 ac_top_srcdir=$ac_top_build_prefix$srcdir
24780 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24781 esac
24782 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24783
24784
24785 case $ac_mode in
24786 :F)
24787 #
24788 # CONFIG_FILE
24789 #
24790
24791 case $INSTALL in
24792 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24793 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24794 esac
24795 _ACEOF
24796
24797 cat >>$CONFIG_STATUS <<\_ACEOF
24798 # If the template does not know about datarootdir, expand it.
24799 # FIXME: This hack should be removed a few years after 2.60.
24800 ac_datarootdir_hack=; ac_datarootdir_seen=
24801
24802 case `sed -n '/datarootdir/ {
24803 p
24804 q
24805 }
24806 /@datadir@/p
24807 /@docdir@/p
24808 /@infodir@/p
24809 /@localedir@/p
24810 /@mandir@/p
24811 ' $ac_file_inputs` in
24812 *datarootdir*) ac_datarootdir_seen=yes;;
24813 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24814 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24815 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24816 _ACEOF
24817 cat >>$CONFIG_STATUS <<_ACEOF
24818 ac_datarootdir_hack='
24819 s&@datadir@&$datadir&g
24820 s&@docdir@&$docdir&g
24821 s&@infodir@&$infodir&g
24822 s&@localedir@&$localedir&g
24823 s&@mandir@&$mandir&g
24824 s&\\\${datarootdir}&$datarootdir&g' ;;
24825 esac
24826 _ACEOF
24827
24828 # Neutralize VPATH when `$srcdir' = `.'.
24829 # Shell code in configure.ac might set extrasub.
24830 # FIXME: do we really want to maintain this feature?
24831 cat >>$CONFIG_STATUS <<_ACEOF
24832 sed "$ac_vpsub
24833 $extrasub
24834 _ACEOF
24835 cat >>$CONFIG_STATUS <<\_ACEOF
24836 :t
24837 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24838 s&@configure_input@&$configure_input&;t t
24839 s&@top_builddir@&$ac_top_builddir_sub&;t t
24840 s&@srcdir@&$ac_srcdir&;t t
24841 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24842 s&@top_srcdir@&$ac_top_srcdir&;t t
24843 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24844 s&@builddir@&$ac_builddir&;t t
24845 s&@abs_builddir@&$ac_abs_builddir&;t t
24846 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24847 s&@INSTALL@&$ac_INSTALL&;t t
24848 $ac_datarootdir_hack
24849 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24850
24851 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24852 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24853 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24854 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24855 which seems to be undefined. Please make sure it is defined." >&5
24856 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24857 which seems to be undefined. Please make sure it is defined." >&2;}
24858
24859 rm -f "$tmp/stdin"
24860 case $ac_file in
24861 -) cat "$tmp/out"; rm -f "$tmp/out";;
24862 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24863 esac
24864 ;;
24865 :H)
24866 #
24867 # CONFIG_HEADER
24868 #
24869 _ACEOF
24870
24871 # Transform confdefs.h into a sed script `conftest.defines', that
24872 # substitutes the proper values into config.h.in to produce config.h.
24873 rm -f conftest.defines conftest.tail
24874 # First, append a space to every undef/define line, to ease matching.
24875 echo 's/$/ /' >conftest.defines
24876 # Then, protect against being on the right side of a sed subst, or in
24877 # an unquoted here document, in config.status. If some macros were
24878 # called several times there might be several #defines for the same
24879 # symbol, which is useless. But do not sort them, since the last
24880 # AC_DEFINE must be honored.
24881 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24882 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24883 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24884 # PARAMS is the parameter list in the macro definition--in most cases, it's
24885 # just an empty string.
24886 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24887 ac_dB='\\)[ (].*,\\1define\\2'
24888 ac_dC=' '
24889 ac_dD=' ,'
24890
24891 uniq confdefs.h |
24892 sed -n '
24893 t rset
24894 :rset
24895 s/^[ ]*#[ ]*define[ ][ ]*//
24896 t ok
24897 d
24898 :ok
24899 s/[\\&,]/\\&/g
24900 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24901 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24902 ' >>conftest.defines
24903
24904 # Remove the space that was appended to ease matching.
24905 # Then replace #undef with comments. This is necessary, for
24906 # example, in the case of _POSIX_SOURCE, which is predefined and required
24907 # on some systems where configure will not decide to define it.
24908 # (The regexp can be short, since the line contains either #define or #undef.)
24909 echo 's/ $//
24910 s,^[ #]*u.*,/* & */,' >>conftest.defines
24911
24912 # Break up conftest.defines:
24913 ac_max_sed_lines=50
24914
24915 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24916 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24917 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24918 # et cetera.
24919 ac_in='$ac_file_inputs'
24920 ac_out='"$tmp/out1"'
24921 ac_nxt='"$tmp/out2"'
24922
24923 while :
24924 do
24925 # Write a here document:
24926 cat >>$CONFIG_STATUS <<_ACEOF
24927 # First, check the format of the line:
24928 cat >"\$tmp/defines.sed" <<\\CEOF
24929 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24930 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24931 b
24932 :def
24933 _ACEOF
24934 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24935 echo 'CEOF
24936 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24937 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24938 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24939 grep . conftest.tail >/dev/null || break
24940 rm -f conftest.defines
24941 mv conftest.tail conftest.defines
24942 done
24943 rm -f conftest.defines conftest.tail
24944
24945 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24946 cat >>$CONFIG_STATUS <<\_ACEOF
24947 if test x"$ac_file" != x-; then
24948 echo "/* $configure_input */" >"$tmp/config.h"
24949 cat "$ac_result" >>"$tmp/config.h"
24950 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24951 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24952 echo "$as_me: $ac_file is unchanged" >&6;}
24953 else
24954 rm -f $ac_file
24955 mv "$tmp/config.h" $ac_file
24956 fi
24957 else
24958 echo "/* $configure_input */"
24959 cat "$ac_result"
24960 fi
24961 rm -f "$tmp/out12"
24962 ;;
24963
24964 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24965 echo "$as_me: executing $ac_file commands" >&6;}
24966 ;;
24967 esac
24968
24969
24970 case $ac_file$ac_mode in
24971 "default":C)
24972
24973 ### Make the necessary directories, if they don't exist.
24974 for dir in etc lisp ; do
24975 test -d ${dir} || mkdir ${dir}
24976 done
24977
24978 # Build src/Makefile from ${srcdir}/src/Makefile.c
24979 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24980 # This must be done after src/config.h is built, since we rely on that file.
24981
24982 # Now get this: Some word that is part of the ${srcdir} directory name
24983 # or the ${configuration} value might, just might, happen to be an
24984 # identifier like `sun4' or `i386' or something, and be predefined by
24985 # the C preprocessor to some helpful value like 1, or maybe the empty
24986 # string. Needless to say consequent macro substitutions are less
24987 # than conducive to the makefile finding the correct directory.
24988 undefs="`echo $top_srcdir $configuration $canonical |
24989 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24990 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24991 `"
24992
24993 echo creating src/epaths.h
24994 ${MAKE-make} epaths-force
24995
24996 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24997 # `..' to `. .' unless invoked with -traditional
24998
24999 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25000 CPPFLAGS="$CPPFLAGS -traditional"
25001 fi
25002
25003 echo creating lib-src/Makefile
25004 ( cd lib-src
25005 rm -f junk.c junk1.c junk2.c
25006 sed -e '/start of cpp stuff/q' \
25007 < Makefile.c > junk1.c
25008 sed -e '1,/start of cpp stuff/d'\
25009 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25010 < Makefile.c > junk.c
25011 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25012 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25013 cat junk1.c junk2.c > Makefile.new
25014 rm -f junk.c junk1.c junk2.c
25015 chmod 444 Makefile.new
25016 mv -f Makefile.new Makefile
25017 )
25018
25019 echo creating src/Makefile
25020 ( cd src
25021 rm -f junk.c junk1.c junk2.c
25022 sed -e '/start of cpp stuff/q' \
25023 < Makefile.c > junk1.c
25024 sed -e '1,/start of cpp stuff/d'\
25025 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25026 < Makefile.c > junk.c
25027 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25028 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25029 cat junk1.c junk2.c > Makefile.new
25030 rm -f junk.c junk1.c junk2.c
25031 chmod 444 Makefile.new
25032 mv -f Makefile.new Makefile
25033 )
25034
25035 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25036 echo creating src/.gdbinit
25037 echo source $srcdir/src/.gdbinit > src/.gdbinit
25038 fi
25039
25040 # This is how we know whether to re-run configure in certain cases.
25041 touch src/config.stamp
25042
25043 ;;
25044
25045 esac
25046 done # for ac_tag
25047
25048
25049 { (exit 0); exit 0; }
25050 _ACEOF
25051 chmod +x $CONFIG_STATUS
25052 ac_clean_files=$ac_clean_files_save
25053
25054
25055 # configure is writing to config.log, and then calls config.status.
25056 # config.status does its own redirection, appending to config.log.
25057 # Unfortunately, on DOS this fails, as config.log is still kept open
25058 # by configure, so config.status won't be able to write to it; its
25059 # output is simply discarded. So we exec the FD to /dev/null,
25060 # effectively closing config.log, so it can be properly (re)opened and
25061 # appended to by config.status. When coming back to configure, we
25062 # need to make the FD available again.
25063 if test "$no_create" != yes; then
25064 ac_cs_success=:
25065 ac_config_status_args=
25066 test "$silent" = yes &&
25067 ac_config_status_args="$ac_config_status_args --quiet"
25068 exec 5>/dev/null
25069 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25070 exec 5>>config.log
25071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25072 # would make configure fail if this is the last instruction.
25073 $ac_cs_success || { (exit 1); exit 1; }
25074 fi
25075
25076