]> code.delx.au - gnu-emacs/blob - configure
Merge from emacs--devo--0
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 GTK_CFLAGS
690 GTK_LIBS
691 XFT_CFLAGS
692 XFT_LIBS
693 FREETYPE_CFLAGS
694 FREETYPE_LIBS
695 FONTCONFIG_CFLAGS
696 FONTCONFIG_LIBS
697 HAVE_LIBOTF
698 LIBOTF_CFLAGS
699 LIBOTF_LIBS
700 ALLOCA
701 liblockfile
702 LIBOBJS
703 NEED_SETGID
704 KMEM_GROUP
705 GETLOADAVG_LIBS
706 GETOPT_H
707 GETOPTOBJS
708 version
709 configuration
710 canonical
711 srcdir
712 lispdir
713 locallisppath
714 lisppath
715 x_default_search_path
716 etcdir
717 archlibdir
718 bitmapdir
719 gamedir
720 gameuser
721 c_switch_system
722 c_switch_machine
723 LD_SWITCH_X_SITE
724 LD_SWITCH_X_SITE_AUX
725 C_SWITCH_X_SITE
726 X_TOOLKIT_TYPE
727 machfile
728 opsysfile
729 carbon_appdir
730 LTLIBOBJS'
731 ac_subst_files=''
732 ac_precious_vars='build_alias
733 host_alias
734 target_alias
735 CC
736 CFLAGS
737 LDFLAGS
738 LIBS
739 CPPFLAGS
740 CPP
741 XMKMF'
742
743
744 # Initialize some variables set by options.
745 ac_init_help=
746 ac_init_version=false
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
749 cache_file=/dev/null
750 exec_prefix=NONE
751 no_create=
752 no_recursion=
753 prefix=NONE
754 program_prefix=NONE
755 program_suffix=NONE
756 program_transform_name=s,x,x,
757 silent=
758 site=
759 srcdir=
760 verbose=
761 x_includes=NONE
762 x_libraries=NONE
763
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir='${exec_prefix}/bin'
771 sbindir='${exec_prefix}/sbin'
772 libexecdir='${exec_prefix}/libexec'
773 datarootdir='${prefix}/share'
774 datadir='${datarootdir}'
775 sysconfdir='${prefix}/etc'
776 sharedstatedir='${prefix}/com'
777 localstatedir='${prefix}/var'
778 includedir='${prefix}/include'
779 oldincludedir='/usr/include'
780 docdir='${datarootdir}/doc/${PACKAGE}'
781 infodir='${datarootdir}/info'
782 htmldir='${docdir}'
783 dvidir='${docdir}'
784 pdfdir='${docdir}'
785 psdir='${docdir}'
786 libdir='${exec_prefix}/lib'
787 localedir='${datarootdir}/locale'
788 mandir='${datarootdir}/man'
789
790 ac_prev=
791 ac_dashdash=
792 for ac_option
793 do
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\$ac_option
797 ac_prev=
798 continue
799 fi
800
801 case $ac_option in
802 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 *) ac_optarg=yes ;;
804 esac
805
806 # Accept the important Cygnus configure options, so we can diagnose typos.
807
808 case $ac_dashdash$ac_option in
809 --)
810 ac_dashdash=yes ;;
811
812 -bindir | --bindir | --bindi | --bind | --bin | --bi)
813 ac_prev=bindir ;;
814 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815 bindir=$ac_optarg ;;
816
817 -build | --build | --buil | --bui | --bu)
818 ac_prev=build_alias ;;
819 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820 build_alias=$ac_optarg ;;
821
822 -cache-file | --cache-file | --cache-fil | --cache-fi \
823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824 ac_prev=cache_file ;;
825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827 cache_file=$ac_optarg ;;
828
829 --config-cache | -C)
830 cache_file=config.cache ;;
831
832 -datadir | --datadir | --datadi | --datad)
833 ac_prev=datadir ;;
834 -datadir=* | --datadir=* | --datadi=* | --datad=*)
835 datadir=$ac_optarg ;;
836
837 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838 | --dataroo | --dataro | --datar)
839 ac_prev=datarootdir ;;
840 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842 datarootdir=$ac_optarg ;;
843
844 -disable-* | --disable-*)
845 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
850 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_$ac_feature=no ;;
852
853 -docdir | --docdir | --docdi | --doc | --do)
854 ac_prev=docdir ;;
855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
856 docdir=$ac_optarg ;;
857
858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
859 ac_prev=dvidir ;;
860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
861 dvidir=$ac_optarg ;;
862
863 -enable-* | --enable-*)
864 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868 { (exit 1); exit 1; }; }
869 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
870 eval enable_$ac_feature=\$ac_optarg ;;
871
872 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
873 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
874 | --exec | --exe | --ex)
875 ac_prev=exec_prefix ;;
876 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
877 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
878 | --exec=* | --exe=* | --ex=*)
879 exec_prefix=$ac_optarg ;;
880
881 -gas | --gas | --ga | --g)
882 # Obsolete; use --with-gas.
883 with_gas=yes ;;
884
885 -help | --help | --hel | --he | -h)
886 ac_init_help=long ;;
887 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
888 ac_init_help=recursive ;;
889 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
890 ac_init_help=short ;;
891
892 -host | --host | --hos | --ho)
893 ac_prev=host_alias ;;
894 -host=* | --host=* | --hos=* | --ho=*)
895 host_alias=$ac_optarg ;;
896
897 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
898 ac_prev=htmldir ;;
899 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
900 | --ht=*)
901 htmldir=$ac_optarg ;;
902
903 -includedir | --includedir | --includedi | --included | --include \
904 | --includ | --inclu | --incl | --inc)
905 ac_prev=includedir ;;
906 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
907 | --includ=* | --inclu=* | --incl=* | --inc=*)
908 includedir=$ac_optarg ;;
909
910 -infodir | --infodir | --infodi | --infod | --info | --inf)
911 ac_prev=infodir ;;
912 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
913 infodir=$ac_optarg ;;
914
915 -libdir | --libdir | --libdi | --libd)
916 ac_prev=libdir ;;
917 -libdir=* | --libdir=* | --libdi=* | --libd=*)
918 libdir=$ac_optarg ;;
919
920 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
921 | --libexe | --libex | --libe)
922 ac_prev=libexecdir ;;
923 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
924 | --libexe=* | --libex=* | --libe=*)
925 libexecdir=$ac_optarg ;;
926
927 -localedir | --localedir | --localedi | --localed | --locale)
928 ac_prev=localedir ;;
929 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
930 localedir=$ac_optarg ;;
931
932 -localstatedir | --localstatedir | --localstatedi | --localstated \
933 | --localstate | --localstat | --localsta | --localst | --locals)
934 ac_prev=localstatedir ;;
935 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
936 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
937 localstatedir=$ac_optarg ;;
938
939 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
940 ac_prev=mandir ;;
941 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
942 mandir=$ac_optarg ;;
943
944 -nfp | --nfp | --nf)
945 # Obsolete; use --without-fp.
946 with_fp=no ;;
947
948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949 | --no-cr | --no-c | -n)
950 no_create=yes ;;
951
952 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
954 no_recursion=yes ;;
955
956 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
957 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
958 | --oldin | --oldi | --old | --ol | --o)
959 ac_prev=oldincludedir ;;
960 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
961 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
962 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
963 oldincludedir=$ac_optarg ;;
964
965 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
966 ac_prev=prefix ;;
967 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
968 prefix=$ac_optarg ;;
969
970 -program-prefix | --program-prefix | --program-prefi | --program-pref \
971 | --program-pre | --program-pr | --program-p)
972 ac_prev=program_prefix ;;
973 -program-prefix=* | --program-prefix=* | --program-prefi=* \
974 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
975 program_prefix=$ac_optarg ;;
976
977 -program-suffix | --program-suffix | --program-suffi | --program-suff \
978 | --program-suf | --program-su | --program-s)
979 ac_prev=program_suffix ;;
980 -program-suffix=* | --program-suffix=* | --program-suffi=* \
981 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
982 program_suffix=$ac_optarg ;;
983
984 -program-transform-name | --program-transform-name \
985 | --program-transform-nam | --program-transform-na \
986 | --program-transform-n | --program-transform- \
987 | --program-transform | --program-transfor \
988 | --program-transfo | --program-transf \
989 | --program-trans | --program-tran \
990 | --progr-tra | --program-tr | --program-t)
991 ac_prev=program_transform_name ;;
992 -program-transform-name=* | --program-transform-name=* \
993 | --program-transform-nam=* | --program-transform-na=* \
994 | --program-transform-n=* | --program-transform-=* \
995 | --program-transform=* | --program-transfor=* \
996 | --program-transfo=* | --program-transf=* \
997 | --program-trans=* | --program-tran=* \
998 | --progr-tra=* | --program-tr=* | --program-t=*)
999 program_transform_name=$ac_optarg ;;
1000
1001 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1002 ac_prev=pdfdir ;;
1003 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1004 pdfdir=$ac_optarg ;;
1005
1006 -psdir | --psdir | --psdi | --psd | --ps)
1007 ac_prev=psdir ;;
1008 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1009 psdir=$ac_optarg ;;
1010
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1013 silent=yes ;;
1014
1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1016 ac_prev=sbindir ;;
1017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1018 | --sbi=* | --sb=*)
1019 sbindir=$ac_optarg ;;
1020
1021 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023 | --sharedst | --shareds | --shared | --share | --shar \
1024 | --sha | --sh)
1025 ac_prev=sharedstatedir ;;
1026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1029 | --sha=* | --sh=*)
1030 sharedstatedir=$ac_optarg ;;
1031
1032 -site | --site | --sit)
1033 ac_prev=site ;;
1034 -site=* | --site=* | --sit=*)
1035 site=$ac_optarg ;;
1036
1037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1038 ac_prev=srcdir ;;
1039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040 srcdir=$ac_optarg ;;
1041
1042 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043 | --syscon | --sysco | --sysc | --sys | --sy)
1044 ac_prev=sysconfdir ;;
1045 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047 sysconfdir=$ac_optarg ;;
1048
1049 -target | --target | --targe | --targ | --tar | --ta | --t)
1050 ac_prev=target_alias ;;
1051 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052 target_alias=$ac_optarg ;;
1053
1054 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1055 verbose=yes ;;
1056
1057 -version | --version | --versio | --versi | --vers | -V)
1058 ac_init_version=: ;;
1059
1060 -with-* | --with-*)
1061 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_$ac_package=\$ac_optarg ;;
1068
1069 -without-* | --without-*)
1070 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_$ac_package=no ;;
1077
1078 --x)
1079 # Obsolete; use --with-x.
1080 with_x=yes ;;
1081
1082 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083 | --x-incl | --x-inc | --x-in | --x-i)
1084 ac_prev=x_includes ;;
1085 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087 x_includes=$ac_optarg ;;
1088
1089 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091 ac_prev=x_libraries ;;
1092 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094 x_libraries=$ac_optarg ;;
1095
1096 -*) { echo "$as_me: error: unrecognized option: $ac_option
1097 Try \`$0 --help' for more information." >&2
1098 { (exit 1); exit 1; }; }
1099 ;;
1100
1101 *=*)
1102 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1106 { (exit 1); exit 1; }; }
1107 eval $ac_envvar=\$ac_optarg
1108 export $ac_envvar ;;
1109
1110 *)
1111 # FIXME: should be removed in autoconf 3.0.
1112 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1116 ;;
1117
1118 esac
1119 done
1120
1121 if test -n "$ac_prev"; then
1122 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1123 { echo "$as_me: error: missing argument to $ac_option" >&2
1124 { (exit 1); exit 1; }; }
1125 fi
1126
1127 # Be sure to have absolute directory names.
1128 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1129 datadir sysconfdir sharedstatedir localstatedir includedir \
1130 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1131 libdir localedir mandir
1132 do
1133 eval ac_val=\$$ac_var
1134 case $ac_val in
1135 [\\/$]* | ?:[\\/]* ) continue;;
1136 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1137 esac
1138 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1139 { (exit 1); exit 1; }; }
1140 done
1141
1142 # There might be people who depend on the old broken behavior: `$host'
1143 # used to hold the argument of --host etc.
1144 # FIXME: To remove some day.
1145 build=$build_alias
1146 host=$host_alias
1147 target=$target_alias
1148
1149 # FIXME: To remove some day.
1150 if test "x$host_alias" != x; then
1151 if test "x$build_alias" = x; then
1152 cross_compiling=maybe
1153 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1154 If a cross compiler is detected then cross compile mode will be used." >&2
1155 elif test "x$build_alias" != "x$host_alias"; then
1156 cross_compiling=yes
1157 fi
1158 fi
1159
1160 ac_tool_prefix=
1161 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162
1163 test "$silent" = yes && exec 6>/dev/null
1164
1165
1166 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1167 ac_ls_di=`ls -di .` &&
1168 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1169 { echo "$as_me: error: Working directory cannot be determined" >&2
1170 { (exit 1); exit 1; }; }
1171 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172 { echo "$as_me: error: pwd does not report name of working directory" >&2
1173 { (exit 1); exit 1; }; }
1174
1175
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$0" ||
1181 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$0" : 'X\(//\)[^/]' \| \
1183 X"$0" : 'X\(//\)$' \| \
1184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185 echo X"$0" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\).*/{
1199 s//\1/
1200 q
1201 }
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1206 fi
1207 else
1208 ac_srcdir_defaulted=no
1209 fi
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1213 { (exit 1); exit 1; }; }
1214 fi
1215 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 ac_abs_confdir=`(
1217 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1218 { (exit 1); exit 1; }; }
1219 pwd)`
1220 # When building in place, set srcdir=.
1221 if test "$ac_abs_confdir" = "$ac_pwd"; then
1222 srcdir=.
1223 fi
1224 # Remove unnecessary trailing slashes from srcdir.
1225 # Double slashes in file names in object file debugging info
1226 # mess up M-x gdb in Emacs.
1227 case $srcdir in
1228 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229 esac
1230 for ac_var in $ac_precious_vars; do
1231 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_env_${ac_var}_value=\$${ac_var}
1233 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1234 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1235 done
1236
1237 #
1238 # Report the --help message.
1239 #
1240 if test "$ac_init_help" = "long"; then
1241 # Omit some internal or obsolete options to make the list less imposing.
1242 # This message is too long to be a string in the A/UX 3.1 sh.
1243 cat <<_ACEOF
1244 \`configure' configures this package to adapt to many kinds of systems.
1245
1246 Usage: $0 [OPTION]... [VAR=VALUE]...
1247
1248 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1249 VAR=VALUE. See below for descriptions of some of the useful variables.
1250
1251 Defaults for the options are specified in brackets.
1252
1253 Configuration:
1254 -h, --help display this help and exit
1255 --help=short display options specific to this package
1256 --help=recursive display the short help of all the included packages
1257 -V, --version display version information and exit
1258 -q, --quiet, --silent do not print \`checking...' messages
1259 --cache-file=FILE cache test results in FILE [disabled]
1260 -C, --config-cache alias for \`--cache-file=config.cache'
1261 -n, --no-create do not create output files
1262 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263
1264 Installation directories:
1265 --prefix=PREFIX install architecture-independent files in PREFIX
1266 [$ac_default_prefix]
1267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1268 [PREFIX]
1269
1270 By default, \`make install' will install all the files in
1271 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1272 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1273 for instance \`--prefix=\$HOME'.
1274
1275 For better control, use the options below.
1276
1277 Fine tuning of the installation directories:
1278 --bindir=DIR user executables [EPREFIX/bin]
1279 --sbindir=DIR system admin executables [EPREFIX/sbin]
1280 --libexecdir=DIR program executables [EPREFIX/libexec]
1281 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1282 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1283 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1284 --libdir=DIR object code libraries [EPREFIX/lib]
1285 --includedir=DIR C header files [PREFIX/include]
1286 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1287 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1288 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1289 --infodir=DIR info documentation [DATAROOTDIR/info]
1290 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1291 --mandir=DIR man documentation [DATAROOTDIR/man]
1292 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1293 --htmldir=DIR html documentation [DOCDIR]
1294 --dvidir=DIR dvi documentation [DOCDIR]
1295 --pdfdir=DIR pdf documentation [DOCDIR]
1296 --psdir=DIR ps documentation [DOCDIR]
1297 _ACEOF
1298
1299 cat <<\_ACEOF
1300
1301 Program names:
1302 --program-prefix=PREFIX prepend PREFIX to installed program names
1303 --program-suffix=SUFFIX append SUFFIX to installed program names
1304 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1305
1306 X features:
1307 --x-includes=DIR X include files are in DIR
1308 --x-libraries=DIR X library files are in DIR
1309
1310 System types:
1311 --build=BUILD configure for building on BUILD [guessed]
1312 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1313 _ACEOF
1314 fi
1315
1316 if test -n "$ac_init_help"; then
1317
1318 cat <<\_ACEOF
1319
1320 Optional Features:
1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1323 --enable-carbon-app[=DIR] [DIR=/Application]
1324 specify install directory for Emacs.app on Mac OS X
1325 --enable-font-backend compile code of font-backend support
1326 --enable-asserts compile code with asserts enabled
1327 --enable-maintainer-mode enable make rules and dependencies not useful
1328 (and sometimes confusing) to the casual installer
1329 --enable-locallisppath=PATH
1330 directories Emacs should search for lisp files
1331 specific to this site
1332 --disable-largefile omit support for large files
1333
1334 Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --without-gcc don't use GCC to compile Emacs if GCC is found
1338 --without-pop don't support POP mail retrieval with movemail
1339 --with-kerberos support Kerberos-authenticated POP
1340 --with-kerberos5 support Kerberos version 5 authenticated POP
1341 --with-hesiod support Hesiod to get the POP server host
1342 --without-sound don't compile with sound support
1343 --with-x-toolkit=KIT use an X toolkit
1344 (KIT = yes/lucid/athena/motif/gtk/no)
1345 --with-xpm use -lXpm for displaying XPM images
1346 --with-jpeg use -ljpeg for displaying JPEG images
1347 --with-tiff use -ltiff for displaying TIFF images
1348 --with-gif use -lungif for displaying GIF images
1349 --with-png use -lpng for displaying PNG images
1350 --with-freetype use -lfreetype for local fonts support
1351 --with-xft use -lXft for anti aliased fonts
1352 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1360
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1370 XMKMF Path to xmkmf, Makefile generator for X Window System
1371
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1374
1375 _ACEOF
1376 ac_status=$?
1377 fi
1378
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1384
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *)
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1400
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1430 fi
1431
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 configure
1436 generated by GNU Autoconf 2.61
1437
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1444 fi
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1448
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1451
1452 $ $0 $@
1453
1454 _ACEOF
1455 exec 5>>config.log
1456 {
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1461
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1467
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1470
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1478
1479 _ASUNAME
1480
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1489
1490 } >&5
1491
1492 cat >&5 <<_ACEOF
1493
1494
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1498
1499 _ACEOF
1500
1501
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1512 do
1513 for ac_arg
1514 do
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1525 2)
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1538 ;;
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1541 fi
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1543 ;;
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1549
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1557 {
1558 echo
1559
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1567 (
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1589 *)
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1591 ;;
1592 esac |
1593 sort
1594 )
1595 echo
1596
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1604 do
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1612
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1621 do
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1629 fi
1630
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1640 fi
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1648 ' 0
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1653
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1656
1657 # Predefined preprocessor variables.
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1682
1683
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1693 fi
1694 shift
1695 for ac_site_file
1696 do
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1702 fi
1703 done
1704
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1715 fi
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1720 fi
1721
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1726 # value.
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1734 set,)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,set)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,);;
1743 *)
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1748 echo "$as_me: former value: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1750 echo "$as_me: current value: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1752 fi;;
1753 esac
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1756 case $ac_new_val in
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1759 esac
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 esac
1764 fi
1765 done
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1772 fi
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790 ac_ext=c
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795
1796
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1798
1799
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s,x,x', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1809 _ACEOF
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1811 rm -f conftest.sed
1812
1813
1814 lispdir='${datadir}/emacs/${version}/lisp'
1815 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1816 '${datadir}/emacs/site-lisp'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1818 etcdir='${datadir}/emacs/${version}/etc'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs/${version}/etc'
1821 gamedir='${localstatedir}/games/emacs'
1822
1823 gameuser=games
1824
1825
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1828 withval=$with_gcc;
1829 fi
1830
1831
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1837 _ACEOF
1838
1839 else :
1840 fi
1841 else
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1844 _ACEOF
1845
1846 fi
1847
1848
1849
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; if test "$withval" = yes; then
1853 cat >>confdefs.h <<\_ACEOF
1854 #define KERBEROS 1
1855 _ACEOF
1856
1857 fi
1858 fi
1859
1860
1861
1862 # Check whether --with-kerberos5 was given.
1863 if test "${with_kerberos5+set}" = set; then
1864 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1865 if test "${with_kerberos+set}" != set; then
1866 with_kerberos=yes
1867 cat >>confdefs.h <<\_ACEOF
1868 #define KERBEROS 1
1869 _ACEOF
1870
1871 fi
1872
1873 cat >>confdefs.h <<\_ACEOF
1874 #define KERBEROS5 1
1875 _ACEOF
1876
1877 fi
1878 fi
1879
1880
1881 # Check whether --with-hesiod was given.
1882 if test "${with_hesiod+set}" = set; then
1883 withval=$with_hesiod; if test "$withval" = yes; then
1884
1885 cat >>confdefs.h <<\_ACEOF
1886 #define HESIOD 1
1887 _ACEOF
1888
1889 fi
1890 fi
1891
1892
1893
1894 # Check whether --with-sound was given.
1895 if test "${with_sound+set}" = set; then
1896 withval=$with_sound;
1897 fi
1898
1899
1900
1901 # Check whether --with-x-toolkit was given.
1902 if test "${with_x_toolkit+set}" = set; then
1903 withval=$with_x_toolkit; case "${withval}" in
1904 y | ye | yes ) val=athena ;;
1905 n | no ) val=no ;;
1906 l | lu | luc | luci | lucid ) val=lucid ;;
1907 a | at | ath | athe | athen | athena ) val=athena ;;
1908 m | mo | mot | moti | motif ) val=motif ;;
1909 g | gt | gtk ) val=gtk ;;
1910 * )
1911 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1912 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1913 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1914 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1915 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1916 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1917 { (exit 1); exit 1; }; }
1918 ;;
1919 esac
1920 with_x_toolkit=$val
1921
1922 fi
1923
1924
1925 # Check whether --with-xpm was given.
1926 if test "${with_xpm+set}" = set; then
1927 withval=$with_xpm;
1928 fi
1929
1930
1931 # Check whether --with-jpeg was given.
1932 if test "${with_jpeg+set}" = set; then
1933 withval=$with_jpeg;
1934 fi
1935
1936
1937 # Check whether --with-tiff was given.
1938 if test "${with_tiff+set}" = set; then
1939 withval=$with_tiff;
1940 fi
1941
1942
1943 # Check whether --with-gif was given.
1944 if test "${with_gif+set}" = set; then
1945 withval=$with_gif;
1946 fi
1947
1948
1949 # Check whether --with-png was given.
1950 if test "${with_png+set}" = set; then
1951 withval=$with_png;
1952 fi
1953
1954
1955 # Check whether --with-freetype was given.
1956 if test "${with_freetype+set}" = set; then
1957 withval=$with_freetype;
1958 fi
1959
1960
1961 # Check whether --with-xft was given.
1962 if test "${with_xft+set}" = set; then
1963 withval=$with_xft;
1964 fi
1965
1966
1967 # Check whether --with-gpm was given.
1968 if test "${with_gpm+set}" = set; then
1969 withval=$with_gpm;
1970 fi
1971
1972
1973 # Check whether --with-gtk was given.
1974 if test "${with_gtk+set}" = set; then
1975 withval=$with_gtk;
1976 fi
1977
1978
1979 # Check whether --with-pkg-config-prog was given.
1980 if test "${with_pkg_config_prog+set}" = set; then
1981 withval=$with_pkg_config_prog;
1982 fi
1983
1984
1985 # Check whether --with-toolkit-scroll-bars was given.
1986 if test "${with_toolkit_scroll_bars+set}" = set; then
1987 withval=$with_toolkit_scroll_bars;
1988 fi
1989
1990
1991 # Check whether --with-xim was given.
1992 if test "${with_xim+set}" = set; then
1993 withval=$with_xim;
1994 fi
1995
1996
1997 # Check whether --with-carbon was given.
1998 if test "${with_carbon+set}" = set; then
1999 withval=$with_carbon;
2000 fi
2001
2002 # Check whether --enable-carbon-app was given.
2003 if test "${enable_carbon_app+set}" = set; then
2004 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2005 fi
2006
2007
2008 # Check whether --enable-font-backend was given.
2009 if test "${enable_font_backend+set}" = set; then
2010 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2011 else
2012 USE_FONT_BACKEND=no
2013 fi
2014
2015
2016 # Check whether --enable-asserts was given.
2017 if test "${enable_asserts+set}" = set; then
2018 enableval=$enable_asserts; USE_XASSERTS=$enableval
2019 else
2020 USE_XASSERTS=no
2021 fi
2022
2023
2024 # Check whether --enable-maintainer-mode was given.
2025 if test "${enable_maintainer_mode+set}" = set; then
2026 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2027 else
2028 USE_MAINTAINER_MODE=no
2029 fi
2030
2031 if test $USE_MAINTAINER_MODE = yes; then
2032 MAINT=
2033 else
2034 MAINT=#
2035 fi
2036
2037
2038 # Check whether --enable-locallisppath was given.
2039 if test "${enable_locallisppath+set}" = set; then
2040 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2041 locallisppath=
2042 elif test "${enableval}" != "yes"; then
2043 locallisppath=${enableval}
2044 fi
2045 fi
2046
2047
2048 #### Make srcdir absolute, if it isn't already. It's important to
2049 #### avoid running the path through pwd unnecessarily, since pwd can
2050 #### give you automounter prefixes, which can go away. We do all this
2051 #### so Emacs can find its files when run uninstalled.
2052 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2053 unset CDPATH
2054 case "${srcdir}" in
2055 /* ) ;;
2056 . )
2057 ## We may be able to use the $PWD environment variable to make this
2058 ## absolute. But sometimes PWD is inaccurate.
2059 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2060 ## but that tested only for a well-formed and valid PWD,
2061 ## it did not object when PWD was well-formed and valid but just wrong.
2062 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2063 then
2064 srcdir="$PWD"
2065 else
2066 srcdir="`(cd ${srcdir}; pwd)`"
2067 fi
2068 ;;
2069 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2070 esac
2071
2072 #### Check if the source directory already has a configured system in it.
2073 if test `pwd` != `(cd ${srcdir} && pwd)` \
2074 && test -f "${srcdir}/src/config.h" ; then
2075 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2076 as a build directory right now; it has been configured in its own
2077 right. To configure in another directory as well, you MUST
2078 use GNU make. If you do not have GNU make, then you must
2079 now do \`make distclean' in ${srcdir},
2080 and then run $0 again." >&5
2081 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2082 as a build directory right now; it has been configured in its own
2083 right. To configure in another directory as well, you MUST
2084 use GNU make. If you do not have GNU make, then you must
2085 now do \`make distclean' in ${srcdir},
2086 and then run $0 again." >&2;}
2087 fi
2088
2089 #### Given the configuration name, set machfile and opsysfile to the
2090 #### names of the m/*.h and s/*.h files we should use.
2091
2092 ### Canonicalize the configuration name.
2093
2094 ac_aux_dir=
2095 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2096 if test -f "$ac_dir/install-sh"; then
2097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install-sh -c"
2099 break
2100 elif test -f "$ac_dir/install.sh"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/install.sh -c"
2103 break
2104 elif test -f "$ac_dir/shtool"; then
2105 ac_aux_dir=$ac_dir
2106 ac_install_sh="$ac_aux_dir/shtool install -c"
2107 break
2108 fi
2109 done
2110 if test -z "$ac_aux_dir"; then
2111 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2112 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2113 { (exit 1); exit 1; }; }
2114 fi
2115
2116 # These three variables are undocumented and unsupported,
2117 # and are intended to be withdrawn in a future Autoconf release.
2118 # They can cause serious problems if a builder's source tree is in a directory
2119 # whose full name contains unusual characters.
2120 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2121 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2122 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2123
2124
2125 # Make sure we can run config.sub.
2126 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2127 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2129 { (exit 1); exit 1; }; }
2130
2131 { echo "$as_me:$LINENO: checking build system type" >&5
2132 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_build+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 ac_build_alias=$build_alias
2137 test "x$ac_build_alias" = x &&
2138 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2139 test "x$ac_build_alias" = x &&
2140 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142 { (exit 1); exit 1; }; }
2143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2147
2148 fi
2149 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150 echo "${ECHO_T}$ac_cv_build" >&6; }
2151 case $ac_cv_build in
2152 *-*-*) ;;
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154 echo "$as_me: error: invalid value of canonical build" >&2;}
2155 { (exit 1); exit 1; }; };;
2156 esac
2157 build=$ac_cv_build
2158 ac_save_IFS=$IFS; IFS='-'
2159 set x $ac_cv_build
2160 shift
2161 build_cpu=$1
2162 build_vendor=$2
2163 shift; shift
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2166 build_os=$*
2167 IFS=$ac_save_IFS
2168 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169
2170
2171 { echo "$as_me:$LINENO: checking host system type" >&5
2172 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_host+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test "x$host_alias" = x; then
2177 ac_cv_host=$ac_cv_build
2178 else
2179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2182 { (exit 1); exit 1; }; }
2183 fi
2184
2185 fi
2186 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187 echo "${ECHO_T}$ac_cv_host" >&6; }
2188 case $ac_cv_host in
2189 *-*-*) ;;
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191 echo "$as_me: error: invalid value of canonical host" >&2;}
2192 { (exit 1); exit 1; }; };;
2193 esac
2194 host=$ac_cv_host
2195 ac_save_IFS=$IFS; IFS='-'
2196 set x $ac_cv_host
2197 shift
2198 host_cpu=$1
2199 host_vendor=$2
2200 shift; shift
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2203 host_os=$*
2204 IFS=$ac_save_IFS
2205 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2206
2207
2208 canonical=$host
2209 configuration=${host_alias-${build_alias-$host}}
2210
2211
2212
2213 ### If you add support for a new configuration, add code to this
2214 ### switch statement to recognize your configuration name and select
2215 ### the appropriate operating system and machine description files.
2216
2217 ### You would hope that you could choose an m/*.h file pretty much
2218 ### based on the machine portion of the configuration name, and an s-
2219 ### file based on the operating system portion. However, it turns out
2220 ### that each m/*.h file is pretty manufacturer-specific - for
2221 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2222 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2223 ### machines. So we basically have to have a special case for each
2224 ### configuration name.
2225 ###
2226 ### As far as handling version numbers on operating systems is
2227 ### concerned, make sure things will fail in a fixable way. If
2228 ### /etc/MACHINES doesn't say anything about version numbers, be
2229 ### prepared to handle anything reasonably. If version numbers
2230 ### matter, be sure /etc/MACHINES says something about it.
2231 ###
2232 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2233 ### "System V Release 4"; he writes, "The old convention encouraged
2234 ### confusion between `system' and `release' levels'."
2235
2236 machine='' opsys='' unported=no
2237 case "${canonical}" in
2238
2239 ## FreeBSD ports
2240 *-*-freebsd* )
2241 opsys=freebsd
2242 case "${canonical}" in
2243 alpha*-*-freebsd*) machine=alpha ;;
2244 ia64-*-freebsd*) machine=ia64 ;;
2245 sparc64-*-freebsd*) machine=sparc ;;
2246 powerpc-*-freebsd*) machine=macppc ;;
2247 i[3456]86-*-freebsd*) machine=intel386 ;;
2248 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2249 esac
2250 ;;
2251
2252 ## NetBSD ports
2253 *-*-netbsd* )
2254 opsys=netbsd
2255 if test -f /usr/lib/crti.o; then
2256
2257 cat >>confdefs.h <<\_ACEOF
2258 #define HAVE_CRTIN
2259 _ACEOF
2260
2261 fi
2262
2263 case "${canonical}" in
2264 alpha*-*-netbsd*) machine=alpha ;;
2265 i[3456]86-*-netbsd*) machine=intel386 ;;
2266 m68k-*-netbsd*)
2267 # This is somewhat bogus.
2268 machine=hp9000s300 ;;
2269 mips-*-netbsd*) machine=pmax ;;
2270 mipsel-*-netbsd*) machine=pmax ;;
2271 mipseb-*-netbsd*) machine=pmax ;;
2272 ns32k-*-netbsd*) machine=ns32000 ;;
2273 powerpc-*-netbsd*) machine=macppc ;;
2274 sparc*-*-netbsd*) machine=sparc ;;
2275 vax-*-netbsd*) machine=vax ;;
2276 arm-*-netbsd*) machine=arm ;;
2277 x86_64-*-netbsd*) machine=amdx86-64 ;;
2278 hppa-*-netbsd*) machine=hp800 ;;
2279 shle-*-netbsd*) machine=sh3el ;;
2280 esac
2281 ;;
2282
2283 ## OpenBSD ports
2284 *-*-openbsd* )
2285 opsys=openbsd
2286 case "${canonical}" in
2287 alpha*-*-openbsd*) machine=alpha ;;
2288 arm-*-openbsd*) machine=arm ;;
2289 hppa-*-openbsd*) machine=hp9000s300 ;;
2290 i386-*-openbsd*) machine=intel386 ;;
2291 m68k-*-openbsd*) machine=hp9000s300 ;;
2292 m88k-*-openbsd*) machine=aviion ;;
2293 mips64-*-openbsd*) machine=mips64 ;;
2294 powerpc-*-openbsd*) machine=macppc ;;
2295 sh-*-openbsd*) machine=sh3el ;;
2296 sparc*-*-openbsd*) machine=sparc ;;
2297 vax-*-openbsd*) machine=vax ;;
2298 x86_64-*-openbsd*) machine=amdx86-64 ;;
2299 esac
2300 ;;
2301
2302 ## LynxOS ports
2303 *-*-lynxos* )
2304 opsys=lynxos
2305 case "${canonical}" in
2306 i[3456]86-*-lynxos*) machine=intel386 ;;
2307 powerpc-*-lynxos*) machine=powerpc ;;
2308 esac
2309 ;;
2310
2311 ## Acorn RISCiX:
2312 arm-acorn-riscix1.1* )
2313 machine=acorn opsys=riscix1-1
2314 ;;
2315 arm-acorn-riscix1.2* | arm-acorn-riscix )
2316 ## This name is riscix12 instead of riscix1.2
2317 ## to avoid a file name conflict on MSDOS.
2318 machine=acorn opsys=riscix12
2319 ;;
2320
2321 ## BSDI ports
2322 *-*-bsdi* )
2323 opsys=bsdi
2324 case "${canonical}" in
2325 i[345]86-*-bsdi*) machine=intel386 ;;
2326 sparc-*-bsdi*) machine=sparc ;;
2327 powerpc-*-bsdi*) machine=macppc ;;
2328 esac
2329 case "${canonical}" in
2330 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2331 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2332 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2333 *-*-bsdi3* ) opsys=bsdos3 ;;
2334 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2335 esac
2336 ;;
2337
2338 ## Alliant machines
2339 ## Strictly speaking, we need the version of the alliant operating
2340 ## system to choose the right machine file, but currently the
2341 ## configuration name doesn't tell us enough to choose the right
2342 ## one; we need to give alliants their own operating system name to
2343 ## do this right. When someone cares, they can help us.
2344 fx80-alliant-* )
2345 machine=alliant4 opsys=bsd4-2
2346 ;;
2347 i860-alliant-* )
2348 machine=alliant-2800 opsys=bsd4-3
2349 ;;
2350
2351 ## Alpha (DEC) machines.
2352 alpha*-dec-osf* )
2353 machine=alpha opsys=osf1
2354 # This is needed to find X11R6.1 libraries for certain tests.
2355 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2356 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2357 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2358 # due to non-traditional preprocessing with the current compiler
2359 # defaults. OSF 4 can also have that compiler version, and there
2360 # seems always to have been a usable /usr/bin/cpp.
2361 NON_GNU_CPP=/usr/bin/cpp
2362 case "${canonical}" in
2363 alpha*-dec-osf[5-9]*)
2364 opsys=osf5-0 ;;
2365 esac
2366 ;;
2367
2368 alpha*-*-linux-gnu* )
2369 machine=alpha opsys=gnu-linux
2370 ;;
2371
2372 arm*-*-linux-gnu* )
2373 machine=arm opsys=gnu-linux
2374 ;;
2375
2376 ## Altos 3068
2377 m68*-altos-sysv* )
2378 machine=altos opsys=usg5-2
2379 ;;
2380
2381 ## Amdahl UTS
2382 580-amdahl-sysv* )
2383 machine=amdahl opsys=usg5-2-2
2384 ;;
2385
2386 ## Apollo, Domain/OS
2387 m68*-apollo-* )
2388 machine=apollo opsys=bsd4-3
2389 ;;
2390
2391 ## Apple Darwin / Mac OS X
2392 *-apple-darwin* )
2393 case "${canonical}" in
2394 i[3456]86-* ) machine=intel386 ;;
2395 powerpc-* ) machine=powermac ;;
2396 * ) unported=yes ;;
2397 esac
2398 opsys=darwin
2399 # Define CPP as follows to make autoconf work correctly.
2400 CPP="${CC-cc} -E -no-cpp-precomp"
2401 # Use fink packages if available.
2402 if test -d /sw/include && test -d /sw/lib; then
2403 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2404 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2405 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2406 fi
2407 ;;
2408
2409 ## AT&T 3b2, 3b5, 3b15, 3b20
2410 we32k-att-sysv* )
2411 machine=att3b opsys=usg5-2-2
2412 ;;
2413
2414 ## AT&T 3b1 - The Mighty Unix PC!
2415 m68*-att-sysv* )
2416 machine=7300 opsys=usg5-2-2
2417 ;;
2418
2419 ## Bull dpx20
2420 rs6000-bull-bosx* )
2421 machine=ibmrs6000 opsys=aix3-2
2422 ;;
2423
2424 ## Bull dpx2
2425 m68*-bull-sysv3* )
2426 machine=dpx2 opsys=usg5-3
2427 ;;
2428
2429 ## Bull sps7
2430 m68*-bull-sysv2* )
2431 machine=sps7 opsys=usg5-2
2432 ;;
2433
2434 ## CCI 5/32, 6/32 -- see "Tahoe".
2435
2436 ## Celerity
2437 ## I don't know what configuration name to use for this; config.sub
2438 ## doesn't seem to know anything about it. Hey, Celerity users, get
2439 ## in touch with us!
2440 celerity-celerity-bsd* )
2441 machine=celerity opsys=bsd4-2
2442 ;;
2443
2444 ## Clipper
2445 ## What operating systems does this chip run that Emacs has been
2446 ## tested on?
2447 clipper-* )
2448 machine=clipper
2449 ## We'll use the catch-all code at the bottom to guess the
2450 ## operating system.
2451 ;;
2452
2453 ## Compaq Nonstop
2454 mips-compaq-nonstopux* )
2455 machine=nonstopux opsys=nonstopux
2456 ;;
2457
2458 ## Convex
2459 *-convex-bsd* | *-convex-convexos* )
2460 machine=convex opsys=bsd4-3
2461 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2462 NON_GNU_CPP="cc -E -P"
2463 ;;
2464
2465 ## Cubix QBx/386
2466 i[3456]86-cubix-sysv* )
2467 machine=intel386 opsys=usg5-3
2468 ;;
2469
2470 ## Cydra 5
2471 cydra*-cydrome-sysv* )
2472 machine=cydra5 opsys=usg5-3
2473 ;;
2474
2475 ## Data General AViiON Machines
2476 ## DG changed naming conventions with the release of 5.4.4.10, they
2477 ## dropped the initial 5.4 but left the intervening R. Because of the
2478 ## R this shouldn't conflict with older versions of the OS (which I
2479 ## think were named like dgux4.*). In addition, DG new AViiONs series
2480 ## uses either Motorola M88k or Intel Pentium CPUs.
2481 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2482 machine=aviion opsys=dgux4
2483 ;;
2484 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2485 ## This name is dgux5-4-3 instead of dgux5-4r3
2486 ## to avoid a file name conflict on MSDOS.
2487 machine=aviion opsys=dgux5-4-3
2488 ;;
2489 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2490 machine=aviion opsys=dgux5-4r2
2491 ;;
2492 m88k-dg-dgux* )
2493 machine=aviion opsys=dgux
2494 ;;
2495
2496 ## Data General AViiON Intel (x86) Machines
2497 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2498 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2499 i[345]86-dg-dguxR4* )
2500 machine=aviion-intel opsys=dgux4
2501 ;;
2502
2503 ## DECstations
2504 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2505 machine=pmax opsys=bsd4-2
2506 ;;
2507 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2508 machine=pmax opsys=bsd4-3
2509 ;;
2510 mips-dec-ultrix* )
2511 machine=pmax opsys=ultrix4-3
2512 ;;
2513 mips-dec-osf* )
2514 machine=pmax opsys=osf1
2515 ;;
2516 mips-dec-mach_bsd4.3* )
2517 machine=pmax opsys=mach-bsd4-3
2518 ;;
2519
2520 ## Motorola Delta machines
2521 m68k-motorola-sysv* | m68000-motorola-sysv* )
2522 machine=delta opsys=usg5-3
2523 if test -z "`type gnucc | grep 'not found'`"
2524 then
2525 if test -s /etc/167config
2526 then CC="gnucc -m68040"
2527 else CC="gnucc -m68881"
2528 fi
2529 else
2530 if test -z "`type gcc | grep 'not found'`"
2531 then CC=gcc
2532 else CC=cc
2533 fi
2534 fi
2535 ;;
2536 m88k-motorola-sysv4* )
2537 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2538 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2539 # I hope there are not other 4.0 versions for this machine
2540 # which really need usg5-4 instead.
2541 machine=delta88k opsys=usg5-4-2
2542 ;;
2543 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2544 machine=delta88k opsys=usg5-3
2545 ;;
2546
2547 ## Dual machines
2548 m68*-dual-sysv* )
2549 machine=dual opsys=usg5-2
2550 ;;
2551 m68*-dual-uniplus* )
2552 machine=dual opsys=unipl5-2
2553 ;;
2554
2555 ## Elxsi 6400
2556 elxsi-elxsi-sysv* )
2557 machine=elxsi opsys=usg5-2
2558 ;;
2559
2560 ## Encore machines
2561 ns16k-encore-bsd* )
2562 machine=ns16000 opsys=umax
2563 ;;
2564
2565 ## The GEC 63 - apparently, this port isn't really finished yet.
2566 # I'm sure we finished off the last of the machines, though. -- fx
2567
2568 ## Gould Power Node and NP1
2569 pn-gould-bsd4.2* )
2570 machine=gould opsys=bsd4-2
2571 ;;
2572 pn-gould-bsd4.3* )
2573 machine=gould opsys=bsd4-3
2574 ;;
2575 np1-gould-bsd* )
2576 machine=gould-np1 opsys=bsd4-3
2577 ;;
2578
2579 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2580 ## as far as Emacs is concerned).
2581 m88k-harris-cxux* )
2582 # Build needs to be different on 7.0 and later releases
2583 case "`uname -r`" in
2584 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2585 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2586 esac
2587 NON_GNU_CPP="/lib/cpp"
2588 ;;
2589 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2590 m68k-harris-cxux* )
2591 machine=nh3000 opsys=cxux
2592 ;;
2593 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2594 powerpc-harris-powerunix )
2595 machine=nh6000 opsys=powerunix
2596 NON_GNU_CPP="cc -Xo -E -P"
2597 ;;
2598 ## SR2001/SR2201 running HI-UX/MPP
2599 hppa1.1-hitachi-hiuxmpp* )
2600 machine=sr2k opsys=hiuxmpp
2601 ;;
2602 hppa1.1-hitachi-hiuxwe2* )
2603 machine=sr2k opsys=hiuxwe2
2604 ;;
2605 ## Honeywell XPS100
2606 xps*-honeywell-sysv* )
2607 machine=xps100 opsys=usg5-2
2608 ;;
2609
2610 ## HP 9000 series 200 or 300
2611 m68*-hp-bsd* )
2612 machine=hp9000s300 opsys=bsd4-3
2613 ;;
2614 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2615 m68*-hp-hpux* )
2616 case "`uname -r`" in
2617 ## Someone's system reports A.B8.05 for this.
2618 ## I wonder what other possibilities there are.
2619 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2620 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2621 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2622 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2623 *) machine=hp9000s300 opsys=hpux ;;
2624 esac
2625 ;;
2626
2627 ## HP 9000 series 700 and 800, running HP/UX
2628 hppa*-hp-hpux7* )
2629 machine=hp800 opsys=hpux
2630 ;;
2631 hppa*-hp-hpux8* )
2632 machine=hp800 opsys=hpux8
2633 ;;
2634 hppa*-hp-hpux9shr* )
2635 machine=hp800 opsys=hpux9shr
2636 ;;
2637 hppa*-hp-hpux9* )
2638 machine=hp800 opsys=hpux9
2639 ;;
2640 hppa*-hp-hpux10.2* )
2641 machine=hp800 opsys=hpux10-20
2642 ;;
2643 hppa*-hp-hpux10* )
2644 machine=hp800 opsys=hpux10
2645 ;;
2646 hppa*-hp-hpux1[1-9]* )
2647 machine=hp800 opsys=hpux11
2648 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2649 ;;
2650
2651 hppa*-*-linux-gnu* )
2652 machine=hp800 opsys=gnu-linux
2653 ;;
2654
2655 ## HP 9000 series 700 and 800, running HP/UX
2656 hppa*-hp-hpux* )
2657 ## Cross-compilation? Nah!
2658 case "`uname -r`" in
2659 ## Someone's system reports A.B8.05 for this.
2660 ## I wonder what other possibilities there are.
2661 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2662 *.08.* ) machine=hp800 opsys=hpux8 ;;
2663 *.09.* ) machine=hp800 opsys=hpux9 ;;
2664 *) machine=hp800 opsys=hpux10 ;;
2665 esac
2666 ;;
2667 hppa*-*-nextstep* )
2668 machine=hp800 opsys=nextstep
2669 ;;
2670
2671 ## Orion machines
2672 orion-orion-bsd* )
2673 machine=orion opsys=bsd4-2
2674 ;;
2675 clipper-orion-bsd* )
2676 machine=orion105 opsys=bsd4-2
2677 ;;
2678
2679 ## IBM machines
2680 i[3456]86-ibm-aix1.1* )
2681 machine=ibmps2-aix opsys=usg5-2-2
2682 ;;
2683 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2684 machine=ibmps2-aix opsys=usg5-3
2685 ;;
2686 i370-ibm-aix*)
2687 machine=ibm370aix opsys=usg5-3
2688 ;;
2689 s390-*-linux-gnu* )
2690 machine=ibms390 opsys=gnu-linux
2691 ;;
2692 s390x-*-linux-gnu* )
2693 machine=ibms390x opsys=gnu-linux
2694 ;;
2695 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2696 machine=ibmrs6000 opsys=aix3-1
2697 ;;
2698 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2699 machine=ibmrs6000 opsys=aix3-2-5
2700 ;;
2701 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2702 machine=ibmrs6000 opsys=aix4-1
2703 ;;
2704 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2705 machine=ibmrs6000 opsys=aix4-2
2706 ;;
2707 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2708 machine=ibmrs6000 opsys=aix4-2
2709 ;;
2710 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2711 machine=ibmrs6000 opsys=aix4-2
2712 ;;
2713 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2714 machine=ibmrs6000 opsys=aix4
2715 ;;
2716 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2717 machine=ibmrs6000 opsys=aix4-1
2718 ;;
2719 rs6000-ibm-aix* | powerpc-ibm-aix* )
2720 machine=ibmrs6000 opsys=aix3-2
2721 ;;
2722 romp-ibm-bsd4.3* )
2723 machine=ibmrt opsys=bsd4-3
2724 ;;
2725 romp-ibm-bsd4.2* )
2726 machine=ibmrt opsys=bsd4-2
2727 ;;
2728 romp-ibm-aos4.3* )
2729 machine=ibmrt opsys=bsd4-3
2730 ;;
2731 romp-ibm-aos4.2* )
2732 machine=ibmrt opsys=bsd4-2
2733 ;;
2734 romp-ibm-aos* )
2735 machine=ibmrt opsys=bsd4-3
2736 ;;
2737 romp-ibm-bsd* )
2738 machine=ibmrt opsys=bsd4-3
2739 ;;
2740 romp-ibm-aix* )
2741 machine=ibmrt-aix opsys=usg5-2-2
2742 ;;
2743
2744 ## Integrated Solutions `Optimum V'
2745 m68*-isi-bsd4.2* )
2746 machine=isi-ov opsys=bsd4-2
2747 ;;
2748 m68*-isi-bsd4.3* )
2749 machine=isi-ov opsys=bsd4-3
2750 ;;
2751
2752 ## Intel 386 machines where we do care about the manufacturer
2753 i[3456]86-intsys-sysv* )
2754 machine=is386 opsys=usg5-2-2
2755 ;;
2756
2757 ## Prime EXL
2758 i[3456]86-prime-sysv* )
2759 machine=i386 opsys=usg5-3
2760 ;;
2761
2762 ## Sequent Symmetry running Dynix
2763 i[3456]86-sequent-bsd* )
2764 machine=symmetry opsys=bsd4-3
2765 ;;
2766
2767 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2768 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2769 machine=sequent-ptx opsys=ptx4
2770 NON_GNU_CPP=/lib/cpp
2771 ;;
2772
2773 ## Sequent Symmetry running DYNIX/ptx
2774 ## Use the old cpp rather than the newer ANSI one.
2775 i[3456]86-sequent-ptx* )
2776 machine=sequent-ptx opsys=ptx
2777 NON_GNU_CPP="/lib/cpp"
2778 ;;
2779
2780 ## ncr machine running svr4.3.
2781 i[3456]86-ncr-sysv4.3 )
2782 machine=ncr386 opsys=usg5-4-3
2783 ;;
2784
2785 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2786 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2787 i[3456]86-ncr-sysv* )
2788 machine=ncr386 opsys=usg5-4-2
2789 ;;
2790
2791 ## Intel Paragon OSF/1
2792 i860-intel-osf1* )
2793 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2794 ;;
2795
2796 ## Intel 860
2797 i860-*-sysv4* )
2798 machine=i860 opsys=usg5-4
2799 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2800 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2801 ;;
2802
2803 ## Macintosh PowerPC
2804 powerpc*-*-linux-gnu* )
2805 machine=macppc opsys=gnu-linux
2806 ;;
2807
2808 ## Masscomp machines
2809 m68*-masscomp-rtu* )
2810 machine=masscomp opsys=rtu
2811 ;;
2812
2813 ## Megatest machines
2814 m68*-megatest-bsd* )
2815 machine=mega68 opsys=bsd4-2
2816 ;;
2817
2818 ## Workstations sold by MIPS
2819 ## This is not necessarily all workstations using the MIPS processor -
2820 ## Irises are produced by SGI, and DECstations by DEC.
2821
2822 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2823 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2824 ## it gives for choosing between the alternatives seems to be "Use
2825 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2826 ## the BSD world." I'll assume that these are instructions for
2827 ## handling two odd situations, and that every other situation
2828 ## should use mips.h and usg5-2-2, they being listed first.
2829 mips-mips-usg* )
2830 machine=mips4
2831 ## Fall through to the general code at the bottom to decide on the OS.
2832 ;;
2833 mips-mips-riscos4* )
2834 machine=mips4 opsys=bsd4-3
2835 NON_GNU_CC="cc -systype bsd43"
2836 NON_GNU_CPP="cc -systype bsd43 -E"
2837 ;;
2838 mips-mips-riscos5* )
2839 machine=mips4 opsys=riscos5
2840 NON_GNU_CC="cc -systype bsd43"
2841 NON_GNU_CPP="cc -systype bsd43 -E"
2842 ;;
2843 mips-mips-bsd* )
2844 machine=mips opsys=bsd4-3
2845 ;;
2846 mips-mips-* )
2847 machine=mips opsys=usg5-2-2
2848 ;;
2849
2850 ## NeXT
2851 m68*-next-* | m68k-*-nextstep* )
2852 machine=m68k opsys=nextstep
2853 ;;
2854
2855 ## The complete machine from National Semiconductor
2856 ns32k-ns-genix* )
2857 machine=ns32000 opsys=usg5-2
2858 ;;
2859
2860 ## NCR machines
2861 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2862 machine=tower32 opsys=usg5-2-2
2863 ;;
2864 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2865 machine=tower32v3 opsys=usg5-3
2866 ;;
2867
2868 ## NEC EWS4800
2869 mips-nec-sysv4*)
2870 machine=ews4800 opsys=ux4800
2871 ;;
2872
2873 ## Nixdorf Targon 31
2874 m68*-nixdorf-sysv* )
2875 machine=targon31 opsys=usg5-2-2
2876 ;;
2877
2878 ## Nu (TI or LMI)
2879 m68*-nu-sysv* )
2880 machine=nu opsys=usg5-2
2881 ;;
2882
2883 ## Plexus
2884 m68*-plexus-sysv* )
2885 machine=plexus opsys=usg5-2
2886 ;;
2887
2888 ## Pyramid machines
2889 ## I don't really have any idea what sort of processor the Pyramid has,
2890 ## so I'm assuming it is its own architecture.
2891 pyramid-pyramid-bsd* )
2892 machine=pyramid opsys=bsd4-2
2893 ;;
2894
2895 ## Sequent Balance
2896 ns32k-sequent-bsd4.2* )
2897 machine=sequent opsys=bsd4-2
2898 ;;
2899 ns32k-sequent-bsd4.3* )
2900 machine=sequent opsys=bsd4-3
2901 ;;
2902
2903 ## Siemens Nixdorf
2904 mips-siemens-sysv* | mips-sni-sysv*)
2905 machine=mips-siemens opsys=usg5-4
2906 NON_GNU_CC=/usr/ccs/bin/cc
2907 NON_GNU_CPP=/usr/ccs/lib/cpp
2908 ;;
2909
2910 ## Silicon Graphics machines
2911 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2912 m68*-sgi-iris3.5* )
2913 machine=irist opsys=iris3-5
2914 ;;
2915 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2916 machine=irist opsys=iris3-6
2917 ;;
2918 ## Iris 4D
2919 mips-sgi-irix3* )
2920 machine=iris4d opsys=irix3-3
2921 ;;
2922 mips-sgi-irix4* )
2923 machine=iris4d opsys=irix4-0
2924 ;;
2925 mips-sgi-irix6.5 )
2926 machine=iris4d opsys=irix6-5
2927 # Without defining _LANGUAGE_C, things get masked out in the headers
2928 # so that, for instance, grepping for `free' in stdlib.h fails and
2929 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2930 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2931 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2932 ;;
2933 mips-sgi-irix6* )
2934 machine=iris4d opsys=irix6-0
2935 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2936 # but presumably it does no harm.
2937 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2938 # -32 probably isn't necessary in later v.6s -- anyone know which?
2939 NON_GCC_TEST_OPTIONS=-32
2940 ;;
2941 mips-sgi-irix5.[01]* )
2942 machine=iris4d opsys=irix5-0
2943 ;;
2944 mips-sgi-irix5* | mips-sgi-irix* )
2945 machine=iris4d opsys=irix5-2
2946 ;;
2947
2948 ## SONY machines
2949 m68*-sony-bsd4.2* )
2950 machine=news opsys=bsd4-2
2951 ;;
2952 m68*-sony-bsd4.3* )
2953 machine=news opsys=bsd4-3
2954 ;;
2955 m68*-sony-newsos3* | m68*-sony-news3*)
2956 machine=news opsys=bsd4-3
2957 ;;
2958 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2959 machine=news-risc opsys=bsd4-3
2960 ;;
2961 mips-sony-newsos6* )
2962 machine=news-r6 opsys=newsos6
2963 ;;
2964 mips-sony-news* )
2965 machine=news-risc opsys=newsos5
2966 ;;
2967
2968 ## Stride
2969 m68*-stride-sysv* )
2970 machine=stride opsys=usg5-2
2971 ;;
2972
2973 ## Suns
2974 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2975 machine=sparc opsys=gnu-linux
2976 ;;
2977
2978 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2979 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2980 | rs6000-*-solaris2*)
2981 case "${canonical}" in
2982 m68*-sunos1* ) machine=sun1 ;;
2983 m68*-sunos2* ) machine=sun2 ;;
2984 m68* ) machine=sun3 ;;
2985 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2986 i[3456]86-*-* ) machine=intel386 ;;
2987 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2988 powerpcle* ) machine=powerpcle ;;
2989 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2990 sparc* ) machine=sparc ;;
2991 * ) unported=yes ;;
2992 esac
2993 case "${canonical}" in
2994 ## The Sun386 didn't get past 4.0.
2995 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2996 *-sunos4.0* ) opsys=sunos4-0 ;;
2997 *-sunos4.1.[3-9]*noshare )
2998 ## This name is sunos413 instead of sunos4-1-3
2999 ## to avoid a file name conflict on MSDOS.
3000 opsys=sunos413
3001 NON_GNU_CPP=/usr/lib/cpp
3002 NON_GCC_TEST_OPTIONS=-Bstatic
3003 GCC_TEST_OPTIONS=-static
3004 ;;
3005 *-sunos4.1.[3-9]* | *-sunos4shr*)
3006 opsys=sunos4shr
3007 NON_GNU_CPP=/usr/lib/cpp
3008 ;;
3009 *-sunos4* | *-sunos )
3010 opsys=sunos4-1
3011 NON_GCC_TEST_OPTIONS=-Bstatic
3012 GCC_TEST_OPTIONS=-static
3013 ;;
3014 *-sunos5.3* | *-solaris2.3* )
3015 opsys=sol2-3
3016 NON_GNU_CPP=/usr/ccs/lib/cpp
3017 ;;
3018 *-sunos5.4* | *-solaris2.4* )
3019 opsys=sol2-4
3020 NON_GNU_CPP=/usr/ccs/lib/cpp
3021 RANLIB="ar -ts"
3022 ;;
3023 *-sunos5.5* | *-solaris2.5* )
3024 opsys=sol2-5
3025 NON_GNU_CPP=/usr/ccs/lib/cpp
3026 RANLIB="ar -ts"
3027 ;;
3028 *-sunos5.6* | *-solaris2.6* )
3029 opsys=sol2-6
3030 NON_GNU_CPP=/usr/ccs/lib/cpp
3031 RANLIB="ar -ts"
3032 ;;
3033 *-sunos5* | *-solaris* )
3034 opsys=sol2-6
3035 ## FIXME: make this into a proper fix that checks the compiler type,
3036 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3037 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3038 ## -Xs prevents spurious whitespace.
3039 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3040 else
3041 NON_GNU_CPP=/usr/ccs/lib/cpp
3042 fi
3043 ;;
3044 * ) opsys=bsd4-2 ;;
3045 esac
3046 ## Watch out for a compiler that we know will not work.
3047 case "${canonical}" in
3048 *-solaris* | *-sunos5* )
3049 if [ "x$CC" = x/usr/ucb/cc ]; then
3050 ## /usr/ucb/cc doesn't work;
3051 ## we should find some other compiler that does work.
3052 unset CC
3053 fi
3054 ;;
3055 *) ;;
3056 esac
3057 ;;
3058 sparc-*-nextstep* )
3059 machine=sparc opsys=nextstep
3060 ;;
3061
3062 ## Tadpole 68k
3063 m68*-tadpole-sysv* )
3064 machine=tad68k opsys=usg5-3
3065 ;;
3066
3067 ## Tahoe machines
3068 tahoe-tahoe-bsd4.2* )
3069 machine=tahoe opsys=bsd4-2
3070 ;;
3071 tahoe-tahoe-bsd4.3* )
3072 machine=tahoe opsys=bsd4-3
3073 ;;
3074
3075 ## Tandem Integrity S2
3076 mips-tandem-sysv* )
3077 machine=tandem-s2 opsys=usg5-3
3078 ;;
3079
3080 ## Tektronix XD88
3081 m88k-tektronix-sysv3* )
3082 machine=tekxd88 opsys=usg5-3
3083 ;;
3084
3085 ## Tektronix 16000 box (6130?)
3086 ns16k-tektronix-bsd* )
3087 machine=ns16000 opsys=bsd4-2
3088 ;;
3089 ## Tektronix 4300
3090 ## src/m/tek4300.h hints that this is a m68k machine.
3091 m68*-tektronix-bsd* )
3092 machine=tek4300 opsys=bsd4-3
3093 ;;
3094
3095 ## Titan P2 or P3
3096 ## We seem to have lost the machine-description file titan.h!
3097 titan-titan-sysv* )
3098 machine=titan opsys=usg5-3
3099 ;;
3100
3101 ## Ustation E30 (SS5E)
3102 m68*-unisys-uniplus* )
3103 machine=ustation opsystem=unipl5-2
3104 ;;
3105
3106 ## Vaxen.
3107 vax-dec-* )
3108 machine=vax
3109 case "${canonical}" in
3110 *-bsd4.1* ) opsys=bsd4-1 ;;
3111 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3112 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3113 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3114 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3115 *-vms* ) opsys=vms ;;
3116 * ) unported=yes
3117 esac
3118 ;;
3119
3120 ## Whitechapel MG1
3121 ns16k-whitechapel-* )
3122 machine=mg1
3123 ## We don't know what sort of OS runs on these; we'll let the
3124 ## operating system guessing code below try.
3125 ;;
3126
3127 ## Wicat
3128 m68*-wicat-sysv* )
3129 machine=wicat opsys=usg5-2
3130 ;;
3131
3132 ## IA-64
3133 ia64*-*-linux* )
3134 machine=ia64 opsys=gnu-linux
3135 ;;
3136
3137 ## Intel 386 machines where we don't care about the manufacturer
3138 i[3456]86-*-* )
3139 machine=intel386
3140 case "${canonical}" in
3141 *-cygwin ) opsys=cygwin ;;
3142 *-darwin* ) opsys=darwin
3143 CPP="${CC-cc} -E -no-cpp-precomp"
3144 ;;
3145 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3146 *-isc2.2* ) opsys=isc2-2 ;;
3147 *-isc4.0* ) opsys=isc4-0 ;;
3148 *-isc4.* ) opsys=isc4-1
3149 GCC_TEST_OPTIONS=-posix
3150 NON_GCC_TEST_OPTIONS=-Xp
3151 ;;
3152 *-isc* ) opsys=isc3-0 ;;
3153 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3154 *-esix* ) opsys=esix ;;
3155 *-xenix* ) opsys=xenix ;;
3156 *-linux-gnu* ) opsys=gnu-linux ;;
3157 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3158 *-sco3.2v5* ) opsys=sco5
3159 NON_GNU_CPP=/lib/cpp
3160 # Prevent -belf from being passed to $CPP.
3161 # /lib/cpp does not accept it.
3162 OVERRIDE_CPPFLAGS=" "
3163 ;;
3164 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3165 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3166 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3167 *-386bsd* ) opsys=386bsd ;;
3168 *-nextstep* ) opsys=nextstep ;;
3169 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3170 esac
3171 ;;
3172
3173 ## m68k Linux-based GNU system
3174 m68k-*-linux-gnu* )
3175 machine=m68k opsys=gnu-linux
3176 ;;
3177
3178 ## Mips Linux-based GNU system
3179 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3180 machine=mips opsys=gnu-linux
3181 ;;
3182
3183 ## UXP/DS
3184 sparc-fujitsu-sysv4* )
3185 machine=sparc opsys=uxpds
3186 NON_GNU_CPP=/usr/ccs/lib/cpp
3187 RANLIB="ar -ts"
3188 ;;
3189
3190 ## UXP/V
3191 f301-fujitsu-uxpv4.1)
3192 machine=f301 opsys=uxpv
3193 ;;
3194
3195 ## AMD x86-64 Linux-based GNU system
3196 x86_64-*-linux-gnu* )
3197 machine=amdx86-64 opsys=gnu-linux
3198 ;;
3199
3200 ## Tensilica Xtensa Linux-based GNU system
3201 xtensa-*-linux-gnu* )
3202 machine=xtensa opsys=gnu-linux
3203 ;;
3204
3205 * )
3206 unported=yes
3207 ;;
3208 esac
3209
3210 ### If the code above didn't choose an operating system, just choose
3211 ### an operating system based on the configuration name. You really
3212 ### only want to use this when you have no idea what the right
3213 ### operating system is; if you know what operating systems a machine
3214 ### runs, it's cleaner to make it explicit in the case statement
3215 ### above.
3216 if test x"${opsys}" = x; then
3217 case "${canonical}" in
3218 *-gnu* ) opsys=gnu ;;
3219 *-bsd4.[01] ) opsys=bsd4-1 ;;
3220 *-bsd4.2 ) opsys=bsd4-2 ;;
3221 *-bsd4.3 ) opsys=bsd4-3 ;;
3222 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3223 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3224 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3225 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3226 *-sysv4.2uw* ) opsys=unixware ;;
3227 *-sysv5uw* ) opsys=unixware ;;
3228 *-sysv5OpenUNIX* ) opsys=unixware ;;
3229 *-sysv4.1* | *-sysvr4.1* )
3230 NON_GNU_CPP=/usr/lib/cpp
3231 opsys=usg5-4 ;;
3232 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3233 if [ x$NON_GNU_CPP = x ]; then
3234 if [ -f /usr/ccs/lib/cpp ]; then
3235 NON_GNU_CPP=/usr/ccs/lib/cpp
3236 else
3237 NON_GNU_CPP=/lib/cpp
3238 fi
3239 fi
3240 opsys=usg5-4-2 ;;
3241 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3242 * )
3243 unported=yes
3244 ;;
3245 esac
3246 fi
3247
3248
3249
3250 if test $unported = yes; then
3251 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3252 Check \`etc/MACHINES' for recognized configuration names." >&5
3253 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3254 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3255 { (exit 1); exit 1; }; }
3256 fi
3257
3258 machfile="m/${machine}.h"
3259 opsysfile="s/${opsys}.h"
3260
3261
3262 #### Choose a compiler.
3263 test -n "$CC" && cc_specified=yes
3264
3265 # Save the value of CFLAGS that the user specified.
3266 SPECIFIED_CFLAGS="$CFLAGS"
3267
3268 case ${with_gcc} in
3269 "yes" ) CC="gcc" GCC=yes ;;
3270 "no" ) : ${CC=cc} ;;
3271 * )
3272 esac
3273 ac_ext=c
3274 ac_cpp='$CPP $CPPFLAGS'
3275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278 if test -n "$ac_tool_prefix"; then
3279 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3280 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_CC+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 CC=$ac_cv_prog_CC
3307 if test -n "$CC"; then
3308 { echo "$as_me:$LINENO: result: $CC" >&5
3309 echo "${ECHO_T}$CC" >&6; }
3310 else
3311 { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3313 fi
3314
3315
3316 fi
3317 if test -z "$ac_cv_prog_CC"; then
3318 ac_ct_CC=$CC
3319 # Extract the first word of "gcc", so it can be a program name with args.
3320 set dummy gcc; ac_word=$2
3321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326 if test -n "$ac_ct_CC"; then
3327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3328 else
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3331 do
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336 ac_cv_prog_ac_ct_CC="gcc"
3337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340 done
3341 done
3342 IFS=$as_save_IFS
3343
3344 fi
3345 fi
3346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3347 if test -n "$ac_ct_CC"; then
3348 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3349 echo "${ECHO_T}$ac_ct_CC" >&6; }
3350 else
3351 { echo "$as_me:$LINENO: result: no" >&5
3352 echo "${ECHO_T}no" >&6; }
3353 fi
3354
3355 if test "x$ac_ct_CC" = x; then
3356 CC=""
3357 else
3358 case $cross_compiling:$ac_tool_warned in
3359 yes:)
3360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3361 whose name does not start with the host triplet. If you think this
3362 configuration is useful to you, please write to autoconf@gnu.org." >&5
3363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3364 whose name does not start with the host triplet. If you think this
3365 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3366 ac_tool_warned=yes ;;
3367 esac
3368 CC=$ac_ct_CC
3369 fi
3370 else
3371 CC="$ac_cv_prog_CC"
3372 fi
3373
3374 if test -z "$CC"; then
3375 if test -n "$ac_tool_prefix"; then
3376 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3377 set dummy ${ac_tool_prefix}cc; ac_word=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_CC+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 if test -n "$CC"; then
3384 ac_cv_prog_CC="$CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_CC="${ac_tool_prefix}cc"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397 done
3398 done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 CC=$ac_cv_prog_CC
3404 if test -n "$CC"; then
3405 { echo "$as_me:$LINENO: result: $CC" >&5
3406 echo "${ECHO_T}$CC" >&6; }
3407 else
3408 { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3410 fi
3411
3412
3413 fi
3414 fi
3415 if test -z "$CC"; then
3416 # Extract the first word of "cc", so it can be a program name with args.
3417 set dummy cc; ac_word=$2
3418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3420 if test "${ac_cv_prog_CC+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 else
3426 ac_prog_rejected=no
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3435 ac_prog_rejected=yes
3436 continue
3437 fi
3438 ac_cv_prog_CC="cc"
3439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442 done
3443 done
3444 IFS=$as_save_IFS
3445
3446 if test $ac_prog_rejected = yes; then
3447 # We found a bogon in the path, so make sure we never use it.
3448 set dummy $ac_cv_prog_CC
3449 shift
3450 if test $# != 0; then
3451 # We chose a different compiler from the bogus one.
3452 # However, it has the same basename, so the bogon will be chosen
3453 # first if we set CC to just the basename; use the full file name.
3454 shift
3455 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3456 fi
3457 fi
3458 fi
3459 fi
3460 CC=$ac_cv_prog_CC
3461 if test -n "$CC"; then
3462 { echo "$as_me:$LINENO: result: $CC" >&5
3463 echo "${ECHO_T}$CC" >&6; }
3464 else
3465 { echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6; }
3467 fi
3468
3469
3470 fi
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 for ac_prog in cl.exe
3474 do
3475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3479 if test "${ac_cv_prog_CC+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482 if test -n "$CC"; then
3483 ac_cv_prog_CC="$CC" # Let the user override the test.
3484 else
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3487 do
3488 IFS=$as_save_IFS
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 break 2
3495 fi
3496 done
3497 done
3498 IFS=$as_save_IFS
3499
3500 fi
3501 fi
3502 CC=$ac_cv_prog_CC
3503 if test -n "$CC"; then
3504 { echo "$as_me:$LINENO: result: $CC" >&5
3505 echo "${ECHO_T}$CC" >&6; }
3506 else
3507 { echo "$as_me:$LINENO: result: no" >&5
3508 echo "${ECHO_T}no" >&6; }
3509 fi
3510
3511
3512 test -n "$CC" && break
3513 done
3514 fi
3515 if test -z "$CC"; then
3516 ac_ct_CC=$CC
3517 for ac_prog in cl.exe
3518 do
3519 # Extract the first word of "$ac_prog", so it can be a program name with args.
3520 set dummy $ac_prog; ac_word=$2
3521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 else
3526 if test -n "$ac_ct_CC"; then
3527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536 ac_cv_prog_ac_ct_CC="$ac_prog"
3537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540 done
3541 done
3542 IFS=$as_save_IFS
3543
3544 fi
3545 fi
3546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3547 if test -n "$ac_ct_CC"; then
3548 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3549 echo "${ECHO_T}$ac_ct_CC" >&6; }
3550 else
3551 { echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6; }
3553 fi
3554
3555
3556 test -n "$ac_ct_CC" && break
3557 done
3558
3559 if test "x$ac_ct_CC" = x; then
3560 CC=""
3561 else
3562 case $cross_compiling:$ac_tool_warned in
3563 yes:)
3564 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3565 whose name does not start with the host triplet. If you think this
3566 configuration is useful to you, please write to autoconf@gnu.org." >&5
3567 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3568 whose name does not start with the host triplet. If you think this
3569 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3570 ac_tool_warned=yes ;;
3571 esac
3572 CC=$ac_ct_CC
3573 fi
3574 fi
3575
3576 fi
3577
3578
3579 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3580 See \`config.log' for more details." >&5
3581 echo "$as_me: error: no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details." >&2;}
3583 { (exit 1); exit 1; }; }
3584
3585 # Provide some information about the compiler.
3586 echo "$as_me:$LINENO: checking for C compiler version" >&5
3587 ac_compiler=`set X $ac_compile; echo $2`
3588 { (ac_try="$ac_compiler --version >&5"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_compiler --version >&5") 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }
3598 { (ac_try="$ac_compiler -v >&5"
3599 case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602 esac
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604 (eval "$ac_compiler -v >&5") 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }
3608 { (ac_try="$ac_compiler -V >&5"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compiler -V >&5") 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }
3618
3619 cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h. */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3625
3626 int
3627 main ()
3628 {
3629
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 ac_clean_files_save=$ac_clean_files
3635 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3636 # Try to create an executable without -o first, disregard a.out.
3637 # It will help us diagnose broken compilers, and finding out an intuition
3638 # of exeext.
3639 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3640 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3641 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3642 #
3643 # List of possible output files, starting from the most likely.
3644 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3645 # only as a last resort. b.out is created by i960 compilers.
3646 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3647 #
3648 # The IRIX 6 linker writes into existing files which may not be
3649 # executable, retaining their permissions. Remove them first so a
3650 # subsequent execution test works.
3651 ac_rmfiles=
3652 for ac_file in $ac_files
3653 do
3654 case $ac_file in
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3656 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3657 esac
3658 done
3659 rm -f $ac_rmfiles
3660
3661 if { (ac_try="$ac_link_default"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_link_default") 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; then
3671 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3672 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3673 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3674 # so that the user can short-circuit this test for compilers unknown to
3675 # Autoconf.
3676 for ac_file in $ac_files ''
3677 do
3678 test -f "$ac_file" || continue
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3681 ;;
3682 [ab].out )
3683 # We found the default executable, but exeext='' is most
3684 # certainly right.
3685 break;;
3686 *.* )
3687 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3688 then :; else
3689 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 fi
3691 # We set ac_cv_exeext here because the later test for it is not
3692 # safe: cross compilers may not add the suffix if given an `-o'
3693 # argument, so we may need to know it at that point already.
3694 # Even if this section looks crufty: it has the advantage of
3695 # actually working.
3696 break;;
3697 * )
3698 break;;
3699 esac
3700 done
3701 test "$ac_cv_exeext" = no && ac_cv_exeext=
3702
3703 else
3704 ac_file=''
3705 fi
3706
3707 { echo "$as_me:$LINENO: result: $ac_file" >&5
3708 echo "${ECHO_T}$ac_file" >&6; }
3709 if test -z "$ac_file"; then
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3714 See \`config.log' for more details." >&5
3715 echo "$as_me: error: C compiler cannot create executables
3716 See \`config.log' for more details." >&2;}
3717 { (exit 77); exit 77; }; }
3718 fi
3719
3720 ac_exeext=$ac_cv_exeext
3721
3722 # Check that the compiler produces executables we can run. If not, either
3723 # the compiler is broken, or we cross compile.
3724 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3725 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3726 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3727 # If not cross compiling, check that we can run a simple program.
3728 if test "$cross_compiling" != yes; then
3729 if { ac_try='./$ac_file'
3730 { (case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735 (eval "$ac_try") 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 cross_compiling=no
3740 else
3741 if test "$cross_compiling" = maybe; then
3742 cross_compiling=yes
3743 else
3744 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3745 If you meant to cross compile, use \`--host'.
3746 See \`config.log' for more details." >&5
3747 echo "$as_me: error: cannot run C compiled programs.
3748 If you meant to cross compile, use \`--host'.
3749 See \`config.log' for more details." >&2;}
3750 { (exit 1); exit 1; }; }
3751 fi
3752 fi
3753 fi
3754 { echo "$as_me:$LINENO: result: yes" >&5
3755 echo "${ECHO_T}yes" >&6; }
3756
3757 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3758 ac_clean_files=$ac_clean_files_save
3759 # Check that the compiler produces executables we can run. If not, either
3760 # the compiler is broken, or we cross compile.
3761 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3762 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3763 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3764 echo "${ECHO_T}$cross_compiling" >&6; }
3765
3766 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3767 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3768 if { (ac_try="$ac_link"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_link") 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; then
3778 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3779 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3780 # work properly (i.e., refer to `conftest.exe'), while it won't with
3781 # `rm'.
3782 for ac_file in conftest.exe conftest conftest.*; do
3783 test -f "$ac_file" || continue
3784 case $ac_file in
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3786 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3787 break;;
3788 * ) break;;
3789 esac
3790 done
3791 else
3792 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3793 See \`config.log' for more details." >&5
3794 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3795 See \`config.log' for more details." >&2;}
3796 { (exit 1); exit 1; }; }
3797 fi
3798
3799 rm -f conftest$ac_cv_exeext
3800 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3801 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3802
3803 rm -f conftest.$ac_ext
3804 EXEEXT=$ac_cv_exeext
3805 ac_exeext=$EXEEXT
3806 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3807 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3808 if test "${ac_cv_objext+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817
3818 int
3819 main ()
3820 {
3821
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 rm -f conftest.o conftest.obj
3827 if { (ac_try="$ac_compile"
3828 case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831 esac
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compile") 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; then
3837 for ac_file in conftest.o conftest.obj conftest.*; do
3838 test -f "$ac_file" || continue;
3839 case $ac_file in
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3841 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3842 break;;
3843 esac
3844 done
3845 else
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3850 See \`config.log' for more details." >&5
3851 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3852 See \`config.log' for more details." >&2;}
3853 { (exit 1); exit 1; }; }
3854 fi
3855
3856 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3857 fi
3858 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3859 echo "${ECHO_T}$ac_cv_objext" >&6; }
3860 OBJEXT=$ac_cv_objext
3861 ac_objext=$OBJEXT
3862 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3863 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3864 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h. */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873
3874 int
3875 main ()
3876 {
3877 #ifndef __GNUC__
3878 choke me
3879 #endif
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 rm -f conftest.$ac_objext
3886 if { (ac_try="$ac_compile"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_compile") 2>conftest.er1
3893 ac_status=$?
3894 grep -v '^ *+' conftest.er1 >conftest.err
3895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } && {
3899 test -z "$ac_c_werror_flag" ||
3900 test ! -s conftest.err
3901 } && test -s conftest.$ac_objext; then
3902 ac_compiler_gnu=yes
3903 else
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907 ac_compiler_gnu=no
3908 fi
3909
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3912
3913 fi
3914 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3915 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3916 GCC=`test $ac_compiler_gnu = yes && echo yes`
3917 ac_test_CFLAGS=${CFLAGS+set}
3918 ac_save_CFLAGS=$CFLAGS
3919 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3920 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3921 if test "${ac_cv_prog_cc_g+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 ac_save_c_werror_flag=$ac_c_werror_flag
3925 ac_c_werror_flag=yes
3926 ac_cv_prog_cc_g=no
3927 CFLAGS="-g"
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934
3935 int
3936 main ()
3937 {
3938
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 rm -f conftest.$ac_objext
3944 if { (ac_try="$ac_compile"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_compile") 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } && {
3957 test -z "$ac_c_werror_flag" ||
3958 test ! -s conftest.err
3959 } && test -s conftest.$ac_objext; then
3960 ac_cv_prog_cc_g=yes
3961 else
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3964
3965 CFLAGS=""
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972
3973 int
3974 main ()
3975 {
3976
3977 ;
3978 return 0;
3979 }
3980 _ACEOF
3981 rm -f conftest.$ac_objext
3982 if { (ac_try="$ac_compile"
3983 case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.$ac_objext; then
3998 :
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 ac_c_werror_flag=$ac_save_c_werror_flag
4004 CFLAGS="-g"
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h. */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011
4012 int
4013 main ()
4014 {
4015
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (ac_try="$ac_compile"
4022 case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_compile") 2>conftest.er1
4028 ac_status=$?
4029 grep -v '^ *+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } && {
4034 test -z "$ac_c_werror_flag" ||
4035 test ! -s conftest.err
4036 } && test -s conftest.$ac_objext; then
4037 ac_cv_prog_cc_g=yes
4038 else
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042
4043 fi
4044
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 fi
4047
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 fi
4050
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 ac_c_werror_flag=$ac_save_c_werror_flag
4053 fi
4054 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4055 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4056 if test "$ac_test_CFLAGS" = set; then
4057 CFLAGS=$ac_save_CFLAGS
4058 elif test $ac_cv_prog_cc_g = yes; then
4059 if test "$GCC" = yes; then
4060 CFLAGS="-g -O2"
4061 else
4062 CFLAGS="-g"
4063 fi
4064 else
4065 if test "$GCC" = yes; then
4066 CFLAGS="-O2"
4067 else
4068 CFLAGS=
4069 fi
4070 fi
4071 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4072 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4073 if test "${ac_cv_prog_cc_c89+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 ac_cv_prog_cc_c89=no
4077 ac_save_CC=$CC
4078 cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h. */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 #include <stdarg.h>
4085 #include <stdio.h>
4086 #include <sys/types.h>
4087 #include <sys/stat.h>
4088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4089 struct buf { int x; };
4090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4091 static char *e (p, i)
4092 char **p;
4093 int i;
4094 {
4095 return p[i];
4096 }
4097 static char *f (char * (*g) (char **, int), char **p, ...)
4098 {
4099 char *s;
4100 va_list v;
4101 va_start (v,p);
4102 s = g (p, va_arg (v,int));
4103 va_end (v);
4104 return s;
4105 }
4106
4107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4108 function prototypes and stuff, but not '\xHH' hex character constants.
4109 These don't provoke an error unfortunately, instead are silently treated
4110 as 'x'. The following induces an error, until -std is added to get
4111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4112 array size at least. It's necessary to write '\x00'==0 to get something
4113 that's true only with -std. */
4114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4115
4116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4117 inside strings and character constants. */
4118 #define FOO(x) 'x'
4119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4120
4121 int test (int i, double x);
4122 struct s1 {int (*f) (int a);};
4123 struct s2 {int (*f) (double a);};
4124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4125 int argc;
4126 char **argv;
4127 int
4128 main ()
4129 {
4130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4137 do
4138 CC="$ac_save_CC $ac_arg"
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_compile") 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } && {
4153 test -z "$ac_c_werror_flag" ||
4154 test ! -s conftest.err
4155 } && test -s conftest.$ac_objext; then
4156 ac_cv_prog_cc_c89=$ac_arg
4157 else
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161
4162 fi
4163
4164 rm -f core conftest.err conftest.$ac_objext
4165 test "x$ac_cv_prog_cc_c89" != "xno" && break
4166 done
4167 rm -f conftest.$ac_ext
4168 CC=$ac_save_CC
4169
4170 fi
4171 # AC_CACHE_VAL
4172 case "x$ac_cv_prog_cc_c89" in
4173 x)
4174 { echo "$as_me:$LINENO: result: none needed" >&5
4175 echo "${ECHO_T}none needed" >&6; } ;;
4176 xno)
4177 { echo "$as_me:$LINENO: result: unsupported" >&5
4178 echo "${ECHO_T}unsupported" >&6; } ;;
4179 *)
4180 CC="$CC $ac_cv_prog_cc_c89"
4181 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4182 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4183 esac
4184
4185
4186 ac_ext=c
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191
4192
4193 # On Suns, sometimes $CPP names a directory.
4194 if test -n "$CPP" && test -d "$CPP"; then
4195 CPP=
4196 fi
4197
4198 #### Some systems specify a CPP to use unless we are using GCC.
4199 #### Now that we know whether we are using GCC, we can decide whether
4200 #### to use that one.
4201 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4202 then
4203 CPP="$NON_GNU_CPP"
4204 fi
4205
4206 #### Some systems specify a CC to use unless we are using GCC.
4207 #### Now that we know whether we are using GCC, we can decide whether
4208 #### to use that one.
4209 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4210 test x$cc_specified != xyes
4211 then
4212 CC="$NON_GNU_CC"
4213 fi
4214
4215 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4216 then
4217 CC="$CC $GCC_TEST_OPTIONS"
4218 fi
4219
4220 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4221 then
4222 CC="$CC $NON_GCC_TEST_OPTIONS"
4223 fi
4224
4225
4226 ac_ext=c
4227 ac_cpp='$CPP $CPPFLAGS'
4228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4232 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4233 # On Suns, sometimes $CPP names a directory.
4234 if test -n "$CPP" && test -d "$CPP"; then
4235 CPP=
4236 fi
4237 if test -z "$CPP"; then
4238 if test "${ac_cv_prog_CPP+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 # Double quotes because CPP needs to be expanded
4242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4243 do
4244 ac_preproc_ok=false
4245 for ac_c_preproc_warn_flag in '' yes
4246 do
4247 # Use a header file that comes with gcc, so configuring glibc
4248 # with a fresh cross-compiler works.
4249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4250 # <limits.h> exists even on freestanding compilers.
4251 # On the NeXT, cc -E runs the code through the compiler's parser,
4252 # not just through cpp. "Syntax error" is here to catch this case.
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h. */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 #ifdef __STDC__
4260 # include <limits.h>
4261 #else
4262 # include <assert.h>
4263 #endif
4264 Syntax error
4265 _ACEOF
4266 if { (ac_try="$ac_cpp conftest.$ac_ext"
4267 case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } >/dev/null && {
4279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4280 test ! -s conftest.err
4281 }; then
4282 :
4283 else
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 # Broken: fails on valid input.
4288 continue
4289 fi
4290
4291 rm -f conftest.err conftest.$ac_ext
4292
4293 # OK, works on sane cases. Now check whether nonexistent headers
4294 # can be detected and how.
4295 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 #include <ac_nonexistent.h>
4302 _ACEOF
4303 if { (ac_try="$ac_cpp conftest.$ac_ext"
4304 case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4310 ac_status=$?
4311 grep -v '^ *+' conftest.er1 >conftest.err
4312 rm -f conftest.er1
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } >/dev/null && {
4316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4317 test ! -s conftest.err
4318 }; then
4319 # Broken: success on invalid input.
4320 continue
4321 else
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325 # Passes both tests.
4326 ac_preproc_ok=:
4327 break
4328 fi
4329
4330 rm -f conftest.err conftest.$ac_ext
4331
4332 done
4333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4334 rm -f conftest.err conftest.$ac_ext
4335 if $ac_preproc_ok; then
4336 break
4337 fi
4338
4339 done
4340 ac_cv_prog_CPP=$CPP
4341
4342 fi
4343 CPP=$ac_cv_prog_CPP
4344 else
4345 ac_cv_prog_CPP=$CPP
4346 fi
4347 { echo "$as_me:$LINENO: result: $CPP" >&5
4348 echo "${ECHO_T}$CPP" >&6; }
4349 ac_preproc_ok=false
4350 for ac_c_preproc_warn_flag in '' yes
4351 do
4352 # Use a header file that comes with gcc, so configuring glibc
4353 # with a fresh cross-compiler works.
4354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4355 # <limits.h> exists even on freestanding compilers.
4356 # On the NeXT, cc -E runs the code through the compiler's parser,
4357 # not just through cpp. "Syntax error" is here to catch this case.
4358 cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h. */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h. */
4364 #ifdef __STDC__
4365 # include <limits.h>
4366 #else
4367 # include <assert.h>
4368 #endif
4369 Syntax error
4370 _ACEOF
4371 if { (ac_try="$ac_cpp conftest.$ac_ext"
4372 case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4378 ac_status=$?
4379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } >/dev/null && {
4384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4386 }; then
4387 :
4388 else
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392 # Broken: fails on valid input.
4393 continue
4394 fi
4395
4396 rm -f conftest.err conftest.$ac_ext
4397
4398 # OK, works on sane cases. Now check whether nonexistent headers
4399 # can be detected and how.
4400 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h. */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 #include <ac_nonexistent.h>
4407 _ACEOF
4408 if { (ac_try="$ac_cpp conftest.$ac_ext"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4415 ac_status=$?
4416 grep -v '^ *+' conftest.er1 >conftest.err
4417 rm -f conftest.er1
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } >/dev/null && {
4421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4423 }; then
4424 # Broken: success on invalid input.
4425 continue
4426 else
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 # Passes both tests.
4431 ac_preproc_ok=:
4432 break
4433 fi
4434
4435 rm -f conftest.err conftest.$ac_ext
4436
4437 done
4438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4439 rm -f conftest.err conftest.$ac_ext
4440 if $ac_preproc_ok; then
4441 :
4442 else
4443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4444 See \`config.log' for more details." >&5
4445 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4446 See \`config.log' for more details." >&2;}
4447 { (exit 1); exit 1; }; }
4448 fi
4449
4450 ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
4456
4457 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4458 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4459 if test "${ac_cv_path_GREP+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 # Extract the first word of "grep ggrep" to use in msg output
4463 if test -z "$GREP"; then
4464 set dummy grep ggrep; ac_prog_name=$2
4465 if test "${ac_cv_path_GREP+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 ac_path_GREP_found=false
4469 # Loop through the user's path and test for each of PROGNAME-LIST
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4472 do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_prog in grep ggrep; do
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4478 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4479 # Check for GNU ac_path_GREP and select it if it is found.
4480 # Check for GNU $ac_path_GREP
4481 case `"$ac_path_GREP" --version 2>&1` in
4482 *GNU*)
4483 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4484 *)
4485 ac_count=0
4486 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4487 while :
4488 do
4489 cat "conftest.in" "conftest.in" >"conftest.tmp"
4490 mv "conftest.tmp" "conftest.in"
4491 cp "conftest.in" "conftest.nl"
4492 echo 'GREP' >> "conftest.nl"
4493 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4495 ac_count=`expr $ac_count + 1`
4496 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4497 # Best one so far, save it but keep looking for a better one
4498 ac_cv_path_GREP="$ac_path_GREP"
4499 ac_path_GREP_max=$ac_count
4500 fi
4501 # 10*(2^10) chars as input seems more than enough
4502 test $ac_count -gt 10 && break
4503 done
4504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4505 esac
4506
4507
4508 $ac_path_GREP_found && break 3
4509 done
4510 done
4511
4512 done
4513 IFS=$as_save_IFS
4514
4515
4516 fi
4517
4518 GREP="$ac_cv_path_GREP"
4519 if test -z "$GREP"; then
4520 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4521 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4522 { (exit 1); exit 1; }; }
4523 fi
4524
4525 else
4526 ac_cv_path_GREP=$GREP
4527 fi
4528
4529
4530 fi
4531 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4532 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4533 GREP="$ac_cv_path_GREP"
4534
4535
4536 { echo "$as_me:$LINENO: checking for egrep" >&5
4537 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4538 if test "${ac_cv_path_EGREP+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4542 then ac_cv_path_EGREP="$GREP -E"
4543 else
4544 # Extract the first word of "egrep" to use in msg output
4545 if test -z "$EGREP"; then
4546 set dummy egrep; ac_prog_name=$2
4547 if test "${ac_cv_path_EGREP+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550 ac_path_EGREP_found=false
4551 # Loop through the user's path and test for each of PROGNAME-LIST
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_prog in egrep; do
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4560 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4561 # Check for GNU ac_path_EGREP and select it if it is found.
4562 # Check for GNU $ac_path_EGREP
4563 case `"$ac_path_EGREP" --version 2>&1` in
4564 *GNU*)
4565 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4566 *)
4567 ac_count=0
4568 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4569 while :
4570 do
4571 cat "conftest.in" "conftest.in" >"conftest.tmp"
4572 mv "conftest.tmp" "conftest.in"
4573 cp "conftest.in" "conftest.nl"
4574 echo 'EGREP' >> "conftest.nl"
4575 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4577 ac_count=`expr $ac_count + 1`
4578 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4579 # Best one so far, save it but keep looking for a better one
4580 ac_cv_path_EGREP="$ac_path_EGREP"
4581 ac_path_EGREP_max=$ac_count
4582 fi
4583 # 10*(2^10) chars as input seems more than enough
4584 test $ac_count -gt 10 && break
4585 done
4586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4587 esac
4588
4589
4590 $ac_path_EGREP_found && break 3
4591 done
4592 done
4593
4594 done
4595 IFS=$as_save_IFS
4596
4597
4598 fi
4599
4600 EGREP="$ac_cv_path_EGREP"
4601 if test -z "$EGREP"; then
4602 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4603 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4604 { (exit 1); exit 1; }; }
4605 fi
4606
4607 else
4608 ac_cv_path_EGREP=$EGREP
4609 fi
4610
4611
4612 fi
4613 fi
4614 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4615 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4616 EGREP="$ac_cv_path_EGREP"
4617
4618
4619
4620 { echo "$as_me:$LINENO: checking for AIX" >&5
4621 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4622 cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 #ifdef _AIX
4629 yes
4630 #endif
4631
4632 _ACEOF
4633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "yes" >/dev/null 2>&1; then
4635 { echo "$as_me:$LINENO: result: yes" >&5
4636 echo "${ECHO_T}yes" >&6; }
4637 cat >>confdefs.h <<\_ACEOF
4638 #define _ALL_SOURCE 1
4639 _ACEOF
4640
4641 else
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4644 fi
4645 rm -f conftest*
4646
4647
4648
4649 cat >>confdefs.h <<\_ACEOF
4650 #define _GNU_SOURCE 1
4651 _ACEOF
4652
4653
4654
4655 ### Use -Wno-pointer-sign if the compiler supports it
4656 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4657 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4658 SAVE_CFLAGS="$CFLAGS"
4659 CFLAGS="$CFLAGS -Wno-pointer-sign"
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666
4667 int
4668 main ()
4669 {
4670
4671 ;
4672 return 0;
4673 }
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4692 has_option=yes
4693 else
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 has_option=no
4698 fi
4699
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 if test $has_option = yes; then
4702 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4703 fi
4704 { echo "$as_me:$LINENO: result: $has_option" >&5
4705 echo "${ECHO_T}$has_option" >&6; }
4706 CFLAGS="$SAVE_CFLAGS"
4707 unset has_option
4708 unset SAVE_CFLAGS
4709
4710 #### Some other nice autoconf tests.
4711
4712 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4713 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4714 LN_S=$as_ln_s
4715 if test "$LN_S" = "ln -s"; then
4716 { echo "$as_me:$LINENO: result: yes" >&5
4717 echo "${ECHO_T}yes" >&6; }
4718 else
4719 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4720 echo "${ECHO_T}no, using $LN_S" >&6; }
4721 fi
4722
4723 ac_ext=c
4724 ac_cpp='$CPP $CPPFLAGS'
4725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4728 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4729 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4730 # On Suns, sometimes $CPP names a directory.
4731 if test -n "$CPP" && test -d "$CPP"; then
4732 CPP=
4733 fi
4734 if test -z "$CPP"; then
4735 if test "${ac_cv_prog_CPP+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 # Double quotes because CPP needs to be expanded
4739 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4740 do
4741 ac_preproc_ok=false
4742 for ac_c_preproc_warn_flag in '' yes
4743 do
4744 # Use a header file that comes with gcc, so configuring glibc
4745 # with a fresh cross-compiler works.
4746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4747 # <limits.h> exists even on freestanding compilers.
4748 # On the NeXT, cc -E runs the code through the compiler's parser,
4749 # not just through cpp. "Syntax error" is here to catch this case.
4750 cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h. */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4756 #ifdef __STDC__
4757 # include <limits.h>
4758 #else
4759 # include <assert.h>
4760 #endif
4761 Syntax error
4762 _ACEOF
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4764 case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null && {
4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4778 }; then
4779 :
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 # Broken: fails on valid input.
4785 continue
4786 fi
4787
4788 rm -f conftest.err conftest.$ac_ext
4789
4790 # OK, works on sane cases. Now check whether nonexistent headers
4791 # can be detected and how.
4792 cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h. */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4798 #include <ac_nonexistent.h>
4799 _ACEOF
4800 if { (ac_try="$ac_cpp conftest.$ac_ext"
4801 case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804 esac
4805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } >/dev/null && {
4813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4814 test ! -s conftest.err
4815 }; then
4816 # Broken: success on invalid input.
4817 continue
4818 else
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4821
4822 # Passes both tests.
4823 ac_preproc_ok=:
4824 break
4825 fi
4826
4827 rm -f conftest.err conftest.$ac_ext
4828
4829 done
4830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4831 rm -f conftest.err conftest.$ac_ext
4832 if $ac_preproc_ok; then
4833 break
4834 fi
4835
4836 done
4837 ac_cv_prog_CPP=$CPP
4838
4839 fi
4840 CPP=$ac_cv_prog_CPP
4841 else
4842 ac_cv_prog_CPP=$CPP
4843 fi
4844 { echo "$as_me:$LINENO: result: $CPP" >&5
4845 echo "${ECHO_T}$CPP" >&6; }
4846 ac_preproc_ok=false
4847 for ac_c_preproc_warn_flag in '' yes
4848 do
4849 # Use a header file that comes with gcc, so configuring glibc
4850 # with a fresh cross-compiler works.
4851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4852 # <limits.h> exists even on freestanding compilers.
4853 # On the NeXT, cc -E runs the code through the compiler's parser,
4854 # not just through cpp. "Syntax error" is here to catch this case.
4855 cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h. */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4861 #ifdef __STDC__
4862 # include <limits.h>
4863 #else
4864 # include <assert.h>
4865 #endif
4866 Syntax error
4867 _ACEOF
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4869 case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null && {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4883 }; then
4884 :
4885 else
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889 # Broken: fails on valid input.
4890 continue
4891 fi
4892
4893 rm -f conftest.err conftest.$ac_ext
4894
4895 # OK, works on sane cases. Now check whether nonexistent headers
4896 # can be detected and how.
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4903 #include <ac_nonexistent.h>
4904 _ACEOF
4905 if { (ac_try="$ac_cpp conftest.$ac_ext"
4906 case "(($ac_try" in
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4909 esac
4910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4912 ac_status=$?
4913 grep -v '^ *+' conftest.er1 >conftest.err
4914 rm -f conftest.er1
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } >/dev/null && {
4918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4919 test ! -s conftest.err
4920 }; then
4921 # Broken: success on invalid input.
4922 continue
4923 else
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4926
4927 # Passes both tests.
4928 ac_preproc_ok=:
4929 break
4930 fi
4931
4932 rm -f conftest.err conftest.$ac_ext
4933
4934 done
4935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4936 rm -f conftest.err conftest.$ac_ext
4937 if $ac_preproc_ok; then
4938 :
4939 else
4940 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4941 See \`config.log' for more details." >&5
4942 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4943 See \`config.log' for more details." >&2;}
4944 { (exit 1); exit 1; }; }
4945 fi
4946
4947 ac_ext=c
4948 ac_cpp='$CPP $CPPFLAGS'
4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952
4953 # Find a good install program. We prefer a C program (faster),
4954 # so one script is as good as another. But avoid the broken or
4955 # incompatible versions:
4956 # SysV /etc/install, /usr/sbin/install
4957 # SunOS /usr/etc/install
4958 # IRIX /sbin/install
4959 # AIX /bin/install
4960 # AmigaOS /C/install, which installs bootblocks on floppy discs
4961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4964 # OS/2's system install, which has a completely different semantic
4965 # ./install, which can be erroneously created by make from ./install.sh.
4966 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4968 if test -z "$INSTALL"; then
4969 if test "${ac_cv_path_install+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 # Account for people who put trailing slashes in PATH elements.
4978 case $as_dir/ in
4979 ./ | .// | /cC/* | \
4980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4982 /usr/ucb/* ) ;;
4983 *)
4984 # OSF1 and SCO ODT 3.0 have their own names for install.
4985 # Don't use installbsd from OSF since it installs stuff as root
4986 # by default.
4987 for ac_prog in ginstall scoinst install; do
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4990 if test $ac_prog = install &&
4991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4992 # AIX install. It has an incompatible calling convention.
4993 :
4994 elif test $ac_prog = install &&
4995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4996 # program-specific install script used by HP pwplus--don't use.
4997 :
4998 else
4999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5000 break 3
5001 fi
5002 fi
5003 done
5004 done
5005 ;;
5006 esac
5007 done
5008 IFS=$as_save_IFS
5009
5010
5011 fi
5012 if test "${ac_cv_path_install+set}" = set; then
5013 INSTALL=$ac_cv_path_install
5014 else
5015 # As a last resort, use the slow shell script. Don't cache a
5016 # value for INSTALL within a source directory, because that will
5017 # break other packages using the cache if that directory is
5018 # removed, or if the value is a relative name.
5019 INSTALL=$ac_install_sh
5020 fi
5021 fi
5022 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5023 echo "${ECHO_T}$INSTALL" >&6; }
5024
5025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5026 # It thinks the first close brace ends the variable substitution.
5027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5028
5029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5030
5031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5032
5033 if test "x$RANLIB" = x; then
5034 if test -n "$ac_tool_prefix"; then
5035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5039 if test "${ac_cv_prog_RANLIB+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 if test -n "$RANLIB"; then
5043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5055 fi
5056 done
5057 done
5058 IFS=$as_save_IFS
5059
5060 fi
5061 fi
5062 RANLIB=$ac_cv_prog_RANLIB
5063 if test -n "$RANLIB"; then
5064 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5065 echo "${ECHO_T}$RANLIB" >&6; }
5066 else
5067 { echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6; }
5069 fi
5070
5071
5072 fi
5073 if test -z "$ac_cv_prog_RANLIB"; then
5074 ac_ct_RANLIB=$RANLIB
5075 # Extract the first word of "ranlib", so it can be a program name with args.
5076 set dummy ranlib; ac_word=$2
5077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082 if test -n "$ac_ct_RANLIB"; then
5083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092 ac_cv_prog_ac_ct_RANLIB="ranlib"
5093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 break 2
5095 fi
5096 done
5097 done
5098 IFS=$as_save_IFS
5099
5100 fi
5101 fi
5102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5103 if test -n "$ac_ct_RANLIB"; then
5104 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5105 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5106 else
5107 { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5109 fi
5110
5111 if test "x$ac_ct_RANLIB" = x; then
5112 RANLIB=":"
5113 else
5114 case $cross_compiling:$ac_tool_warned in
5115 yes:)
5116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5117 whose name does not start with the host triplet. If you think this
5118 configuration is useful to you, please write to autoconf@gnu.org." >&5
5119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5120 whose name does not start with the host triplet. If you think this
5121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5122 ac_tool_warned=yes ;;
5123 esac
5124 RANLIB=$ac_ct_RANLIB
5125 fi
5126 else
5127 RANLIB="$ac_cv_prog_RANLIB"
5128 fi
5129
5130 fi
5131 # Extract the first word of "install-info", so it can be a program name with args.
5132 set dummy install-info; ac_word=$2
5133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5135 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 case $INSTALL_INFO in
5139 [\\/]* | ?:[\\/]*)
5140 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5141 ;;
5142 *)
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 ;;
5159 esac
5160 fi
5161 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5162 if test -n "$INSTALL_INFO"; then
5163 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5164 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5165 else
5166 { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5168 fi
5169
5170
5171 # Extract the first word of "install-info", so it can be a program name with args.
5172 set dummy install-info; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178 case $INSTALL_INFO in
5179 [\\/]* | ?:[\\/]*)
5180 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5181 ;;
5182 *)
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in /usr/sbin
5185 do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194 done
5195 done
5196 IFS=$as_save_IFS
5197
5198 ;;
5199 esac
5200 fi
5201 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5202 if test -n "$INSTALL_INFO"; then
5203 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5204 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5205 else
5206 { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5208 fi
5209
5210
5211 # Extract the first word of "install-info", so it can be a program name with args.
5212 set dummy install-info; ac_word=$2
5213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5215 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 case $INSTALL_INFO in
5219 [\\/]* | ?:[\\/]*)
5220 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5221 ;;
5222 *)
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in /sbin
5225 do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5233 fi
5234 done
5235 done
5236 IFS=$as_save_IFS
5237
5238 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5239 ;;
5240 esac
5241 fi
5242 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5243 if test -n "$INSTALL_INFO"; then
5244 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5245 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5246 else
5247 { echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6; }
5249 fi
5250
5251
5252 # Extract the first word of "gzip", so it can be a program name with args.
5253 set dummy gzip; ac_word=$2
5254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5256 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259 case $GZIP_PROG in
5260 [\\/]* | ?:[\\/]*)
5261 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5262 ;;
5263 *)
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275 done
5276 done
5277 IFS=$as_save_IFS
5278
5279 ;;
5280 esac
5281 fi
5282 GZIP_PROG=$ac_cv_path_GZIP_PROG
5283 if test -n "$GZIP_PROG"; then
5284 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5285 echo "${ECHO_T}$GZIP_PROG" >&6; }
5286 else
5287 { echo "$as_me:$LINENO: result: no" >&5
5288 echo "${ECHO_T}no" >&6; }
5289 fi
5290
5291
5292
5293
5294 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5295 then
5296 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5297 fi
5298
5299 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5300 then
5301 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5302 fi
5303
5304
5305 late_LDFLAGS=$LDFLAGS
5306 if test "$GCC" = yes; then
5307 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5308 else
5309 LDFLAGS="$LDFLAGS -znocombreloc"
5310 fi
5311
5312 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5313 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5314 cat >conftest.$ac_ext <<_ACEOF
5315 main(){return 0;}
5316 _ACEOF
5317 rm -f conftest.$ac_objext conftest$ac_exeext
5318 if { (ac_try="$ac_link"
5319 case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322 esac
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_link") 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_c_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest$ac_exeext &&
5334 $as_test_x conftest$ac_exeext; then
5335 { echo "$as_me:$LINENO: result: yes" >&5
5336 echo "${ECHO_T}yes" >&6; }
5337 else
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341 LDFLAGS=$late_LDFLAGS
5342 { echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6; }
5344 fi
5345
5346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5347 conftest$ac_exeext conftest.$ac_ext
5348
5349 #### Extract some information from the operating system and machine files.
5350
5351 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5352 - which libraries the lib-src programs will want, and
5353 - whether the GNU malloc routines are usable..." >&5
5354 echo "$as_me: checking the machine- and system-dependent files to find out
5355 - which libraries the lib-src programs will want, and
5356 - whether the GNU malloc routines are usable..." >&6;}
5357
5358 ### First figure out CFLAGS (which we use for running the compiler here)
5359 ### and REAL_CFLAGS (which we use for real compilation).
5360 ### The two are the same except on a few systems, where they are made
5361 ### different to work around various lossages. For example,
5362 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5363 ### as implying static linking.
5364
5365 ### If the CFLAGS env var is specified, we use that value
5366 ### instead of the default.
5367
5368 ### It's not important that this name contain the PID; you can't run
5369 ### two configures in the same directory and have anything work
5370 ### anyway.
5371 tempcname="conftest.c"
5372
5373 echo '
5374 #include "'${srcdir}'/src/'${opsysfile}'"
5375 #include "'${srcdir}'/src/'${machfile}'"
5376 #ifndef LIBS_MACHINE
5377 #define LIBS_MACHINE
5378 #endif
5379 #ifndef LIBS_SYSTEM
5380 #define LIBS_SYSTEM
5381 #endif
5382 #ifndef C_SWITCH_SYSTEM
5383 #define C_SWITCH_SYSTEM
5384 #endif
5385 #ifndef C_SWITCH_MACHINE
5386 #define C_SWITCH_MACHINE
5387 #endif
5388 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5389 configure___ c_switch_system=C_SWITCH_SYSTEM
5390 configure___ c_switch_machine=C_SWITCH_MACHINE
5391
5392 #ifndef LIB_X11_LIB
5393 #define LIB_X11_LIB -lX11
5394 #endif
5395
5396 #ifndef LIBX11_MACHINE
5397 #define LIBX11_MACHINE
5398 #endif
5399
5400 #ifndef LIBX11_SYSTEM
5401 #define LIBX11_SYSTEM
5402 #endif
5403 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5404
5405 #ifdef UNEXEC
5406 configure___ unexec=UNEXEC
5407 #else
5408 configure___ unexec=unexec.o
5409 #endif
5410
5411 #ifdef SYSTEM_MALLOC
5412 configure___ system_malloc=yes
5413 #else
5414 configure___ system_malloc=no
5415 #endif
5416
5417 #ifdef USE_MMAP_FOR_BUFFERS
5418 configure___ use_mmap_for_buffers=yes
5419 #else
5420 configure___ use_mmap_for_buffers=no
5421 #endif
5422
5423 #ifndef C_DEBUG_SWITCH
5424 #define C_DEBUG_SWITCH -g
5425 #endif
5426
5427 #ifndef C_OPTIMIZE_SWITCH
5428 #ifdef __GNUC__
5429 #define C_OPTIMIZE_SWITCH -O2
5430 #else
5431 #define C_OPTIMIZE_SWITCH -O
5432 #endif
5433 #endif
5434
5435 #ifndef C_WARNINGS_SWITCH
5436 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5437 #endif
5438
5439 #ifndef LD_SWITCH_MACHINE
5440 #define LD_SWITCH_MACHINE
5441 #endif
5442
5443 #ifndef LD_SWITCH_SYSTEM
5444 #define LD_SWITCH_SYSTEM
5445 #endif
5446
5447 #ifndef LD_SWITCH_X_SITE_AUX
5448 #define LD_SWITCH_X_SITE_AUX
5449 #endif
5450
5451 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5452 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5453
5454 #ifdef THIS_IS_CONFIGURE
5455
5456 /* Get the CFLAGS for tests in configure. */
5457 #ifdef __GNUC__
5458 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5459 #else
5460 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5461 #endif
5462
5463 #else /* not THIS_IS_CONFIGURE */
5464
5465 /* Get the CFLAGS for real compilation. */
5466 #ifdef __GNUC__
5467 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5468 #else
5469 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5470 #endif
5471
5472 #endif /* not THIS_IS_CONFIGURE */
5473 ' > ${tempcname}
5474
5475 # The value of CPP is a quoted variable reference, so we need to do this
5476 # to get its actual value...
5477 CPP=`eval "echo $CPP"`
5478 eval `${CPP} -Isrc ${tempcname} \
5479 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5480 if test "x$SPECIFIED_CFLAGS" = x; then
5481 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5482 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5483 else
5484 REAL_CFLAGS="$CFLAGS"
5485 fi
5486 rm ${tempcname}
5487
5488 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5489
5490 ### Make sure subsequent tests use flags consistent with the build flags.
5491
5492 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5493 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5494 else
5495 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5496 fi
5497
5498
5499
5500 # Check whether --enable-largefile was given.
5501 if test "${enable_largefile+set}" = set; then
5502 enableval=$enable_largefile;
5503 fi
5504
5505 if test "$enable_largefile" != no; then
5506
5507 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5508 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5509 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 ac_cv_sys_largefile_CC=no
5513 if test "$GCC" != yes; then
5514 ac_save_CC=$CC
5515 while :; do
5516 # IRIX 6.2 and later do not support large files by default,
5517 # so use the C compiler's -n32 option if that helps.
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h. */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 #include <sys/types.h>
5525 /* Check that off_t can represent 2**63 - 1 correctly.
5526 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5527 since some C++ compilers masquerading as C compilers
5528 incorrectly reject 9223372036854775807. */
5529 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5531 && LARGE_OFF_T % 2147483647 == 1)
5532 ? 1 : -1];
5533 int
5534 main ()
5535 {
5536
5537 ;
5538 return 0;
5539 }
5540 _ACEOF
5541 rm -f conftest.$ac_objext
5542 if { (ac_try="$ac_compile"
5543 case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546 esac
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compile") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && {
5555 test -z "$ac_c_werror_flag" ||
5556 test ! -s conftest.err
5557 } && test -s conftest.$ac_objext; then
5558 break
5559 else
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563
5564 fi
5565
5566 rm -f core conftest.err conftest.$ac_objext
5567 CC="$CC -n32"
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5570 case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compile") 2>conftest.er1
5576 ac_status=$?
5577 grep -v '^ *+' conftest.er1 >conftest.err
5578 rm -f conftest.er1
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_c_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.$ac_objext; then
5585 ac_cv_sys_largefile_CC=' -n32'; break
5586 else
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5589
5590
5591 fi
5592
5593 rm -f core conftest.err conftest.$ac_objext
5594 break
5595 done
5596 CC=$ac_save_CC
5597 rm -f conftest.$ac_ext
5598 fi
5599 fi
5600 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5601 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5602 if test "$ac_cv_sys_largefile_CC" != no; then
5603 CC=$CC$ac_cv_sys_largefile_CC
5604 fi
5605
5606 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5607 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5608 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 else
5611 while :; do
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 /* Check that off_t can represent 2**63 - 1 correctly.
5620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5621 since some C++ compilers masquerading as C compilers
5622 incorrectly reject 9223372036854775807. */
5623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5625 && LARGE_OFF_T % 2147483647 == 1)
5626 ? 1 : -1];
5627 int
5628 main ()
5629 {
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 rm -f conftest.$ac_objext
5636 if { (ac_try="$ac_compile"
5637 case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5640 esac
5641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5642 (eval "$ac_compile") 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && {
5649 test -z "$ac_c_werror_flag" ||
5650 test ! -s conftest.err
5651 } && test -s conftest.$ac_objext; then
5652 ac_cv_sys_file_offset_bits=no; break
5653 else
5654 echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5656
5657
5658 fi
5659
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 #define _FILE_OFFSET_BITS 64
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5676 ? 1 : -1];
5677 int
5678 main ()
5679 {
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 rm -f conftest.$ac_objext
5686 if { (ac_try="$ac_compile"
5687 case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_compile") 2>conftest.er1
5693 ac_status=$?
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && {
5699 test -z "$ac_c_werror_flag" ||
5700 test ! -s conftest.err
5701 } && test -s conftest.$ac_objext; then
5702 ac_cv_sys_file_offset_bits=64; break
5703 else
5704 echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5706
5707
5708 fi
5709
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 ac_cv_sys_file_offset_bits=unknown
5712 break
5713 done
5714 fi
5715 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5716 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5717 case $ac_cv_sys_file_offset_bits in #(
5718 no | unknown) ;;
5719 *)
5720 cat >>confdefs.h <<_ACEOF
5721 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5722 _ACEOF
5723 ;;
5724 esac
5725 rm -f conftest*
5726 if test $ac_cv_sys_file_offset_bits = unknown; then
5727 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5728 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5729 if test "${ac_cv_sys_large_files+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732 while :; do
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 #include <sys/types.h>
5740 /* Check that off_t can represent 2**63 - 1 correctly.
5741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5742 since some C++ compilers masquerading as C compilers
5743 incorrectly reject 9223372036854775807. */
5744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5746 && LARGE_OFF_T % 2147483647 == 1)
5747 ? 1 : -1];
5748 int
5749 main ()
5750 {
5751
5752 ;
5753 return 0;
5754 }
5755 _ACEOF
5756 rm -f conftest.$ac_objext
5757 if { (ac_try="$ac_compile"
5758 case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5761 esac
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_compile") 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest.$ac_objext; then
5773 ac_cv_sys_large_files=no; break
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778
5779 fi
5780
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #define _LARGE_FILES 1
5789 #include <sys/types.h>
5790 /* Check that off_t can represent 2**63 - 1 correctly.
5791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5792 since some C++ compilers masquerading as C compilers
5793 incorrectly reject 9223372036854775807. */
5794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5796 && LARGE_OFF_T % 2147483647 == 1)
5797 ? 1 : -1];
5798 int
5799 main ()
5800 {
5801
5802 ;
5803 return 0;
5804 }
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5808 case "(($ac_try" in
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.$ac_objext; then
5823 ac_cv_sys_large_files=1; break
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828
5829 fi
5830
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 ac_cv_sys_large_files=unknown
5833 break
5834 done
5835 fi
5836 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5837 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5838 case $ac_cv_sys_large_files in #(
5839 no | unknown) ;;
5840 *)
5841 cat >>confdefs.h <<_ACEOF
5842 #define _LARGE_FILES $ac_cv_sys_large_files
5843 _ACEOF
5844 ;;
5845 esac
5846 rm -f conftest*
5847 fi
5848 fi
5849
5850
5851
5852 ### The standard library on x86-64 GNU/Linux distributions can
5853 ### be located in either /usr/lib64 or /usr/lib.
5854 case "${canonical}" in
5855 x86_64-*-linux-gnu* )
5856 if test -d /usr/lib64; then
5857
5858 cat >>confdefs.h <<\_ACEOF
5859 #define HAVE_X86_64_LIB64_DIR 1
5860 _ACEOF
5861
5862 fi
5863 esac
5864
5865
5866
5867
5868 if test "${with_sound}" != "no"; then
5869 # Sound support for GNU/Linux and the free BSDs.
5870 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5871 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5872 if test "${ac_cv_header_stdc+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <stdlib.h>
5882 #include <stdarg.h>
5883 #include <string.h>
5884 #include <float.h>
5885
5886 int
5887 main ()
5888 {
5889
5890 ;
5891 return 0;
5892 }
5893 _ACEOF
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5896 case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899 esac
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_compile") 2>conftest.er1
5902 ac_status=$?
5903 grep -v '^ *+' conftest.er1 >conftest.err
5904 rm -f conftest.er1
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && {
5908 test -z "$ac_c_werror_flag" ||
5909 test ! -s conftest.err
5910 } && test -s conftest.$ac_objext; then
5911 ac_cv_header_stdc=yes
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5915
5916 ac_cv_header_stdc=no
5917 fi
5918
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920
5921 if test $ac_cv_header_stdc = yes; then
5922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 #include <string.h>
5930
5931 _ACEOF
5932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5933 $EGREP "memchr" >/dev/null 2>&1; then
5934 :
5935 else
5936 ac_cv_header_stdc=no
5937 fi
5938 rm -f conftest*
5939
5940 fi
5941
5942 if test $ac_cv_header_stdc = yes; then
5943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 #include <stdlib.h>
5951
5952 _ACEOF
5953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5954 $EGREP "free" >/dev/null 2>&1; then
5955 :
5956 else
5957 ac_cv_header_stdc=no
5958 fi
5959 rm -f conftest*
5960
5961 fi
5962
5963 if test $ac_cv_header_stdc = yes; then
5964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5965 if test "$cross_compiling" = yes; then
5966 :
5967 else
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #include <ctype.h>
5975 #include <stdlib.h>
5976 #if ((' ' & 0x0FF) == 0x020)
5977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5979 #else
5980 # define ISLOWER(c) \
5981 (('a' <= (c) && (c) <= 'i') \
5982 || ('j' <= (c) && (c) <= 'r') \
5983 || ('s' <= (c) && (c) <= 'z'))
5984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5985 #endif
5986
5987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5988 int
5989 main ()
5990 {
5991 int i;
5992 for (i = 0; i < 256; i++)
5993 if (XOR (islower (i), ISLOWER (i))
5994 || toupper (i) != TOUPPER (i))
5995 return 2;
5996 return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest$ac_exeext
6000 if { (ac_try="$ac_link"
6001 case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004 esac
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_link") 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6010 { (case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_try") 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 :
6020 else
6021 echo "$as_me: program exited with status $ac_status" >&5
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 ( exit $ac_status )
6026 ac_cv_header_stdc=no
6027 fi
6028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6029 fi
6030
6031
6032 fi
6033 fi
6034 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6035 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6036 if test $ac_cv_header_stdc = yes; then
6037
6038 cat >>confdefs.h <<\_ACEOF
6039 #define STDC_HEADERS 1
6040 _ACEOF
6041
6042 fi
6043
6044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6055 inttypes.h stdint.h unistd.h
6056 do
6057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h. */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 $ac_includes_default
6070
6071 #include <$ac_header>
6072 _ACEOF
6073 rm -f conftest.$ac_objext
6074 if { (ac_try="$ac_compile"
6075 case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078 esac
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_compile") 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && {
6087 test -z "$ac_c_werror_flag" ||
6088 test ! -s conftest.err
6089 } && test -s conftest.$ac_objext; then
6090 eval "$as_ac_Header=yes"
6091 else
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 eval "$as_ac_Header=no"
6096 fi
6097
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 fi
6100 ac_res=`eval echo '${'$as_ac_Header'}'`
6101 { echo "$as_me:$LINENO: result: $ac_res" >&5
6102 echo "${ECHO_T}$ac_res" >&6; }
6103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6104 cat >>confdefs.h <<_ACEOF
6105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6106 _ACEOF
6107
6108 fi
6109
6110 done
6111
6112
6113
6114
6115
6116 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6117 do
6118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 fi
6125 ac_res=`eval echo '${'$as_ac_Header'}'`
6126 { echo "$as_me:$LINENO: result: $ac_res" >&5
6127 echo "${ECHO_T}$ac_res" >&6; }
6128 else
6129 # Is the header compilable?
6130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h. */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 $ac_includes_default
6139 #include <$ac_header>
6140 _ACEOF
6141 rm -f conftest.$ac_objext
6142 if { (ac_try="$ac_compile"
6143 case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6146 esac
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_compile") 2>conftest.er1
6149 ac_status=$?
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } && {
6155 test -z "$ac_c_werror_flag" ||
6156 test ! -s conftest.err
6157 } && test -s conftest.$ac_objext; then
6158 ac_header_compiler=yes
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6162
6163 ac_header_compiler=no
6164 fi
6165
6166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6168 echo "${ECHO_T}$ac_header_compiler" >&6; }
6169
6170 # Is the header present?
6171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <$ac_header>
6180 _ACEOF
6181 if { (ac_try="$ac_cpp conftest.$ac_ext"
6182 case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185 esac
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } >/dev/null && {
6194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6195 test ! -s conftest.err
6196 }; then
6197 ac_header_preproc=yes
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6201
6202 ac_header_preproc=no
6203 fi
6204
6205 rm -f conftest.err conftest.$ac_ext
6206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6207 echo "${ECHO_T}$ac_header_preproc" >&6; }
6208
6209 # So? What about this header?
6210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6211 yes:no: )
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6216 ac_header_preproc=yes
6217 ;;
6218 no:yes:* )
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6231
6232 ;;
6233 esac
6234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239 eval "$as_ac_Header=\$ac_header_preproc"
6240 fi
6241 ac_res=`eval echo '${'$as_ac_Header'}'`
6242 { echo "$as_me:$LINENO: result: $ac_res" >&5
6243 echo "${ECHO_T}$ac_res" >&6; }
6244
6245 fi
6246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6247 cat >>confdefs.h <<_ACEOF
6248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6249 _ACEOF
6250
6251 fi
6252
6253 done
6254
6255 # Emulation library used on NetBSD.
6256 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6257 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6258 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261 ac_check_lib_save_LIBS=$LIBS
6262 LIBS="-lossaudio $LIBS"
6263 cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h. */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269
6270 /* Override any GCC internal prototype to avoid an error.
6271 Use char because int might match the return type of a GCC
6272 builtin and then its argument prototype would still apply. */
6273 #ifdef __cplusplus
6274 extern "C"
6275 #endif
6276 char _oss_ioctl ();
6277 int
6278 main ()
6279 {
6280 return _oss_ioctl ();
6281 ;
6282 return 0;
6283 }
6284 _ACEOF
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (ac_try="$ac_link"
6287 case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290 esac
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_link") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } && {
6299 test -z "$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6301 } && test -s conftest$ac_exeext &&
6302 $as_test_x conftest$ac_exeext; then
6303 ac_cv_lib_ossaudio__oss_ioctl=yes
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6307
6308 ac_cv_lib_ossaudio__oss_ioctl=no
6309 fi
6310
6311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6312 conftest$ac_exeext conftest.$ac_ext
6313 LIBS=$ac_check_lib_save_LIBS
6314 fi
6315 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6316 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6317 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6318 LIBSOUND=-lossaudio
6319 else
6320 LIBSOUND=
6321 fi
6322
6323
6324
6325 ALSA_REQUIRED=1.0.0
6326 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6327 if test "X${with_pkg_config_prog}" != X; then
6328 PKG_CONFIG="${with_pkg_config_prog}"
6329 fi
6330
6331 succeeded=no
6332
6333 if test -z "$PKG_CONFIG"; then
6334 # Extract the first word of "pkg-config", so it can be a program name with args.
6335 set dummy pkg-config; ac_word=$2
6336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6338 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341 case $PKG_CONFIG in
6342 [\\/]* | ?:[\\/]*)
6343 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6344 ;;
6345 *)
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6362 ;;
6363 esac
6364 fi
6365 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6366 if test -n "$PKG_CONFIG"; then
6367 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6368 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6369 else
6370 { echo "$as_me:$LINENO: result: no" >&5
6371 echo "${ECHO_T}no" >&6; }
6372 fi
6373
6374
6375 fi
6376
6377 if test "$PKG_CONFIG" = "no" ; then
6378 HAVE_ALSA=no
6379 else
6380 PKG_CONFIG_MIN_VERSION=0.9.0
6381 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6382 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6383 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6384
6385 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6386 { echo "$as_me:$LINENO: result: yes" >&5
6387 echo "${ECHO_T}yes" >&6; }
6388 succeeded=yes
6389
6390 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6391 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6392 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6393 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6394 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6395
6396 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6397 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6398 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6399 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6400 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6401 else
6402 { echo "$as_me:$LINENO: result: no" >&5
6403 echo "${ECHO_T}no" >&6; }
6404 ALSA_CFLAGS=""
6405 ALSA_LIBS=""
6406 ## If we have a custom action on failure, don't print errors, but
6407 ## do set a variable so people can do so.
6408 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6409
6410 fi
6411
6412
6413
6414 else
6415 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6416 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6417 fi
6418 fi
6419
6420 if test $succeeded = yes; then
6421 HAVE_ALSA=yes
6422 else
6423 HAVE_ALSA=no
6424 fi
6425
6426 if test $HAVE_ALSA = yes; then
6427 SAVE_CFLAGS="$CFLAGS"
6428 SAVE_LDFLAGS="$LDFLAGS"
6429 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6430 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <asoundlib.h>
6438 int
6439 main ()
6440 {
6441 snd_lib_error_set_handler (0);
6442 ;
6443 return 0;
6444 }
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6448 case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && {
6460 test -z "$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 } && test -s conftest.$ac_objext; then
6463 emacs_alsa_normal=yes
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 emacs_alsa_normal=no
6469 fi
6470
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472 if test "$emacs_alsa_normal" != yes; then
6473 cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h. */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 #include <alsa/asoundlib.h>
6480 int
6481 main ()
6482 {
6483 snd_lib_error_set_handler (0);
6484 ;
6485 return 0;
6486 }
6487 _ACEOF
6488 rm -f conftest.$ac_objext
6489 if { (ac_try="$ac_compile"
6490 case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compile") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && {
6502 test -z "$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 } && test -s conftest.$ac_objext; then
6505 emacs_alsa_subdir=yes
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6509
6510 emacs_alsa_subdir=no
6511 fi
6512
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 if test "$emacs_alsa_subdir" != yes; then
6515 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6516 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6517 { (exit 1); exit 1; }; }
6518 fi
6519 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6520 fi
6521
6522 CFLAGS="$SAVE_CFLAGS"
6523 LDFLAGS="$SAVE_LDFLAGS"
6524 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6525 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6526
6527 cat >>confdefs.h <<\_ACEOF
6528 #define HAVE_ALSA 1
6529 _ACEOF
6530
6531 fi
6532
6533 fi
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6561 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6562 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6563 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6564 sys/utsname.h pwd.h
6565 do
6566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 fi
6573 ac_res=`eval echo '${'$as_ac_Header'}'`
6574 { echo "$as_me:$LINENO: result: $ac_res" >&5
6575 echo "${ECHO_T}$ac_res" >&6; }
6576 else
6577 # Is the header compilable?
6578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6587 #include <$ac_header>
6588 _ACEOF
6589 rm -f conftest.$ac_objext
6590 if { (ac_try="$ac_compile"
6591 case "(($ac_try" in
6592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6594 esac
6595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6596 (eval "$ac_compile") 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } && {
6603 test -z "$ac_c_werror_flag" ||
6604 test ! -s conftest.err
6605 } && test -s conftest.$ac_objext; then
6606 ac_header_compiler=yes
6607 else
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611 ac_header_compiler=no
6612 fi
6613
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6616 echo "${ECHO_T}$ac_header_compiler" >&6; }
6617
6618 # Is the header present?
6619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <$ac_header>
6628 _ACEOF
6629 if { (ac_try="$ac_cpp conftest.$ac_ext"
6630 case "(($ac_try" in
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6633 esac
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } >/dev/null && {
6642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 }; then
6645 ac_header_preproc=yes
6646 else
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6649
6650 ac_header_preproc=no
6651 fi
6652
6653 rm -f conftest.err conftest.$ac_ext
6654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6655 echo "${ECHO_T}$ac_header_preproc" >&6; }
6656
6657 # So? What about this header?
6658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6659 yes:no: )
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6664 ac_header_preproc=yes
6665 ;;
6666 no:yes:* )
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6679
6680 ;;
6681 esac
6682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687 eval "$as_ac_Header=\$ac_header_preproc"
6688 fi
6689 ac_res=`eval echo '${'$as_ac_Header'}'`
6690 { echo "$as_me:$LINENO: result: $ac_res" >&5
6691 echo "${ECHO_T}$ac_res" >&6; }
6692
6693 fi
6694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6695 cat >>confdefs.h <<_ACEOF
6696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697 _ACEOF
6698
6699 fi
6700
6701 done
6702
6703
6704 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6705 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/personality.h>
6713 int
6714 main ()
6715 {
6716 personality (PER_LINUX32)
6717 ;
6718 return 0;
6719 }
6720 _ACEOF
6721 rm -f conftest.$ac_objext
6722 if { (ac_try="$ac_compile"
6723 case "(($ac_try" in
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6726 esac
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_compile") 2>conftest.er1
6729 ac_status=$?
6730 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -f conftest.er1
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } && {
6735 test -z "$ac_c_werror_flag" ||
6736 test ! -s conftest.err
6737 } && test -s conftest.$ac_objext; then
6738 emacs_cv_personality_linux32=yes
6739 else
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6742
6743 emacs_cv_personality_linux32=no
6744 fi
6745
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6748 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6749
6750 if test $emacs_cv_personality_linux32 = yes; then
6751
6752 cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_PERSONALITY_LINUX32 1
6754 _ACEOF
6755
6756 fi
6757
6758
6759 for ac_header in term.h
6760 do
6761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 #include <$ac_header>
6774 _ACEOF
6775 if { (ac_try="$ac_cpp conftest.$ac_ext"
6776 case "(($ac_try" in
6777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778 *) ac_try_echo=$ac_try;;
6779 esac
6780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } >/dev/null && {
6788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6790 }; then
6791 eval "$as_ac_Header=yes"
6792 else
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 eval "$as_ac_Header=no"
6797 fi
6798
6799 rm -f conftest.err conftest.$ac_ext
6800 fi
6801 ac_res=`eval echo '${'$as_ac_Header'}'`
6802 { echo "$as_me:$LINENO: result: $ac_res" >&5
6803 echo "${ECHO_T}$ac_res" >&6; }
6804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6805 cat >>confdefs.h <<_ACEOF
6806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6807 _ACEOF
6808
6809 fi
6810
6811 done
6812
6813 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6815 if test "${ac_cv_header_stdc+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818 cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h. */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 #include <stdlib.h>
6825 #include <stdarg.h>
6826 #include <string.h>
6827 #include <float.h>
6828
6829 int
6830 main ()
6831 {
6832
6833 ;
6834 return 0;
6835 }
6836 _ACEOF
6837 rm -f conftest.$ac_objext
6838 if { (ac_try="$ac_compile"
6839 case "(($ac_try" in
6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6842 esac
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844 (eval "$ac_compile") 2>conftest.er1
6845 ac_status=$?
6846 grep -v '^ *+' conftest.er1 >conftest.err
6847 rm -f conftest.er1
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && {
6851 test -z "$ac_c_werror_flag" ||
6852 test ! -s conftest.err
6853 } && test -s conftest.$ac_objext; then
6854 ac_cv_header_stdc=yes
6855 else
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6858
6859 ac_cv_header_stdc=no
6860 fi
6861
6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863
6864 if test $ac_cv_header_stdc = yes; then
6865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h. */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6872 #include <string.h>
6873
6874 _ACEOF
6875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6876 $EGREP "memchr" >/dev/null 2>&1; then
6877 :
6878 else
6879 ac_cv_header_stdc=no
6880 fi
6881 rm -f conftest*
6882
6883 fi
6884
6885 if test $ac_cv_header_stdc = yes; then
6886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6887 cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h. */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 #include <stdlib.h>
6894
6895 _ACEOF
6896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897 $EGREP "free" >/dev/null 2>&1; then
6898 :
6899 else
6900 ac_cv_header_stdc=no
6901 fi
6902 rm -f conftest*
6903
6904 fi
6905
6906 if test $ac_cv_header_stdc = yes; then
6907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6908 if test "$cross_compiling" = yes; then
6909 :
6910 else
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <ctype.h>
6918 #include <stdlib.h>
6919 #if ((' ' & 0x0FF) == 0x020)
6920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6922 #else
6923 # define ISLOWER(c) \
6924 (('a' <= (c) && (c) <= 'i') \
6925 || ('j' <= (c) && (c) <= 'r') \
6926 || ('s' <= (c) && (c) <= 'z'))
6927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6928 #endif
6929
6930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6931 int
6932 main ()
6933 {
6934 int i;
6935 for (i = 0; i < 256; i++)
6936 if (XOR (islower (i), ISLOWER (i))
6937 || toupper (i) != TOUPPER (i))
6938 return 2;
6939 return 0;
6940 }
6941 _ACEOF
6942 rm -f conftest$ac_exeext
6943 if { (ac_try="$ac_link"
6944 case "(($ac_try" in
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6947 esac
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949 (eval "$ac_link") 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6953 { (case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956 esac
6957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958 (eval "$ac_try") 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 :
6963 else
6964 echo "$as_me: program exited with status $ac_status" >&5
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6967
6968 ( exit $ac_status )
6969 ac_cv_header_stdc=no
6970 fi
6971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6972 fi
6973
6974
6975 fi
6976 fi
6977 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6978 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6979 if test $ac_cv_header_stdc = yes; then
6980
6981 cat >>confdefs.h <<\_ACEOF
6982 #define STDC_HEADERS 1
6983 _ACEOF
6984
6985 fi
6986
6987 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6988 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6989 if test "${ac_cv_header_time+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 #include <sys/types.h>
6999 #include <sys/time.h>
7000 #include <time.h>
7001
7002 int
7003 main ()
7004 {
7005 if ((struct tm *) 0)
7006 return 0;
7007 ;
7008 return 0;
7009 }
7010 _ACEOF
7011 rm -f conftest.$ac_objext
7012 if { (ac_try="$ac_compile"
7013 case "(($ac_try" in
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_compile") 2>conftest.er1
7019 ac_status=$?
7020 grep -v '^ *+' conftest.er1 >conftest.err
7021 rm -f conftest.er1
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } && {
7025 test -z "$ac_c_werror_flag" ||
7026 test ! -s conftest.err
7027 } && test -s conftest.$ac_objext; then
7028 ac_cv_header_time=yes
7029 else
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033 ac_cv_header_time=no
7034 fi
7035
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 fi
7038 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7039 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7040 if test $ac_cv_header_time = yes; then
7041
7042 cat >>confdefs.h <<\_ACEOF
7043 #define TIME_WITH_SYS_TIME 1
7044 _ACEOF
7045
7046 fi
7047
7048 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7049 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7050 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 $ac_includes_default
7060 int
7061 main ()
7062 {
7063 #ifndef sys_siglist
7064 (void) sys_siglist;
7065 #endif
7066
7067 ;
7068 return 0;
7069 }
7070 _ACEOF
7071 rm -f conftest.$ac_objext
7072 if { (ac_try="$ac_compile"
7073 case "(($ac_try" in
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7076 esac
7077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_c_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
7088 ac_cv_have_decl_sys_siglist=yes
7089 else
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7092
7093 ac_cv_have_decl_sys_siglist=no
7094 fi
7095
7096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 fi
7098 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7099 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7100 if test $ac_cv_have_decl_sys_siglist = yes; then
7101
7102 cat >>confdefs.h <<_ACEOF
7103 #define HAVE_DECL_SYS_SIGLIST 1
7104 _ACEOF
7105
7106
7107 else
7108 cat >>confdefs.h <<_ACEOF
7109 #define HAVE_DECL_SYS_SIGLIST 0
7110 _ACEOF
7111
7112
7113 fi
7114
7115
7116 if test $ac_cv_have_decl_sys_siglist != yes; then
7117 # For Tru64, at least:
7118 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7119 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7120 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 cat >conftest.$ac_ext <<_ACEOF
7124 /* confdefs.h. */
7125 _ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 $ac_includes_default
7130 int
7131 main ()
7132 {
7133 #ifndef __sys_siglist
7134 (void) __sys_siglist;
7135 #endif
7136
7137 ;
7138 return 0;
7139 }
7140 _ACEOF
7141 rm -f conftest.$ac_objext
7142 if { (ac_try="$ac_compile"
7143 case "(($ac_try" in
7144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145 *) ac_try_echo=$ac_try;;
7146 esac
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148 (eval "$ac_compile") 2>conftest.er1
7149 ac_status=$?
7150 grep -v '^ *+' conftest.er1 >conftest.err
7151 rm -f conftest.er1
7152 cat conftest.err >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && {
7155 test -z "$ac_c_werror_flag" ||
7156 test ! -s conftest.err
7157 } && test -s conftest.$ac_objext; then
7158 ac_cv_have_decl___sys_siglist=yes
7159 else
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7162
7163 ac_cv_have_decl___sys_siglist=no
7164 fi
7165
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 fi
7168 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7169 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7170 if test $ac_cv_have_decl___sys_siglist = yes; then
7171
7172 cat >>confdefs.h <<_ACEOF
7173 #define HAVE_DECL___SYS_SIGLIST 1
7174 _ACEOF
7175
7176
7177 else
7178 cat >>confdefs.h <<_ACEOF
7179 #define HAVE_DECL___SYS_SIGLIST 0
7180 _ACEOF
7181
7182
7183 fi
7184
7185
7186 if test $ac_cv_have_decl___sys_siglist = yes; then
7187
7188 cat >>confdefs.h <<\_ACEOF
7189 #define sys_siglist __sys_siglist
7190 _ACEOF
7191
7192 fi
7193 fi
7194 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7195 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7196 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199 cat >conftest.$ac_ext <<_ACEOF
7200 /* confdefs.h. */
7201 _ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7205 #include <sys/types.h>
7206 #include <sys/wait.h>
7207 #ifndef WEXITSTATUS
7208 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7209 #endif
7210 #ifndef WIFEXITED
7211 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7212 #endif
7213
7214 int
7215 main ()
7216 {
7217 int s;
7218 wait (&s);
7219 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7220 ;
7221 return 0;
7222 }
7223 _ACEOF
7224 rm -f conftest.$ac_objext
7225 if { (ac_try="$ac_compile"
7226 case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7229 esac
7230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231 (eval "$ac_compile") 2>conftest.er1
7232 ac_status=$?
7233 grep -v '^ *+' conftest.er1 >conftest.err
7234 rm -f conftest.er1
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
7241 ac_cv_header_sys_wait_h=yes
7242 else
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7245
7246 ac_cv_header_sys_wait_h=no
7247 fi
7248
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250 fi
7251 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7252 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7253 if test $ac_cv_header_sys_wait_h = yes; then
7254
7255 cat >>confdefs.h <<\_ACEOF
7256 #define HAVE_SYS_WAIT_H 1
7257 _ACEOF
7258
7259 fi
7260
7261
7262 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7263 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7264 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267 cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h. */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 #ifdef TIME_WITH_SYS_TIME
7274 #include <sys/time.h>
7275 #include <time.h>
7276 #else
7277 #ifdef HAVE_SYS_TIME_H
7278 #include <sys/time.h>
7279 #else
7280 #include <time.h>
7281 #endif
7282 #endif
7283 #ifdef HAVE_UTIME_H
7284 #include <utime.h>
7285 #endif
7286 int
7287 main ()
7288 {
7289 static struct utimbuf x; x.actime = x.modtime;
7290 ;
7291 return 0;
7292 }
7293 _ACEOF
7294 rm -f conftest.$ac_objext
7295 if { (ac_try="$ac_compile"
7296 case "(($ac_try" in
7297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298 *) ac_try_echo=$ac_try;;
7299 esac
7300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7301 (eval "$ac_compile") 2>conftest.er1
7302 ac_status=$?
7303 grep -v '^ *+' conftest.er1 >conftest.err
7304 rm -f conftest.er1
7305 cat conftest.err >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } && {
7308 test -z "$ac_c_werror_flag" ||
7309 test ! -s conftest.err
7310 } && test -s conftest.$ac_objext; then
7311 emacs_cv_struct_utimbuf=yes
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7315
7316 emacs_cv_struct_utimbuf=no
7317 fi
7318
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 fi
7321 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7322 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7323 if test $emacs_cv_struct_utimbuf = yes; then
7324
7325 cat >>confdefs.h <<\_ACEOF
7326 #define HAVE_STRUCT_UTIMBUF 1
7327 _ACEOF
7328
7329 fi
7330
7331 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7332 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7333 if test "${ac_cv_type_signal+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336 cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h. */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 #include <sys/types.h>
7343 #include <signal.h>
7344
7345 int
7346 main ()
7347 {
7348 return *(signal (0, 0)) (0) == 1;
7349 ;
7350 return 0;
7351 }
7352 _ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (ac_try="$ac_compile"
7355 case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358 esac
7359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.$ac_objext; then
7370 ac_cv_type_signal=int
7371 else
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7374
7375 ac_cv_type_signal=void
7376 fi
7377
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 fi
7380 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7381 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7382
7383 cat >>confdefs.h <<_ACEOF
7384 #define RETSIGTYPE $ac_cv_type_signal
7385 _ACEOF
7386
7387
7388
7389 { echo "$as_me:$LINENO: checking for speed_t" >&5
7390 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7391 if test "${emacs_cv_speed_t+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394 cat >conftest.$ac_ext <<_ACEOF
7395 /* confdefs.h. */
7396 _ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <termios.h>
7401 int
7402 main ()
7403 {
7404 speed_t x = 1;
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (ac_try="$ac_compile"
7411 case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414 esac
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.$ac_objext; then
7426 emacs_cv_speed_t=yes
7427 else
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431 emacs_cv_speed_t=no
7432 fi
7433
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 fi
7436 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7437 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7438 if test $emacs_cv_speed_t = yes; then
7439
7440 cat >>confdefs.h <<\_ACEOF
7441 #define HAVE_SPEED_T 1
7442 _ACEOF
7443
7444 fi
7445
7446 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7447 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7448 if test "${emacs_cv_struct_timeval+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h. */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 #ifdef TIME_WITH_SYS_TIME
7458 #include <sys/time.h>
7459 #include <time.h>
7460 #else
7461 #ifdef HAVE_SYS_TIME_H
7462 #include <sys/time.h>
7463 #else
7464 #include <time.h>
7465 #endif
7466 #endif
7467 int
7468 main ()
7469 {
7470 static struct timeval x; x.tv_sec = x.tv_usec;
7471 ;
7472 return 0;
7473 }
7474 _ACEOF
7475 rm -f conftest.$ac_objext
7476 if { (ac_try="$ac_compile"
7477 case "(($ac_try" in
7478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7479 *) ac_try_echo=$ac_try;;
7480 esac
7481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7482 (eval "$ac_compile") 2>conftest.er1
7483 ac_status=$?
7484 grep -v '^ *+' conftest.er1 >conftest.err
7485 rm -f conftest.er1
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } && {
7489 test -z "$ac_c_werror_flag" ||
7490 test ! -s conftest.err
7491 } && test -s conftest.$ac_objext; then
7492 emacs_cv_struct_timeval=yes
7493 else
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7496
7497 emacs_cv_struct_timeval=no
7498 fi
7499
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 fi
7502 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7503 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7504 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7505 if test $emacs_cv_struct_timeval = yes; then
7506
7507 cat >>confdefs.h <<\_ACEOF
7508 #define HAVE_TIMEVAL 1
7509 _ACEOF
7510
7511 fi
7512
7513 { echo "$as_me:$LINENO: checking for struct exception" >&5
7514 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7515 if test "${emacs_cv_struct_exception+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 #include <math.h>
7525 int
7526 main ()
7527 {
7528 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7529 ;
7530 return 0;
7531 }
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7535 case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.$ac_objext; then
7550 emacs_cv_struct_exception=yes
7551 else
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7554
7555 emacs_cv_struct_exception=no
7556 fi
7557
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 fi
7560 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7561 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7562 HAVE_EXCEPTION=$emacs_cv_struct_exception
7563 if test $emacs_cv_struct_exception != yes; then
7564
7565 cat >>confdefs.h <<\_ACEOF
7566 #define NO_MATHERR 1
7567 _ACEOF
7568
7569 fi
7570
7571
7572 for ac_header in sys/socket.h
7573 do
7574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 fi
7581 ac_res=`eval echo '${'$as_ac_Header'}'`
7582 { echo "$as_me:$LINENO: result: $ac_res" >&5
7583 echo "${ECHO_T}$ac_res" >&6; }
7584 else
7585 # Is the header compilable?
7586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 $ac_includes_default
7595 #include <$ac_header>
7596 _ACEOF
7597 rm -f conftest.$ac_objext
7598 if { (ac_try="$ac_compile"
7599 case "(($ac_try" in
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7602 esac
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_compile") 2>conftest.er1
7605 ac_status=$?
7606 grep -v '^ *+' conftest.er1 >conftest.err
7607 rm -f conftest.er1
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } && {
7611 test -z "$ac_c_werror_flag" ||
7612 test ! -s conftest.err
7613 } && test -s conftest.$ac_objext; then
7614 ac_header_compiler=yes
7615 else
7616 echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7618
7619 ac_header_compiler=no
7620 fi
7621
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7624 echo "${ECHO_T}$ac_header_compiler" >&6; }
7625
7626 # Is the header present?
7627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7629 cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h. */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 #include <$ac_header>
7636 _ACEOF
7637 if { (ac_try="$ac_cpp conftest.$ac_ext"
7638 case "(($ac_try" in
7639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640 *) ac_try_echo=$ac_try;;
7641 esac
7642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } >/dev/null && {
7650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 }; then
7653 ac_header_preproc=yes
7654 else
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7657
7658 ac_header_preproc=no
7659 fi
7660
7661 rm -f conftest.err conftest.$ac_ext
7662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7663 echo "${ECHO_T}$ac_header_preproc" >&6; }
7664
7665 # So? What about this header?
7666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7667 yes:no: )
7668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7672 ac_header_preproc=yes
7673 ;;
7674 no:yes:* )
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7687
7688 ;;
7689 esac
7690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695 eval "$as_ac_Header=\$ac_header_preproc"
7696 fi
7697 ac_res=`eval echo '${'$as_ac_Header'}'`
7698 { echo "$as_me:$LINENO: result: $ac_res" >&5
7699 echo "${ECHO_T}$ac_res" >&6; }
7700
7701 fi
7702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7703 cat >>confdefs.h <<_ACEOF
7704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7705 _ACEOF
7706
7707 fi
7708
7709 done
7710
7711
7712 for ac_header in net/if.h
7713 do
7714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 #if HAVE_SYS_SOCKET_H
7728 #include <sys/socket.h>
7729 #endif
7730
7731 #include <$ac_header>
7732 _ACEOF
7733 rm -f conftest.$ac_objext
7734 if { (ac_try="$ac_compile"
7735 case "(($ac_try" in
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7738 esac
7739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7740 (eval "$ac_compile") 2>conftest.er1
7741 ac_status=$?
7742 grep -v '^ *+' conftest.er1 >conftest.err
7743 rm -f conftest.er1
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } && {
7747 test -z "$ac_c_werror_flag" ||
7748 test ! -s conftest.err
7749 } && test -s conftest.$ac_objext; then
7750 eval "$as_ac_Header=yes"
7751 else
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7754
7755 eval "$as_ac_Header=no"
7756 fi
7757
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 fi
7760 ac_res=`eval echo '${'$as_ac_Header'}'`
7761 { echo "$as_me:$LINENO: result: $ac_res" >&5
7762 echo "${ECHO_T}$ac_res" >&6; }
7763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7764 cat >>confdefs.h <<_ACEOF
7765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7766 _ACEOF
7767
7768 fi
7769
7770 done
7771
7772
7773 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7774 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7775 if test "${ac_cv_struct_tm+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778 cat >conftest.$ac_ext <<_ACEOF
7779 /* confdefs.h. */
7780 _ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 #include <sys/types.h>
7785 #include <time.h>
7786
7787 int
7788 main ()
7789 {
7790 struct tm tm;
7791 int *p = &tm.tm_sec;
7792 return !p;
7793 ;
7794 return 0;
7795 }
7796 _ACEOF
7797 rm -f conftest.$ac_objext
7798 if { (ac_try="$ac_compile"
7799 case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802 esac
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_compile") 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest.$ac_objext; then
7814 ac_cv_struct_tm=time.h
7815 else
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819 ac_cv_struct_tm=sys/time.h
7820 fi
7821
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 fi
7824 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7825 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7826 if test $ac_cv_struct_tm = sys/time.h; then
7827
7828 cat >>confdefs.h <<\_ACEOF
7829 #define TM_IN_SYS_TIME 1
7830 _ACEOF
7831
7832 fi
7833
7834 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7835 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7836 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 #include <sys/types.h>
7846 #include <$ac_cv_struct_tm>
7847
7848
7849 int
7850 main ()
7851 {
7852 static struct tm ac_aggr;
7853 if (ac_aggr.tm_zone)
7854 return 0;
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.$ac_objext; then
7876 ac_cv_member_struct_tm_tm_zone=yes
7877 else
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881 cat >conftest.$ac_ext <<_ACEOF
7882 /* confdefs.h. */
7883 _ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7887 #include <sys/types.h>
7888 #include <$ac_cv_struct_tm>
7889
7890
7891 int
7892 main ()
7893 {
7894 static struct tm ac_aggr;
7895 if (sizeof ac_aggr.tm_zone)
7896 return 0;
7897 ;
7898 return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext
7902 if { (ac_try="$ac_compile"
7903 case "(($ac_try" in
7904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905 *) ac_try_echo=$ac_try;;
7906 esac
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908 (eval "$ac_compile") 2>conftest.er1
7909 ac_status=$?
7910 grep -v '^ *+' conftest.er1 >conftest.err
7911 rm -f conftest.er1
7912 cat conftest.err >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest.$ac_objext; then
7918 ac_cv_member_struct_tm_tm_zone=yes
7919 else
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 ac_cv_member_struct_tm_tm_zone=no
7924 fi
7925
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 fi
7928
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 fi
7931 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7932 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7933 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7934
7935 cat >>confdefs.h <<_ACEOF
7936 #define HAVE_STRUCT_TM_TM_ZONE 1
7937 _ACEOF
7938
7939
7940 fi
7941
7942 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7943
7944 cat >>confdefs.h <<\_ACEOF
7945 #define HAVE_TM_ZONE 1
7946 _ACEOF
7947
7948 else
7949 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7950 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7951 if test "${ac_cv_have_decl_tzname+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954 cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h. */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7960 #include <time.h>
7961
7962 int
7963 main ()
7964 {
7965 #ifndef tzname
7966 (void) tzname;
7967 #endif
7968
7969 ;
7970 return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7975 case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_compile") 2>conftest.er1
7981 ac_status=$?
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest.$ac_objext; then
7990 ac_cv_have_decl_tzname=yes
7991 else
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995 ac_cv_have_decl_tzname=no
7996 fi
7997
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 fi
8000 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8001 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8002 if test $ac_cv_have_decl_tzname = yes; then
8003
8004 cat >>confdefs.h <<_ACEOF
8005 #define HAVE_DECL_TZNAME 1
8006 _ACEOF
8007
8008
8009 else
8010 cat >>confdefs.h <<_ACEOF
8011 #define HAVE_DECL_TZNAME 0
8012 _ACEOF
8013
8014
8015 fi
8016
8017
8018 { echo "$as_me:$LINENO: checking for tzname" >&5
8019 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8020 if test "${ac_cv_var_tzname+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023 cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h. */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029 #include <time.h>
8030 #if !HAVE_DECL_TZNAME
8031 extern char *tzname[];
8032 #endif
8033
8034 int
8035 main ()
8036 {
8037 return tzname[0][0];
8038 ;
8039 return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (ac_try="$ac_link"
8044 case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_link") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest$ac_exeext &&
8059 $as_test_x conftest$ac_exeext; then
8060 ac_cv_var_tzname=yes
8061 else
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065 ac_cv_var_tzname=no
8066 fi
8067
8068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8069 conftest$ac_exeext conftest.$ac_ext
8070 fi
8071 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8072 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8073 if test $ac_cv_var_tzname = yes; then
8074
8075 cat >>confdefs.h <<\_ACEOF
8076 #define HAVE_TZNAME 1
8077 _ACEOF
8078
8079 fi
8080 fi
8081
8082 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8083 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8084 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087 cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h. */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 #include <time.h>
8094
8095 int
8096 main ()
8097 {
8098 static struct tm ac_aggr;
8099 if (ac_aggr.tm_gmtoff)
8100 return 0;
8101 ;
8102 return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8107 case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110 esac
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_compile") 2>conftest.er1
8113 ac_status=$?
8114 grep -v '^ *+' conftest.er1 >conftest.err
8115 rm -f conftest.er1
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest.$ac_objext; then
8122 ac_cv_member_struct_tm_tm_gmtoff=yes
8123 else
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127 cat >conftest.$ac_ext <<_ACEOF
8128 /* confdefs.h. */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 #include <time.h>
8134
8135 int
8136 main ()
8137 {
8138 static struct tm ac_aggr;
8139 if (sizeof ac_aggr.tm_gmtoff)
8140 return 0;
8141 ;
8142 return 0;
8143 }
8144 _ACEOF
8145 rm -f conftest.$ac_objext
8146 if { (ac_try="$ac_compile"
8147 case "(($ac_try" in
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8150 esac
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_compile") 2>conftest.er1
8153 ac_status=$?
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest.$ac_objext; then
8162 ac_cv_member_struct_tm_tm_gmtoff=yes
8163 else
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8166
8167 ac_cv_member_struct_tm_tm_gmtoff=no
8168 fi
8169
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 fi
8172
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 fi
8175 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8176 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8177 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8178
8179 cat >>confdefs.h <<\_ACEOF
8180 #define HAVE_TM_GMTOFF 1
8181 _ACEOF
8182
8183 fi
8184
8185 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8186 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8187 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h. */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 $ac_includes_default
8197 #if HAVE_SYS_SOCKET_H
8198 #include <sys/socket.h>
8199 #endif
8200 #if HAVE_NET_IF_H
8201 #include <net/if.h>
8202 #endif
8203
8204 int
8205 main ()
8206 {
8207 static struct ifreq ac_aggr;
8208 if (ac_aggr.ifr_flags)
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_ifreq_ifr_flags=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 $ac_includes_default
8243 #if HAVE_SYS_SOCKET_H
8244 #include <sys/socket.h>
8245 #endif
8246 #if HAVE_NET_IF_H
8247 #include <net/if.h>
8248 #endif
8249
8250 int
8251 main ()
8252 {
8253 static struct ifreq ac_aggr;
8254 if (sizeof ac_aggr.ifr_flags)
8255 return 0;
8256 ;
8257 return 0;
8258 }
8259 _ACEOF
8260 rm -f conftest.$ac_objext
8261 if { (ac_try="$ac_compile"
8262 case "(($ac_try" in
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8265 esac
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_compile") 2>conftest.er1
8268 ac_status=$?
8269 grep -v '^ *+' conftest.er1 >conftest.err
8270 rm -f conftest.er1
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && {
8274 test -z "$ac_c_werror_flag" ||
8275 test ! -s conftest.err
8276 } && test -s conftest.$ac_objext; then
8277 ac_cv_member_struct_ifreq_ifr_flags=yes
8278 else
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8281
8282 ac_cv_member_struct_ifreq_ifr_flags=no
8283 fi
8284
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286 fi
8287
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 fi
8290 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8291 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8292 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8293
8294 cat >>confdefs.h <<_ACEOF
8295 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8296 _ACEOF
8297
8298
8299 fi
8300 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8301 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8302 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h. */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 #if HAVE_SYS_SOCKET_H
8313 #include <sys/socket.h>
8314 #endif
8315 #if HAVE_NET_IF_H
8316 #include <net/if.h>
8317 #endif
8318
8319 int
8320 main ()
8321 {
8322 static struct ifreq ac_aggr;
8323 if (ac_aggr.ifr_hwaddr)
8324 return 0;
8325 ;
8326 return 0;
8327 }
8328 _ACEOF
8329 rm -f conftest.$ac_objext
8330 if { (ac_try="$ac_compile"
8331 case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334 esac
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.$ac_objext; then
8346 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8347 else
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8350
8351 cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h. */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 $ac_includes_default
8358 #if HAVE_SYS_SOCKET_H
8359 #include <sys/socket.h>
8360 #endif
8361 #if HAVE_NET_IF_H
8362 #include <net/if.h>
8363 #endif
8364
8365 int
8366 main ()
8367 {
8368 static struct ifreq ac_aggr;
8369 if (sizeof ac_aggr.ifr_hwaddr)
8370 return 0;
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (ac_try="$ac_compile"
8377 case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_compile") 2>conftest.er1
8383 ac_status=$?
8384 grep -v '^ *+' conftest.er1 >conftest.err
8385 rm -f conftest.er1
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } && {
8389 test -z "$ac_c_werror_flag" ||
8390 test ! -s conftest.err
8391 } && test -s conftest.$ac_objext; then
8392 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8393 else
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8396
8397 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8398 fi
8399
8400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401 fi
8402
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 fi
8405 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8406 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8407 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8408
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8411 _ACEOF
8412
8413
8414 fi
8415 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8416 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8417 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 else
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8427 #if HAVE_SYS_SOCKET_H
8428 #include <sys/socket.h>
8429 #endif
8430 #if HAVE_NET_IF_H
8431 #include <net/if.h>
8432 #endif
8433
8434 int
8435 main ()
8436 {
8437 static struct ifreq ac_aggr;
8438 if (ac_aggr.ifr_netmask)
8439 return 0;
8440 ;
8441 return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext
8445 if { (ac_try="$ac_compile"
8446 case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_compile") 2>conftest.er1
8452 ac_status=$?
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } && {
8458 test -z "$ac_c_werror_flag" ||
8459 test ! -s conftest.err
8460 } && test -s conftest.$ac_objext; then
8461 ac_cv_member_struct_ifreq_ifr_netmask=yes
8462 else
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 $ac_includes_default
8473 #if HAVE_SYS_SOCKET_H
8474 #include <sys/socket.h>
8475 #endif
8476 #if HAVE_NET_IF_H
8477 #include <net/if.h>
8478 #endif
8479
8480 int
8481 main ()
8482 {
8483 static struct ifreq ac_aggr;
8484 if (sizeof ac_aggr.ifr_netmask)
8485 return 0;
8486 ;
8487 return 0;
8488 }
8489 _ACEOF
8490 rm -f conftest.$ac_objext
8491 if { (ac_try="$ac_compile"
8492 case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495 esac
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_compile") 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
8506 } && test -s conftest.$ac_objext; then
8507 ac_cv_member_struct_ifreq_ifr_netmask=yes
8508 else
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8511
8512 ac_cv_member_struct_ifreq_ifr_netmask=no
8513 fi
8514
8515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 fi
8517
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 fi
8520 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8521 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8522 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8523
8524 cat >>confdefs.h <<_ACEOF
8525 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8526 _ACEOF
8527
8528
8529 fi
8530 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8531 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8532 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535 cat >conftest.$ac_ext <<_ACEOF
8536 /* confdefs.h. */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 $ac_includes_default
8542 #if HAVE_SYS_SOCKET_H
8543 #include <sys/socket.h>
8544 #endif
8545 #if HAVE_NET_IF_H
8546 #include <net/if.h>
8547 #endif
8548
8549 int
8550 main ()
8551 {
8552 static struct ifreq ac_aggr;
8553 if (ac_aggr.ifr_broadaddr)
8554 return 0;
8555 ;
8556 return 0;
8557 }
8558 _ACEOF
8559 rm -f conftest.$ac_objext
8560 if { (ac_try="$ac_compile"
8561 case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564 esac
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.$ac_objext; then
8576 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8577 else
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8580
8581 cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h. */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8587 $ac_includes_default
8588 #if HAVE_SYS_SOCKET_H
8589 #include <sys/socket.h>
8590 #endif
8591 #if HAVE_NET_IF_H
8592 #include <net/if.h>
8593 #endif
8594
8595 int
8596 main ()
8597 {
8598 static struct ifreq ac_aggr;
8599 if (sizeof ac_aggr.ifr_broadaddr)
8600 return 0;
8601 ;
8602 return 0;
8603 }
8604 _ACEOF
8605 rm -f conftest.$ac_objext
8606 if { (ac_try="$ac_compile"
8607 case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8610 esac
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.$ac_objext; then
8622 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8623 else
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8628 fi
8629
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 fi
8632
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 fi
8635 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8636 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8637 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8638
8639 cat >>confdefs.h <<_ACEOF
8640 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8641 _ACEOF
8642
8643
8644 fi
8645 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8646 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8647 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h. */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 $ac_includes_default
8657 #if HAVE_SYS_SOCKET_H
8658 #include <sys/socket.h>
8659 #endif
8660 #if HAVE_NET_IF_H
8661 #include <net/if.h>
8662 #endif
8663
8664 int
8665 main ()
8666 {
8667 static struct ifreq ac_aggr;
8668 if (ac_aggr.ifr_addr)
8669 return 0;
8670 ;
8671 return 0;
8672 }
8673 _ACEOF
8674 rm -f conftest.$ac_objext
8675 if { (ac_try="$ac_compile"
8676 case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8679 esac
8680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_compile") 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && {
8688 test -z "$ac_c_werror_flag" ||
8689 test ! -s conftest.err
8690 } && test -s conftest.$ac_objext; then
8691 ac_cv_member_struct_ifreq_ifr_addr=yes
8692 else
8693 echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8695
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 $ac_includes_default
8703 #if HAVE_SYS_SOCKET_H
8704 #include <sys/socket.h>
8705 #endif
8706 #if HAVE_NET_IF_H
8707 #include <net/if.h>
8708 #endif
8709
8710 int
8711 main ()
8712 {
8713 static struct ifreq ac_aggr;
8714 if (sizeof ac_aggr.ifr_addr)
8715 return 0;
8716 ;
8717 return 0;
8718 }
8719 _ACEOF
8720 rm -f conftest.$ac_objext
8721 if { (ac_try="$ac_compile"
8722 case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8725 esac
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_compile") 2>conftest.er1
8728 ac_status=$?
8729 grep -v '^ *+' conftest.er1 >conftest.err
8730 rm -f conftest.er1
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } && {
8734 test -z "$ac_c_werror_flag" ||
8735 test ! -s conftest.err
8736 } && test -s conftest.$ac_objext; then
8737 ac_cv_member_struct_ifreq_ifr_addr=yes
8738 else
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 ac_cv_member_struct_ifreq_ifr_addr=no
8743 fi
8744
8745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746 fi
8747
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749 fi
8750 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8751 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8752 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8753
8754 cat >>confdefs.h <<_ACEOF
8755 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8756 _ACEOF
8757
8758
8759 fi
8760
8761
8762
8763 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8764 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8765 if test "$ac_cv_prog_cc_c89" != no; then
8766 { echo "$as_me:$LINENO: result: yes" >&5
8767 echo "${ECHO_T}yes" >&6; }
8768
8769 cat >>confdefs.h <<\_ACEOF
8770 #define PROTOTYPES 1
8771 _ACEOF
8772
8773
8774 cat >>confdefs.h <<\_ACEOF
8775 #define __PROTOTYPES 1
8776 _ACEOF
8777
8778 else
8779 { echo "$as_me:$LINENO: result: no" >&5
8780 echo "${ECHO_T}no" >&6; }
8781 fi
8782
8783 { echo "$as_me:$LINENO: checking for working volatile" >&5
8784 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8785 if test "${ac_cv_c_volatile+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794
8795 int
8796 main ()
8797 {
8798
8799 volatile int x;
8800 int * volatile y = (int *) 0;
8801 return !x && !y;
8802 ;
8803 return 0;
8804 }
8805 _ACEOF
8806 rm -f conftest.$ac_objext
8807 if { (ac_try="$ac_compile"
8808 case "(($ac_try" in
8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8811 esac
8812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813 (eval "$ac_compile") 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && {
8820 test -z "$ac_c_werror_flag" ||
8821 test ! -s conftest.err
8822 } && test -s conftest.$ac_objext; then
8823 ac_cv_c_volatile=yes
8824 else
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8827
8828 ac_cv_c_volatile=no
8829 fi
8830
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832 fi
8833 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8834 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8835 if test $ac_cv_c_volatile = no; then
8836
8837 cat >>confdefs.h <<\_ACEOF
8838 #define volatile
8839 _ACEOF
8840
8841 fi
8842
8843 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8844 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8845 if test "${ac_cv_c_const+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h. */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854
8855 int
8856 main ()
8857 {
8858 /* FIXME: Include the comments suggested by Paul. */
8859 #ifndef __cplusplus
8860 /* Ultrix mips cc rejects this. */
8861 typedef int charset[2];
8862 const charset cs;
8863 /* SunOS 4.1.1 cc rejects this. */
8864 char const *const *pcpcc;
8865 char **ppc;
8866 /* NEC SVR4.0.2 mips cc rejects this. */
8867 struct point {int x, y;};
8868 static struct point const zero = {0,0};
8869 /* AIX XL C 1.02.0.0 rejects this.
8870 It does not let you subtract one const X* pointer from another in
8871 an arm of an if-expression whose if-part is not a constant
8872 expression */
8873 const char *g = "string";
8874 pcpcc = &g + (g ? g-g : 0);
8875 /* HPUX 7.0 cc rejects these. */
8876 ++pcpcc;
8877 ppc = (char**) pcpcc;
8878 pcpcc = (char const *const *) ppc;
8879 { /* SCO 3.2v4 cc rejects this. */
8880 char *t;
8881 char const *s = 0 ? (char *) 0 : (char const *) 0;
8882
8883 *t++ = 0;
8884 if (s) return 0;
8885 }
8886 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8887 int x[] = {25, 17};
8888 const int *foo = &x[0];
8889 ++foo;
8890 }
8891 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8892 typedef const int *iptr;
8893 iptr p = 0;
8894 ++p;
8895 }
8896 { /* AIX XL C 1.02.0.0 rejects this saying
8897 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8898 struct s { int j; const int *ap[3]; };
8899 struct s *b; b->j = 5;
8900 }
8901 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8902 const int foo = 10;
8903 if (!foo) return 0;
8904 }
8905 return !cs[0] && !zero.x;
8906 #endif
8907
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8914 case "(($ac_try" in
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8917 esac
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919 (eval "$ac_compile") 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } && {
8926 test -z "$ac_c_werror_flag" ||
8927 test ! -s conftest.err
8928 } && test -s conftest.$ac_objext; then
8929 ac_cv_c_const=yes
8930 else
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934 ac_cv_c_const=no
8935 fi
8936
8937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 fi
8939 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8940 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8941 if test $ac_cv_c_const = no; then
8942
8943 cat >>confdefs.h <<\_ACEOF
8944 #define const
8945 _ACEOF
8946
8947 fi
8948
8949 { echo "$as_me:$LINENO: checking for void * support" >&5
8950 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8951 if test "${emacs_cv_void_star+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h. */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960
8961 int
8962 main ()
8963 {
8964 void * foo;
8965 ;
8966 return 0;
8967 }
8968 _ACEOF
8969 rm -f conftest.$ac_objext
8970 if { (ac_try="$ac_compile"
8971 case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974 esac
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_compile") 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest.$ac_objext; then
8986 emacs_cv_void_star=yes
8987 else
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8990
8991 emacs_cv_void_star=no
8992 fi
8993
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 fi
8996 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8997 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8998 if test $emacs_cv_void_star = yes; then
8999 cat >>confdefs.h <<\_ACEOF
9000 #define POINTER_TYPE void
9001 _ACEOF
9002
9003 else
9004 cat >>confdefs.h <<\_ACEOF
9005 #define POINTER_TYPE char
9006 _ACEOF
9007
9008 fi
9009
9010
9011
9012
9013
9014 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9015 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9016 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9017 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 else
9020 cat >conftest.make <<\_ACEOF
9021 SHELL = /bin/sh
9022 all:
9023 @echo '@@@%%%=$(MAKE)=@@@%%%'
9024 _ACEOF
9025 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9026 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9027 *@@@%%%=?*=@@@%%%*)
9028 eval ac_cv_prog_make_${ac_make}_set=yes;;
9029 *)
9030 eval ac_cv_prog_make_${ac_make}_set=no;;
9031 esac
9032 rm -f conftest.make
9033 fi
9034 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9035 { echo "$as_me:$LINENO: result: yes" >&5
9036 echo "${ECHO_T}yes" >&6; }
9037 SET_MAKE=
9038 else
9039 { echo "$as_me:$LINENO: result: no" >&5
9040 echo "${ECHO_T}no" >&6; }
9041 SET_MAKE="MAKE=${MAKE-make}"
9042 fi
9043
9044
9045 { echo "$as_me:$LINENO: checking for long file names" >&5
9046 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9047 if test "${ac_cv_sys_long_file_names+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050 ac_cv_sys_long_file_names=yes
9051 # Test for long file names in all the places we know might matter:
9052 # . the current directory, where building will happen
9053 # $prefix/lib where we will be installing things
9054 # $exec_prefix/lib likewise
9055 # $TMPDIR if set, where it might want to write temporary files
9056 # /tmp where it might want to write temporary files
9057 # /var/tmp likewise
9058 # /usr/tmp likewise
9059 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9060 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9061 # in the usual case where exec_prefix is '${prefix}'.
9062 case $ac_dir in #(
9063 . | /* | ?:[\\/]*) ;; #(
9064 *) continue;;
9065 esac
9066 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9067 ac_xdir=$ac_dir/cf$$
9068 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9069 ac_tf1=$ac_xdir/conftest9012345
9070 ac_tf2=$ac_xdir/conftest9012346
9071 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9072 ac_cv_sys_long_file_names=no
9073 rm -f -r "$ac_xdir" 2>/dev/null
9074 test $ac_cv_sys_long_file_names = no && break
9075 done
9076 fi
9077 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9078 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9079 if test $ac_cv_sys_long_file_names = yes; then
9080
9081 cat >>confdefs.h <<\_ACEOF
9082 #define HAVE_LONG_FILE_NAMES 1
9083 _ACEOF
9084
9085 fi
9086
9087
9088 #### Choose a window system.
9089
9090 { echo "$as_me:$LINENO: checking for X" >&5
9091 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9092
9093
9094 # Check whether --with-x was given.
9095 if test "${with_x+set}" = set; then
9096 withval=$with_x;
9097 fi
9098
9099 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9100 if test "x$with_x" = xno; then
9101 # The user explicitly disabled X.
9102 have_x=disabled
9103 else
9104 case $x_includes,$x_libraries in #(
9105 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9106 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9107 { (exit 1); exit 1; }; };; #(
9108 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111 # One or both of the vars are not set, and there is no cached value.
9112 ac_x_includes=no ac_x_libraries=no
9113 rm -f -r conftest.dir
9114 if mkdir conftest.dir; then
9115 cd conftest.dir
9116 cat >Imakefile <<'_ACEOF'
9117 incroot:
9118 @echo incroot='${INCROOT}'
9119 usrlibdir:
9120 @echo usrlibdir='${USRLIBDIR}'
9121 libdir:
9122 @echo libdir='${LIBDIR}'
9123 _ACEOF
9124 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9125 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9126 for ac_var in incroot usrlibdir libdir; do
9127 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9128 done
9129 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9130 for ac_extension in a so sl; do
9131 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9132 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9133 ac_im_usrlibdir=$ac_im_libdir; break
9134 fi
9135 done
9136 # Screen out bogus values from the imake configuration. They are
9137 # bogus both because they are the default anyway, and because
9138 # using them would break gcc on systems where it needs fixed includes.
9139 case $ac_im_incroot in
9140 /usr/include) ac_x_includes= ;;
9141 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9142 esac
9143 case $ac_im_usrlibdir in
9144 /usr/lib | /lib) ;;
9145 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9146 esac
9147 fi
9148 cd ..
9149 rm -f -r conftest.dir
9150 fi
9151
9152 # Standard set of common directories for X headers.
9153 # Check X11 before X11Rn because it is often a symlink to the current release.
9154 ac_x_header_dirs='
9155 /usr/X11/include
9156 /usr/X11R6/include
9157 /usr/X11R5/include
9158 /usr/X11R4/include
9159
9160 /usr/include/X11
9161 /usr/include/X11R6
9162 /usr/include/X11R5
9163 /usr/include/X11R4
9164
9165 /usr/local/X11/include
9166 /usr/local/X11R6/include
9167 /usr/local/X11R5/include
9168 /usr/local/X11R4/include
9169
9170 /usr/local/include/X11
9171 /usr/local/include/X11R6
9172 /usr/local/include/X11R5
9173 /usr/local/include/X11R4
9174
9175 /usr/X386/include
9176 /usr/x386/include
9177 /usr/XFree86/include/X11
9178
9179 /usr/include
9180 /usr/local/include
9181 /usr/unsupported/include
9182 /usr/athena/include
9183 /usr/local/x11r5/include
9184 /usr/lpp/Xamples/include
9185
9186 /usr/openwin/include
9187 /usr/openwin/share/include'
9188
9189 if test "$ac_x_includes" = no; then
9190 # Guess where to find include files, by looking for Xlib.h.
9191 # First, try using that file with no special directory specified.
9192 cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h. */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 #include <X11/Xlib.h>
9199 _ACEOF
9200 if { (ac_try="$ac_cpp conftest.$ac_ext"
9201 case "(($ac_try" in
9202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 *) ac_try_echo=$ac_try;;
9204 esac
9205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9207 ac_status=$?
9208 grep -v '^ *+' conftest.er1 >conftest.err
9209 rm -f conftest.er1
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } >/dev/null && {
9213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9214 test ! -s conftest.err
9215 }; then
9216 # We can compile using X headers with no special include directory.
9217 ac_x_includes=
9218 else
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222 for ac_dir in $ac_x_header_dirs; do
9223 if test -r "$ac_dir/X11/Xlib.h"; then
9224 ac_x_includes=$ac_dir
9225 break
9226 fi
9227 done
9228 fi
9229
9230 rm -f conftest.err conftest.$ac_ext
9231 fi # $ac_x_includes = no
9232
9233 if test "$ac_x_libraries" = no; then
9234 # Check for the libraries.
9235 # See if we find them without any special options.
9236 # Don't add to $LIBS permanently.
9237 ac_save_LIBS=$LIBS
9238 LIBS="-lX11 $LIBS"
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 #include <X11/Xlib.h>
9246 int
9247 main ()
9248 {
9249 XrmInitialize ()
9250 ;
9251 return 0;
9252 }
9253 _ACEOF
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (ac_try="$ac_link"
9256 case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9259 esac
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_link") 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } && {
9268 test -z "$ac_c_werror_flag" ||
9269 test ! -s conftest.err
9270 } && test -s conftest$ac_exeext &&
9271 $as_test_x conftest$ac_exeext; then
9272 LIBS=$ac_save_LIBS
9273 # We can link X programs with no special library path.
9274 ac_x_libraries=
9275 else
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9278
9279 LIBS=$ac_save_LIBS
9280 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9281 do
9282 # Don't even attempt the hair of trying to link an X program!
9283 for ac_extension in a so sl; do
9284 if test -r "$ac_dir/libX11.$ac_extension"; then
9285 ac_x_libraries=$ac_dir
9286 break 2
9287 fi
9288 done
9289 done
9290 fi
9291
9292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9293 conftest$ac_exeext conftest.$ac_ext
9294 fi # $ac_x_libraries = no
9295
9296 case $ac_x_includes,$ac_x_libraries in #(
9297 no,* | *,no | *\'*)
9298 # Didn't find X, or a directory has "'" in its name.
9299 ac_cv_have_x="have_x=no";; #(
9300 *)
9301 # Record where we found X for the cache.
9302 ac_cv_have_x="have_x=yes\
9303 ac_x_includes='$ac_x_includes'\
9304 ac_x_libraries='$ac_x_libraries'"
9305 esac
9306 fi
9307 ;; #(
9308 *) have_x=yes;;
9309 esac
9310 eval "$ac_cv_have_x"
9311 fi # $with_x != no
9312
9313 if test "$have_x" != yes; then
9314 { echo "$as_me:$LINENO: result: $have_x" >&5
9315 echo "${ECHO_T}$have_x" >&6; }
9316 no_x=yes
9317 else
9318 # If each of the values was on the command line, it overrides each guess.
9319 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9320 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9321 # Update the cache value to reflect the command line values.
9322 ac_cv_have_x="have_x=yes\
9323 ac_x_includes='$x_includes'\
9324 ac_x_libraries='$x_libraries'"
9325 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9326 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9327 fi
9328
9329 if test "$no_x" = yes; then
9330 window_system=none
9331 else
9332 window_system=x11
9333 fi
9334
9335 if test "${x_libraries}" != NONE; then
9336 if test -n "${x_libraries}"; then
9337 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9338 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9339 fi
9340 x_default_search_path=""
9341 x_search_path=${x_libraries}
9342 if test -z "${x_search_path}"; then
9343 x_search_path=/usr/lib
9344 fi
9345 for x_library in `echo ${x_search_path}: | \
9346 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9347 x_search_path="\
9348 ${x_library}/X11/%L/%T/%N%C%S:\
9349 ${x_library}/X11/%l/%T/%N%C%S:\
9350 ${x_library}/X11/%T/%N%C%S:\
9351 ${x_library}/X11/%L/%T/%N%S:\
9352 ${x_library}/X11/%l/%T/%N%S:\
9353 ${x_library}/X11/%T/%N%S"
9354 if test x"${x_default_search_path}" = x; then
9355 x_default_search_path=${x_search_path}
9356 else
9357 x_default_search_path="${x_search_path}:${x_default_search_path}"
9358 fi
9359 done
9360 fi
9361 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9362 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9363 fi
9364
9365 if test x"${x_includes}" = x; then
9366 bitmapdir=/usr/include/X11/bitmaps
9367 else
9368 # accumulate include directories that have X11 bitmap subdirectories
9369 bmd_acc="dummyval"
9370 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9371 if test -d "${bmd}/X11/bitmaps"; then
9372 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9373 fi
9374 if test -d "${bmd}/bitmaps"; then
9375 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9376 fi
9377 done
9378 if test ${bmd_acc} != "dummyval"; then
9379 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9380 fi
9381 fi
9382
9383 HAVE_CARBON=no
9384 if test "${with_carbon}" != no; then
9385 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9386 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9387 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9388 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 fi
9391 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9392 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9393 else
9394 # Is the header compilable?
9395 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9396 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9397 cat >conftest.$ac_ext <<_ACEOF
9398 /* confdefs.h. */
9399 _ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9403 $ac_includes_default
9404 #include <Carbon/Carbon.h>
9405 _ACEOF
9406 rm -f conftest.$ac_objext
9407 if { (ac_try="$ac_compile"
9408 case "(($ac_try" in
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9411 esac
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_compile") 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && {
9420 test -z "$ac_c_werror_flag" ||
9421 test ! -s conftest.err
9422 } && test -s conftest.$ac_objext; then
9423 ac_header_compiler=yes
9424 else
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428 ac_header_compiler=no
9429 fi
9430
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9433 echo "${ECHO_T}$ac_header_compiler" >&6; }
9434
9435 # Is the header present?
9436 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9437 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9438 cat >conftest.$ac_ext <<_ACEOF
9439 /* confdefs.h. */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9444 #include <Carbon/Carbon.h>
9445 _ACEOF
9446 if { (ac_try="$ac_cpp conftest.$ac_ext"
9447 case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9450 esac
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9453 ac_status=$?
9454 grep -v '^ *+' conftest.er1 >conftest.err
9455 rm -f conftest.er1
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } >/dev/null && {
9459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9460 test ! -s conftest.err
9461 }; then
9462 ac_header_preproc=yes
9463 else
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9466
9467 ac_header_preproc=no
9468 fi
9469
9470 rm -f conftest.err conftest.$ac_ext
9471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9472 echo "${ECHO_T}$ac_header_preproc" >&6; }
9473
9474 # So? What about this header?
9475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9476 yes:no: )
9477 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9478 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9480 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9481 ac_header_preproc=yes
9482 ;;
9483 no:yes:* )
9484 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9485 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9486 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9487 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9488 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9489 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9490 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9491 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9492 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9493 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9494 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9495 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9496
9497 ;;
9498 esac
9499 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9500 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9501 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9505 fi
9506 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9507 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9508
9509 fi
9510 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9511 HAVE_CARBON=yes
9512 fi
9513
9514
9515 fi
9516 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9517 if test "${with_carbon+set}" != set \
9518 && test "${carbon_appdir_x+set}" != set; then
9519 for var in with_x with_x_toolkit with_gtk with_xim \
9520 with_xpm with_jpeg with_tiff with_gif with_png; do
9521 if eval test \"\${$var+set}\" = set; then
9522 HAVE_CARBON=no
9523 break
9524 fi
9525 done
9526 fi
9527 fi
9528 if test "${HAVE_CARBON}" = yes; then
9529 window_system=mac
9530 fi
9531
9532 case "${window_system}" in
9533 x11 )
9534 HAVE_X_WINDOWS=yes
9535 HAVE_X11=yes
9536 case "${with_x_toolkit}" in
9537 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9538 motif ) USE_X_TOOLKIT=MOTIF ;;
9539 gtk ) with_gtk=yes
9540 USE_X_TOOLKIT=none ;;
9541 no ) USE_X_TOOLKIT=none ;;
9542 * ) USE_X_TOOLKIT=maybe ;;
9543 esac
9544 ;;
9545 mac | none )
9546 HAVE_X_WINDOWS=no
9547 HAVE_X11=no
9548 USE_X_TOOLKIT=none
9549 ;;
9550 esac
9551
9552 ### If we're using X11, we should use the X menu package.
9553 HAVE_MENUS=no
9554 case ${HAVE_X11} in
9555 yes ) HAVE_MENUS=yes ;;
9556 esac
9557
9558 if test "${opsys}" = "hpux9"; then
9559 case "${x_libraries}" in
9560 *X11R4* )
9561 opsysfile="s/hpux9-x11r4.h"
9562 ;;
9563 esac
9564 fi
9565
9566 if test "${opsys}" = "hpux9shr"; then
9567 case "${x_libraries}" in
9568 *X11R4* )
9569 opsysfile="s/hpux9shxr4.h"
9570 ;;
9571 esac
9572 fi
9573
9574 ### Compute the unexec source name from the object name.
9575 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9576
9577 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9578 # Assume not, until told otherwise.
9579 GNU_MALLOC=yes
9580 doug_lea_malloc=yes
9581 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9582 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9583 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586 cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h. */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9594 #define malloc_get_state innocuous_malloc_get_state
9595
9596 /* System header to define __stub macros and hopefully few prototypes,
9597 which can conflict with char malloc_get_state (); below.
9598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9599 <limits.h> exists even on freestanding compilers. */
9600
9601 #ifdef __STDC__
9602 # include <limits.h>
9603 #else
9604 # include <assert.h>
9605 #endif
9606
9607 #undef malloc_get_state
9608
9609 /* Override any GCC internal prototype to avoid an error.
9610 Use char because int might match the return type of a GCC
9611 builtin and then its argument prototype would still apply. */
9612 #ifdef __cplusplus
9613 extern "C"
9614 #endif
9615 char malloc_get_state ();
9616 /* The GNU C library defines this for functions which it implements
9617 to always fail with ENOSYS. Some functions are actually named
9618 something starting with __ and the normal name is an alias. */
9619 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9620 choke me
9621 #endif
9622
9623 int
9624 main ()
9625 {
9626 return malloc_get_state ();
9627 ;
9628 return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (ac_try="$ac_link"
9633 case "(($ac_try" in
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9636 esac
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_link") 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } && {
9645 test -z "$ac_c_werror_flag" ||
9646 test ! -s conftest.err
9647 } && test -s conftest$ac_exeext &&
9648 $as_test_x conftest$ac_exeext; then
9649 ac_cv_func_malloc_get_state=yes
9650 else
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9653
9654 ac_cv_func_malloc_get_state=no
9655 fi
9656
9657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9658 conftest$ac_exeext conftest.$ac_ext
9659 fi
9660 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9661 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9662 if test $ac_cv_func_malloc_get_state = yes; then
9663 :
9664 else
9665 doug_lea_malloc=no
9666 fi
9667
9668 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9669 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9670 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9681 #define malloc_set_state innocuous_malloc_set_state
9682
9683 /* System header to define __stub macros and hopefully few prototypes,
9684 which can conflict with char malloc_set_state (); below.
9685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9686 <limits.h> exists even on freestanding compilers. */
9687
9688 #ifdef __STDC__
9689 # include <limits.h>
9690 #else
9691 # include <assert.h>
9692 #endif
9693
9694 #undef malloc_set_state
9695
9696 /* Override any GCC internal prototype to avoid an error.
9697 Use char because int might match the return type of a GCC
9698 builtin and then its argument prototype would still apply. */
9699 #ifdef __cplusplus
9700 extern "C"
9701 #endif
9702 char malloc_set_state ();
9703 /* The GNU C library defines this for functions which it implements
9704 to always fail with ENOSYS. Some functions are actually named
9705 something starting with __ and the normal name is an alias. */
9706 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9707 choke me
9708 #endif
9709
9710 int
9711 main ()
9712 {
9713 return malloc_set_state ();
9714 ;
9715 return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (ac_try="$ac_link"
9720 case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9723 esac
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_link") 2>conftest.er1
9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && {
9732 test -z "$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9734 } && test -s conftest$ac_exeext &&
9735 $as_test_x conftest$ac_exeext; then
9736 ac_cv_func_malloc_set_state=yes
9737 else
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9740
9741 ac_cv_func_malloc_set_state=no
9742 fi
9743
9744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9745 conftest$ac_exeext conftest.$ac_ext
9746 fi
9747 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9748 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9749 if test $ac_cv_func_malloc_set_state = yes; then
9750 :
9751 else
9752 doug_lea_malloc=no
9753 fi
9754
9755 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9756 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9757 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760 cat >conftest.$ac_ext <<_ACEOF
9761 /* confdefs.h. */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 extern void (* __after_morecore_hook)();
9767 int
9768 main ()
9769 {
9770 __after_morecore_hook = 0
9771 ;
9772 return 0;
9773 }
9774 _ACEOF
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (ac_try="$ac_link"
9777 case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_link") 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest$ac_exeext &&
9792 $as_test_x conftest$ac_exeext; then
9793 emacs_cv_var___after_morecore_hook=yes
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 emacs_cv_var___after_morecore_hook=no
9799 fi
9800
9801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9802 conftest$ac_exeext conftest.$ac_ext
9803 fi
9804 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9805 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9806 if test $emacs_cv_var___after_morecore_hook = no; then
9807 doug_lea_malloc=no
9808 fi
9809 if test "${system_malloc}" = "yes"; then
9810 GNU_MALLOC=no
9811 GNU_MALLOC_reason="
9812 (The GNU allocators don't work with this system configuration.)"
9813 fi
9814 if test "$doug_lea_malloc" = "yes" ; then
9815 if test "$GNU_MALLOC" = yes ; then
9816 GNU_MALLOC_reason="
9817 (Using Doug Lea's new malloc from the GNU C Library.)"
9818 fi
9819
9820 cat >>confdefs.h <<\_ACEOF
9821 #define DOUG_LEA_MALLOC 1
9822 _ACEOF
9823
9824 fi
9825
9826 if test x"${REL_ALLOC}" = x; then
9827 REL_ALLOC=${GNU_MALLOC}
9828 fi
9829
9830
9831
9832
9833 for ac_header in stdlib.h unistd.h
9834 do
9835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 fi
9842 ac_res=`eval echo '${'$as_ac_Header'}'`
9843 { echo "$as_me:$LINENO: result: $ac_res" >&5
9844 echo "${ECHO_T}$ac_res" >&6; }
9845 else
9846 # Is the header compilable?
9847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9849 cat >conftest.$ac_ext <<_ACEOF
9850 /* confdefs.h. */
9851 _ACEOF
9852 cat confdefs.h >>conftest.$ac_ext
9853 cat >>conftest.$ac_ext <<_ACEOF
9854 /* end confdefs.h. */
9855 $ac_includes_default
9856 #include <$ac_header>
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (ac_try="$ac_compile"
9860 case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9863 esac
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_compile") 2>conftest.er1
9866 ac_status=$?
9867 grep -v '^ *+' conftest.er1 >conftest.err
9868 rm -f conftest.er1
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest.$ac_objext; then
9875 ac_header_compiler=yes
9876 else
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 ac_header_compiler=no
9881 fi
9882
9883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9885 echo "${ECHO_T}$ac_header_compiler" >&6; }
9886
9887 # Is the header present?
9888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h. */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 #include <$ac_header>
9897 _ACEOF
9898 if { (ac_try="$ac_cpp conftest.$ac_ext"
9899 case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902 esac
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9905 ac_status=$?
9906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } >/dev/null && {
9911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9912 test ! -s conftest.err
9913 }; then
9914 ac_header_preproc=yes
9915 else
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9918
9919 ac_header_preproc=no
9920 fi
9921
9922 rm -f conftest.err conftest.$ac_ext
9923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9924 echo "${ECHO_T}$ac_header_preproc" >&6; }
9925
9926 # So? What about this header?
9927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9928 yes:no: )
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9933 ac_header_preproc=yes
9934 ;;
9935 no:yes:* )
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9948
9949 ;;
9950 esac
9951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956 eval "$as_ac_Header=\$ac_header_preproc"
9957 fi
9958 ac_res=`eval echo '${'$as_ac_Header'}'`
9959 { echo "$as_me:$LINENO: result: $ac_res" >&5
9960 echo "${ECHO_T}$ac_res" >&6; }
9961
9962 fi
9963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9964 cat >>confdefs.h <<_ACEOF
9965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9966 _ACEOF
9967
9968 fi
9969
9970 done
9971
9972
9973 for ac_func in getpagesize
9974 do
9975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981 cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h. */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9989 #define $ac_func innocuous_$ac_func
9990
9991 /* System header to define __stub macros and hopefully few prototypes,
9992 which can conflict with char $ac_func (); below.
9993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9994 <limits.h> exists even on freestanding compilers. */
9995
9996 #ifdef __STDC__
9997 # include <limits.h>
9998 #else
9999 # include <assert.h>
10000 #endif
10001
10002 #undef $ac_func
10003
10004 /* Override any GCC internal prototype to avoid an error.
10005 Use char because int might match the return type of a GCC
10006 builtin and then its argument prototype would still apply. */
10007 #ifdef __cplusplus
10008 extern "C"
10009 #endif
10010 char $ac_func ();
10011 /* The GNU C library defines this for functions which it implements
10012 to always fail with ENOSYS. Some functions are actually named
10013 something starting with __ and the normal name is an alias. */
10014 #if defined __stub_$ac_func || defined __stub___$ac_func
10015 choke me
10016 #endif
10017
10018 int
10019 main ()
10020 {
10021 return $ac_func ();
10022 ;
10023 return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (ac_try="$ac_link"
10028 case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_link") 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && {
10040 test -z "$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10042 } && test -s conftest$ac_exeext &&
10043 $as_test_x conftest$ac_exeext; then
10044 eval "$as_ac_var=yes"
10045 else
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 eval "$as_ac_var=no"
10050 fi
10051
10052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10053 conftest$ac_exeext conftest.$ac_ext
10054 fi
10055 ac_res=`eval echo '${'$as_ac_var'}'`
10056 { echo "$as_me:$LINENO: result: $ac_res" >&5
10057 echo "${ECHO_T}$ac_res" >&6; }
10058 if test `eval echo '${'$as_ac_var'}'` = yes; then
10059 cat >>confdefs.h <<_ACEOF
10060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10061 _ACEOF
10062
10063 fi
10064 done
10065
10066 { echo "$as_me:$LINENO: checking for working mmap" >&5
10067 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10068 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071 if test "$cross_compiling" = yes; then
10072 ac_cv_func_mmap_fixed_mapped=no
10073 else
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 $ac_includes_default
10081 /* malloc might have been renamed as rpl_malloc. */
10082 #undef malloc
10083
10084 /* Thanks to Mike Haertel and Jim Avera for this test.
10085 Here is a matrix of mmap possibilities:
10086 mmap private not fixed
10087 mmap private fixed at somewhere currently unmapped
10088 mmap private fixed at somewhere already mapped
10089 mmap shared not fixed
10090 mmap shared fixed at somewhere currently unmapped
10091 mmap shared fixed at somewhere already mapped
10092 For private mappings, we should verify that changes cannot be read()
10093 back from the file, nor mmap's back from the file at a different
10094 address. (There have been systems where private was not correctly
10095 implemented like the infamous i386 svr4.0, and systems where the
10096 VM page cache was not coherent with the file system buffer cache
10097 like early versions of FreeBSD and possibly contemporary NetBSD.)
10098 For shared mappings, we should conversely verify that changes get
10099 propagated back to all the places they're supposed to be.
10100
10101 Grep wants private fixed already mapped.
10102 The main things grep needs to know about mmap are:
10103 * does it exist and is it safe to write into the mmap'd area
10104 * how to use it (BSD variants) */
10105
10106 #include <fcntl.h>
10107 #include <sys/mman.h>
10108
10109 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10110 char *malloc ();
10111 #endif
10112
10113 /* This mess was copied from the GNU getpagesize.h. */
10114 #ifndef HAVE_GETPAGESIZE
10115 /* Assume that all systems that can run configure have sys/param.h. */
10116 # ifndef HAVE_SYS_PARAM_H
10117 # define HAVE_SYS_PARAM_H 1
10118 # endif
10119
10120 # ifdef _SC_PAGESIZE
10121 # define getpagesize() sysconf(_SC_PAGESIZE)
10122 # else /* no _SC_PAGESIZE */
10123 # ifdef HAVE_SYS_PARAM_H
10124 # include <sys/param.h>
10125 # ifdef EXEC_PAGESIZE
10126 # define getpagesize() EXEC_PAGESIZE
10127 # else /* no EXEC_PAGESIZE */
10128 # ifdef NBPG
10129 # define getpagesize() NBPG * CLSIZE
10130 # ifndef CLSIZE
10131 # define CLSIZE 1
10132 # endif /* no CLSIZE */
10133 # else /* no NBPG */
10134 # ifdef NBPC
10135 # define getpagesize() NBPC
10136 # else /* no NBPC */
10137 # ifdef PAGESIZE
10138 # define getpagesize() PAGESIZE
10139 # endif /* PAGESIZE */
10140 # endif /* no NBPC */
10141 # endif /* no NBPG */
10142 # endif /* no EXEC_PAGESIZE */
10143 # else /* no HAVE_SYS_PARAM_H */
10144 # define getpagesize() 8192 /* punt totally */
10145 # endif /* no HAVE_SYS_PARAM_H */
10146 # endif /* no _SC_PAGESIZE */
10147
10148 #endif /* no HAVE_GETPAGESIZE */
10149
10150 int
10151 main ()
10152 {
10153 char *data, *data2, *data3;
10154 int i, pagesize;
10155 int fd;
10156
10157 pagesize = getpagesize ();
10158
10159 /* First, make a file with some known garbage in it. */
10160 data = (char *) malloc (pagesize);
10161 if (!data)
10162 return 1;
10163 for (i = 0; i < pagesize; ++i)
10164 *(data + i) = rand ();
10165 umask (0);
10166 fd = creat ("conftest.mmap", 0600);
10167 if (fd < 0)
10168 return 1;
10169 if (write (fd, data, pagesize) != pagesize)
10170 return 1;
10171 close (fd);
10172
10173 /* Next, try to mmap the file at a fixed address which already has
10174 something else allocated at it. If we can, also make sure that
10175 we see the same garbage. */
10176 fd = open ("conftest.mmap", O_RDWR);
10177 if (fd < 0)
10178 return 1;
10179 data2 = (char *) malloc (2 * pagesize);
10180 if (!data2)
10181 return 1;
10182 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10183 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10184 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10185 return 1;
10186 for (i = 0; i < pagesize; ++i)
10187 if (*(data + i) != *(data2 + i))
10188 return 1;
10189
10190 /* Finally, make sure that changes to the mapped area do not
10191 percolate back to the file as seen by read(). (This is a bug on
10192 some variants of i386 svr4.0.) */
10193 for (i = 0; i < pagesize; ++i)
10194 *(data2 + i) = *(data2 + i) + 1;
10195 data3 = (char *) malloc (pagesize);
10196 if (!data3)
10197 return 1;
10198 if (read (fd, data3, pagesize) != pagesize)
10199 return 1;
10200 for (i = 0; i < pagesize; ++i)
10201 if (*(data + i) != *(data3 + i))
10202 return 1;
10203 close (fd);
10204 return 0;
10205 }
10206 _ACEOF
10207 rm -f conftest$ac_exeext
10208 if { (ac_try="$ac_link"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_link") 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10218 { (case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_try") 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 ac_cv_func_mmap_fixed_mapped=yes
10228 else
10229 echo "$as_me: program exited with status $ac_status" >&5
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233 ( exit $ac_status )
10234 ac_cv_func_mmap_fixed_mapped=no
10235 fi
10236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10237 fi
10238
10239
10240 fi
10241 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10242 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10243 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10244
10245 cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_MMAP 1
10247 _ACEOF
10248
10249 fi
10250 rm -f conftest.mmap
10251
10252 if test $use_mmap_for_buffers = yes; then
10253 REL_ALLOC=no
10254 fi
10255
10256 LIBS="$libsrc_libs $LIBS"
10257
10258
10259 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10260 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10261 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264 ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-ldnet $LIBS"
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h. */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272
10273 /* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10276 #ifdef __cplusplus
10277 extern "C"
10278 #endif
10279 char dnet_ntoa ();
10280 int
10281 main ()
10282 {
10283 return dnet_ntoa ();
10284 ;
10285 return 0;
10286 }
10287 _ACEOF
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (ac_try="$ac_link"
10290 case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10293 esac
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_link") 2>conftest.er1
10296 ac_status=$?
10297 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && {
10302 test -z "$ac_c_werror_flag" ||
10303 test ! -s conftest.err
10304 } && test -s conftest$ac_exeext &&
10305 $as_test_x conftest$ac_exeext; then
10306 ac_cv_lib_dnet_dnet_ntoa=yes
10307 else
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311 ac_cv_lib_dnet_dnet_ntoa=no
10312 fi
10313
10314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10315 conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10317 fi
10318 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10319 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10320 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10321 cat >>confdefs.h <<_ACEOF
10322 #define HAVE_LIBDNET 1
10323 _ACEOF
10324
10325 LIBS="-ldnet $LIBS"
10326
10327 fi
10328
10329
10330 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10331 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10332 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335 ac_check_lib_save_LIBS=$LIBS
10336 LIBS="-lXbsd $LIBS"
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343
10344
10345 int
10346 main ()
10347 {
10348 return main ();
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10358 esac
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest$ac_exeext &&
10370 $as_test_x conftest$ac_exeext; then
10371 ac_cv_lib_Xbsd_main=yes
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376 ac_cv_lib_Xbsd_main=no
10377 fi
10378
10379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10380 conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10382 fi
10383 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10384 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10385 if test $ac_cv_lib_Xbsd_main = yes; then
10386 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10387 fi
10388
10389
10390
10391 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10392 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10393 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396 ac_check_lib_save_LIBS=$LIBS
10397 LIBS="-lpthreads $LIBS"
10398 cat >conftest.$ac_ext <<_ACEOF
10399 /* confdefs.h. */
10400 _ACEOF
10401 cat confdefs.h >>conftest.$ac_ext
10402 cat >>conftest.$ac_ext <<_ACEOF
10403 /* end confdefs.h. */
10404
10405 /* Override any GCC internal prototype to avoid an error.
10406 Use char because int might match the return type of a GCC
10407 builtin and then its argument prototype would still apply. */
10408 #ifdef __cplusplus
10409 extern "C"
10410 #endif
10411 char cma_open ();
10412 int
10413 main ()
10414 {
10415 return cma_open ();
10416 ;
10417 return 0;
10418 }
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_link") 2>conftest.er1
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } && {
10434 test -z "$ac_c_werror_flag" ||
10435 test ! -s conftest.err
10436 } && test -s conftest$ac_exeext &&
10437 $as_test_x conftest$ac_exeext; then
10438 ac_cv_lib_pthreads_cma_open=yes
10439 else
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443 ac_cv_lib_pthreads_cma_open=no
10444 fi
10445
10446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10449 fi
10450 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10451 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10452 if test $ac_cv_lib_pthreads_cma_open = yes; then
10453 cat >>confdefs.h <<_ACEOF
10454 #define HAVE_LIBPTHREADS 1
10455 _ACEOF
10456
10457 LIBS="-lpthreads $LIBS"
10458
10459 fi
10460
10461
10462 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10463 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10464 if test -d /usr/X386/include; then
10465 HAVE_XFREE386=yes
10466 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10467 else
10468 HAVE_XFREE386=no
10469 fi
10470 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10471 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10472
10473
10474 case ${host_os} in
10475 aix*)
10476 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10477 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10478 if test "${gdb_cv_bigtoc+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481
10482 case $GCC in
10483 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10484 *) gdb_cv_bigtoc=-bbigtoc ;;
10485 esac
10486
10487 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494
10495 int
10496 main ()
10497 {
10498 int i;
10499 ;
10500 return 0;
10501 }
10502 _ACEOF
10503 rm -f conftest.$ac_objext conftest$ac_exeext
10504 if { (ac_try="$ac_link"
10505 case "(($ac_try" in
10506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10507 *) ac_try_echo=$ac_try;;
10508 esac
10509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10510 (eval "$ac_link") 2>conftest.er1
10511 ac_status=$?
10512 grep -v '^ *+' conftest.er1 >conftest.err
10513 rm -f conftest.er1
10514 cat conftest.err >&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } && {
10517 test -z "$ac_c_werror_flag" ||
10518 test ! -s conftest.err
10519 } && test -s conftest$ac_exeext &&
10520 $as_test_x conftest$ac_exeext; then
10521 :
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 gdb_cv_bigtoc=
10527 fi
10528
10529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10530 conftest$ac_exeext conftest.$ac_ext
10531
10532 fi
10533 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10534 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10535 ;;
10536 esac
10537
10538 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10539 # used for the tests that follow. We set them back to REAL_CFLAGS and
10540 # REAL_CPPFLAGS later on.
10541
10542 REAL_CPPFLAGS="$CPPFLAGS"
10543
10544 if test "${HAVE_X11}" = "yes"; then
10545 DEFS="$C_SWITCH_X_SITE $DEFS"
10546 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10547 LIBS="$LIBX $LIBS"
10548 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10549 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10550
10551 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10552 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10553 # but it's more convenient here to set LD_RUN_PATH
10554 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10555 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10556 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10557 export LD_RUN_PATH
10558 fi
10559
10560 if test "${opsys}" = "gnu-linux"; then
10561 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10562 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h. */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10569
10570 int
10571 main ()
10572 {
10573 XOpenDisplay ("foo");
10574 ;
10575 return 0;
10576 }
10577 _ACEOF
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10583 esac
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_link") 2>conftest.er1
10586 ac_status=$?
10587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } && {
10592 test -z "$ac_c_werror_flag" ||
10593 test ! -s conftest.err
10594 } && test -s conftest$ac_exeext &&
10595 $as_test_x conftest$ac_exeext; then
10596 xlinux_first_failure=no
10597 else
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601 xlinux_first_failure=yes
10602 fi
10603
10604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10605 conftest$ac_exeext conftest.$ac_ext
10606 if test "${xlinux_first_failure}" = "yes"; then
10607 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10608 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10609 OLD_CPPFLAGS="$CPPFLAGS"
10610 OLD_LIBS="$LIBS"
10611 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10612 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10613 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10614 LIBS="$LIBS -b i486-linuxaout"
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h. */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621
10622 int
10623 main ()
10624 {
10625 XOpenDisplay ("foo");
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest$ac_exeext &&
10647 $as_test_x conftest$ac_exeext; then
10648 xlinux_second_failure=no
10649 else
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 xlinux_second_failure=yes
10654 fi
10655
10656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10657 conftest$ac_exeext conftest.$ac_ext
10658 if test "${xlinux_second_failure}" = "yes"; then
10659 # If we get the same failure with -b, there is no use adding -b.
10660 # So take it out. This plays safe.
10661 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10662 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10663 CPPFLAGS="$OLD_CPPFLAGS"
10664 LIBS="$OLD_LIBS"
10665 { echo "$as_me:$LINENO: result: no" >&5
10666 echo "${ECHO_T}no" >&6; }
10667 else
10668 { echo "$as_me:$LINENO: result: yes" >&5
10669 echo "${ECHO_T}yes" >&6; }
10670 fi
10671 else
10672 { echo "$as_me:$LINENO: result: no" >&5
10673 echo "${ECHO_T}no" >&6; }
10674 fi
10675 fi
10676
10677 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10678 # header files included from there.
10679 { echo "$as_me:$LINENO: checking for Xkb" >&5
10680 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10681 cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h. */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 #include <X11/Xlib.h>
10688 #include <X11/XKBlib.h>
10689 int
10690 main ()
10691 {
10692 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10693 ;
10694 return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (ac_try="$ac_link"
10699 case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702 esac
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_link") 2>conftest.er1
10705 ac_status=$?
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest$ac_exeext &&
10714 $as_test_x conftest$ac_exeext; then
10715 emacs_xkb=yes
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 emacs_xkb=no
10721 fi
10722
10723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10724 conftest$ac_exeext conftest.$ac_ext
10725 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10726 echo "${ECHO_T}$emacs_xkb" >&6; }
10727 if test $emacs_xkb = yes; then
10728
10729 cat >>confdefs.h <<\_ACEOF
10730 #define HAVE_XKBGETKEYBOARD 1
10731 _ACEOF
10732
10733 fi
10734
10735
10736
10737
10738
10739 for ac_func in XrmSetDatabase XScreenResourceString \
10740 XScreenNumberOfScreen XSetWMProtocols
10741 do
10742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10748 cat >conftest.$ac_ext <<_ACEOF
10749 /* confdefs.h. */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10756 #define $ac_func innocuous_$ac_func
10757
10758 /* System header to define __stub macros and hopefully few prototypes,
10759 which can conflict with char $ac_func (); below.
10760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10761 <limits.h> exists even on freestanding compilers. */
10762
10763 #ifdef __STDC__
10764 # include <limits.h>
10765 #else
10766 # include <assert.h>
10767 #endif
10768
10769 #undef $ac_func
10770
10771 /* Override any GCC internal prototype to avoid an error.
10772 Use char because int might match the return type of a GCC
10773 builtin and then its argument prototype would still apply. */
10774 #ifdef __cplusplus
10775 extern "C"
10776 #endif
10777 char $ac_func ();
10778 /* The GNU C library defines this for functions which it implements
10779 to always fail with ENOSYS. Some functions are actually named
10780 something starting with __ and the normal name is an alias. */
10781 #if defined __stub_$ac_func || defined __stub___$ac_func
10782 choke me
10783 #endif
10784
10785 int
10786 main ()
10787 {
10788 return $ac_func ();
10789 ;
10790 return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (ac_try="$ac_link"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_link") 2>conftest.er1
10801 ac_status=$?
10802 grep -v '^ *+' conftest.er1 >conftest.err
10803 rm -f conftest.er1
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest$ac_exeext &&
10810 $as_test_x conftest$ac_exeext; then
10811 eval "$as_ac_var=yes"
10812 else
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10815
10816 eval "$as_ac_var=no"
10817 fi
10818
10819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10820 conftest$ac_exeext conftest.$ac_ext
10821 fi
10822 ac_res=`eval echo '${'$as_ac_var'}'`
10823 { echo "$as_me:$LINENO: result: $ac_res" >&5
10824 echo "${ECHO_T}$ac_res" >&6; }
10825 if test `eval echo '${'$as_ac_var'}'` = yes; then
10826 cat >>confdefs.h <<_ACEOF
10827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10828 _ACEOF
10829
10830 fi
10831 done
10832
10833 fi
10834
10835 if test "${window_system}" = "x11"; then
10836 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10837 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10838 if test "${emacs_cv_x11_version_6+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h. */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 #include <X11/Xlib.h>
10848 int
10849 main ()
10850 {
10851 #if XlibSpecificationRelease < 6
10852 fail;
10853 #endif
10854
10855 ;
10856 return 0;
10857 }
10858 _ACEOF
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (ac_try="$ac_link"
10861 case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_link") 2>conftest.er1
10867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && {
10873 test -z "$ac_c_werror_flag" ||
10874 test ! -s conftest.err
10875 } && test -s conftest$ac_exeext &&
10876 $as_test_x conftest$ac_exeext; then
10877 emacs_cv_x11_version_6=yes
10878 else
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882 emacs_cv_x11_version_6=no
10883 fi
10884
10885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10886 conftest$ac_exeext conftest.$ac_ext
10887 fi
10888
10889 if test $emacs_cv_x11_version_6 = yes; then
10890 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10891 echo "${ECHO_T}6 or newer" >&6; }
10892
10893 cat >>confdefs.h <<\_ACEOF
10894 #define HAVE_X11R6 1
10895 _ACEOF
10896
10897 else
10898 { echo "$as_me:$LINENO: result: before 6" >&5
10899 echo "${ECHO_T}before 6" >&6; }
10900 fi
10901 fi
10902
10903 if test "${window_system}" = "x11"; then
10904 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10905 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10906 if test "${emacs_cv_x11_version_5+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h. */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 #include <X11/Xlib.h>
10916 int
10917 main ()
10918 {
10919 #if XlibSpecificationRelease < 5
10920 fail;
10921 #endif
10922
10923 ;
10924 return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest$ac_exeext &&
10944 $as_test_x conftest$ac_exeext; then
10945 emacs_cv_x11_version_5=yes
10946 else
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950 emacs_cv_x11_version_5=no
10951 fi
10952
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10955 fi
10956
10957 if test $emacs_cv_x11_version_5 = yes; then
10958 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10959 echo "${ECHO_T}5 or newer" >&6; }
10960 HAVE_X11R5=yes
10961
10962 cat >>confdefs.h <<\_ACEOF
10963 #define HAVE_X11R5 1
10964 _ACEOF
10965
10966 else
10967 HAVE_X11R5=no
10968 { echo "$as_me:$LINENO: result: before 5" >&5
10969 echo "${ECHO_T}before 5" >&6; }
10970 fi
10971 fi
10972
10973 HAVE_GTK=no
10974 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10975 USE_X_TOOLKIT=none
10976 fi
10977 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10978 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10979 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10980 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10981 { (exit 1); exit 1; }; };
10982 fi
10983 GLIB_REQUIRED=2.4
10984 GTK_REQUIRED=2.4
10985 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10986
10987 if test "X${with_pkg_config_prog}" != X; then
10988 PKG_CONFIG="${with_pkg_config_prog}"
10989 fi
10990
10991 succeeded=no
10992
10993 if test -z "$PKG_CONFIG"; then
10994 # Extract the first word of "pkg-config", so it can be a program name with args.
10995 set dummy pkg-config; ac_word=$2
10996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001 case $PKG_CONFIG in
11002 [\\/]* | ?:[\\/]*)
11003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11004 ;;
11005 *)
11006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11007 for as_dir in $PATH
11008 do
11009 IFS=$as_save_IFS
11010 test -z "$as_dir" && as_dir=.
11011 for ac_exec_ext in '' $ac_executable_extensions; do
11012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11015 break 2
11016 fi
11017 done
11018 done
11019 IFS=$as_save_IFS
11020
11021 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11022 ;;
11023 esac
11024 fi
11025 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11026 if test -n "$PKG_CONFIG"; then
11027 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11028 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11029 else
11030 { echo "$as_me:$LINENO: result: no" >&5
11031 echo "${ECHO_T}no" >&6; }
11032 fi
11033
11034
11035 fi
11036
11037 if test "$PKG_CONFIG" = "no" ; then
11038 { { echo "$as_me:$LINENO: error:
11039 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
11040 echo "$as_me: error:
11041 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
11042 { (exit 1); exit 1; }; }
11043 else
11044 PKG_CONFIG_MIN_VERSION=0.9.0
11045 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11046 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11047 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11048
11049 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11050 { echo "$as_me:$LINENO: result: yes" >&5
11051 echo "${ECHO_T}yes" >&6; }
11052 succeeded=yes
11053
11054 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11055 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11056 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11057 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11058 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11059
11060 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11061 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11062 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11063 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11064 echo "${ECHO_T}$GTK_LIBS" >&6; }
11065 else
11066 { echo "$as_me:$LINENO: result: no" >&5
11067 echo "${ECHO_T}no" >&6; }
11068 GTK_CFLAGS=""
11069 GTK_LIBS=""
11070 ## If we have a custom action on failure, don't print errors, but
11071 ## do set a variable so people can do so.
11072 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11073 echo $GTK_PKG_ERRORS
11074 fi
11075
11076
11077
11078 else
11079 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11080 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11081 fi
11082 fi
11083
11084 if test $succeeded = yes; then
11085 :
11086 else
11087 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11088 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11089 { (exit 1); exit 1; }; }
11090 fi
11091
11092
11093
11094 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11095 CFLAGS="$CFLAGS $GTK_CFLAGS"
11096 LIBS="$GTK_LIBS $LIBS"
11097 GTK_COMPILES=no
11098
11099 for ac_func in gtk_main
11100 do
11101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h. */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11115 #define $ac_func innocuous_$ac_func
11116
11117 /* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char $ac_func (); below.
11119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11120 <limits.h> exists even on freestanding compilers. */
11121
11122 #ifdef __STDC__
11123 # include <limits.h>
11124 #else
11125 # include <assert.h>
11126 #endif
11127
11128 #undef $ac_func
11129
11130 /* Override any GCC internal prototype to avoid an error.
11131 Use char because int might match the return type of a GCC
11132 builtin and then its argument prototype would still apply. */
11133 #ifdef __cplusplus
11134 extern "C"
11135 #endif
11136 char $ac_func ();
11137 /* The GNU C library defines this for functions which it implements
11138 to always fail with ENOSYS. Some functions are actually named
11139 something starting with __ and the normal name is an alias. */
11140 #if defined __stub_$ac_func || defined __stub___$ac_func
11141 choke me
11142 #endif
11143
11144 int
11145 main ()
11146 {
11147 return $ac_func ();
11148 ;
11149 return 0;
11150 }
11151 _ACEOF
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (ac_try="$ac_link"
11154 case "(($ac_try" in
11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11157 esac
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_link") 2>conftest.er1
11160 ac_status=$?
11161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } && {
11166 test -z "$ac_c_werror_flag" ||
11167 test ! -s conftest.err
11168 } && test -s conftest$ac_exeext &&
11169 $as_test_x conftest$ac_exeext; then
11170 eval "$as_ac_var=yes"
11171 else
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 eval "$as_ac_var=no"
11176 fi
11177
11178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11179 conftest$ac_exeext conftest.$ac_ext
11180 fi
11181 ac_res=`eval echo '${'$as_ac_var'}'`
11182 { echo "$as_me:$LINENO: result: $ac_res" >&5
11183 echo "${ECHO_T}$ac_res" >&6; }
11184 if test `eval echo '${'$as_ac_var'}'` = yes; then
11185 cat >>confdefs.h <<_ACEOF
11186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11187 _ACEOF
11188 GTK_COMPILES=yes
11189 fi
11190 done
11191
11192 if test "${GTK_COMPILES}" != "yes"; then
11193 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11194 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11195 { (exit 1); exit 1; }; };
11196 fi
11197
11198 HAVE_GTK=yes
11199
11200 cat >>confdefs.h <<\_ACEOF
11201 #define HAVE_GTK 1
11202 _ACEOF
11203
11204 USE_X_TOOLKIT=none
11205
11206 if test "$with_toolkit_scroll_bars" != no; then
11207 with_toolkit_scroll_bars=yes
11208 fi
11209
11210 HAVE_GTK_MULTIDISPLAY=no
11211
11212 for ac_func in gdk_display_open
11213 do
11214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11219 else
11220 cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h. */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11228 #define $ac_func innocuous_$ac_func
11229
11230 /* System header to define __stub macros and hopefully few prototypes,
11231 which can conflict with char $ac_func (); below.
11232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11233 <limits.h> exists even on freestanding compilers. */
11234
11235 #ifdef __STDC__
11236 # include <limits.h>
11237 #else
11238 # include <assert.h>
11239 #endif
11240
11241 #undef $ac_func
11242
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 char $ac_func ();
11250 /* The GNU C library defines this for functions which it implements
11251 to always fail with ENOSYS. Some functions are actually named
11252 something starting with __ and the normal name is an alias. */
11253 #if defined __stub_$ac_func || defined __stub___$ac_func
11254 choke me
11255 #endif
11256
11257 int
11258 main ()
11259 {
11260 return $ac_func ();
11261 ;
11262 return 0;
11263 }
11264 _ACEOF
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (ac_try="$ac_link"
11267 case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_link") 2>conftest.er1
11273 ac_status=$?
11274 grep -v '^ *+' conftest.er1 >conftest.err
11275 rm -f conftest.er1
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } && {
11279 test -z "$ac_c_werror_flag" ||
11280 test ! -s conftest.err
11281 } && test -s conftest$ac_exeext &&
11282 $as_test_x conftest$ac_exeext; then
11283 eval "$as_ac_var=yes"
11284 else
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288 eval "$as_ac_var=no"
11289 fi
11290
11291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11292 conftest$ac_exeext conftest.$ac_ext
11293 fi
11294 ac_res=`eval echo '${'$as_ac_var'}'`
11295 { echo "$as_me:$LINENO: result: $ac_res" >&5
11296 echo "${ECHO_T}$ac_res" >&6; }
11297 if test `eval echo '${'$as_ac_var'}'` = yes; then
11298 cat >>confdefs.h <<_ACEOF
11299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11300 _ACEOF
11301 HAVE_GTK_MULTIDISPLAY=yes
11302 fi
11303 done
11304
11305 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11306
11307 cat >>confdefs.h <<\_ACEOF
11308 #define HAVE_GTK_MULTIDISPLAY 1
11309 _ACEOF
11310
11311 fi
11312 HAVE_GTK_FILE_SELECTION=no
11313
11314 for ac_func in gtk_file_selection_new
11315 do
11316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h. */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11330 #define $ac_func innocuous_$ac_func
11331
11332 /* System header to define __stub macros and hopefully few prototypes,
11333 which can conflict with char $ac_func (); below.
11334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11335 <limits.h> exists even on freestanding compilers. */
11336
11337 #ifdef __STDC__
11338 # include <limits.h>
11339 #else
11340 # include <assert.h>
11341 #endif
11342
11343 #undef $ac_func
11344
11345 /* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11348 #ifdef __cplusplus
11349 extern "C"
11350 #endif
11351 char $ac_func ();
11352 /* The GNU C library defines this for functions which it implements
11353 to always fail with ENOSYS. Some functions are actually named
11354 something starting with __ and the normal name is an alias. */
11355 #if defined __stub_$ac_func || defined __stub___$ac_func
11356 choke me
11357 #endif
11358
11359 int
11360 main ()
11361 {
11362 return $ac_func ();
11363 ;
11364 return 0;
11365 }
11366 _ACEOF
11367 rm -f conftest.$ac_objext conftest$ac_exeext
11368 if { (ac_try="$ac_link"
11369 case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11372 esac
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_link") 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } && {
11381 test -z "$ac_c_werror_flag" ||
11382 test ! -s conftest.err
11383 } && test -s conftest$ac_exeext &&
11384 $as_test_x conftest$ac_exeext; then
11385 eval "$as_ac_var=yes"
11386 else
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 eval "$as_ac_var=no"
11391 fi
11392
11393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11394 conftest$ac_exeext conftest.$ac_ext
11395 fi
11396 ac_res=`eval echo '${'$as_ac_var'}'`
11397 { echo "$as_me:$LINENO: result: $ac_res" >&5
11398 echo "${ECHO_T}$ac_res" >&6; }
11399 if test `eval echo '${'$as_ac_var'}'` = yes; then
11400 cat >>confdefs.h <<_ACEOF
11401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11402 _ACEOF
11403 HAVE_GTK_FILE_SELECTION=yes
11404 fi
11405 done
11406
11407
11408 HAVE_GTK_FILE_CHOOSER=no
11409
11410 for ac_func in gtk_file_chooser_dialog_new
11411 do
11412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418 cat >conftest.$ac_ext <<_ACEOF
11419 /* confdefs.h. */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11426 #define $ac_func innocuous_$ac_func
11427
11428 /* System header to define __stub macros and hopefully few prototypes,
11429 which can conflict with char $ac_func (); below.
11430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11431 <limits.h> exists even on freestanding compilers. */
11432
11433 #ifdef __STDC__
11434 # include <limits.h>
11435 #else
11436 # include <assert.h>
11437 #endif
11438
11439 #undef $ac_func
11440
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11444 #ifdef __cplusplus
11445 extern "C"
11446 #endif
11447 char $ac_func ();
11448 /* The GNU C library defines this for functions which it implements
11449 to always fail with ENOSYS. Some functions are actually named
11450 something starting with __ and the normal name is an alias. */
11451 #if defined __stub_$ac_func || defined __stub___$ac_func
11452 choke me
11453 #endif
11454
11455 int
11456 main ()
11457 {
11458 return $ac_func ();
11459 ;
11460 return 0;
11461 }
11462 _ACEOF
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (ac_try="$ac_link"
11465 case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468 esac
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_link") 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } && {
11477 test -z "$ac_c_werror_flag" ||
11478 test ! -s conftest.err
11479 } && test -s conftest$ac_exeext &&
11480 $as_test_x conftest$ac_exeext; then
11481 eval "$as_ac_var=yes"
11482 else
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486 eval "$as_ac_var=no"
11487 fi
11488
11489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11490 conftest$ac_exeext conftest.$ac_ext
11491 fi
11492 ac_res=`eval echo '${'$as_ac_var'}'`
11493 { echo "$as_me:$LINENO: result: $ac_res" >&5
11494 echo "${ECHO_T}$ac_res" >&6; }
11495 if test `eval echo '${'$as_ac_var'}'` = yes; then
11496 cat >>confdefs.h <<_ACEOF
11497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11498 _ACEOF
11499 HAVE_GTK_FILE_CHOOSER=yes
11500 fi
11501 done
11502
11503
11504 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11505 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11506
11507 cat >>confdefs.h <<\_ACEOF
11508 #define HAVE_GTK_FILE_BOTH 1
11509 _ACEOF
11510
11511 fi
11512
11513 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11514 HAVE_GTK_AND_PTHREAD=no
11515
11516 for ac_header in pthread.h
11517 do
11518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 fi
11525 ac_res=`eval echo '${'$as_ac_Header'}'`
11526 { echo "$as_me:$LINENO: result: $ac_res" >&5
11527 echo "${ECHO_T}$ac_res" >&6; }
11528 else
11529 # Is the header compilable?
11530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11532 cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h. */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 $ac_includes_default
11539 #include <$ac_header>
11540 _ACEOF
11541 rm -f conftest.$ac_objext
11542 if { (ac_try="$ac_compile"
11543 case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11546 esac
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_compile") 2>conftest.er1
11549 ac_status=$?
11550 grep -v '^ *+' conftest.er1 >conftest.err
11551 rm -f conftest.er1
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } && {
11555 test -z "$ac_c_werror_flag" ||
11556 test ! -s conftest.err
11557 } && test -s conftest.$ac_objext; then
11558 ac_header_compiler=yes
11559 else
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563 ac_header_compiler=no
11564 fi
11565
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11568 echo "${ECHO_T}$ac_header_compiler" >&6; }
11569
11570 # Is the header present?
11571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 #include <$ac_header>
11580 _ACEOF
11581 if { (ac_try="$ac_cpp conftest.$ac_ext"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585 esac
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } >/dev/null && {
11594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 }; then
11597 ac_header_preproc=yes
11598 else
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11601
11602 ac_header_preproc=no
11603 fi
11604
11605 rm -f conftest.err conftest.$ac_ext
11606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11607 echo "${ECHO_T}$ac_header_preproc" >&6; }
11608
11609 # So? What about this header?
11610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11611 yes:no: )
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11616 ac_header_preproc=yes
11617 ;;
11618 no:yes:* )
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11631
11632 ;;
11633 esac
11634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639 eval "$as_ac_Header=\$ac_header_preproc"
11640 fi
11641 ac_res=`eval echo '${'$as_ac_Header'}'`
11642 { echo "$as_me:$LINENO: result: $ac_res" >&5
11643 echo "${ECHO_T}$ac_res" >&6; }
11644
11645 fi
11646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11647 cat >>confdefs.h <<_ACEOF
11648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11649 _ACEOF
11650
11651 fi
11652
11653 done
11654
11655 if test "$ac_cv_header_pthread_h"; then
11656 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11657 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11658 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661 ac_check_lib_save_LIBS=$LIBS
11662 LIBS="-lpthread $LIBS"
11663 cat >conftest.$ac_ext <<_ACEOF
11664 /* confdefs.h. */
11665 _ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11673 #ifdef __cplusplus
11674 extern "C"
11675 #endif
11676 char pthread_self ();
11677 int
11678 main ()
11679 {
11680 return pthread_self ();
11681 ;
11682 return 0;
11683 }
11684 _ACEOF
11685 rm -f conftest.$ac_objext conftest$ac_exeext
11686 if { (ac_try="$ac_link"
11687 case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_link") 2>conftest.er1
11693 ac_status=$?
11694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } && {
11699 test -z "$ac_c_werror_flag" ||
11700 test ! -s conftest.err
11701 } && test -s conftest$ac_exeext &&
11702 $as_test_x conftest$ac_exeext; then
11703 ac_cv_lib_pthread_pthread_self=yes
11704 else
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 ac_cv_lib_pthread_pthread_self=no
11709 fi
11710
11711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11712 conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_lib_save_LIBS
11714 fi
11715 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11716 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11717 if test $ac_cv_lib_pthread_pthread_self = yes; then
11718 HAVE_GTK_AND_PTHREAD=yes
11719 fi
11720
11721 fi
11722 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11723 GTK_LIBS="$GTK_LIBS -lpthread"
11724
11725 cat >>confdefs.h <<\_ACEOF
11726 #define HAVE_GTK_AND_PTHREAD 1
11727 _ACEOF
11728
11729 fi
11730 fi
11731 fi
11732
11733 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11734 if test x"${HAVE_X11R5}" = xyes; then
11735 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11736 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11737 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740 cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h. */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746
11747 #include <X11/Intrinsic.h>
11748 #include <X11/Xaw/Simple.h>
11749 int
11750 main ()
11751 {
11752
11753 ;
11754 return 0;
11755 }
11756 _ACEOF
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (ac_try="$ac_link"
11759 case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11762 esac
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_link") 2>conftest.er1
11765 ac_status=$?
11766 grep -v '^ *+' conftest.er1 >conftest.err
11767 rm -f conftest.er1
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } && {
11771 test -z "$ac_c_werror_flag" ||
11772 test ! -s conftest.err
11773 } && test -s conftest$ac_exeext &&
11774 $as_test_x conftest$ac_exeext; then
11775 emacs_cv_x11_version_5_with_xaw=yes
11776 else
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11779
11780 emacs_cv_x11_version_5_with_xaw=no
11781 fi
11782
11783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11784 conftest$ac_exeext conftest.$ac_ext
11785 fi
11786
11787 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11788 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11789 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11790 USE_X_TOOLKIT=LUCID
11791 else
11792 if test x"${USE_X_TOOLKIT}" = xLUCID; then
11793 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11794 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11795 { (exit 1); exit 1; }; }
11796 else
11797 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11798 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11799 USE_X_TOOLKIT=none
11800 fi
11801 fi
11802 else
11803 USE_X_TOOLKIT=none
11804 fi
11805 fi
11806
11807 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11808
11809 if test "${USE_X_TOOLKIT}" != "none"; then
11810 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11811 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11812 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815 cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h. */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 #include <X11/Intrinsic.h>
11822 int
11823 main ()
11824 {
11825 #if XtSpecificationRelease < 6
11826 fail;
11827 #endif
11828
11829 ;
11830 return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (ac_try="$ac_link"
11835 case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_link") 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } && {
11847 test -z "$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 } && test -s conftest$ac_exeext &&
11850 $as_test_x conftest$ac_exeext; then
11851 emacs_cv_x11_toolkit_version_6=yes
11852 else
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11855
11856 emacs_cv_x11_toolkit_version_6=no
11857 fi
11858
11859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11860 conftest$ac_exeext conftest.$ac_ext
11861 fi
11862
11863 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11864 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11865 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11866 echo "${ECHO_T}6 or newer" >&6; }
11867
11868 cat >>confdefs.h <<\_ACEOF
11869 #define HAVE_X11XTR6 1
11870 _ACEOF
11871
11872 else
11873 { echo "$as_me:$LINENO: result: before 6" >&5
11874 echo "${ECHO_T}before 6" >&6; }
11875 fi
11876
11877 OLDLIBS="$LIBS"
11878 if test x$HAVE_X11XTR6 = xyes; then
11879 LIBS="-lXt -lSM -lICE $LIBS"
11880 else
11881 LIBS="-lXt $LIBS"
11882 fi
11883
11884 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11885 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11886 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889 ac_check_lib_save_LIBS=$LIBS
11890 LIBS="-lXmu $LIBS"
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 char XmuConvertStandardSelection ();
11905 int
11906 main ()
11907 {
11908 return XmuConvertStandardSelection ();
11909 ;
11910 return 0;
11911 }
11912 _ACEOF
11913 rm -f conftest.$ac_objext conftest$ac_exeext
11914 if { (ac_try="$ac_link"
11915 case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11918 esac
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_link") 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && {
11927 test -z "$ac_c_werror_flag" ||
11928 test ! -s conftest.err
11929 } && test -s conftest$ac_exeext &&
11930 $as_test_x conftest$ac_exeext; then
11931 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11937 fi
11938
11939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940 conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11942 fi
11943 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11944 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11945 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define HAVE_LIBXMU 1
11948 _ACEOF
11949
11950 LIBS="-lXmu $LIBS"
11951
11952 fi
11953
11954 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11955 fi
11956
11957 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11958 if test "${HAVE_X11}" = "yes"; then
11959 if test "${USE_X_TOOLKIT}" != "none"; then
11960
11961 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11962 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11963 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966 ac_check_lib_save_LIBS=$LIBS
11967 LIBS="-lXext $LIBS"
11968 cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h. */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974
11975 /* Override any GCC internal prototype to avoid an error.
11976 Use char because int might match the return type of a GCC
11977 builtin and then its argument prototype would still apply. */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 char XShapeQueryExtension ();
11982 int
11983 main ()
11984 {
11985 return XShapeQueryExtension ();
11986 ;
11987 return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_link") 2>conftest.er1
11998 ac_status=$?
11999 grep -v '^ *+' conftest.er1 >conftest.err
12000 rm -f conftest.er1
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } && {
12004 test -z "$ac_c_werror_flag" ||
12005 test ! -s conftest.err
12006 } && test -s conftest$ac_exeext &&
12007 $as_test_x conftest$ac_exeext; then
12008 ac_cv_lib_Xext_XShapeQueryExtension=yes
12009 else
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 ac_cv_lib_Xext_XShapeQueryExtension=no
12014 fi
12015
12016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12017 conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12019 fi
12020 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12021 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12022 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12023 cat >>confdefs.h <<_ACEOF
12024 #define HAVE_LIBXEXT 1
12025 _ACEOF
12026
12027 LIBS="-lXext $LIBS"
12028
12029 fi
12030
12031 fi
12032 fi
12033
12034 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12035 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12036 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12037 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12038 echo $ECHO_N "(cached) $ECHO_C" >&6
12039 else
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h. */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 #include <Xm/Xm.h>
12047 int
12048 main ()
12049 {
12050 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12051 int x = 5;
12052 #else
12053 Motif version prior to 2.1.
12054 #endif
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 rm -f conftest.$ac_objext
12060 if { (ac_try="$ac_compile"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_compile") 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest.$ac_objext; then
12076 emacs_cv_motif_version_2_1=yes
12077 else
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 emacs_cv_motif_version_2_1=no
12082 fi
12083
12084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12085 fi
12086 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12087 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12088 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12089 if test $emacs_cv_motif_version_2_1 = yes; then
12090 HAVE_LIBXP=no
12091
12092 cat >>confdefs.h <<\_ACEOF
12093 #define HAVE_MOTIF_2_1 1
12094 _ACEOF
12095
12096 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12097 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12098 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101 ac_check_lib_save_LIBS=$LIBS
12102 LIBS="-lXp $LIBS"
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h. */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char XpCreateContext ();
12117 int
12118 main ()
12119 {
12120 return XpCreateContext ();
12121 ;
12122 return 0;
12123 }
12124 _ACEOF
12125 rm -f conftest.$ac_objext conftest$ac_exeext
12126 if { (ac_try="$ac_link"
12127 case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_link") 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } && {
12139 test -z "$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest$ac_exeext &&
12142 $as_test_x conftest$ac_exeext; then
12143 ac_cv_lib_Xp_XpCreateContext=yes
12144 else
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148 ac_cv_lib_Xp_XpCreateContext=no
12149 fi
12150
12151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12152 conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12154 fi
12155 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12156 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12157 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12158 HAVE_LIBXP=yes
12159 fi
12160
12161 if test ${HAVE_LIBXP} = yes; then
12162
12163 cat >>confdefs.h <<\_ACEOF
12164 #define HAVE_LIBXP 1
12165 _ACEOF
12166
12167 fi
12168 else
12169 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12170 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12171 if test "${emacs_cv_lesstif+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174 # We put this in CFLAGS temporarily to precede other -I options
12175 # that might be in CFLAGS temporarily.
12176 # We put this in CPPFLAGS where it precedes the other -I options.
12177 OLD_CPPFLAGS=$CPPFLAGS
12178 OLD_CFLAGS=$CFLAGS
12179 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12180 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12188 int
12189 main ()
12190 {
12191 int x = 5;
12192 ;
12193 return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext
12197 if { (ac_try="$ac_compile"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_compile") 2>conftest.er1
12204 ac_status=$?
12205 grep -v '^ *+' conftest.er1 >conftest.err
12206 rm -f conftest.er1
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } && {
12210 test -z "$ac_c_werror_flag" ||
12211 test ! -s conftest.err
12212 } && test -s conftest.$ac_objext; then
12213 emacs_cv_lesstif=yes
12214 else
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12217
12218 emacs_cv_lesstif=no
12219 fi
12220
12221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12222 fi
12223 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12224 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12225 if test $emacs_cv_lesstif = yes; then
12226 # Make sure this -I option remains in CPPFLAGS after it is set
12227 # back to REAL_CPPFLAGS.
12228 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12229 # have those other -I options anyway. Ultimately, having this
12230 # directory ultimately in CPPFLAGS will be enough.
12231 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12232 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12233 else
12234 CFLAGS=$OLD_CFLAGS
12235 CPPFLAGS=$OLD_CPPFLAGS
12236 fi
12237 fi
12238 fi
12239
12240 ### Is -lXaw3d available?
12241 HAVE_XAW3D=no
12242 if test "${HAVE_X11}" = "yes"; then
12243 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12244 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12245 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12246 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 #include <X11/Xaw3d/Scrollbar.h>
12256 _ACEOF
12257 if { (ac_try="$ac_cpp conftest.$ac_ext"
12258 case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261 esac
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } >/dev/null && {
12270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 }; then
12273 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12277
12278 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12279 fi
12280
12281 rm -f conftest.err conftest.$ac_ext
12282 fi
12283 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12284 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12285 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12286 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12287 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12288 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-lXaw3d $LIBS"
12293 cat >conftest.$ac_ext <<_ACEOF
12294 /* confdefs.h. */
12295 _ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12299
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 char XawScrollbarSetThumb ();
12307 int
12308 main ()
12309 {
12310 return XawScrollbarSetThumb ();
12311 ;
12312 return 0;
12313 }
12314 _ACEOF
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (ac_try="$ac_link"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_link") 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && {
12329 test -z "$ac_c_werror_flag" ||
12330 test ! -s conftest.err
12331 } && test -s conftest$ac_exeext &&
12332 $as_test_x conftest$ac_exeext; then
12333 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12334 else
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12337
12338 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12339 fi
12340
12341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12344 fi
12345 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12346 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12347 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12348 HAVE_XAW3D=yes
12349 fi
12350
12351 fi
12352
12353
12354 if test "${HAVE_XAW3D}" = "yes"; then
12355
12356 cat >>confdefs.h <<\_ACEOF
12357 #define HAVE_XAW3D 1
12358 _ACEOF
12359
12360 fi
12361 fi
12362 fi
12363
12364
12365
12366 USE_TOOLKIT_SCROLL_BARS=no
12367 if test "${with_toolkit_scroll_bars}" != "no"; then
12368 if test "${USE_X_TOOLKIT}" != "none"; then
12369 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12370 cat >>confdefs.h <<\_ACEOF
12371 #define USE_TOOLKIT_SCROLL_BARS 1
12372 _ACEOF
12373
12374 HAVE_XAW3D=no
12375 USE_TOOLKIT_SCROLL_BARS=yes
12376 elif test "${HAVE_XAW3D}" = "yes"; then
12377 cat >>confdefs.h <<\_ACEOF
12378 #define USE_TOOLKIT_SCROLL_BARS 1
12379 _ACEOF
12380
12381 USE_TOOLKIT_SCROLL_BARS=yes
12382 fi
12383 elif test "${HAVE_GTK}" = "yes"; then
12384 cat >>confdefs.h <<\_ACEOF
12385 #define USE_TOOLKIT_SCROLL_BARS 1
12386 _ACEOF
12387
12388 USE_TOOLKIT_SCROLL_BARS=yes
12389 elif test "${HAVE_CARBON}" = "yes"; then
12390 cat >>confdefs.h <<\_ACEOF
12391 #define USE_TOOLKIT_SCROLL_BARS 1
12392 _ACEOF
12393
12394 USE_TOOLKIT_SCROLL_BARS=yes
12395 fi
12396 fi
12397
12398 cat >conftest.$ac_ext <<_ACEOF
12399 /* confdefs.h. */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12404
12405 #include <X11/Xlib.h>
12406 #include <X11/Xresource.h>
12407 int
12408 main ()
12409 {
12410 XIMProc callback;
12411 ;
12412 return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext
12416 if { (ac_try="$ac_compile"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_compile") 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } && {
12429 test -z "$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 } && test -s conftest.$ac_objext; then
12432 HAVE_XIM=yes
12433
12434 cat >>confdefs.h <<\_ACEOF
12435 #define HAVE_XIM 1
12436 _ACEOF
12437
12438 else
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 HAVE_XIM=no
12443 fi
12444
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446
12447
12448 if test "${with_xim}" != "no"; then
12449
12450 cat >>confdefs.h <<\_ACEOF
12451 #define USE_XIM 1
12452 _ACEOF
12453
12454 fi
12455
12456
12457 if test "${HAVE_XIM}" != "no"; then
12458 late_CFLAGS=$CFLAGS
12459 if test "$GCC" = yes; then
12460 CFLAGS="$CFLAGS --pedantic-errors"
12461 fi
12462 cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h. */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12468
12469 #include <X11/Xlib.h>
12470 #include <X11/Xresource.h>
12471 int
12472 main ()
12473 {
12474 Display *display;
12475 XrmDatabase db;
12476 char *res_name;
12477 char *res_class;
12478 XIMProc callback;
12479 XPointer *client_data;
12480 #ifndef __GNUC__
12481 /* If we're not using GCC, it's probably not XFree86, and this is
12482 probably right, but we can't use something like --pedantic-errors. */
12483 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12484 char*, XIMProc, XPointer*);
12485 #endif
12486 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12487 client_data);
12488 ;
12489 return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (ac_try="$ac_compile"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_compile") 2>conftest.er1
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12508 } && test -s conftest.$ac_objext; then
12509 emacs_cv_arg6_star=yes
12510 else
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514
12515 fi
12516
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518
12519 if test "$emacs_cv_arg6_star" = yes; then
12520 cat >>confdefs.h <<\_ACEOF
12521 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12522 _ACEOF
12523
12524 else
12525 cat >>confdefs.h <<\_ACEOF
12526 #define XRegisterIMInstantiateCallback_arg6 XPointer
12527 _ACEOF
12528
12529 fi
12530 CFLAGS=$late_CFLAGS
12531 fi
12532
12533 ### For font-backend
12534 if test "${USE_FONT_BACKEND}" = "yes"; then
12535
12536
12537 cat >>confdefs.h <<\_ACEOF
12538 #define USE_FONT_BACKEND 1
12539 _ACEOF
12540
12541
12542 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12543 HAVE_XFT=maybe
12544 if test "${HAVE_X11}" = "yes"; then
12545 if test "x${with_freetype}" = "xno"; then
12546 with_xft="no";
12547 fi
12548 if test "x${with_xft}" != "xno"; then
12549
12550 if test "X${with_pkg_config_prog}" != X; then
12551 PKG_CONFIG="${with_pkg_config_prog}"
12552 fi
12553
12554
12555 succeeded=no
12556
12557 if test -z "$PKG_CONFIG"; then
12558 # Extract the first word of "pkg-config", so it can be a program name with args.
12559 set dummy pkg-config; ac_word=$2
12560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12562 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565 case $PKG_CONFIG in
12566 [\\/]* | ?:[\\/]*)
12567 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12568 ;;
12569 *)
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12572 do
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12577 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 break 2
12580 fi
12581 done
12582 done
12583 IFS=$as_save_IFS
12584
12585 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12586 ;;
12587 esac
12588 fi
12589 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12590 if test -n "$PKG_CONFIG"; then
12591 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12592 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12593 else
12594 { echo "$as_me:$LINENO: result: no" >&5
12595 echo "${ECHO_T}no" >&6; }
12596 fi
12597
12598
12599 fi
12600
12601 if test "$PKG_CONFIG" = "no" ; then
12602 HAVE_XFT=no
12603 else
12604 PKG_CONFIG_MIN_VERSION=0.9.0
12605 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12606 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12607 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12608
12609 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12610 { echo "$as_me:$LINENO: result: yes" >&5
12611 echo "${ECHO_T}yes" >&6; }
12612 succeeded=yes
12613
12614 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12615 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12616 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12617 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12618 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12619
12620 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12621 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12622 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12623 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12624 echo "${ECHO_T}$XFT_LIBS" >&6; }
12625 else
12626 { echo "$as_me:$LINENO: result: no" >&5
12627 echo "${ECHO_T}no" >&6; }
12628 XFT_CFLAGS=""
12629 XFT_LIBS=""
12630 ## If we have a custom action on failure, don't print errors, but
12631 ## do set a variable so people can do so.
12632 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12633
12634 fi
12635
12636
12637
12638 else
12639 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12640 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12641 fi
12642 fi
12643
12644 if test $succeeded = yes; then
12645 :
12646 else
12647 HAVE_XFT=no
12648 fi
12649
12650 if test "$HAVE_XFT" != no; then
12651 OLD_CPPFLAGS="$CPPFLAGS"
12652 OLD_CFLAGS="$CFLAGS"
12653 OLD_LIBS="$LIBS"
12654 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12655 CFLAGS="$CFLAGS $XFT_CFLAGS"
12656 LIBS="$XFT_LIBS $LIBS"
12657 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12658 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12659 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12660 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 fi
12663 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12664 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12665 else
12666 # Is the header compilable?
12667 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12668 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h. */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 $ac_includes_default
12676 #include <X11/Xft/Xft.h>
12677 _ACEOF
12678 rm -f conftest.$ac_objext
12679 if { (ac_try="$ac_compile"
12680 case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_compile") 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest.$ac_objext; then
12695 ac_header_compiler=yes
12696 else
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 ac_header_compiler=no
12701 fi
12702
12703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12705 echo "${ECHO_T}$ac_header_compiler" >&6; }
12706
12707 # Is the header present?
12708 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12709 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12710 cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h. */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 #include <X11/Xft/Xft.h>
12717 _ACEOF
12718 if { (ac_try="$ac_cpp conftest.$ac_ext"
12719 case "(($ac_try" in
12720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721 *) ac_try_echo=$ac_try;;
12722 esac
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12725 ac_status=$?
12726 grep -v '^ *+' conftest.er1 >conftest.err
12727 rm -f conftest.er1
12728 cat conftest.err >&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } >/dev/null && {
12731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12732 test ! -s conftest.err
12733 }; then
12734 ac_header_preproc=yes
12735 else
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739 ac_header_preproc=no
12740 fi
12741
12742 rm -f conftest.err conftest.$ac_ext
12743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12744 echo "${ECHO_T}$ac_header_preproc" >&6; }
12745
12746 # So? What about this header?
12747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12748 yes:no: )
12749 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12750 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12753 ac_header_preproc=yes
12754 ;;
12755 no:yes:* )
12756 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12757 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12759 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12761 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12763 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12764 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12765 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12767 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12768
12769 ;;
12770 esac
12771 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12772 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12773 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12777 fi
12778 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12779 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12780
12781 fi
12782 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12783 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12784 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12785 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788 ac_check_lib_save_LIBS=$LIBS
12789 LIBS="-lXft $XFT_LIBS $LIBS"
12790 cat >conftest.$ac_ext <<_ACEOF
12791 /* confdefs.h. */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796
12797 /* Override any GCC internal prototype to avoid an error.
12798 Use char because int might match the return type of a GCC
12799 builtin and then its argument prototype would still apply. */
12800 #ifdef __cplusplus
12801 extern "C"
12802 #endif
12803 char XftFontOpen ();
12804 int
12805 main ()
12806 {
12807 return XftFontOpen ();
12808 ;
12809 return 0;
12810 }
12811 _ACEOF
12812 rm -f conftest.$ac_objext conftest$ac_exeext
12813 if { (ac_try="$ac_link"
12814 case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817 esac
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_link") 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } && {
12826 test -z "$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12828 } && test -s conftest$ac_exeext &&
12829 $as_test_x conftest$ac_exeext; then
12830 ac_cv_lib_Xft_XftFontOpen=yes
12831 else
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835 ac_cv_lib_Xft_XftFontOpen=no
12836 fi
12837
12838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12839 conftest$ac_exeext conftest.$ac_ext
12840 LIBS=$ac_check_lib_save_LIBS
12841 fi
12842 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12843 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12844 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12845 HAVE_XFT=yes
12846 fi
12847
12848 fi
12849
12850
12851
12852 if test "${HAVE_XFT}" = "yes"; then
12853
12854 cat >>confdefs.h <<\_ACEOF
12855 #define HAVE_XFT 1
12856 _ACEOF
12857
12858
12859 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12860 else
12861 CFLAGS="$OLD_CPPFLAGS"
12862 CFLAGS="$OLD_CFLAGS"
12863 LIBS="$OLD_LIBS"
12864 fi
12865 fi
12866 fi
12867 fi
12868
12869 HAVE_FREETYPE=no
12870 ### Use -lfreetype if available, unless `--with-freetype=no'.
12871 if test "${HAVE_XFT}" = "yes"; then
12872 HAVE_FREETYPE=yes
12873 elif test "x${with_freetype}" != "xno"; then
12874 if test "X${with_pkg_config_prog}" != X; then
12875 PKG_CONFIG="${with_pkg_config_prog}"
12876 fi
12877
12878
12879 succeeded=no
12880
12881 if test -z "$PKG_CONFIG"; then
12882 # Extract the first word of "pkg-config", so it can be a program name with args.
12883 set dummy pkg-config; ac_word=$2
12884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12886 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889 case $PKG_CONFIG in
12890 [\\/]* | ?:[\\/]*)
12891 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12892 ;;
12893 *)
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12896 do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905 done
12906 done
12907 IFS=$as_save_IFS
12908
12909 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12910 ;;
12911 esac
12912 fi
12913 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12914 if test -n "$PKG_CONFIG"; then
12915 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12916 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12917 else
12918 { echo "$as_me:$LINENO: result: no" >&5
12919 echo "${ECHO_T}no" >&6; }
12920 fi
12921
12922
12923 fi
12924
12925 if test "$PKG_CONFIG" = "no" ; then
12926 HAVE_FREETYPE=no
12927 else
12928 PKG_CONFIG_MIN_VERSION=0.9.0
12929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12930 { echo "$as_me:$LINENO: checking for freetype2" >&5
12931 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12932
12933 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12934 { echo "$as_me:$LINENO: result: yes" >&5
12935 echo "${ECHO_T}yes" >&6; }
12936 succeeded=yes
12937
12938 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12939 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12940 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12941 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12942 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12943
12944 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12945 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12946 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12947 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12948 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12949 else
12950 { echo "$as_me:$LINENO: result: no" >&5
12951 echo "${ECHO_T}no" >&6; }
12952 FREETYPE_CFLAGS=""
12953 FREETYPE_LIBS=""
12954 ## If we have a custom action on failure, don't print errors, but
12955 ## do set a variable so people can do so.
12956 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12957
12958 fi
12959
12960
12961
12962 else
12963 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12964 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12965 fi
12966 fi
12967
12968 if test $succeeded = yes; then
12969 HAVE_FREETYPE=yes
12970 else
12971 HAVE_FREETYPE=no
12972 fi
12973
12974 if test "${HAVE_FREETYPE}" = "yes"; then
12975
12976 succeeded=no
12977
12978 if test -z "$PKG_CONFIG"; then
12979 # Extract the first word of "pkg-config", so it can be a program name with args.
12980 set dummy pkg-config; ac_word=$2
12981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12983 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986 case $PKG_CONFIG in
12987 [\\/]* | ?:[\\/]*)
12988 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12989 ;;
12990 *)
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12993 do
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12998 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 break 2
13001 fi
13002 done
13003 done
13004 IFS=$as_save_IFS
13005
13006 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13007 ;;
13008 esac
13009 fi
13010 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13011 if test -n "$PKG_CONFIG"; then
13012 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13013 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13014 else
13015 { echo "$as_me:$LINENO: result: no" >&5
13016 echo "${ECHO_T}no" >&6; }
13017 fi
13018
13019
13020 fi
13021
13022 if test "$PKG_CONFIG" = "no" ; then
13023 HAVE_FC=no
13024 else
13025 PKG_CONFIG_MIN_VERSION=0.9.0
13026 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13027 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13028 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13029
13030 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13031 { echo "$as_me:$LINENO: result: yes" >&5
13032 echo "${ECHO_T}yes" >&6; }
13033 succeeded=yes
13034
13035 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13036 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13037 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13038 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13039 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13040
13041 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13042 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13043 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13044 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13045 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13046 else
13047 { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13049 FONTCONFIG_CFLAGS=""
13050 FONTCONFIG_LIBS=""
13051 ## If we have a custom action on failure, don't print errors, but
13052 ## do set a variable so people can do so.
13053 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13054
13055 fi
13056
13057
13058
13059 else
13060 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13061 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13062 fi
13063 fi
13064
13065 if test $succeeded = yes; then
13066 HAVE_FC=yes
13067 else
13068 HAVE_FC=no
13069 fi
13070
13071 if test "${HAVE_FC}" = "no"; then
13072 HAVE_FREETYPE=no
13073 fi
13074 fi
13075 fi
13076 if test "${HAVE_FREETYPE}" = "yes"; then
13077
13078 cat >>confdefs.h <<\_ACEOF
13079 #define HAVE_FREETYPE 1
13080 _ACEOF
13081
13082 # Extract the first word of "libotf-config", so it can be a program name with args.
13083 set dummy libotf-config; ac_word=$2
13084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13086 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089 if test -n "$HAVE_LIBOTF"; then
13090 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13091 else
13092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093 for as_dir in $PATH
13094 do
13095 IFS=$as_save_IFS
13096 test -z "$as_dir" && as_dir=.
13097 for ac_exec_ext in '' $ac_executable_extensions; do
13098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13099 ac_cv_prog_HAVE_LIBOTF="yes"
13100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13101 break 2
13102 fi
13103 done
13104 done
13105 IFS=$as_save_IFS
13106
13107 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13108 fi
13109 fi
13110 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13111 if test -n "$HAVE_LIBOTF"; then
13112 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13113 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13114 else
13115 { echo "$as_me:$LINENO: result: no" >&5
13116 echo "${ECHO_T}no" >&6; }
13117 fi
13118
13119
13120 if test "${HAVE_LIBOTF}" = "yes"; then
13121
13122 { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
13123 echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
13124 if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127 ac_check_lib_save_LIBS=$LIBS
13128 LIBS="-lotf $LIBS"
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
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13139 #ifdef __cplusplus
13140 extern "C"
13141 #endif
13142 char OTF_get_features ();
13143 int
13144 main ()
13145 {
13146 return OTF_get_features ();
13147 ;
13148 return 0;
13149 }
13150 _ACEOF
13151 rm -f conftest.$ac_objext conftest$ac_exeext
13152 if { (ac_try="$ac_link"
13153 case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_link") 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } && {
13165 test -z "$ac_c_werror_flag" ||
13166 test ! -s conftest.err
13167 } && test -s conftest$ac_exeext &&
13168 $as_test_x conftest$ac_exeext; then
13169 ac_cv_lib_otf_OTF_get_features=yes
13170 else
13171 echo "$as_me: failed program was:" >&5
13172 sed 's/^/| /' conftest.$ac_ext >&5
13173
13174 ac_cv_lib_otf_OTF_get_features=no
13175 fi
13176
13177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13178 conftest$ac_exeext conftest.$ac_ext
13179 LIBS=$ac_check_lib_save_LIBS
13180 fi
13181 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
13182 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
13183 if test $ac_cv_lib_otf_OTF_get_features = yes; then
13184 cat >>confdefs.h <<_ACEOF
13185 #define HAVE_LIBOTF 1
13186 _ACEOF
13187
13188 LIBS="-lotf $LIBS"
13189
13190 else
13191 HAVE_LIBOTF=no
13192 fi
13193
13194 if test "${HAVE_LIBOTF}" = "yes"; then
13195
13196 cat >>confdefs.h <<\_ACEOF
13197 #define HAVE_LIBOTF 1
13198 _ACEOF
13199
13200 LIBOTF_CFLAGS=`libotf-config --cflags`
13201 LIBOTF_LIBS=`libotf-config --libs`
13202 fi
13203 fi
13204 fi
13205
13206
13207
13208
13209
13210
13211
13212 fi
13213
13214 ### Use -lXpm if available, unless `--with-xpm=no'.
13215 HAVE_XPM=no
13216 if test "${HAVE_X11}" = "yes"; then
13217 if test "${with_xpm}" != "no"; then
13218 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13219 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13220 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13221 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 fi
13224 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13225 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13226 else
13227 # Is the header compilable?
13228 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13229 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13230 cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h. */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13236 $ac_includes_default
13237 #include <X11/xpm.h>
13238 _ACEOF
13239 rm -f conftest.$ac_objext
13240 if { (ac_try="$ac_compile"
13241 case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244 esac
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_compile") 2>conftest.er1
13247 ac_status=$?
13248 grep -v '^ *+' conftest.er1 >conftest.err
13249 rm -f conftest.er1
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } && {
13253 test -z "$ac_c_werror_flag" ||
13254 test ! -s conftest.err
13255 } && test -s conftest.$ac_objext; then
13256 ac_header_compiler=yes
13257 else
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261 ac_header_compiler=no
13262 fi
13263
13264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13266 echo "${ECHO_T}$ac_header_compiler" >&6; }
13267
13268 # Is the header present?
13269 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13270 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h. */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 #include <X11/xpm.h>
13278 _ACEOF
13279 if { (ac_try="$ac_cpp conftest.$ac_ext"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13286 ac_status=$?
13287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } >/dev/null && {
13292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13293 test ! -s conftest.err
13294 }; then
13295 ac_header_preproc=yes
13296 else
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13299
13300 ac_header_preproc=no
13301 fi
13302
13303 rm -f conftest.err conftest.$ac_ext
13304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13305 echo "${ECHO_T}$ac_header_preproc" >&6; }
13306
13307 # So? What about this header?
13308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13309 yes:no: )
13310 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13311 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13312 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13313 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13314 ac_header_preproc=yes
13315 ;;
13316 no:yes:* )
13317 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13318 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13320 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13322 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13324 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13326 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13328 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13329
13330 ;;
13331 esac
13332 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13333 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13334 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337 ac_cv_header_X11_xpm_h=$ac_header_preproc
13338 fi
13339 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13340 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13341
13342 fi
13343 if test $ac_cv_header_X11_xpm_h = yes; then
13344 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13345 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13346 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349 ac_check_lib_save_LIBS=$LIBS
13350 LIBS="-lXpm -lX11 $LIBS"
13351 cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h. */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357
13358 /* Override any GCC internal prototype to avoid an error.
13359 Use char because int might match the return type of a GCC
13360 builtin and then its argument prototype would still apply. */
13361 #ifdef __cplusplus
13362 extern "C"
13363 #endif
13364 char XpmReadFileToPixmap ();
13365 int
13366 main ()
13367 {
13368 return XpmReadFileToPixmap ();
13369 ;
13370 return 0;
13371 }
13372 _ACEOF
13373 rm -f conftest.$ac_objext conftest$ac_exeext
13374 if { (ac_try="$ac_link"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13378 esac
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } && {
13387 test -z "$ac_c_werror_flag" ||
13388 test ! -s conftest.err
13389 } && test -s conftest$ac_exeext &&
13390 $as_test_x conftest$ac_exeext; then
13391 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13392 else
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13397 fi
13398
13399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13400 conftest$ac_exeext conftest.$ac_ext
13401 LIBS=$ac_check_lib_save_LIBS
13402 fi
13403 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13404 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13405 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13406 HAVE_XPM=yes
13407 fi
13408
13409 fi
13410
13411
13412 if test "${HAVE_XPM}" = "yes"; then
13413 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13414 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13415 cat >conftest.$ac_ext <<_ACEOF
13416 /* confdefs.h. */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 #include "X11/xpm.h"
13422 #ifndef XpmReturnAllocPixels
13423 no_return_alloc_pixels
13424 #endif
13425
13426 _ACEOF
13427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13428 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13429 HAVE_XPM=no
13430 else
13431 HAVE_XPM=yes
13432 fi
13433 rm -f conftest*
13434
13435
13436 if test "${HAVE_XPM}" = "yes"; then
13437 { echo "$as_me:$LINENO: result: yes" >&5
13438 echo "${ECHO_T}yes" >&6; }
13439 else
13440 { echo "$as_me:$LINENO: result: no" >&5
13441 echo "${ECHO_T}no" >&6; }
13442 fi
13443 fi
13444 fi
13445
13446 if test "${HAVE_XPM}" = "yes"; then
13447
13448 cat >>confdefs.h <<\_ACEOF
13449 #define HAVE_XPM 1
13450 _ACEOF
13451
13452 fi
13453 fi
13454
13455 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13456 HAVE_JPEG=no
13457 if test "${HAVE_X11}" = "yes"; then
13458 if test "${with_jpeg}" != "no"; then
13459 if test "${ac_cv_header_jerror_h+set}" = set; then
13460 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13461 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13462 if test "${ac_cv_header_jerror_h+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 fi
13465 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13466 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13467 else
13468 # Is the header compilable?
13469 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13470 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13471 cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h. */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13477 $ac_includes_default
13478 #include <jerror.h>
13479 _ACEOF
13480 rm -f conftest.$ac_objext
13481 if { (ac_try="$ac_compile"
13482 case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485 esac
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_compile") 2>conftest.er1
13488 ac_status=$?
13489 grep -v '^ *+' conftest.er1 >conftest.err
13490 rm -f conftest.er1
13491 cat conftest.err >&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } && {
13494 test -z "$ac_c_werror_flag" ||
13495 test ! -s conftest.err
13496 } && test -s conftest.$ac_objext; then
13497 ac_header_compiler=yes
13498 else
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13501
13502 ac_header_compiler=no
13503 fi
13504
13505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13507 echo "${ECHO_T}$ac_header_compiler" >&6; }
13508
13509 # Is the header present?
13510 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13511 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13512 cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h. */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 #include <jerror.h>
13519 _ACEOF
13520 if { (ac_try="$ac_cpp conftest.$ac_ext"
13521 case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13524 esac
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } >/dev/null && {
13533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13534 test ! -s conftest.err
13535 }; then
13536 ac_header_preproc=yes
13537 else
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541 ac_header_preproc=no
13542 fi
13543
13544 rm -f conftest.err conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13546 echo "${ECHO_T}$ac_header_preproc" >&6; }
13547
13548 # So? What about this header?
13549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13550 yes:no: )
13551 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13552 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13554 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13555 ac_header_preproc=yes
13556 ;;
13557 no:yes:* )
13558 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13559 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13560 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13561 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13563 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13565 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13567 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13569 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13570
13571 ;;
13572 esac
13573 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13574 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13575 if test "${ac_cv_header_jerror_h+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13577 else
13578 ac_cv_header_jerror_h=$ac_header_preproc
13579 fi
13580 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13581 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13582
13583 fi
13584 if test $ac_cv_header_jerror_h = yes; then
13585 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13586 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13587 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-ljpeg $LIBS"
13592 cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h. */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h. */
13598
13599 /* Override any GCC internal prototype to avoid an error.
13600 Use char because int might match the return type of a GCC
13601 builtin and then its argument prototype would still apply. */
13602 #ifdef __cplusplus
13603 extern "C"
13604 #endif
13605 char jpeg_destroy_compress ();
13606 int
13607 main ()
13608 {
13609 return jpeg_destroy_compress ();
13610 ;
13611 return 0;
13612 }
13613 _ACEOF
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (ac_try="$ac_link"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13619 esac
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_link") 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } && {
13628 test -z "$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13630 } && test -s conftest$ac_exeext &&
13631 $as_test_x conftest$ac_exeext; then
13632 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13633 else
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13638 fi
13639
13640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13641 conftest$ac_exeext conftest.$ac_ext
13642 LIBS=$ac_check_lib_save_LIBS
13643 fi
13644 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13645 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13646 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13647 HAVE_JPEG=yes
13648 fi
13649
13650 fi
13651
13652
13653 fi
13654
13655
13656 if test "${HAVE_JPEG}" = "yes"; then
13657 cat >>confdefs.h <<\_ACEOF
13658 #define HAVE_JPEG 1
13659 _ACEOF
13660
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h. */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 #include <jpeglib.h>
13668 version=JPEG_LIB_VERSION
13669
13670 _ACEOF
13671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13672 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13673 cat >>confdefs.h <<\_ACEOF
13674 #define HAVE_JPEG 1
13675 _ACEOF
13676
13677 else
13678 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13679 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13680 HAVE_JPEG=no
13681 fi
13682 rm -f conftest*
13683
13684 fi
13685 fi
13686
13687 ### Use -lpng if available, unless `--with-png=no'.
13688 HAVE_PNG=no
13689 if test "${HAVE_X11}" = "yes"; then
13690 if test "${with_png}" != "no"; then
13691 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13692 # in /usr/include/libpng.
13693
13694
13695 for ac_header in png.h libpng/png.h
13696 do
13697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13703 fi
13704 ac_res=`eval echo '${'$as_ac_Header'}'`
13705 { echo "$as_me:$LINENO: result: $ac_res" >&5
13706 echo "${ECHO_T}$ac_res" >&6; }
13707 else
13708 # Is the header compilable?
13709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h. */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 $ac_includes_default
13718 #include <$ac_header>
13719 _ACEOF
13720 rm -f conftest.$ac_objext
13721 if { (ac_try="$ac_compile"
13722 case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13725 esac
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_compile") 2>conftest.er1
13728 ac_status=$?
13729 grep -v '^ *+' conftest.er1 >conftest.err
13730 rm -f conftest.er1
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } && {
13734 test -z "$ac_c_werror_flag" ||
13735 test ! -s conftest.err
13736 } && test -s conftest.$ac_objext; then
13737 ac_header_compiler=yes
13738 else
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 ac_header_compiler=no
13743 fi
13744
13745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13747 echo "${ECHO_T}$ac_header_compiler" >&6; }
13748
13749 # Is the header present?
13750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 #include <$ac_header>
13759 _ACEOF
13760 if { (ac_try="$ac_cpp conftest.$ac_ext"
13761 case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } >/dev/null && {
13773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13774 test ! -s conftest.err
13775 }; then
13776 ac_header_preproc=yes
13777 else
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781 ac_header_preproc=no
13782 fi
13783
13784 rm -f conftest.err conftest.$ac_ext
13785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13786 echo "${ECHO_T}$ac_header_preproc" >&6; }
13787
13788 # So? What about this header?
13789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13790 yes:no: )
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13795 ac_header_preproc=yes
13796 ;;
13797 no:yes:* )
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13810
13811 ;;
13812 esac
13813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818 eval "$as_ac_Header=\$ac_header_preproc"
13819 fi
13820 ac_res=`eval echo '${'$as_ac_Header'}'`
13821 { echo "$as_me:$LINENO: result: $ac_res" >&5
13822 echo "${ECHO_T}$ac_res" >&6; }
13823
13824 fi
13825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13826 cat >>confdefs.h <<_ACEOF
13827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13828 _ACEOF
13829
13830 fi
13831
13832 done
13833
13834 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13835 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13836 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13837 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840 ac_check_lib_save_LIBS=$LIBS
13841 LIBS="-lpng -lz -lm $LIBS"
13842 cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h. */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13848
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13852 #ifdef __cplusplus
13853 extern "C"
13854 #endif
13855 char png_get_channels ();
13856 int
13857 main ()
13858 {
13859 return png_get_channels ();
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_link") 2>conftest.er1
13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest$ac_exeext &&
13881 $as_test_x conftest$ac_exeext; then
13882 ac_cv_lib_png_png_get_channels=yes
13883 else
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887 ac_cv_lib_png_png_get_channels=no
13888 fi
13889
13890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13893 fi
13894 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13895 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13896 if test $ac_cv_lib_png_png_get_channels = yes; then
13897 HAVE_PNG=yes
13898 fi
13899
13900 fi
13901 fi
13902
13903 if test "${HAVE_PNG}" = "yes"; then
13904
13905 cat >>confdefs.h <<\_ACEOF
13906 #define HAVE_PNG 1
13907 _ACEOF
13908
13909 fi
13910 fi
13911
13912 ### Use -ltiff if available, unless `--with-tiff=no'.
13913 HAVE_TIFF=no
13914 if test "${HAVE_X11}" = "yes"; then
13915 if test "${with_tiff}" != "no"; then
13916 if test "${ac_cv_header_tiffio_h+set}" = set; then
13917 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13918 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13919 if test "${ac_cv_header_tiffio_h+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 fi
13922 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13923 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13924 else
13925 # Is the header compilable?
13926 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13927 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13928 cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h. */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 $ac_includes_default
13935 #include <tiffio.h>
13936 _ACEOF
13937 rm -f conftest.$ac_objext
13938 if { (ac_try="$ac_compile"
13939 case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13942 esac
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_compile") 2>conftest.er1
13945 ac_status=$?
13946 grep -v '^ *+' conftest.er1 >conftest.err
13947 rm -f conftest.er1
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } && {
13951 test -z "$ac_c_werror_flag" ||
13952 test ! -s conftest.err
13953 } && test -s conftest.$ac_objext; then
13954 ac_header_compiler=yes
13955 else
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13958
13959 ac_header_compiler=no
13960 fi
13961
13962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13964 echo "${ECHO_T}$ac_header_compiler" >&6; }
13965
13966 # Is the header present?
13967 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13968 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13969 cat >conftest.$ac_ext <<_ACEOF
13970 /* confdefs.h. */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975 #include <tiffio.h>
13976 _ACEOF
13977 if { (ac_try="$ac_cpp conftest.$ac_ext"
13978 case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13981 esac
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } >/dev/null && {
13990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 }; then
13993 ac_header_preproc=yes
13994 else
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998 ac_header_preproc=no
13999 fi
14000
14001 rm -f conftest.err conftest.$ac_ext
14002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14003 echo "${ECHO_T}$ac_header_preproc" >&6; }
14004
14005 # So? What about this header?
14006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14007 yes:no: )
14008 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14009 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14011 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14012 ac_header_preproc=yes
14013 ;;
14014 no:yes:* )
14015 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14016 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14018 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14020 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14022 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14024 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14026 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14027
14028 ;;
14029 esac
14030 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14031 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14032 if test "${ac_cv_header_tiffio_h+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035 ac_cv_header_tiffio_h=$ac_header_preproc
14036 fi
14037 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14038 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14039
14040 fi
14041 if test $ac_cv_header_tiffio_h = yes; then
14042 tifflibs="-lz -lm"
14043 # At least one tiff package requires the jpeg library.
14044 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14045 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14046 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14047 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050 ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-ltiff $tifflibs $LIBS"
14052 cat >conftest.$ac_ext <<_ACEOF
14053 /* confdefs.h. */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058
14059 /* Override any GCC internal prototype to avoid an error.
14060 Use char because int might match the return type of a GCC
14061 builtin and then its argument prototype would still apply. */
14062 #ifdef __cplusplus
14063 extern "C"
14064 #endif
14065 char TIFFGetVersion ();
14066 int
14067 main ()
14068 {
14069 return TIFFGetVersion ();
14070 ;
14071 return 0;
14072 }
14073 _ACEOF
14074 rm -f conftest.$ac_objext conftest$ac_exeext
14075 if { (ac_try="$ac_link"
14076 case "(($ac_try" in
14077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078 *) ac_try_echo=$ac_try;;
14079 esac
14080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081 (eval "$ac_link") 2>conftest.er1
14082 ac_status=$?
14083 grep -v '^ *+' conftest.er1 >conftest.err
14084 rm -f conftest.er1
14085 cat conftest.err >&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } && {
14088 test -z "$ac_c_werror_flag" ||
14089 test ! -s conftest.err
14090 } && test -s conftest$ac_exeext &&
14091 $as_test_x conftest$ac_exeext; then
14092 ac_cv_lib_tiff_TIFFGetVersion=yes
14093 else
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 ac_cv_lib_tiff_TIFFGetVersion=no
14098 fi
14099
14100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14101 conftest$ac_exeext conftest.$ac_ext
14102 LIBS=$ac_check_lib_save_LIBS
14103 fi
14104 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14105 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14106 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14107 HAVE_TIFF=yes
14108 fi
14109
14110 fi
14111
14112
14113 fi
14114
14115 if test "${HAVE_TIFF}" = "yes"; then
14116
14117 cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_TIFF 1
14119 _ACEOF
14120
14121 fi
14122 fi
14123
14124 ### Use -lgif if available, unless `--with-gif=no'.
14125 HAVE_GIF=no
14126 if test "${HAVE_X11}" = "yes"; then
14127 if test "${with_gif}" != "no"; then
14128 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14129 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14130 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14131 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 fi
14134 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14135 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14136 else
14137 # Is the header compilable?
14138 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14139 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h. */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 $ac_includes_default
14147 #include <gif_lib.h>
14148 _ACEOF
14149 rm -f conftest.$ac_objext
14150 if { (ac_try="$ac_compile"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154 esac
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_compile") 2>conftest.er1
14157 ac_status=$?
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } && {
14163 test -z "$ac_c_werror_flag" ||
14164 test ! -s conftest.err
14165 } && test -s conftest.$ac_objext; then
14166 ac_header_compiler=yes
14167 else
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14170
14171 ac_header_compiler=no
14172 fi
14173
14174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14176 echo "${ECHO_T}$ac_header_compiler" >&6; }
14177
14178 # Is the header present?
14179 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14180 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14181 cat >conftest.$ac_ext <<_ACEOF
14182 /* confdefs.h. */
14183 _ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14187 #include <gif_lib.h>
14188 _ACEOF
14189 if { (ac_try="$ac_cpp conftest.$ac_ext"
14190 case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14193 esac
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14196 ac_status=$?
14197 grep -v '^ *+' conftest.er1 >conftest.err
14198 rm -f conftest.er1
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } >/dev/null && {
14202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14203 test ! -s conftest.err
14204 }; then
14205 ac_header_preproc=yes
14206 else
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14209
14210 ac_header_preproc=no
14211 fi
14212
14213 rm -f conftest.err conftest.$ac_ext
14214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14215 echo "${ECHO_T}$ac_header_preproc" >&6; }
14216
14217 # So? What about this header?
14218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14219 yes:no: )
14220 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14221 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14222 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14223 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14224 ac_header_preproc=yes
14225 ;;
14226 no:yes:* )
14227 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14228 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14229 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14230 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14231 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14232 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14234 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14235 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14236 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14237 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14238 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14239
14240 ;;
14241 esac
14242 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14243 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14244 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 else
14247 ac_cv_header_gif_lib_h=$ac_header_preproc
14248 fi
14249 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14250 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14251
14252 fi
14253 if test $ac_cv_header_gif_lib_h = yes; then
14254 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14255 # Earlier versions can crash Emacs.
14256 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14257 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14258 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261 ac_check_lib_save_LIBS=$LIBS
14262 LIBS="-lungif $LIBS"
14263 cat >conftest.$ac_ext <<_ACEOF
14264 /* confdefs.h. */
14265 _ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269
14270 /* Override any GCC internal prototype to avoid an error.
14271 Use char because int might match the return type of a GCC
14272 builtin and then its argument prototype would still apply. */
14273 #ifdef __cplusplus
14274 extern "C"
14275 #endif
14276 char EGifPutExtensionLast ();
14277 int
14278 main ()
14279 {
14280 return EGifPutExtensionLast ();
14281 ;
14282 return 0;
14283 }
14284 _ACEOF
14285 rm -f conftest.$ac_objext conftest$ac_exeext
14286 if { (ac_try="$ac_link"
14287 case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290 esac
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_link") 2>conftest.er1
14293 ac_status=$?
14294 grep -v '^ *+' conftest.er1 >conftest.err
14295 rm -f conftest.er1
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } && {
14299 test -z "$ac_c_werror_flag" ||
14300 test ! -s conftest.err
14301 } && test -s conftest$ac_exeext &&
14302 $as_test_x conftest$ac_exeext; then
14303 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14304 else
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14307
14308 ac_cv_lib_ungif_EGifPutExtensionLast=no
14309 fi
14310
14311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14312 conftest$ac_exeext conftest.$ac_ext
14313 LIBS=$ac_check_lib_save_LIBS
14314 fi
14315 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14316 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14317 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14318 HAVE_GIF=yes
14319 fi
14320
14321 fi
14322
14323
14324 fi
14325
14326 if test "${HAVE_GIF}" = "yes"; then
14327
14328 cat >>confdefs.h <<\_ACEOF
14329 #define HAVE_GIF 1
14330 _ACEOF
14331
14332 fi
14333 fi
14334
14335 ### Use -lgpm if available, unless `--with-gpm=no'.
14336 HAVE_GPM=no
14337 if test "${with_gpm}" != "no"; then
14338 if test "${ac_cv_header_gpm_h+set}" = set; then
14339 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14340 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14341 if test "${ac_cv_header_gpm_h+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 fi
14344 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14345 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14346 else
14347 # Is the header compilable?
14348 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14349 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h. */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 $ac_includes_default
14357 #include <gpm.h>
14358 _ACEOF
14359 rm -f conftest.$ac_objext
14360 if { (ac_try="$ac_compile"
14361 case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14364 esac
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_compile") 2>conftest.er1
14367 ac_status=$?
14368 grep -v '^ *+' conftest.er1 >conftest.err
14369 rm -f conftest.er1
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } && {
14373 test -z "$ac_c_werror_flag" ||
14374 test ! -s conftest.err
14375 } && test -s conftest.$ac_objext; then
14376 ac_header_compiler=yes
14377 else
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14380
14381 ac_header_compiler=no
14382 fi
14383
14384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386 echo "${ECHO_T}$ac_header_compiler" >&6; }
14387
14388 # Is the header present?
14389 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14390 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h. */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 #include <gpm.h>
14398 _ACEOF
14399 if { (ac_try="$ac_cpp conftest.$ac_ext"
14400 case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14406 ac_status=$?
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -f conftest.er1
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } >/dev/null && {
14412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14413 test ! -s conftest.err
14414 }; then
14415 ac_header_preproc=yes
14416 else
14417 echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14419
14420 ac_header_preproc=no
14421 fi
14422
14423 rm -f conftest.err conftest.$ac_ext
14424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14425 echo "${ECHO_T}$ac_header_preproc" >&6; }
14426
14427 # So? What about this header?
14428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14429 yes:no: )
14430 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14431 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14432 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14433 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14434 ac_header_preproc=yes
14435 ;;
14436 no:yes:* )
14437 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14438 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14440 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14442 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14444 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14446 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14448 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14449
14450 ;;
14451 esac
14452 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14453 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14454 if test "${ac_cv_header_gpm_h+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457 ac_cv_header_gpm_h=$ac_header_preproc
14458 fi
14459 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14460 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14461
14462 fi
14463 if test $ac_cv_header_gpm_h = yes; then
14464 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14465 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14466 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469 ac_check_lib_save_LIBS=$LIBS
14470 LIBS="-lgpm $LIBS"
14471 cat >conftest.$ac_ext <<_ACEOF
14472 /* confdefs.h. */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477
14478 /* Override any GCC internal prototype to avoid an error.
14479 Use char because int might match the return type of a GCC
14480 builtin and then its argument prototype would still apply. */
14481 #ifdef __cplusplus
14482 extern "C"
14483 #endif
14484 char Gpm_Open ();
14485 int
14486 main ()
14487 {
14488 return Gpm_Open ();
14489 ;
14490 return 0;
14491 }
14492 _ACEOF
14493 rm -f conftest.$ac_objext conftest$ac_exeext
14494 if { (ac_try="$ac_link"
14495 case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14498 esac
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_link") 2>conftest.er1
14501 ac_status=$?
14502 grep -v '^ *+' conftest.er1 >conftest.err
14503 rm -f conftest.er1
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } && {
14507 test -z "$ac_c_werror_flag" ||
14508 test ! -s conftest.err
14509 } && test -s conftest$ac_exeext &&
14510 $as_test_x conftest$ac_exeext; then
14511 ac_cv_lib_gpm_Gpm_Open=yes
14512 else
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14515
14516 ac_cv_lib_gpm_Gpm_Open=no
14517 fi
14518
14519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14520 conftest$ac_exeext conftest.$ac_ext
14521 LIBS=$ac_check_lib_save_LIBS
14522 fi
14523 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14524 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14525 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14526 HAVE_GPM=yes
14527 fi
14528
14529 fi
14530
14531
14532 fi
14533
14534 if test "${HAVE_GPM}" = "yes"; then
14535
14536 cat >>confdefs.h <<\_ACEOF
14537 #define HAVE_GPM 1
14538 _ACEOF
14539
14540 fi
14541
14542 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14543 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14544 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14545 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 fi
14548 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14549 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14550 else
14551 # Is the header compilable?
14552 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14553 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14554 cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h. */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 $ac_includes_default
14561 #include <malloc/malloc.h>
14562 _ACEOF
14563 rm -f conftest.$ac_objext
14564 if { (ac_try="$ac_compile"
14565 case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14568 esac
14569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14570 (eval "$ac_compile") 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } && {
14577 test -z "$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 } && test -s conftest.$ac_objext; then
14580 ac_header_compiler=yes
14581 else
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585 ac_header_compiler=no
14586 fi
14587
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14590 echo "${ECHO_T}$ac_header_compiler" >&6; }
14591
14592 # Is the header present?
14593 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14594 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14595 cat >conftest.$ac_ext <<_ACEOF
14596 /* confdefs.h. */
14597 _ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14601 #include <malloc/malloc.h>
14602 _ACEOF
14603 if { (ac_try="$ac_cpp conftest.$ac_ext"
14604 case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14607 esac
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14610 ac_status=$?
14611 grep -v '^ *+' conftest.er1 >conftest.err
14612 rm -f conftest.er1
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } >/dev/null && {
14616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14618 }; then
14619 ac_header_preproc=yes
14620 else
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14623
14624 ac_header_preproc=no
14625 fi
14626
14627 rm -f conftest.err conftest.$ac_ext
14628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14629 echo "${ECHO_T}$ac_header_preproc" >&6; }
14630
14631 # So? What about this header?
14632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14633 yes:no: )
14634 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14635 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14637 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14638 ac_header_preproc=yes
14639 ;;
14640 no:yes:* )
14641 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14642 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14644 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14646 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14647 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14648 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14649 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14650 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14651 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14652 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14653
14654 ;;
14655 esac
14656 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14657 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14658 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14662 fi
14663 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14664 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14665
14666 fi
14667 if test $ac_cv_header_malloc_malloc_h = yes; then
14668
14669 cat >>confdefs.h <<\_ACEOF
14670 #define HAVE_MALLOC_MALLOC_H 1
14671 _ACEOF
14672
14673 fi
14674
14675
14676
14677 ### Use Mac OS X Carbon API to implement GUI.
14678 if test "${HAVE_CARBON}" = "yes"; then
14679
14680 cat >>confdefs.h <<\_ACEOF
14681 #define HAVE_CARBON 1
14682 _ACEOF
14683
14684 ## Specify the install directory
14685 carbon_appdir=
14686 if test "${carbon_appdir_x}" != ""; then
14687 case ${carbon_appdir_x} in
14688 y | ye | yes) carbon_appdir=/Applications ;;
14689 * ) carbon_appdir=${carbon_appdir_x} ;;
14690 esac
14691 fi
14692 # We also have mouse menus.
14693 HAVE_MENUS=yes
14694 fi
14695
14696 ### Use session management (-lSM -lICE) if available
14697 HAVE_X_SM=no
14698 if test "${HAVE_X11}" = "yes"; then
14699 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14700 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14701 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14702 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 fi
14705 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14706 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14707 else
14708 # Is the header compilable?
14709 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14710 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14711 cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h. */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 $ac_includes_default
14718 #include <X11/SM/SMlib.h>
14719 _ACEOF
14720 rm -f conftest.$ac_objext
14721 if { (ac_try="$ac_compile"
14722 case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725 esac
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_compile") 2>conftest.er1
14728 ac_status=$?
14729 grep -v '^ *+' conftest.er1 >conftest.err
14730 rm -f conftest.er1
14731 cat conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } && {
14734 test -z "$ac_c_werror_flag" ||
14735 test ! -s conftest.err
14736 } && test -s conftest.$ac_objext; then
14737 ac_header_compiler=yes
14738 else
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14741
14742 ac_header_compiler=no
14743 fi
14744
14745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14747 echo "${ECHO_T}$ac_header_compiler" >&6; }
14748
14749 # Is the header present?
14750 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14751 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h. */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 #include <X11/SM/SMlib.h>
14759 _ACEOF
14760 if { (ac_try="$ac_cpp conftest.$ac_ext"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14767 ac_status=$?
14768 grep -v '^ *+' conftest.er1 >conftest.err
14769 rm -f conftest.er1
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } >/dev/null && {
14773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14774 test ! -s conftest.err
14775 }; then
14776 ac_header_preproc=yes
14777 else
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14780
14781 ac_header_preproc=no
14782 fi
14783
14784 rm -f conftest.err conftest.$ac_ext
14785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14786 echo "${ECHO_T}$ac_header_preproc" >&6; }
14787
14788 # So? What about this header?
14789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14790 yes:no: )
14791 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14792 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14793 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14794 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14795 ac_header_preproc=yes
14796 ;;
14797 no:yes:* )
14798 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14799 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14800 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14801 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14803 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14804 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14805 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14807 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14808 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14809 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14810
14811 ;;
14812 esac
14813 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14814 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14815 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 else
14818 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14819 fi
14820 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14821 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14822
14823 fi
14824 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14825 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14826 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14827 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830 ac_check_lib_save_LIBS=$LIBS
14831 LIBS="-lSM -lICE $LIBS"
14832 cat >conftest.$ac_ext <<_ACEOF
14833 /* confdefs.h. */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838
14839 /* Override any GCC internal prototype to avoid an error.
14840 Use char because int might match the return type of a GCC
14841 builtin and then its argument prototype would still apply. */
14842 #ifdef __cplusplus
14843 extern "C"
14844 #endif
14845 char SmcOpenConnection ();
14846 int
14847 main ()
14848 {
14849 return SmcOpenConnection ();
14850 ;
14851 return 0;
14852 }
14853 _ACEOF
14854 rm -f conftest.$ac_objext conftest$ac_exeext
14855 if { (ac_try="$ac_link"
14856 case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_link") 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } && {
14868 test -z "$ac_c_werror_flag" ||
14869 test ! -s conftest.err
14870 } && test -s conftest$ac_exeext &&
14871 $as_test_x conftest$ac_exeext; then
14872 ac_cv_lib_SM_SmcOpenConnection=yes
14873 else
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877 ac_cv_lib_SM_SmcOpenConnection=no
14878 fi
14879
14880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14881 conftest$ac_exeext conftest.$ac_ext
14882 LIBS=$ac_check_lib_save_LIBS
14883 fi
14884 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14885 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14886 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14887 HAVE_X_SM=yes
14888 fi
14889
14890 fi
14891
14892
14893
14894 if test "${HAVE_X_SM}" = "yes"; then
14895
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_X_SM 1
14898 _ACEOF
14899
14900 case "$LIBS" in
14901 *-lSM*) ;;
14902 *) LIBS="-lSM -lICE $LIBS" ;;
14903 esac
14904 fi
14905 fi
14906
14907 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14908 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14909 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14910 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 else
14913 cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h. */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 #include <netdb.h>
14920 int
14921 main ()
14922 {
14923 return h_errno;
14924 ;
14925 return 0;
14926 }
14927 _ACEOF
14928 rm -f conftest.$ac_objext conftest$ac_exeext
14929 if { (ac_try="$ac_link"
14930 case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14933 esac
14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_link") 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest$ac_exeext &&
14945 $as_test_x conftest$ac_exeext; then
14946 emacs_cv_netdb_declares_h_errno=yes
14947 else
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14950
14951 emacs_cv_netdb_declares_h_errno=no
14952 fi
14953
14954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14955 conftest$ac_exeext conftest.$ac_ext
14956 fi
14957 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14958 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14959 if test $emacs_cv_netdb_declares_h_errno = yes; then
14960
14961 cat >>confdefs.h <<\_ACEOF
14962 #define HAVE_H_ERRNO 1
14963 _ACEOF
14964
14965 fi
14966
14967 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14968 # for constant arguments. Useless!
14969 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14970 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14971 if test "${ac_cv_working_alloca_h+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14973 else
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h. */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 #include <alloca.h>
14981 int
14982 main ()
14983 {
14984 char *p = (char *) alloca (2 * sizeof (int));
14985 if (p) return 0;
14986 ;
14987 return 0;
14988 }
14989 _ACEOF
14990 rm -f conftest.$ac_objext conftest$ac_exeext
14991 if { (ac_try="$ac_link"
14992 case "(($ac_try" in
14993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994 *) ac_try_echo=$ac_try;;
14995 esac
14996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997 (eval "$ac_link") 2>conftest.er1
14998 ac_status=$?
14999 grep -v '^ *+' conftest.er1 >conftest.err
15000 rm -f conftest.er1
15001 cat conftest.err >&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } && {
15004 test -z "$ac_c_werror_flag" ||
15005 test ! -s conftest.err
15006 } && test -s conftest$ac_exeext &&
15007 $as_test_x conftest$ac_exeext; then
15008 ac_cv_working_alloca_h=yes
15009 else
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013 ac_cv_working_alloca_h=no
15014 fi
15015
15016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15017 conftest$ac_exeext conftest.$ac_ext
15018 fi
15019 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15020 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15021 if test $ac_cv_working_alloca_h = yes; then
15022
15023 cat >>confdefs.h <<\_ACEOF
15024 #define HAVE_ALLOCA_H 1
15025 _ACEOF
15026
15027 fi
15028
15029 { echo "$as_me:$LINENO: checking for alloca" >&5
15030 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15031 if test "${ac_cv_func_alloca_works+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 else
15034 cat >conftest.$ac_ext <<_ACEOF
15035 /* confdefs.h. */
15036 _ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 #ifdef __GNUC__
15041 # define alloca __builtin_alloca
15042 #else
15043 # ifdef _MSC_VER
15044 # include <malloc.h>
15045 # define alloca _alloca
15046 # else
15047 # ifdef HAVE_ALLOCA_H
15048 # include <alloca.h>
15049 # else
15050 # ifdef _AIX
15051 #pragma alloca
15052 # else
15053 # ifndef alloca /* predefined by HP cc +Olibcalls */
15054 char *alloca ();
15055 # endif
15056 # endif
15057 # endif
15058 # endif
15059 #endif
15060
15061 int
15062 main ()
15063 {
15064 char *p = (char *) alloca (1);
15065 if (p) return 0;
15066 ;
15067 return 0;
15068 }
15069 _ACEOF
15070 rm -f conftest.$ac_objext conftest$ac_exeext
15071 if { (ac_try="$ac_link"
15072 case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_link") 2>conftest.er1
15078 ac_status=$?
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } && {
15084 test -z "$ac_c_werror_flag" ||
15085 test ! -s conftest.err
15086 } && test -s conftest$ac_exeext &&
15087 $as_test_x conftest$ac_exeext; then
15088 ac_cv_func_alloca_works=yes
15089 else
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15092
15093 ac_cv_func_alloca_works=no
15094 fi
15095
15096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15097 conftest$ac_exeext conftest.$ac_ext
15098 fi
15099 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15100 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15101
15102 if test $ac_cv_func_alloca_works = yes; then
15103
15104 cat >>confdefs.h <<\_ACEOF
15105 #define HAVE_ALLOCA 1
15106 _ACEOF
15107
15108 else
15109 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15110 # that cause trouble. Some versions do not even contain alloca or
15111 # contain a buggy version. If you still want to use their alloca,
15112 # use ar to extract alloca.o from them instead of compiling alloca.c.
15113
15114 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15115
15116 cat >>confdefs.h <<\_ACEOF
15117 #define C_ALLOCA 1
15118 _ACEOF
15119
15120
15121 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15122 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15123 if test "${ac_cv_os_cray+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126 cat >conftest.$ac_ext <<_ACEOF
15127 /* confdefs.h. */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 #if defined CRAY && ! defined CRAY2
15133 webecray
15134 #else
15135 wenotbecray
15136 #endif
15137
15138 _ACEOF
15139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15140 $EGREP "webecray" >/dev/null 2>&1; then
15141 ac_cv_os_cray=yes
15142 else
15143 ac_cv_os_cray=no
15144 fi
15145 rm -f conftest*
15146
15147 fi
15148 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15149 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15150 if test $ac_cv_os_cray = yes; then
15151 for ac_func in _getb67 GETB67 getb67; do
15152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 else
15158 cat >conftest.$ac_ext <<_ACEOF
15159 /* confdefs.h. */
15160 _ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15166 #define $ac_func innocuous_$ac_func
15167
15168 /* System header to define __stub macros and hopefully few prototypes,
15169 which can conflict with char $ac_func (); below.
15170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15171 <limits.h> exists even on freestanding compilers. */
15172
15173 #ifdef __STDC__
15174 # include <limits.h>
15175 #else
15176 # include <assert.h>
15177 #endif
15178
15179 #undef $ac_func
15180
15181 /* Override any GCC internal prototype to avoid an error.
15182 Use char because int might match the return type of a GCC
15183 builtin and then its argument prototype would still apply. */
15184 #ifdef __cplusplus
15185 extern "C"
15186 #endif
15187 char $ac_func ();
15188 /* The GNU C library defines this for functions which it implements
15189 to always fail with ENOSYS. Some functions are actually named
15190 something starting with __ and the normal name is an alias. */
15191 #if defined __stub_$ac_func || defined __stub___$ac_func
15192 choke me
15193 #endif
15194
15195 int
15196 main ()
15197 {
15198 return $ac_func ();
15199 ;
15200 return 0;
15201 }
15202 _ACEOF
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15208 esac
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15211 ac_status=$?
15212 grep -v '^ *+' conftest.er1 >conftest.err
15213 rm -f conftest.er1
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } && {
15217 test -z "$ac_c_werror_flag" ||
15218 test ! -s conftest.err
15219 } && test -s conftest$ac_exeext &&
15220 $as_test_x conftest$ac_exeext; then
15221 eval "$as_ac_var=yes"
15222 else
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226 eval "$as_ac_var=no"
15227 fi
15228
15229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15230 conftest$ac_exeext conftest.$ac_ext
15231 fi
15232 ac_res=`eval echo '${'$as_ac_var'}'`
15233 { echo "$as_me:$LINENO: result: $ac_res" >&5
15234 echo "${ECHO_T}$ac_res" >&6; }
15235 if test `eval echo '${'$as_ac_var'}'` = yes; then
15236
15237 cat >>confdefs.h <<_ACEOF
15238 #define CRAY_STACKSEG_END $ac_func
15239 _ACEOF
15240
15241 break
15242 fi
15243
15244 done
15245 fi
15246
15247 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15248 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15249 if test "${ac_cv_c_stack_direction+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252 if test "$cross_compiling" = yes; then
15253 ac_cv_c_stack_direction=0
15254 else
15255 cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h. */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 $ac_includes_default
15262 int
15263 find_stack_direction ()
15264 {
15265 static char *addr = 0;
15266 auto char dummy;
15267 if (addr == 0)
15268 {
15269 addr = &dummy;
15270 return find_stack_direction ();
15271 }
15272 else
15273 return (&dummy > addr) ? 1 : -1;
15274 }
15275
15276 int
15277 main ()
15278 {
15279 return find_stack_direction () < 0;
15280 }
15281 _ACEOF
15282 rm -f conftest$ac_exeext
15283 if { (ac_try="$ac_link"
15284 case "(($ac_try" in
15285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15286 *) ac_try_echo=$ac_try;;
15287 esac
15288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15289 (eval "$ac_link") 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15293 { (case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296 esac
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_try") 2>&5
15299 ac_status=$?
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_cv_c_stack_direction=1
15303 else
15304 echo "$as_me: program exited with status $ac_status" >&5
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15307
15308 ( exit $ac_status )
15309 ac_cv_c_stack_direction=-1
15310 fi
15311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15312 fi
15313
15314
15315 fi
15316 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15317 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15318
15319 cat >>confdefs.h <<_ACEOF
15320 #define STACK_DIRECTION $ac_cv_c_stack_direction
15321 _ACEOF
15322
15323
15324 fi
15325
15326
15327 # fmod, logb, and frexp are found in -lm on most systems.
15328 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15329
15330 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15331 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15332 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335 ac_check_lib_save_LIBS=$LIBS
15336 LIBS="-lm $LIBS"
15337 cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h. */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343
15344 /* Override any GCC internal prototype to avoid an error.
15345 Use char because int might match the return type of a GCC
15346 builtin and then its argument prototype would still apply. */
15347 #ifdef __cplusplus
15348 extern "C"
15349 #endif
15350 char sqrt ();
15351 int
15352 main ()
15353 {
15354 return sqrt ();
15355 ;
15356 return 0;
15357 }
15358 _ACEOF
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (ac_try="$ac_link"
15361 case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15364 esac
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_link") 2>conftest.er1
15367 ac_status=$?
15368 grep -v '^ *+' conftest.er1 >conftest.err
15369 rm -f conftest.er1
15370 cat conftest.err >&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); } && {
15373 test -z "$ac_c_werror_flag" ||
15374 test ! -s conftest.err
15375 } && test -s conftest$ac_exeext &&
15376 $as_test_x conftest$ac_exeext; then
15377 ac_cv_lib_m_sqrt=yes
15378 else
15379 echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15381
15382 ac_cv_lib_m_sqrt=no
15383 fi
15384
15385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15386 conftest$ac_exeext conftest.$ac_ext
15387 LIBS=$ac_check_lib_save_LIBS
15388 fi
15389 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15390 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15391 if test $ac_cv_lib_m_sqrt = yes; then
15392 cat >>confdefs.h <<_ACEOF
15393 #define HAVE_LIBM 1
15394 _ACEOF
15395
15396 LIBS="-lm $LIBS"
15397
15398 fi
15399
15400
15401 # Check for mail-locking functions in a "mail" library. Probably this should
15402 # have the same check as for liblockfile below.
15403
15404 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15405 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15406 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409 ac_check_lib_save_LIBS=$LIBS
15410 LIBS="-lmail $LIBS"
15411 cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h. */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417
15418 /* Override any GCC internal prototype to avoid an error.
15419 Use char because int might match the return type of a GCC
15420 builtin and then its argument prototype would still apply. */
15421 #ifdef __cplusplus
15422 extern "C"
15423 #endif
15424 char maillock ();
15425 int
15426 main ()
15427 {
15428 return maillock ();
15429 ;
15430 return 0;
15431 }
15432 _ACEOF
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (ac_try="$ac_link"
15435 case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15438 esac
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_link") 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } && {
15447 test -z "$ac_c_werror_flag" ||
15448 test ! -s conftest.err
15449 } && test -s conftest$ac_exeext &&
15450 $as_test_x conftest$ac_exeext; then
15451 ac_cv_lib_mail_maillock=yes
15452 else
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 ac_cv_lib_mail_maillock=no
15457 fi
15458
15459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15460 conftest$ac_exeext conftest.$ac_ext
15461 LIBS=$ac_check_lib_save_LIBS
15462 fi
15463 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15464 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15465 if test $ac_cv_lib_mail_maillock = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define HAVE_LIBMAIL 1
15468 _ACEOF
15469
15470 LIBS="-lmail $LIBS"
15471
15472 fi
15473
15474
15475 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15476 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15477 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15479 else
15480 ac_check_lib_save_LIBS=$LIBS
15481 LIBS="-llockfile $LIBS"
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h. */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488
15489 /* Override any GCC internal prototype to avoid an error.
15490 Use char because int might match the return type of a GCC
15491 builtin and then its argument prototype would still apply. */
15492 #ifdef __cplusplus
15493 extern "C"
15494 #endif
15495 char maillock ();
15496 int
15497 main ()
15498 {
15499 return maillock ();
15500 ;
15501 return 0;
15502 }
15503 _ACEOF
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (ac_try="$ac_link"
15506 case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_link") 2>conftest.er1
15512 ac_status=$?
15513 grep -v '^ *+' conftest.er1 >conftest.err
15514 rm -f conftest.er1
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest$ac_exeext &&
15521 $as_test_x conftest$ac_exeext; then
15522 ac_cv_lib_lockfile_maillock=yes
15523 else
15524 echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527 ac_cv_lib_lockfile_maillock=no
15528 fi
15529
15530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15531 conftest$ac_exeext conftest.$ac_ext
15532 LIBS=$ac_check_lib_save_LIBS
15533 fi
15534 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15535 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15536 if test $ac_cv_lib_lockfile_maillock = yes; then
15537 cat >>confdefs.h <<_ACEOF
15538 #define HAVE_LIBLOCKFILE 1
15539 _ACEOF
15540
15541 LIBS="-llockfile $LIBS"
15542
15543 fi
15544
15545 # If we have the shared liblockfile, assume we must use it for mail
15546 # locking (e.g. Debian). If we couldn't link against liblockfile
15547 # (no liblockfile.a installed), ensure that we don't need to.
15548 if test "$ac_cv_lib_lockfile_maillock" = no; then
15549 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15550 set dummy liblockfile.so; ac_word=$2
15551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15553 if test "${ac_cv_prog_liblockfile+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555 else
15556 if test -n "$liblockfile"; then
15557 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15558 else
15559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15560 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15561 for as_dir in $as_dummy
15562 do
15563 IFS=$as_save_IFS
15564 test -z "$as_dir" && as_dir=.
15565 for ac_exec_ext in '' $ac_executable_extensions; do
15566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15567 ac_cv_prog_liblockfile="yes"
15568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15569 break 2
15570 fi
15571 done
15572 done
15573 IFS=$as_save_IFS
15574
15575 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15576 fi
15577 fi
15578 liblockfile=$ac_cv_prog_liblockfile
15579 if test -n "$liblockfile"; then
15580 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15581 echo "${ECHO_T}$liblockfile" >&6; }
15582 else
15583 { echo "$as_me:$LINENO: result: no" >&5
15584 echo "${ECHO_T}no" >&6; }
15585 fi
15586
15587
15588 if test $ac_cv_prog_liblockfile = yes; then
15589 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15590 This probably means that movemail could lose mail.
15591 There may be a \`development' package to install containing liblockfile." >&5
15592 echo "$as_me: error: Shared liblockfile found but can't link against it.
15593 This probably means that movemail could lose mail.
15594 There may be a \`development' package to install containing liblockfile." >&2;}
15595 { (exit 1); exit 1; }; }
15596 else :
15597 fi
15598 fi
15599
15600 for ac_func in touchlock
15601 do
15602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608 cat >conftest.$ac_ext <<_ACEOF
15609 /* confdefs.h. */
15610 _ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h. */
15614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15616 #define $ac_func innocuous_$ac_func
15617
15618 /* System header to define __stub macros and hopefully few prototypes,
15619 which can conflict with char $ac_func (); below.
15620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15621 <limits.h> exists even on freestanding compilers. */
15622
15623 #ifdef __STDC__
15624 # include <limits.h>
15625 #else
15626 # include <assert.h>
15627 #endif
15628
15629 #undef $ac_func
15630
15631 /* Override any GCC internal prototype to avoid an error.
15632 Use char because int might match the return type of a GCC
15633 builtin and then its argument prototype would still apply. */
15634 #ifdef __cplusplus
15635 extern "C"
15636 #endif
15637 char $ac_func ();
15638 /* The GNU C library defines this for functions which it implements
15639 to always fail with ENOSYS. Some functions are actually named
15640 something starting with __ and the normal name is an alias. */
15641 #if defined __stub_$ac_func || defined __stub___$ac_func
15642 choke me
15643 #endif
15644
15645 int
15646 main ()
15647 {
15648 return $ac_func ();
15649 ;
15650 return 0;
15651 }
15652 _ACEOF
15653 rm -f conftest.$ac_objext conftest$ac_exeext
15654 if { (ac_try="$ac_link"
15655 case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15658 esac
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_link") 2>conftest.er1
15661 ac_status=$?
15662 grep -v '^ *+' conftest.er1 >conftest.err
15663 rm -f conftest.er1
15664 cat conftest.err >&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } && {
15667 test -z "$ac_c_werror_flag" ||
15668 test ! -s conftest.err
15669 } && test -s conftest$ac_exeext &&
15670 $as_test_x conftest$ac_exeext; then
15671 eval "$as_ac_var=yes"
15672 else
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 eval "$as_ac_var=no"
15677 fi
15678
15679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15680 conftest$ac_exeext conftest.$ac_ext
15681 fi
15682 ac_res=`eval echo '${'$as_ac_var'}'`
15683 { echo "$as_me:$LINENO: result: $ac_res" >&5
15684 echo "${ECHO_T}$ac_res" >&6; }
15685 if test `eval echo '${'$as_ac_var'}'` = yes; then
15686 cat >>confdefs.h <<_ACEOF
15687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15688 _ACEOF
15689
15690 fi
15691 done
15692
15693
15694 for ac_header in maillock.h
15695 do
15696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 fi
15703 ac_res=`eval echo '${'$as_ac_Header'}'`
15704 { echo "$as_me:$LINENO: result: $ac_res" >&5
15705 echo "${ECHO_T}$ac_res" >&6; }
15706 else
15707 # Is the header compilable?
15708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15710 cat >conftest.$ac_ext <<_ACEOF
15711 /* confdefs.h. */
15712 _ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h. */
15716 $ac_includes_default
15717 #include <$ac_header>
15718 _ACEOF
15719 rm -f conftest.$ac_objext
15720 if { (ac_try="$ac_compile"
15721 case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15724 esac
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_compile") 2>conftest.er1
15727 ac_status=$?
15728 grep -v '^ *+' conftest.er1 >conftest.err
15729 rm -f conftest.er1
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } && {
15733 test -z "$ac_c_werror_flag" ||
15734 test ! -s conftest.err
15735 } && test -s conftest.$ac_objext; then
15736 ac_header_compiler=yes
15737 else
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 ac_header_compiler=no
15742 fi
15743
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15746 echo "${ECHO_T}$ac_header_compiler" >&6; }
15747
15748 # Is the header present?
15749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15751 cat >conftest.$ac_ext <<_ACEOF
15752 /* confdefs.h. */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 #include <$ac_header>
15758 _ACEOF
15759 if { (ac_try="$ac_cpp conftest.$ac_ext"
15760 case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15763 esac
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15766 ac_status=$?
15767 grep -v '^ *+' conftest.er1 >conftest.err
15768 rm -f conftest.er1
15769 cat conftest.err >&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } >/dev/null && {
15772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15773 test ! -s conftest.err
15774 }; then
15775 ac_header_preproc=yes
15776 else
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 ac_header_preproc=no
15781 fi
15782
15783 rm -f conftest.err conftest.$ac_ext
15784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785 echo "${ECHO_T}$ac_header_preproc" >&6; }
15786
15787 # So? What about this header?
15788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15789 yes:no: )
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15794 ac_header_preproc=yes
15795 ;;
15796 no:yes:* )
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15809
15810 ;;
15811 esac
15812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 else
15817 eval "$as_ac_Header=\$ac_header_preproc"
15818 fi
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15822
15823 fi
15824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15825 cat >>confdefs.h <<_ACEOF
15826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15827 _ACEOF
15828
15829 fi
15830
15831 done
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
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 for ac_func in gethostname getdomainname dup2 \
15904 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15905 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15906 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15907 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15908 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15909 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15910 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15911 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15912 do
15913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15918 else
15919 cat >conftest.$ac_ext <<_ACEOF
15920 /* confdefs.h. */
15921 _ACEOF
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15927 #define $ac_func innocuous_$ac_func
15928
15929 /* System header to define __stub macros and hopefully few prototypes,
15930 which can conflict with char $ac_func (); below.
15931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15932 <limits.h> exists even on freestanding compilers. */
15933
15934 #ifdef __STDC__
15935 # include <limits.h>
15936 #else
15937 # include <assert.h>
15938 #endif
15939
15940 #undef $ac_func
15941
15942 /* Override any GCC internal prototype to avoid an error.
15943 Use char because int might match the return type of a GCC
15944 builtin and then its argument prototype would still apply. */
15945 #ifdef __cplusplus
15946 extern "C"
15947 #endif
15948 char $ac_func ();
15949 /* The GNU C library defines this for functions which it implements
15950 to always fail with ENOSYS. Some functions are actually named
15951 something starting with __ and the normal name is an alias. */
15952 #if defined __stub_$ac_func || defined __stub___$ac_func
15953 choke me
15954 #endif
15955
15956 int
15957 main ()
15958 {
15959 return $ac_func ();
15960 ;
15961 return 0;
15962 }
15963 _ACEOF
15964 rm -f conftest.$ac_objext conftest$ac_exeext
15965 if { (ac_try="$ac_link"
15966 case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969 esac
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_link") 2>conftest.er1
15972 ac_status=$?
15973 grep -v '^ *+' conftest.er1 >conftest.err
15974 rm -f conftest.er1
15975 cat conftest.err >&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } && {
15978 test -z "$ac_c_werror_flag" ||
15979 test ! -s conftest.err
15980 } && test -s conftest$ac_exeext &&
15981 $as_test_x conftest$ac_exeext; then
15982 eval "$as_ac_var=yes"
15983 else
15984 echo "$as_me: failed program was:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15986
15987 eval "$as_ac_var=no"
15988 fi
15989
15990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15991 conftest$ac_exeext conftest.$ac_ext
15992 fi
15993 ac_res=`eval echo '${'$as_ac_var'}'`
15994 { echo "$as_me:$LINENO: result: $ac_res" >&5
15995 echo "${ECHO_T}$ac_res" >&6; }
15996 if test `eval echo '${'$as_ac_var'}'` = yes; then
15997 cat >>confdefs.h <<_ACEOF
15998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15999 _ACEOF
16000
16001 fi
16002 done
16003
16004
16005
16006 for ac_header in sys/un.h
16007 do
16008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 fi
16015 ac_res=`eval echo '${'$as_ac_Header'}'`
16016 { echo "$as_me:$LINENO: result: $ac_res" >&5
16017 echo "${ECHO_T}$ac_res" >&6; }
16018 else
16019 # Is the header compilable?
16020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16022 cat >conftest.$ac_ext <<_ACEOF
16023 /* confdefs.h. */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 $ac_includes_default
16029 #include <$ac_header>
16030 _ACEOF
16031 rm -f conftest.$ac_objext
16032 if { (ac_try="$ac_compile"
16033 case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_compile") 2>conftest.er1
16039 ac_status=$?
16040 grep -v '^ *+' conftest.er1 >conftest.err
16041 rm -f conftest.er1
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } && {
16045 test -z "$ac_c_werror_flag" ||
16046 test ! -s conftest.err
16047 } && test -s conftest.$ac_objext; then
16048 ac_header_compiler=yes
16049 else
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16052
16053 ac_header_compiler=no
16054 fi
16055
16056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16058 echo "${ECHO_T}$ac_header_compiler" >&6; }
16059
16060 # Is the header present?
16061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16063 cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h. */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 #include <$ac_header>
16070 _ACEOF
16071 if { (ac_try="$ac_cpp conftest.$ac_ext"
16072 case "(($ac_try" in
16073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16075 esac
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16078 ac_status=$?
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } >/dev/null && {
16084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16085 test ! -s conftest.err
16086 }; then
16087 ac_header_preproc=yes
16088 else
16089 echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16091
16092 ac_header_preproc=no
16093 fi
16094
16095 rm -f conftest.err conftest.$ac_ext
16096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16097 echo "${ECHO_T}$ac_header_preproc" >&6; }
16098
16099 # So? What about this header?
16100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16101 yes:no: )
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16106 ac_header_preproc=yes
16107 ;;
16108 no:yes:* )
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16121
16122 ;;
16123 esac
16124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 else
16129 eval "$as_ac_Header=\$ac_header_preproc"
16130 fi
16131 ac_res=`eval echo '${'$as_ac_Header'}'`
16132 { echo "$as_me:$LINENO: result: $ac_res" >&5
16133 echo "${ECHO_T}$ac_res" >&6; }
16134
16135 fi
16136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16137 cat >>confdefs.h <<_ACEOF
16138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16139 _ACEOF
16140
16141 fi
16142
16143 done
16144
16145
16146
16147
16148
16149
16150 for ac_header in $ac_header_list
16151 do
16152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16158 fi
16159 ac_res=`eval echo '${'$as_ac_Header'}'`
16160 { echo "$as_me:$LINENO: result: $ac_res" >&5
16161 echo "${ECHO_T}$ac_res" >&6; }
16162 else
16163 # Is the header compilable?
16164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16166 cat >conftest.$ac_ext <<_ACEOF
16167 /* confdefs.h. */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172 $ac_includes_default
16173 #include <$ac_header>
16174 _ACEOF
16175 rm -f conftest.$ac_objext
16176 if { (ac_try="$ac_compile"
16177 case "(($ac_try" in
16178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16180 esac
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_compile") 2>conftest.er1
16183 ac_status=$?
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest.$ac_objext; then
16192 ac_header_compiler=yes
16193 else
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16196
16197 ac_header_compiler=no
16198 fi
16199
16200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16202 echo "${ECHO_T}$ac_header_compiler" >&6; }
16203
16204 # Is the header present?
16205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16207 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h. */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16213 #include <$ac_header>
16214 _ACEOF
16215 if { (ac_try="$ac_cpp conftest.$ac_ext"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } >/dev/null && {
16228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16229 test ! -s conftest.err
16230 }; then
16231 ac_header_preproc=yes
16232 else
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16235
16236 ac_header_preproc=no
16237 fi
16238
16239 rm -f conftest.err conftest.$ac_ext
16240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16241 echo "${ECHO_T}$ac_header_preproc" >&6; }
16242
16243 # So? What about this header?
16244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16245 yes:no: )
16246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16250 ac_header_preproc=yes
16251 ;;
16252 no:yes:* )
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16265
16266 ;;
16267 esac
16268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 else
16273 eval "$as_ac_Header=\$ac_header_preproc"
16274 fi
16275 ac_res=`eval echo '${'$as_ac_Header'}'`
16276 { echo "$as_me:$LINENO: result: $ac_res" >&5
16277 echo "${ECHO_T}$ac_res" >&6; }
16278
16279 fi
16280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16281 cat >>confdefs.h <<_ACEOF
16282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16283 _ACEOF
16284
16285 fi
16286
16287 done
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297 for ac_func in $ac_func_list
16298 do
16299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16300 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16302 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16304 else
16305 cat >conftest.$ac_ext <<_ACEOF
16306 /* confdefs.h. */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16313 #define $ac_func innocuous_$ac_func
16314
16315 /* System header to define __stub macros and hopefully few prototypes,
16316 which can conflict with char $ac_func (); below.
16317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16318 <limits.h> exists even on freestanding compilers. */
16319
16320 #ifdef __STDC__
16321 # include <limits.h>
16322 #else
16323 # include <assert.h>
16324 #endif
16325
16326 #undef $ac_func
16327
16328 /* Override any GCC internal prototype to avoid an error.
16329 Use char because int might match the return type of a GCC
16330 builtin and then its argument prototype would still apply. */
16331 #ifdef __cplusplus
16332 extern "C"
16333 #endif
16334 char $ac_func ();
16335 /* The GNU C library defines this for functions which it implements
16336 to always fail with ENOSYS. Some functions are actually named
16337 something starting with __ and the normal name is an alias. */
16338 #if defined __stub_$ac_func || defined __stub___$ac_func
16339 choke me
16340 #endif
16341
16342 int
16343 main ()
16344 {
16345 return $ac_func ();
16346 ;
16347 return 0;
16348 }
16349 _ACEOF
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (ac_try="$ac_link"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16355 esac
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_link") 2>conftest.er1
16358 ac_status=$?
16359 grep -v '^ *+' conftest.er1 >conftest.err
16360 rm -f conftest.er1
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } && {
16364 test -z "$ac_c_werror_flag" ||
16365 test ! -s conftest.err
16366 } && test -s conftest$ac_exeext &&
16367 $as_test_x conftest$ac_exeext; then
16368 eval "$as_ac_var=yes"
16369 else
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16372
16373 eval "$as_ac_var=no"
16374 fi
16375
16376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16377 conftest$ac_exeext conftest.$ac_ext
16378 fi
16379 ac_res=`eval echo '${'$as_ac_var'}'`
16380 { echo "$as_me:$LINENO: result: $ac_res" >&5
16381 echo "${ECHO_T}$ac_res" >&6; }
16382 if test `eval echo '${'$as_ac_var'}'` = yes; then
16383 cat >>confdefs.h <<_ACEOF
16384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16385 _ACEOF
16386
16387 fi
16388 done
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406 { echo "$as_me:$LINENO: checking for working mktime" >&5
16407 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16408 if test "${ac_cv_func_working_mktime+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411 if test "$cross_compiling" = yes; then
16412 ac_cv_func_working_mktime=no
16413 else
16414 cat >conftest.$ac_ext <<_ACEOF
16415 /* confdefs.h. */
16416 _ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16420 /* Test program from Paul Eggert and Tony Leneis. */
16421 #ifdef TIME_WITH_SYS_TIME
16422 # include <sys/time.h>
16423 # include <time.h>
16424 #else
16425 # ifdef HAVE_SYS_TIME_H
16426 # include <sys/time.h>
16427 # else
16428 # include <time.h>
16429 # endif
16430 #endif
16431
16432 #include <stdlib.h>
16433
16434 #ifdef HAVE_UNISTD_H
16435 # include <unistd.h>
16436 #endif
16437
16438 #ifndef HAVE_ALARM
16439 # define alarm(X) /* empty */
16440 #endif
16441
16442 /* Work around redefinition to rpl_putenv by other config tests. */
16443 #undef putenv
16444
16445 static time_t time_t_max;
16446 static time_t time_t_min;
16447
16448 /* Values we'll use to set the TZ environment variable. */
16449 static char *tz_strings[] = {
16450 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16451 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16452 };
16453 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16454
16455 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16456 Based on a problem report from Andreas Jaeger. */
16457 static int
16458 spring_forward_gap ()
16459 {
16460 /* glibc (up to about 1998-10-07) failed this test. */
16461 struct tm tm;
16462
16463 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16464 instead of "TZ=America/Vancouver" in order to detect the bug even
16465 on systems that don't support the Olson extension, or don't have the
16466 full zoneinfo tables installed. */
16467 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16468
16469 tm.tm_year = 98;
16470 tm.tm_mon = 3;
16471 tm.tm_mday = 5;
16472 tm.tm_hour = 2;
16473 tm.tm_min = 0;
16474 tm.tm_sec = 0;
16475 tm.tm_isdst = -1;
16476 return mktime (&tm) != (time_t) -1;
16477 }
16478
16479 static int
16480 mktime_test1 (now)
16481 time_t now;
16482 {
16483 struct tm *lt;
16484 return ! (lt = localtime (&now)) || mktime (lt) == now;
16485 }
16486
16487 static int
16488 mktime_test (now)
16489 time_t now;
16490 {
16491 return (mktime_test1 (now)
16492 && mktime_test1 ((time_t) (time_t_max - now))
16493 && mktime_test1 ((time_t) (time_t_min + now)));
16494 }
16495
16496 static int
16497 irix_6_4_bug ()
16498 {
16499 /* Based on code from Ariel Faigon. */
16500 struct tm tm;
16501 tm.tm_year = 96;
16502 tm.tm_mon = 3;
16503 tm.tm_mday = 0;
16504 tm.tm_hour = 0;
16505 tm.tm_min = 0;
16506 tm.tm_sec = 0;
16507 tm.tm_isdst = -1;
16508 mktime (&tm);
16509 return tm.tm_mon == 2 && tm.tm_mday == 31;
16510 }
16511
16512 static int
16513 bigtime_test (j)
16514 int j;
16515 {
16516 struct tm tm;
16517 time_t now;
16518 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16519 now = mktime (&tm);
16520 if (now != (time_t) -1)
16521 {
16522 struct tm *lt = localtime (&now);
16523 if (! (lt
16524 && lt->tm_year == tm.tm_year
16525 && lt->tm_mon == tm.tm_mon
16526 && lt->tm_mday == tm.tm_mday
16527 && lt->tm_hour == tm.tm_hour
16528 && lt->tm_min == tm.tm_min
16529 && lt->tm_sec == tm.tm_sec
16530 && lt->tm_yday == tm.tm_yday
16531 && lt->tm_wday == tm.tm_wday
16532 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16533 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16534 return 0;
16535 }
16536 return 1;
16537 }
16538
16539 static int
16540 year_2050_test ()
16541 {
16542 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16543 ignoring leap seconds. */
16544 unsigned long int answer = 2527315200UL;
16545
16546 struct tm tm;
16547 time_t t;
16548 tm.tm_year = 2050 - 1900;
16549 tm.tm_mon = 2 - 1;
16550 tm.tm_mday = 1;
16551 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16552 tm.tm_isdst = -1;
16553
16554 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16555 instead of "TZ=America/Vancouver" in order to detect the bug even
16556 on systems that don't support the Olson extension, or don't have the
16557 full zoneinfo tables installed. */
16558 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16559
16560 t = mktime (&tm);
16561
16562 /* Check that the result is either a failure, or close enough
16563 to the correct answer that we can assume the discrepancy is
16564 due to leap seconds. */
16565 return (t == (time_t) -1
16566 || (0 < t && answer - 120 <= t && t <= answer + 120));
16567 }
16568
16569 int
16570 main ()
16571 {
16572 time_t t, delta;
16573 int i, j;
16574
16575 /* This test makes some buggy mktime implementations loop.
16576 Give up after 60 seconds; a mktime slower than that
16577 isn't worth using anyway. */
16578 alarm (60);
16579
16580 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16581 continue;
16582 time_t_max--;
16583 if ((time_t) -1 < 0)
16584 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16585 continue;
16586 delta = time_t_max / 997; /* a suitable prime number */
16587 for (i = 0; i < N_STRINGS; i++)
16588 {
16589 if (tz_strings[i])
16590 putenv (tz_strings[i]);
16591
16592 for (t = 0; t <= time_t_max - delta; t += delta)
16593 if (! mktime_test (t))
16594 return 1;
16595 if (! (mktime_test ((time_t) 1)
16596 && mktime_test ((time_t) (60 * 60))
16597 && mktime_test ((time_t) (60 * 60 * 24))))
16598 return 1;
16599
16600 for (j = 1; 0 < j; j *= 2)
16601 if (! bigtime_test (j))
16602 return 1;
16603 if (! bigtime_test (j - 1))
16604 return 1;
16605 }
16606 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16607 }
16608 _ACEOF
16609 rm -f conftest$ac_exeext
16610 if { (ac_try="$ac_link"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_link") 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16620 { (case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16623 esac
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_try") 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; }; then
16629 ac_cv_func_working_mktime=yes
16630 else
16631 echo "$as_me: program exited with status $ac_status" >&5
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16634
16635 ( exit $ac_status )
16636 ac_cv_func_working_mktime=no
16637 fi
16638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16639 fi
16640
16641
16642 fi
16643 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16644 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16645 if test $ac_cv_func_working_mktime = no; then
16646 case " $LIBOBJS " in
16647 *" mktime.$ac_objext "* ) ;;
16648 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16649 ;;
16650 esac
16651
16652 fi
16653
16654 if test "$ac_cv_func_working_mktime" = no; then
16655
16656 cat >>confdefs.h <<\_ACEOF
16657 #define BROKEN_MKTIME 1
16658 _ACEOF
16659
16660 fi
16661
16662 ac_have_func=no # yes means we've found a way to get the load average.
16663
16664 # Make sure getloadavg.c is where it belongs, at configure-time.
16665 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16666 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16667 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16668 { (exit 1); exit 1; }; }
16669
16670 ac_save_LIBS=$LIBS
16671
16672 # Check for getloadavg, but be sure not to touch the cache variable.
16673 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16674 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16675 if test "${ac_cv_func_getloadavg+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678 cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h. */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16686 #define getloadavg innocuous_getloadavg
16687
16688 /* System header to define __stub macros and hopefully few prototypes,
16689 which can conflict with char getloadavg (); below.
16690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16691 <limits.h> exists even on freestanding compilers. */
16692
16693 #ifdef __STDC__
16694 # include <limits.h>
16695 #else
16696 # include <assert.h>
16697 #endif
16698
16699 #undef getloadavg
16700
16701 /* Override any GCC internal prototype to avoid an error.
16702 Use char because int might match the return type of a GCC
16703 builtin and then its argument prototype would still apply. */
16704 #ifdef __cplusplus
16705 extern "C"
16706 #endif
16707 char getloadavg ();
16708 /* The GNU C library defines this for functions which it implements
16709 to always fail with ENOSYS. Some functions are actually named
16710 something starting with __ and the normal name is an alias. */
16711 #if defined __stub_getloadavg || defined __stub___getloadavg
16712 choke me
16713 #endif
16714
16715 int
16716 main ()
16717 {
16718 return getloadavg ();
16719 ;
16720 return 0;
16721 }
16722 _ACEOF
16723 rm -f conftest.$ac_objext conftest$ac_exeext
16724 if { (ac_try="$ac_link"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728 esac
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_link") 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest$ac_exeext &&
16740 $as_test_x conftest$ac_exeext; then
16741 ac_cv_func_getloadavg=yes
16742 else
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16745
16746 ac_cv_func_getloadavg=no
16747 fi
16748
16749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16750 conftest$ac_exeext conftest.$ac_ext
16751 fi
16752 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16753 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16754 if test $ac_cv_func_getloadavg = yes; then
16755 exit 0
16756 else
16757 exit 1
16758 fi
16759 ) && ac_have_func=yes
16760
16761 # On HPUX9, an unprivileged user can get load averages through this function.
16762
16763 for ac_func in pstat_getdynamic
16764 do
16765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 else
16771 cat >conftest.$ac_ext <<_ACEOF
16772 /* confdefs.h. */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16779 #define $ac_func innocuous_$ac_func
16780
16781 /* System header to define __stub macros and hopefully few prototypes,
16782 which can conflict with char $ac_func (); below.
16783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16784 <limits.h> exists even on freestanding compilers. */
16785
16786 #ifdef __STDC__
16787 # include <limits.h>
16788 #else
16789 # include <assert.h>
16790 #endif
16791
16792 #undef $ac_func
16793
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16797 #ifdef __cplusplus
16798 extern "C"
16799 #endif
16800 char $ac_func ();
16801 /* The GNU C library defines this for functions which it implements
16802 to always fail with ENOSYS. Some functions are actually named
16803 something starting with __ and the normal name is an alias. */
16804 #if defined __stub_$ac_func || defined __stub___$ac_func
16805 choke me
16806 #endif
16807
16808 int
16809 main ()
16810 {
16811 return $ac_func ();
16812 ;
16813 return 0;
16814 }
16815 _ACEOF
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (ac_try="$ac_link"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_link") 2>conftest.er1
16824 ac_status=$?
16825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } && {
16830 test -z "$ac_c_werror_flag" ||
16831 test ! -s conftest.err
16832 } && test -s conftest$ac_exeext &&
16833 $as_test_x conftest$ac_exeext; then
16834 eval "$as_ac_var=yes"
16835 else
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839 eval "$as_ac_var=no"
16840 fi
16841
16842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16843 conftest$ac_exeext conftest.$ac_ext
16844 fi
16845 ac_res=`eval echo '${'$as_ac_var'}'`
16846 { echo "$as_me:$LINENO: result: $ac_res" >&5
16847 echo "${ECHO_T}$ac_res" >&6; }
16848 if test `eval echo '${'$as_ac_var'}'` = yes; then
16849 cat >>confdefs.h <<_ACEOF
16850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16851 _ACEOF
16852
16853 fi
16854 done
16855
16856
16857 # Solaris has libkstat which does not require root.
16858
16859 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16860 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16861 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 else
16864 ac_check_lib_save_LIBS=$LIBS
16865 LIBS="-lkstat $LIBS"
16866 cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h. */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872
16873 /* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply. */
16876 #ifdef __cplusplus
16877 extern "C"
16878 #endif
16879 char kstat_open ();
16880 int
16881 main ()
16882 {
16883 return kstat_open ();
16884 ;
16885 return 0;
16886 }
16887 _ACEOF
16888 rm -f conftest.$ac_objext conftest$ac_exeext
16889 if { (ac_try="$ac_link"
16890 case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_link") 2>conftest.er1
16896 ac_status=$?
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } && {
16902 test -z "$ac_c_werror_flag" ||
16903 test ! -s conftest.err
16904 } && test -s conftest$ac_exeext &&
16905 $as_test_x conftest$ac_exeext; then
16906 ac_cv_lib_kstat_kstat_open=yes
16907 else
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16910
16911 ac_cv_lib_kstat_kstat_open=no
16912 fi
16913
16914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16915 conftest$ac_exeext conftest.$ac_ext
16916 LIBS=$ac_check_lib_save_LIBS
16917 fi
16918 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16919 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16920 if test $ac_cv_lib_kstat_kstat_open = yes; then
16921 cat >>confdefs.h <<_ACEOF
16922 #define HAVE_LIBKSTAT 1
16923 _ACEOF
16924
16925 LIBS="-lkstat $LIBS"
16926
16927 fi
16928
16929 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16930
16931 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16932 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16933 # to get the right answer into the cache.
16934 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16935 if test $ac_have_func = no; then
16936 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16937 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16938 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941 ac_check_lib_save_LIBS=$LIBS
16942 LIBS="-lelf $LIBS"
16943 cat >conftest.$ac_ext <<_ACEOF
16944 /* confdefs.h. */
16945 _ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16949
16950 /* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16953 #ifdef __cplusplus
16954 extern "C"
16955 #endif
16956 char elf_begin ();
16957 int
16958 main ()
16959 {
16960 return elf_begin ();
16961 ;
16962 return 0;
16963 }
16964 _ACEOF
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_link") 2>conftest.er1
16973 ac_status=$?
16974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } && {
16979 test -z "$ac_c_werror_flag" ||
16980 test ! -s conftest.err
16981 } && test -s conftest$ac_exeext &&
16982 $as_test_x conftest$ac_exeext; then
16983 ac_cv_lib_elf_elf_begin=yes
16984 else
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16987
16988 ac_cv_lib_elf_elf_begin=no
16989 fi
16990
16991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16992 conftest$ac_exeext conftest.$ac_ext
16993 LIBS=$ac_check_lib_save_LIBS
16994 fi
16995 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16996 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16997 if test $ac_cv_lib_elf_elf_begin = yes; then
16998 LIBS="-lelf $LIBS"
16999 fi
17000
17001 fi
17002 if test $ac_have_func = no; then
17003 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17004 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17005 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 else
17008 ac_check_lib_save_LIBS=$LIBS
17009 LIBS="-lkvm $LIBS"
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016
17017 /* Override any GCC internal prototype to avoid an error.
17018 Use char because int might match the return type of a GCC
17019 builtin and then its argument prototype would still apply. */
17020 #ifdef __cplusplus
17021 extern "C"
17022 #endif
17023 char kvm_open ();
17024 int
17025 main ()
17026 {
17027 return kvm_open ();
17028 ;
17029 return 0;
17030 }
17031 _ACEOF
17032 rm -f conftest.$ac_objext conftest$ac_exeext
17033 if { (ac_try="$ac_link"
17034 case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17037 esac
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_link") 2>conftest.er1
17040 ac_status=$?
17041 grep -v '^ *+' conftest.er1 >conftest.err
17042 rm -f conftest.er1
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } && {
17046 test -z "$ac_c_werror_flag" ||
17047 test ! -s conftest.err
17048 } && test -s conftest$ac_exeext &&
17049 $as_test_x conftest$ac_exeext; then
17050 ac_cv_lib_kvm_kvm_open=yes
17051 else
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.$ac_ext >&5
17054
17055 ac_cv_lib_kvm_kvm_open=no
17056 fi
17057
17058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059 conftest$ac_exeext conftest.$ac_ext
17060 LIBS=$ac_check_lib_save_LIBS
17061 fi
17062 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17063 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17064 if test $ac_cv_lib_kvm_kvm_open = yes; then
17065 LIBS="-lkvm $LIBS"
17066 fi
17067
17068 # Check for the 4.4BSD definition of getloadavg.
17069 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17070 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17071 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 else
17074 ac_check_lib_save_LIBS=$LIBS
17075 LIBS="-lutil $LIBS"
17076 cat >conftest.$ac_ext <<_ACEOF
17077 /* confdefs.h. */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082
17083 /* Override any GCC internal prototype to avoid an error.
17084 Use char because int might match the return type of a GCC
17085 builtin and then its argument prototype would still apply. */
17086 #ifdef __cplusplus
17087 extern "C"
17088 #endif
17089 char getloadavg ();
17090 int
17091 main ()
17092 {
17093 return getloadavg ();
17094 ;
17095 return 0;
17096 }
17097 _ACEOF
17098 rm -f conftest.$ac_objext conftest$ac_exeext
17099 if { (ac_try="$ac_link"
17100 case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103 esac
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_link") 2>conftest.er1
17106 ac_status=$?
17107 grep -v '^ *+' conftest.er1 >conftest.err
17108 rm -f conftest.er1
17109 cat conftest.err >&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } && {
17112 test -z "$ac_c_werror_flag" ||
17113 test ! -s conftest.err
17114 } && test -s conftest$ac_exeext &&
17115 $as_test_x conftest$ac_exeext; then
17116 ac_cv_lib_util_getloadavg=yes
17117 else
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 ac_cv_lib_util_getloadavg=no
17122 fi
17123
17124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17125 conftest$ac_exeext conftest.$ac_ext
17126 LIBS=$ac_check_lib_save_LIBS
17127 fi
17128 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17129 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17130 if test $ac_cv_lib_util_getloadavg = yes; then
17131 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17132 fi
17133
17134 fi
17135
17136 if test $ac_have_func = no; then
17137 # There is a commonly available library for RS/6000 AIX.
17138 # Since it is not a standard part of AIX, it might be installed locally.
17139 ac_getloadavg_LIBS=$LIBS
17140 LIBS="-L/usr/local/lib $LIBS"
17141 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17142 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17143 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17145 else
17146 ac_check_lib_save_LIBS=$LIBS
17147 LIBS="-lgetloadavg $LIBS"
17148 cat >conftest.$ac_ext <<_ACEOF
17149 /* confdefs.h. */
17150 _ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154
17155 /* Override any GCC internal prototype to avoid an error.
17156 Use char because int might match the return type of a GCC
17157 builtin and then its argument prototype would still apply. */
17158 #ifdef __cplusplus
17159 extern "C"
17160 #endif
17161 char getloadavg ();
17162 int
17163 main ()
17164 {
17165 return getloadavg ();
17166 ;
17167 return 0;
17168 }
17169 _ACEOF
17170 rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (ac_try="$ac_link"
17172 case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_link") 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest$ac_exeext &&
17187 $as_test_x conftest$ac_exeext; then
17188 ac_cv_lib_getloadavg_getloadavg=yes
17189 else
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17192
17193 ac_cv_lib_getloadavg_getloadavg=no
17194 fi
17195
17196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17197 conftest$ac_exeext conftest.$ac_ext
17198 LIBS=$ac_check_lib_save_LIBS
17199 fi
17200 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17201 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17202 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17203 LIBS="-lgetloadavg $LIBS"
17204 else
17205 LIBS=$ac_getloadavg_LIBS
17206 fi
17207
17208 fi
17209
17210 # Make sure it is really in the library, if we think we found it,
17211 # otherwise set up the replacement function.
17212
17213 for ac_func in getloadavg
17214 do
17215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17220 else
17221 cat >conftest.$ac_ext <<_ACEOF
17222 /* confdefs.h. */
17223 _ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h. */
17227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17229 #define $ac_func innocuous_$ac_func
17230
17231 /* System header to define __stub macros and hopefully few prototypes,
17232 which can conflict with char $ac_func (); below.
17233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17234 <limits.h> exists even on freestanding compilers. */
17235
17236 #ifdef __STDC__
17237 # include <limits.h>
17238 #else
17239 # include <assert.h>
17240 #endif
17241
17242 #undef $ac_func
17243
17244 /* Override any GCC internal prototype to avoid an error.
17245 Use char because int might match the return type of a GCC
17246 builtin and then its argument prototype would still apply. */
17247 #ifdef __cplusplus
17248 extern "C"
17249 #endif
17250 char $ac_func ();
17251 /* The GNU C library defines this for functions which it implements
17252 to always fail with ENOSYS. Some functions are actually named
17253 something starting with __ and the normal name is an alias. */
17254 #if defined __stub_$ac_func || defined __stub___$ac_func
17255 choke me
17256 #endif
17257
17258 int
17259 main ()
17260 {
17261 return $ac_func ();
17262 ;
17263 return 0;
17264 }
17265 _ACEOF
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17271 esac
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } && {
17280 test -z "$ac_c_werror_flag" ||
17281 test ! -s conftest.err
17282 } && test -s conftest$ac_exeext &&
17283 $as_test_x conftest$ac_exeext; then
17284 eval "$as_ac_var=yes"
17285 else
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17288
17289 eval "$as_ac_var=no"
17290 fi
17291
17292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17293 conftest$ac_exeext conftest.$ac_ext
17294 fi
17295 ac_res=`eval echo '${'$as_ac_var'}'`
17296 { echo "$as_me:$LINENO: result: $ac_res" >&5
17297 echo "${ECHO_T}$ac_res" >&6; }
17298 if test `eval echo '${'$as_ac_var'}'` = yes; then
17299 cat >>confdefs.h <<_ACEOF
17300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17301 _ACEOF
17302
17303 else
17304 case " $LIBOBJS " in
17305 *" getloadavg.$ac_objext "* ) ;;
17306 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17307 ;;
17308 esac
17309
17310
17311 cat >>confdefs.h <<\_ACEOF
17312 #define C_GETLOADAVG 1
17313 _ACEOF
17314
17315 # Figure out what our getloadavg.c needs.
17316 ac_have_func=no
17317 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17318 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17319 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17320 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17322 fi
17323 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17324 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17325 else
17326 # Is the header compilable?
17327 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17328 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17329 cat >conftest.$ac_ext <<_ACEOF
17330 /* confdefs.h. */
17331 _ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17335 $ac_includes_default
17336 #include <sys/dg_sys_info.h>
17337 _ACEOF
17338 rm -f conftest.$ac_objext
17339 if { (ac_try="$ac_compile"
17340 case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17343 esac
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_compile") 2>conftest.er1
17346 ac_status=$?
17347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } && {
17352 test -z "$ac_c_werror_flag" ||
17353 test ! -s conftest.err
17354 } && test -s conftest.$ac_objext; then
17355 ac_header_compiler=yes
17356 else
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17359
17360 ac_header_compiler=no
17361 fi
17362
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17365 echo "${ECHO_T}$ac_header_compiler" >&6; }
17366
17367 # Is the header present?
17368 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17369 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 #include <sys/dg_sys_info.h>
17377 _ACEOF
17378 if { (ac_try="$ac_cpp conftest.$ac_ext"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17385 ac_status=$?
17386 grep -v '^ *+' conftest.er1 >conftest.err
17387 rm -f conftest.er1
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } >/dev/null && {
17391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 }; then
17394 ac_header_preproc=yes
17395 else
17396 echo "$as_me: failed program was:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17398
17399 ac_header_preproc=no
17400 fi
17401
17402 rm -f conftest.err conftest.$ac_ext
17403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17404 echo "${ECHO_T}$ac_header_preproc" >&6; }
17405
17406 # So? What about this header?
17407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17408 yes:no: )
17409 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17410 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17411 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17412 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17413 ac_header_preproc=yes
17414 ;;
17415 no:yes:* )
17416 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17417 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17418 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17419 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17420 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17421 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17422 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17423 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17424 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17425 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17426 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17427 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17428
17429 ;;
17430 esac
17431 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17432 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17433 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17437 fi
17438 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17439 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17440
17441 fi
17442 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17443 ac_have_func=yes
17444
17445 cat >>confdefs.h <<\_ACEOF
17446 #define DGUX 1
17447 _ACEOF
17448
17449
17450 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17451 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17452 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 else
17455 ac_check_lib_save_LIBS=$LIBS
17456 LIBS="-ldgc $LIBS"
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463
17464 /* Override any GCC internal prototype to avoid an error.
17465 Use char because int might match the return type of a GCC
17466 builtin and then its argument prototype would still apply. */
17467 #ifdef __cplusplus
17468 extern "C"
17469 #endif
17470 char dg_sys_info ();
17471 int
17472 main ()
17473 {
17474 return dg_sys_info ();
17475 ;
17476 return 0;
17477 }
17478 _ACEOF
17479 rm -f conftest.$ac_objext conftest$ac_exeext
17480 if { (ac_try="$ac_link"
17481 case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484 esac
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_link") 2>conftest.er1
17487 ac_status=$?
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } && {
17493 test -z "$ac_c_werror_flag" ||
17494 test ! -s conftest.err
17495 } && test -s conftest$ac_exeext &&
17496 $as_test_x conftest$ac_exeext; then
17497 ac_cv_lib_dgc_dg_sys_info=yes
17498 else
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17501
17502 ac_cv_lib_dgc_dg_sys_info=no
17503 fi
17504
17505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17506 conftest$ac_exeext conftest.$ac_ext
17507 LIBS=$ac_check_lib_save_LIBS
17508 fi
17509 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17510 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17511 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17512 cat >>confdefs.h <<_ACEOF
17513 #define HAVE_LIBDGC 1
17514 _ACEOF
17515
17516 LIBS="-ldgc $LIBS"
17517
17518 fi
17519
17520 fi
17521
17522
17523
17524 if test "${ac_cv_header_locale_h+set}" = set; then
17525 { echo "$as_me:$LINENO: checking for locale.h" >&5
17526 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17527 if test "${ac_cv_header_locale_h+set}" = set; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 fi
17530 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17531 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17532 else
17533 # Is the header compilable?
17534 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17535 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17536 cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h. */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 $ac_includes_default
17543 #include <locale.h>
17544 _ACEOF
17545 rm -f conftest.$ac_objext
17546 if { (ac_try="$ac_compile"
17547 case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_compile") 2>conftest.er1
17553 ac_status=$?
17554 grep -v '^ *+' conftest.er1 >conftest.err
17555 rm -f conftest.er1
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } && {
17559 test -z "$ac_c_werror_flag" ||
17560 test ! -s conftest.err
17561 } && test -s conftest.$ac_objext; then
17562 ac_header_compiler=yes
17563 else
17564 echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17566
17567 ac_header_compiler=no
17568 fi
17569
17570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17572 echo "${ECHO_T}$ac_header_compiler" >&6; }
17573
17574 # Is the header present?
17575 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17576 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17577 cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h. */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17583 #include <locale.h>
17584 _ACEOF
17585 if { (ac_try="$ac_cpp conftest.$ac_ext"
17586 case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17592 ac_status=$?
17593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } >/dev/null && {
17598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 }; then
17601 ac_header_preproc=yes
17602 else
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 ac_header_preproc=no
17607 fi
17608
17609 rm -f conftest.err conftest.$ac_ext
17610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17611 echo "${ECHO_T}$ac_header_preproc" >&6; }
17612
17613 # So? What about this header?
17614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17615 yes:no: )
17616 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17617 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17618 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17619 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17620 ac_header_preproc=yes
17621 ;;
17622 no:yes:* )
17623 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17624 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17625 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17626 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17627 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17628 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17629 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17630 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17631 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17632 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17633 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17634 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17635
17636 ;;
17637 esac
17638 { echo "$as_me:$LINENO: checking for locale.h" >&5
17639 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17640 if test "${ac_cv_header_locale_h+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643 ac_cv_header_locale_h=$ac_header_preproc
17644 fi
17645 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17646 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17647
17648 fi
17649
17650
17651
17652 for ac_func in setlocale
17653 do
17654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 else
17660 cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h. */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17668 #define $ac_func innocuous_$ac_func
17669
17670 /* System header to define __stub macros and hopefully few prototypes,
17671 which can conflict with char $ac_func (); below.
17672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17673 <limits.h> exists even on freestanding compilers. */
17674
17675 #ifdef __STDC__
17676 # include <limits.h>
17677 #else
17678 # include <assert.h>
17679 #endif
17680
17681 #undef $ac_func
17682
17683 /* Override any GCC internal prototype to avoid an error.
17684 Use char because int might match the return type of a GCC
17685 builtin and then its argument prototype would still apply. */
17686 #ifdef __cplusplus
17687 extern "C"
17688 #endif
17689 char $ac_func ();
17690 /* The GNU C library defines this for functions which it implements
17691 to always fail with ENOSYS. Some functions are actually named
17692 something starting with __ and the normal name is an alias. */
17693 #if defined __stub_$ac_func || defined __stub___$ac_func
17694 choke me
17695 #endif
17696
17697 int
17698 main ()
17699 {
17700 return $ac_func ();
17701 ;
17702 return 0;
17703 }
17704 _ACEOF
17705 rm -f conftest.$ac_objext conftest$ac_exeext
17706 if { (ac_try="$ac_link"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17710 esac
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_link") 2>conftest.er1
17713 ac_status=$?
17714 grep -v '^ *+' conftest.er1 >conftest.err
17715 rm -f conftest.er1
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } && {
17719 test -z "$ac_c_werror_flag" ||
17720 test ! -s conftest.err
17721 } && test -s conftest$ac_exeext &&
17722 $as_test_x conftest$ac_exeext; then
17723 eval "$as_ac_var=yes"
17724 else
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728 eval "$as_ac_var=no"
17729 fi
17730
17731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17732 conftest$ac_exeext conftest.$ac_ext
17733 fi
17734 ac_res=`eval echo '${'$as_ac_var'}'`
17735 { echo "$as_me:$LINENO: result: $ac_res" >&5
17736 echo "${ECHO_T}$ac_res" >&6; }
17737 if test `eval echo '${'$as_ac_var'}'` = yes; then
17738 cat >>confdefs.h <<_ACEOF
17739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17740 _ACEOF
17741
17742 fi
17743 done
17744
17745
17746 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17747 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17748 # Irix 4.0.5F has the header but not the library.
17749 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17750 ac_have_func=yes
17751
17752 cat >>confdefs.h <<\_ACEOF
17753 #define SVR4 1
17754 _ACEOF
17755
17756 fi
17757
17758 if test $ac_have_func = no; then
17759 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17760 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17761 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17762 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 fi
17765 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17766 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17767 else
17768 # Is the header compilable?
17769 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17770 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17771 cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h. */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777 $ac_includes_default
17778 #include <inq_stats/cpustats.h>
17779 _ACEOF
17780 rm -f conftest.$ac_objext
17781 if { (ac_try="$ac_compile"
17782 case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17785 esac
17786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787 (eval "$ac_compile") 2>conftest.er1
17788 ac_status=$?
17789 grep -v '^ *+' conftest.er1 >conftest.err
17790 rm -f conftest.er1
17791 cat conftest.err >&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } && {
17794 test -z "$ac_c_werror_flag" ||
17795 test ! -s conftest.err
17796 } && test -s conftest.$ac_objext; then
17797 ac_header_compiler=yes
17798 else
17799 echo "$as_me: failed program was:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17801
17802 ac_header_compiler=no
17803 fi
17804
17805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17807 echo "${ECHO_T}$ac_header_compiler" >&6; }
17808
17809 # Is the header present?
17810 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17811 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17812 cat >conftest.$ac_ext <<_ACEOF
17813 /* confdefs.h. */
17814 _ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17818 #include <inq_stats/cpustats.h>
17819 _ACEOF
17820 if { (ac_try="$ac_cpp conftest.$ac_ext"
17821 case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17824 esac
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17827 ac_status=$?
17828 grep -v '^ *+' conftest.er1 >conftest.err
17829 rm -f conftest.er1
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } >/dev/null && {
17833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17834 test ! -s conftest.err
17835 }; then
17836 ac_header_preproc=yes
17837 else
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 ac_header_preproc=no
17842 fi
17843
17844 rm -f conftest.err conftest.$ac_ext
17845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17846 echo "${ECHO_T}$ac_header_preproc" >&6; }
17847
17848 # So? What about this header?
17849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17850 yes:no: )
17851 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17852 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17853 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17854 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17855 ac_header_preproc=yes
17856 ;;
17857 no:yes:* )
17858 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17859 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17860 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17861 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17863 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17864 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17865 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17866 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17867 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17868 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17869 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17870
17871 ;;
17872 esac
17873 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17874 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17875 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17876 echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17879 fi
17880 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17881 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17882
17883 fi
17884 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17885 ac_have_func=yes
17886
17887 cat >>confdefs.h <<\_ACEOF
17888 #define UMAX 1
17889 _ACEOF
17890
17891
17892 cat >>confdefs.h <<\_ACEOF
17893 #define UMAX4_3 1
17894 _ACEOF
17895
17896 fi
17897
17898
17899 fi
17900
17901 if test $ac_have_func = no; then
17902 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17903 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17904 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17905 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 fi
17908 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17909 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17910 else
17911 # Is the header compilable?
17912 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17913 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17914 cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h. */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17920 $ac_includes_default
17921 #include <sys/cpustats.h>
17922 _ACEOF
17923 rm -f conftest.$ac_objext
17924 if { (ac_try="$ac_compile"
17925 case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_compile") 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } && {
17937 test -z "$ac_c_werror_flag" ||
17938 test ! -s conftest.err
17939 } && test -s conftest.$ac_objext; then
17940 ac_header_compiler=yes
17941 else
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 ac_header_compiler=no
17946 fi
17947
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17950 echo "${ECHO_T}$ac_header_compiler" >&6; }
17951
17952 # Is the header present?
17953 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17954 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17955 cat >conftest.$ac_ext <<_ACEOF
17956 /* confdefs.h. */
17957 _ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 #include <sys/cpustats.h>
17962 _ACEOF
17963 if { (ac_try="$ac_cpp conftest.$ac_ext"
17964 case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17967 esac
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17970 ac_status=$?
17971 grep -v '^ *+' conftest.er1 >conftest.err
17972 rm -f conftest.er1
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } >/dev/null && {
17976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17977 test ! -s conftest.err
17978 }; then
17979 ac_header_preproc=yes
17980 else
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17983
17984 ac_header_preproc=no
17985 fi
17986
17987 rm -f conftest.err conftest.$ac_ext
17988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17989 echo "${ECHO_T}$ac_header_preproc" >&6; }
17990
17991 # So? What about this header?
17992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17993 yes:no: )
17994 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17995 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17996 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17997 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17998 ac_header_preproc=yes
17999 ;;
18000 no:yes:* )
18001 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18002 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18003 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18004 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18005 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18006 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18007 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18008 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18009 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18010 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18011 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18012 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18013
18014 ;;
18015 esac
18016 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18017 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18018 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18019 echo $ECHO_N "(cached) $ECHO_C" >&6
18020 else
18021 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18022 fi
18023 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18024 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18025
18026 fi
18027 if test $ac_cv_header_sys_cpustats_h = yes; then
18028 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18029 #define UMAX 1
18030 _ACEOF
18031
18032 fi
18033
18034
18035 fi
18036
18037 if test $ac_have_func = no; then
18038
18039 for ac_header in mach/mach.h
18040 do
18041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 fi
18048 ac_res=`eval echo '${'$as_ac_Header'}'`
18049 { echo "$as_me:$LINENO: result: $ac_res" >&5
18050 echo "${ECHO_T}$ac_res" >&6; }
18051 else
18052 # Is the header compilable?
18053 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18055 cat >conftest.$ac_ext <<_ACEOF
18056 /* confdefs.h. */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 $ac_includes_default
18062 #include <$ac_header>
18063 _ACEOF
18064 rm -f conftest.$ac_objext
18065 if { (ac_try="$ac_compile"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_compile") 2>conftest.er1
18072 ac_status=$?
18073 grep -v '^ *+' conftest.er1 >conftest.err
18074 rm -f conftest.er1
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_c_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest.$ac_objext; then
18081 ac_header_compiler=yes
18082 else
18083 echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18085
18086 ac_header_compiler=no
18087 fi
18088
18089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18091 echo "${ECHO_T}$ac_header_compiler" >&6; }
18092
18093 # Is the header present?
18094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 #include <$ac_header>
18103 _ACEOF
18104 if { (ac_try="$ac_cpp conftest.$ac_ext"
18105 case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18108 esac
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18111 ac_status=$?
18112 grep -v '^ *+' conftest.er1 >conftest.err
18113 rm -f conftest.er1
18114 cat conftest.err >&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } >/dev/null && {
18117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18118 test ! -s conftest.err
18119 }; then
18120 ac_header_preproc=yes
18121 else
18122 echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18124
18125 ac_header_preproc=no
18126 fi
18127
18128 rm -f conftest.err conftest.$ac_ext
18129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18130 echo "${ECHO_T}$ac_header_preproc" >&6; }
18131
18132 # So? What about this header?
18133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18134 yes:no: )
18135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18139 ac_header_preproc=yes
18140 ;;
18141 no:yes:* )
18142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18154
18155 ;;
18156 esac
18157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18161 else
18162 eval "$as_ac_Header=\$ac_header_preproc"
18163 fi
18164 ac_res=`eval echo '${'$as_ac_Header'}'`
18165 { echo "$as_me:$LINENO: result: $ac_res" >&5
18166 echo "${ECHO_T}$ac_res" >&6; }
18167
18168 fi
18169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18170 cat >>confdefs.h <<_ACEOF
18171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18172 _ACEOF
18173
18174 fi
18175
18176 done
18177
18178 fi
18179
18180
18181 for ac_header in nlist.h
18182 do
18183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 fi
18190 ac_res=`eval echo '${'$as_ac_Header'}'`
18191 { echo "$as_me:$LINENO: result: $ac_res" >&5
18192 echo "${ECHO_T}$ac_res" >&6; }
18193 else
18194 # Is the header compilable?
18195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18197 cat >conftest.$ac_ext <<_ACEOF
18198 /* confdefs.h. */
18199 _ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18203 $ac_includes_default
18204 #include <$ac_header>
18205 _ACEOF
18206 rm -f conftest.$ac_objext
18207 if { (ac_try="$ac_compile"
18208 case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18211 esac
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_compile") 2>conftest.er1
18214 ac_status=$?
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest.$ac_objext; then
18223 ac_header_compiler=yes
18224 else
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228 ac_header_compiler=no
18229 fi
18230
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18233 echo "${ECHO_T}$ac_header_compiler" >&6; }
18234
18235 # Is the header present?
18236 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18238 cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h. */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18244 #include <$ac_header>
18245 _ACEOF
18246 if { (ac_try="$ac_cpp conftest.$ac_ext"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18250 esac
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18253 ac_status=$?
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } >/dev/null && {
18259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 }; then
18262 ac_header_preproc=yes
18263 else
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267 ac_header_preproc=no
18268 fi
18269
18270 rm -f conftest.err conftest.$ac_ext
18271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18272 echo "${ECHO_T}$ac_header_preproc" >&6; }
18273
18274 # So? What about this header?
18275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18276 yes:no: )
18277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18281 ac_header_preproc=yes
18282 ;;
18283 no:yes:* )
18284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18291 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18296
18297 ;;
18298 esac
18299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 else
18304 eval "$as_ac_Header=\$ac_header_preproc"
18305 fi
18306 ac_res=`eval echo '${'$as_ac_Header'}'`
18307 { echo "$as_me:$LINENO: result: $ac_res" >&5
18308 echo "${ECHO_T}$ac_res" >&6; }
18309
18310 fi
18311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18312 cat >>confdefs.h <<_ACEOF
18313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18314 _ACEOF
18315 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18316 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18317 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18319 else
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h. */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18326 #include <nlist.h>
18327
18328 int
18329 main ()
18330 {
18331 static struct nlist ac_aggr;
18332 if (ac_aggr.n_un.n_name)
18333 return 0;
18334 ;
18335 return 0;
18336 }
18337 _ACEOF
18338 rm -f conftest.$ac_objext
18339 if { (ac_try="$ac_compile"
18340 case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18343 esac
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_compile") 2>conftest.er1
18346 ac_status=$?
18347 grep -v '^ *+' conftest.er1 >conftest.err
18348 rm -f conftest.er1
18349 cat conftest.err >&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } && {
18352 test -z "$ac_c_werror_flag" ||
18353 test ! -s conftest.err
18354 } && test -s conftest.$ac_objext; then
18355 ac_cv_member_struct_nlist_n_un_n_name=yes
18356 else
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18359
18360 cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h. */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18366 #include <nlist.h>
18367
18368 int
18369 main ()
18370 {
18371 static struct nlist ac_aggr;
18372 if (sizeof ac_aggr.n_un.n_name)
18373 return 0;
18374 ;
18375 return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest.$ac_objext
18379 if { (ac_try="$ac_compile"
18380 case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18383 esac
18384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385 (eval "$ac_compile") 2>conftest.er1
18386 ac_status=$?
18387 grep -v '^ *+' conftest.er1 >conftest.err
18388 rm -f conftest.er1
18389 cat conftest.err >&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } && {
18392 test -z "$ac_c_werror_flag" ||
18393 test ! -s conftest.err
18394 } && test -s conftest.$ac_objext; then
18395 ac_cv_member_struct_nlist_n_un_n_name=yes
18396 else
18397 echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18399
18400 ac_cv_member_struct_nlist_n_un_n_name=no
18401 fi
18402
18403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18404 fi
18405
18406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18407 fi
18408 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18409 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18410 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18411
18412 cat >>confdefs.h <<_ACEOF
18413 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18414 _ACEOF
18415
18416
18417 cat >>confdefs.h <<\_ACEOF
18418 #define NLIST_NAME_UNION 1
18419 _ACEOF
18420
18421 fi
18422
18423
18424 fi
18425
18426 done
18427
18428 fi
18429 done
18430
18431
18432 # Some definitions of getloadavg require that the program be installed setgid.
18433 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18434 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18435 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18436 echo $ECHO_N "(cached) $ECHO_C" >&6
18437 else
18438 cat >conftest.$ac_ext <<_ACEOF
18439 /* confdefs.h. */
18440 _ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18444 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18445 #ifdef LDAV_PRIVILEGED
18446 Yowza Am I SETGID yet
18447 #endif
18448 _ACEOF
18449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18450 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18451 ac_cv_func_getloadavg_setgid=yes
18452 else
18453 ac_cv_func_getloadavg_setgid=no
18454 fi
18455 rm -f conftest*
18456
18457 fi
18458 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18459 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18460 if test $ac_cv_func_getloadavg_setgid = yes; then
18461 NEED_SETGID=true
18462
18463 cat >>confdefs.h <<\_ACEOF
18464 #define GETLOADAVG_PRIVILEGED 1
18465 _ACEOF
18466
18467 else
18468 NEED_SETGID=false
18469 fi
18470
18471 if test $ac_cv_func_getloadavg_setgid = yes; then
18472 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18473 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18474 if test "${ac_cv_group_kmem+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18478 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18479 # If we got an error (system does not support symlinks), try without -L.
18480 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18481 ac_cv_group_kmem=`echo $ac_ls_output \
18482 | sed -ne 's/[ ][ ]*/ /g;
18483 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18484 / /s/.* //;p;'`
18485
18486 fi
18487 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18488 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18489 KMEM_GROUP=$ac_cv_group_kmem
18490 fi
18491 if test "x$ac_save_LIBS" = x; then
18492 GETLOADAVG_LIBS=$LIBS
18493 else
18494 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18495 fi
18496 LIBS=$ac_save_LIBS
18497
18498
18499
18500 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18501 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18502 if test "${ac_cv_sys_largefile_source+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505 while :; do
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h. */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 #include <sys/types.h> /* for off_t */
18513 #include <stdio.h>
18514 int
18515 main ()
18516 {
18517 int (*fp) (FILE *, off_t, int) = fseeko;
18518 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18519 ;
18520 return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
18531 ac_status=$?
18532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } && {
18537 test -z "$ac_c_werror_flag" ||
18538 test ! -s conftest.err
18539 } && test -s conftest$ac_exeext &&
18540 $as_test_x conftest$ac_exeext; then
18541 ac_cv_sys_largefile_source=no; break
18542 else
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546
18547 fi
18548
18549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18550 conftest$ac_exeext conftest.$ac_ext
18551 cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h. */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18557 #define _LARGEFILE_SOURCE 1
18558 #include <sys/types.h> /* for off_t */
18559 #include <stdio.h>
18560 int
18561 main ()
18562 {
18563 int (*fp) (FILE *, off_t, int) = fseeko;
18564 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18565 ;
18566 return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (ac_try="$ac_link"
18571 case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_link") 2>conftest.er1
18577 ac_status=$?
18578 grep -v '^ *+' conftest.er1 >conftest.err
18579 rm -f conftest.er1
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } && {
18583 test -z "$ac_c_werror_flag" ||
18584 test ! -s conftest.err
18585 } && test -s conftest$ac_exeext &&
18586 $as_test_x conftest$ac_exeext; then
18587 ac_cv_sys_largefile_source=1; break
18588 else
18589 echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18591
18592
18593 fi
18594
18595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18596 conftest$ac_exeext conftest.$ac_ext
18597 ac_cv_sys_largefile_source=unknown
18598 break
18599 done
18600 fi
18601 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18602 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18603 case $ac_cv_sys_largefile_source in #(
18604 no | unknown) ;;
18605 *)
18606 cat >>confdefs.h <<_ACEOF
18607 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18608 _ACEOF
18609 ;;
18610 esac
18611 rm -f conftest*
18612
18613 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18614 # in glibc 2.1.3, but that breaks too many other things.
18615 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18616 if test $ac_cv_sys_largefile_source != unknown; then
18617
18618 cat >>confdefs.h <<\_ACEOF
18619 #define HAVE_FSEEKO 1
18620 _ACEOF
18621
18622 fi
18623
18624
18625 # Configure getopt.
18626 # getopt.m4 serial 10
18627
18628 # The getopt module assume you want GNU getopt, with getopt_long etc,
18629 # rather than vanilla POSIX getopt. This means your your code should
18630 # always include <getopt.h> for the getopt prototypes.
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642 # Prerequisites of lib/getopt*.
18643
18644
18645
18646
18647 GETOPT_H=
18648
18649 for ac_header in getopt.h
18650 do
18651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 fi
18658 ac_res=`eval echo '${'$as_ac_Header'}'`
18659 { echo "$as_me:$LINENO: result: $ac_res" >&5
18660 echo "${ECHO_T}$ac_res" >&6; }
18661 else
18662 # Is the header compilable?
18663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18665 cat >conftest.$ac_ext <<_ACEOF
18666 /* confdefs.h. */
18667 _ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18671 $ac_includes_default
18672 #include <$ac_header>
18673 _ACEOF
18674 rm -f conftest.$ac_objext
18675 if { (ac_try="$ac_compile"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18679 esac
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_compile") 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } && {
18688 test -z "$ac_c_werror_flag" ||
18689 test ! -s conftest.err
18690 } && test -s conftest.$ac_objext; then
18691 ac_header_compiler=yes
18692 else
18693 echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18695
18696 ac_header_compiler=no
18697 fi
18698
18699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18701 echo "${ECHO_T}$ac_header_compiler" >&6; }
18702
18703 # Is the header present?
18704 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18706 cat >conftest.$ac_ext <<_ACEOF
18707 /* confdefs.h. */
18708 _ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h. */
18712 #include <$ac_header>
18713 _ACEOF
18714 if { (ac_try="$ac_cpp conftest.$ac_ext"
18715 case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718 esac
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } >/dev/null && {
18727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18728 test ! -s conftest.err
18729 }; then
18730 ac_header_preproc=yes
18731 else
18732 echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18734
18735 ac_header_preproc=no
18736 fi
18737
18738 rm -f conftest.err conftest.$ac_ext
18739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18740 echo "${ECHO_T}$ac_header_preproc" >&6; }
18741
18742 # So? What about this header?
18743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18744 yes:no: )
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18749 ac_header_preproc=yes
18750 ;;
18751 no:yes:* )
18752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18764
18765 ;;
18766 esac
18767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18771 else
18772 eval "$as_ac_Header=\$ac_header_preproc"
18773 fi
18774 ac_res=`eval echo '${'$as_ac_Header'}'`
18775 { echo "$as_me:$LINENO: result: $ac_res" >&5
18776 echo "${ECHO_T}$ac_res" >&6; }
18777
18778 fi
18779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18780 cat >>confdefs.h <<_ACEOF
18781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18782 _ACEOF
18783
18784 else
18785 GETOPT_H=getopt.h
18786 fi
18787
18788 done
18789
18790 if test -z "$GETOPT_H"; then
18791
18792 for ac_func in getopt_long_only
18793 do
18794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18798 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 else
18800 cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h. */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18808 #define $ac_func innocuous_$ac_func
18809
18810 /* System header to define __stub macros and hopefully few prototypes,
18811 which can conflict with char $ac_func (); below.
18812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18813 <limits.h> exists even on freestanding compilers. */
18814
18815 #ifdef __STDC__
18816 # include <limits.h>
18817 #else
18818 # include <assert.h>
18819 #endif
18820
18821 #undef $ac_func
18822
18823 /* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18826 #ifdef __cplusplus
18827 extern "C"
18828 #endif
18829 char $ac_func ();
18830 /* The GNU C library defines this for functions which it implements
18831 to always fail with ENOSYS. Some functions are actually named
18832 something starting with __ and the normal name is an alias. */
18833 #if defined __stub_$ac_func || defined __stub___$ac_func
18834 choke me
18835 #endif
18836
18837 int
18838 main ()
18839 {
18840 return $ac_func ();
18841 ;
18842 return 0;
18843 }
18844 _ACEOF
18845 rm -f conftest.$ac_objext conftest$ac_exeext
18846 if { (ac_try="$ac_link"
18847 case "(($ac_try" in
18848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849 *) ac_try_echo=$ac_try;;
18850 esac
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852 (eval "$ac_link") 2>conftest.er1
18853 ac_status=$?
18854 grep -v '^ *+' conftest.er1 >conftest.err
18855 rm -f conftest.er1
18856 cat conftest.err >&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); } && {
18859 test -z "$ac_c_werror_flag" ||
18860 test ! -s conftest.err
18861 } && test -s conftest$ac_exeext &&
18862 $as_test_x conftest$ac_exeext; then
18863 eval "$as_ac_var=yes"
18864 else
18865 echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18867
18868 eval "$as_ac_var=no"
18869 fi
18870
18871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18872 conftest$ac_exeext conftest.$ac_ext
18873 fi
18874 ac_res=`eval echo '${'$as_ac_var'}'`
18875 { echo "$as_me:$LINENO: result: $ac_res" >&5
18876 echo "${ECHO_T}$ac_res" >&6; }
18877 if test `eval echo '${'$as_ac_var'}'` = yes; then
18878 cat >>confdefs.h <<_ACEOF
18879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18880 _ACEOF
18881
18882 else
18883 GETOPT_H=getopt.h
18884 fi
18885 done
18886
18887 fi
18888
18889 if test -z "$GETOPT_H"; then
18890 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18891 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18892 if test "${ac_cv_have_decl_optreset+set}" = set; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18894 else
18895 cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h. */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18901 #include <getopt.h>
18902
18903 int
18904 main ()
18905 {
18906 #ifndef optreset
18907 (void) optreset;
18908 #endif
18909
18910 ;
18911 return 0;
18912 }
18913 _ACEOF
18914 rm -f conftest.$ac_objext
18915 if { (ac_try="$ac_compile"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919 esac
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_compile") 2>conftest.er1
18922 ac_status=$?
18923 grep -v '^ *+' conftest.er1 >conftest.err
18924 rm -f conftest.er1
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } && {
18928 test -z "$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18930 } && test -s conftest.$ac_objext; then
18931 ac_cv_have_decl_optreset=yes
18932 else
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18935
18936 ac_cv_have_decl_optreset=no
18937 fi
18938
18939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18940 fi
18941 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18942 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18943 if test $ac_cv_have_decl_optreset = yes; then
18944 GETOPT_H=getopt.h
18945 fi
18946
18947 fi
18948
18949 if test -z "$GETOPT_H"; then
18950 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18951 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18952 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955 if test "$cross_compiling" = yes; then
18956 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18957 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18958 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 else
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h. */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 #include <getopt.h>
18968
18969 int
18970 main ()
18971 {
18972 #ifndef getopt_clip
18973 (void) getopt_clip;
18974 #endif
18975
18976 ;
18977 return 0;
18978 }
18979 _ACEOF
18980 rm -f conftest.$ac_objext
18981 if { (ac_try="$ac_compile"
18982 case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18985 esac
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_compile") 2>conftest.er1
18988 ac_status=$?
18989 grep -v '^ *+' conftest.er1 >conftest.err
18990 rm -f conftest.er1
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } && {
18994 test -z "$ac_c_werror_flag" ||
18995 test ! -s conftest.err
18996 } && test -s conftest.$ac_objext; then
18997 ac_cv_have_decl_getopt_clip=yes
18998 else
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002 ac_cv_have_decl_getopt_clip=no
19003 fi
19004
19005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19006 fi
19007 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19008 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19009 if test $ac_cv_have_decl_getopt_clip = yes; then
19010 gl_cv_func_gnu_getopt=no
19011 else
19012 gl_cv_func_gnu_getopt=yes
19013 fi
19014
19015 else
19016 cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h. */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 #include <getopt.h>
19023 int
19024 main ()
19025 {
19026
19027 char *myargv[3];
19028 myargv[0] = "conftest";
19029 myargv[1] = "-+";
19030 myargv[2] = 0;
19031 return getopt (2, myargv, "+a") != '?';
19032
19033 ;
19034 return 0;
19035 }
19036 _ACEOF
19037 rm -f conftest$ac_exeext
19038 if { (ac_try="$ac_link"
19039 case "(($ac_try" in
19040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041 *) ac_try_echo=$ac_try;;
19042 esac
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044 (eval "$ac_link") 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19051 esac
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 gl_cv_func_gnu_getopt=yes
19058 else
19059 echo "$as_me: program exited with status $ac_status" >&5
19060 echo "$as_me: failed program was:" >&5
19061 sed 's/^/| /' conftest.$ac_ext >&5
19062
19063 ( exit $ac_status )
19064 gl_cv_func_gnu_getopt=no
19065 fi
19066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19067 fi
19068
19069
19070 fi
19071 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19072 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19073 if test "$gl_cv_func_gnu_getopt" = "no"; then
19074 GETOPT_H=getopt.h
19075 fi
19076 fi
19077
19078
19079
19080 if test -n "$GETOPT_H"; then
19081
19082
19083 GETOPT_H=getopt.h
19084
19085 cat >>confdefs.h <<\_ACEOF
19086 #define __GETOPT_PREFIX rpl_
19087 _ACEOF
19088
19089
19090
19091 :
19092 GETOPTOBJS='getopt.o getopt1.o'
19093
19094 fi
19095
19096
19097
19098
19099 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19100 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19101 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19102 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 else
19104 # Use it with a single arg.
19105 cat >conftest.$ac_ext <<_ACEOF
19106 /* confdefs.h. */
19107 _ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h. */
19111 $ac_includes_default
19112 int
19113 main ()
19114 {
19115 getpgrp (0);
19116 ;
19117 return 0;
19118 }
19119 _ACEOF
19120 rm -f conftest.$ac_objext
19121 if { (ac_try="$ac_compile"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_compile") 2>conftest.er1
19128 ac_status=$?
19129 grep -v '^ *+' conftest.er1 >conftest.err
19130 rm -f conftest.er1
19131 cat conftest.err >&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } && {
19134 test -z "$ac_c_werror_flag" ||
19135 test ! -s conftest.err
19136 } && test -s conftest.$ac_objext; then
19137 ac_cv_func_getpgrp_void=no
19138 else
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142 ac_cv_func_getpgrp_void=yes
19143 fi
19144
19145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19146
19147 fi
19148 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19149 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19150 if test $ac_cv_func_getpgrp_void = yes; then
19151
19152 cat >>confdefs.h <<\_ACEOF
19153 #define GETPGRP_VOID 1
19154 _ACEOF
19155
19156 fi
19157
19158
19159
19160 for ac_func in strftime
19161 do
19162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19166 echo $ECHO_N "(cached) $ECHO_C" >&6
19167 else
19168 cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h. */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h. */
19174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19176 #define $ac_func innocuous_$ac_func
19177
19178 /* System header to define __stub macros and hopefully few prototypes,
19179 which can conflict with char $ac_func (); below.
19180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19181 <limits.h> exists even on freestanding compilers. */
19182
19183 #ifdef __STDC__
19184 # include <limits.h>
19185 #else
19186 # include <assert.h>
19187 #endif
19188
19189 #undef $ac_func
19190
19191 /* Override any GCC internal prototype to avoid an error.
19192 Use char because int might match the return type of a GCC
19193 builtin and then its argument prototype would still apply. */
19194 #ifdef __cplusplus
19195 extern "C"
19196 #endif
19197 char $ac_func ();
19198 /* The GNU C library defines this for functions which it implements
19199 to always fail with ENOSYS. Some functions are actually named
19200 something starting with __ and the normal name is an alias. */
19201 #if defined __stub_$ac_func || defined __stub___$ac_func
19202 choke me
19203 #endif
19204
19205 int
19206 main ()
19207 {
19208 return $ac_func ();
19209 ;
19210 return 0;
19211 }
19212 _ACEOF
19213 rm -f conftest.$ac_objext conftest$ac_exeext
19214 if { (ac_try="$ac_link"
19215 case "(($ac_try" in
19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19218 esac
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220 (eval "$ac_link") 2>conftest.er1
19221 ac_status=$?
19222 grep -v '^ *+' conftest.er1 >conftest.err
19223 rm -f conftest.er1
19224 cat conftest.err >&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } && {
19227 test -z "$ac_c_werror_flag" ||
19228 test ! -s conftest.err
19229 } && test -s conftest$ac_exeext &&
19230 $as_test_x conftest$ac_exeext; then
19231 eval "$as_ac_var=yes"
19232 else
19233 echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19235
19236 eval "$as_ac_var=no"
19237 fi
19238
19239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19240 conftest$ac_exeext conftest.$ac_ext
19241 fi
19242 ac_res=`eval echo '${'$as_ac_var'}'`
19243 { echo "$as_me:$LINENO: result: $ac_res" >&5
19244 echo "${ECHO_T}$ac_res" >&6; }
19245 if test `eval echo '${'$as_ac_var'}'` = yes; then
19246 cat >>confdefs.h <<_ACEOF
19247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19248 _ACEOF
19249
19250 else
19251 # strftime is in -lintl on SCO UNIX.
19252 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19253 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19254 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 else
19257 ac_check_lib_save_LIBS=$LIBS
19258 LIBS="-lintl $LIBS"
19259 cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h. */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19265
19266 /* Override any GCC internal prototype to avoid an error.
19267 Use char because int might match the return type of a GCC
19268 builtin and then its argument prototype would still apply. */
19269 #ifdef __cplusplus
19270 extern "C"
19271 #endif
19272 char strftime ();
19273 int
19274 main ()
19275 {
19276 return strftime ();
19277 ;
19278 return 0;
19279 }
19280 _ACEOF
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (ac_try="$ac_link"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19286 esac
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_link") 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest$ac_exeext &&
19298 $as_test_x conftest$ac_exeext; then
19299 ac_cv_lib_intl_strftime=yes
19300 else
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304 ac_cv_lib_intl_strftime=no
19305 fi
19306
19307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19308 conftest$ac_exeext conftest.$ac_ext
19309 LIBS=$ac_check_lib_save_LIBS
19310 fi
19311 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19312 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19313 if test $ac_cv_lib_intl_strftime = yes; then
19314 cat >>confdefs.h <<\_ACEOF
19315 #define HAVE_STRFTIME 1
19316 _ACEOF
19317
19318 LIBS="-lintl $LIBS"
19319 fi
19320
19321 fi
19322 done
19323
19324
19325 # UNIX98 PTYs.
19326
19327 for ac_func in grantpt
19328 do
19329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335 cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h. */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19343 #define $ac_func innocuous_$ac_func
19344
19345 /* System header to define __stub macros and hopefully few prototypes,
19346 which can conflict with char $ac_func (); below.
19347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19348 <limits.h> exists even on freestanding compilers. */
19349
19350 #ifdef __STDC__
19351 # include <limits.h>
19352 #else
19353 # include <assert.h>
19354 #endif
19355
19356 #undef $ac_func
19357
19358 /* Override any GCC internal prototype to avoid an error.
19359 Use char because int might match the return type of a GCC
19360 builtin and then its argument prototype would still apply. */
19361 #ifdef __cplusplus
19362 extern "C"
19363 #endif
19364 char $ac_func ();
19365 /* The GNU C library defines this for functions which it implements
19366 to always fail with ENOSYS. Some functions are actually named
19367 something starting with __ and the normal name is an alias. */
19368 #if defined __stub_$ac_func || defined __stub___$ac_func
19369 choke me
19370 #endif
19371
19372 int
19373 main ()
19374 {
19375 return $ac_func ();
19376 ;
19377 return 0;
19378 }
19379 _ACEOF
19380 rm -f conftest.$ac_objext conftest$ac_exeext
19381 if { (ac_try="$ac_link"
19382 case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19385 esac
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_link") 2>conftest.er1
19388 ac_status=$?
19389 grep -v '^ *+' conftest.er1 >conftest.err
19390 rm -f conftest.er1
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } && {
19394 test -z "$ac_c_werror_flag" ||
19395 test ! -s conftest.err
19396 } && test -s conftest$ac_exeext &&
19397 $as_test_x conftest$ac_exeext; then
19398 eval "$as_ac_var=yes"
19399 else
19400 echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403 eval "$as_ac_var=no"
19404 fi
19405
19406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19407 conftest$ac_exeext conftest.$ac_ext
19408 fi
19409 ac_res=`eval echo '${'$as_ac_var'}'`
19410 { echo "$as_me:$LINENO: result: $ac_res" >&5
19411 echo "${ECHO_T}$ac_res" >&6; }
19412 if test `eval echo '${'$as_ac_var'}'` = yes; then
19413 cat >>confdefs.h <<_ACEOF
19414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19415 _ACEOF
19416
19417 fi
19418 done
19419
19420
19421 # PTY-related GNU extensions.
19422
19423 for ac_func in getpt
19424 do
19425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19426 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 else
19431 cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h. */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19439 #define $ac_func innocuous_$ac_func
19440
19441 /* System header to define __stub macros and hopefully few prototypes,
19442 which can conflict with char $ac_func (); below.
19443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19444 <limits.h> exists even on freestanding compilers. */
19445
19446 #ifdef __STDC__
19447 # include <limits.h>
19448 #else
19449 # include <assert.h>
19450 #endif
19451
19452 #undef $ac_func
19453
19454 /* Override any GCC internal prototype to avoid an error.
19455 Use char because int might match the return type of a GCC
19456 builtin and then its argument prototype would still apply. */
19457 #ifdef __cplusplus
19458 extern "C"
19459 #endif
19460 char $ac_func ();
19461 /* The GNU C library defines this for functions which it implements
19462 to always fail with ENOSYS. Some functions are actually named
19463 something starting with __ and the normal name is an alias. */
19464 #if defined __stub_$ac_func || defined __stub___$ac_func
19465 choke me
19466 #endif
19467
19468 int
19469 main ()
19470 {
19471 return $ac_func ();
19472 ;
19473 return 0;
19474 }
19475 _ACEOF
19476 rm -f conftest.$ac_objext conftest$ac_exeext
19477 if { (ac_try="$ac_link"
19478 case "(($ac_try" in
19479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480 *) ac_try_echo=$ac_try;;
19481 esac
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483 (eval "$ac_link") 2>conftest.er1
19484 ac_status=$?
19485 grep -v '^ *+' conftest.er1 >conftest.err
19486 rm -f conftest.er1
19487 cat conftest.err >&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } && {
19490 test -z "$ac_c_werror_flag" ||
19491 test ! -s conftest.err
19492 } && test -s conftest$ac_exeext &&
19493 $as_test_x conftest$ac_exeext; then
19494 eval "$as_ac_var=yes"
19495 else
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499 eval "$as_ac_var=no"
19500 fi
19501
19502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19503 conftest$ac_exeext conftest.$ac_ext
19504 fi
19505 ac_res=`eval echo '${'$as_ac_var'}'`
19506 { echo "$as_me:$LINENO: result: $ac_res" >&5
19507 echo "${ECHO_T}$ac_res" >&6; }
19508 if test `eval echo '${'$as_ac_var'}'` = yes; then
19509 cat >>confdefs.h <<_ACEOF
19510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19511 _ACEOF
19512
19513 fi
19514 done
19515
19516
19517 # Check this now, so that we will NOT find the above functions in ncurses.
19518 # That is because we have not set up to link ncurses in lib-src.
19519 # It's better to believe a function is not available
19520 # than to expect to find it in ncurses.
19521
19522 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19523 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19524 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 else
19527 ac_check_lib_save_LIBS=$LIBS
19528 LIBS="-lncurses $LIBS"
19529 cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h. */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19535
19536 /* Override any GCC internal prototype to avoid an error.
19537 Use char because int might match the return type of a GCC
19538 builtin and then its argument prototype would still apply. */
19539 #ifdef __cplusplus
19540 extern "C"
19541 #endif
19542 char tparm ();
19543 int
19544 main ()
19545 {
19546 return tparm ();
19547 ;
19548 return 0;
19549 }
19550 _ACEOF
19551 rm -f conftest.$ac_objext conftest$ac_exeext
19552 if { (ac_try="$ac_link"
19553 case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556 esac
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_link") 2>conftest.er1
19559 ac_status=$?
19560 grep -v '^ *+' conftest.er1 >conftest.err
19561 rm -f conftest.er1
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } && {
19565 test -z "$ac_c_werror_flag" ||
19566 test ! -s conftest.err
19567 } && test -s conftest$ac_exeext &&
19568 $as_test_x conftest$ac_exeext; then
19569 ac_cv_lib_ncurses_tparm=yes
19570 else
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574 ac_cv_lib_ncurses_tparm=no
19575 fi
19576
19577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19580 fi
19581 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19582 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19583 if test $ac_cv_lib_ncurses_tparm = yes; then
19584 cat >>confdefs.h <<_ACEOF
19585 #define HAVE_LIBNCURSES 1
19586 _ACEOF
19587
19588 LIBS="-lncurses $LIBS"
19589
19590 fi
19591
19592
19593 # Do we need the Hesiod library to provide the support routines?
19594 if test "$with_hesiod" = yes ; then
19595 # Don't set $LIBS here -- see comments above.
19596 resolv=no
19597 { echo "$as_me:$LINENO: checking for res_send" >&5
19598 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19599 if test "${ac_cv_func_res_send+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602 cat >conftest.$ac_ext <<_ACEOF
19603 /* confdefs.h. */
19604 _ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19608 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19610 #define res_send innocuous_res_send
19611
19612 /* System header to define __stub macros and hopefully few prototypes,
19613 which can conflict with char res_send (); below.
19614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19615 <limits.h> exists even on freestanding compilers. */
19616
19617 #ifdef __STDC__
19618 # include <limits.h>
19619 #else
19620 # include <assert.h>
19621 #endif
19622
19623 #undef res_send
19624
19625 /* Override any GCC internal prototype to avoid an error.
19626 Use char because int might match the return type of a GCC
19627 builtin and then its argument prototype would still apply. */
19628 #ifdef __cplusplus
19629 extern "C"
19630 #endif
19631 char res_send ();
19632 /* The GNU C library defines this for functions which it implements
19633 to always fail with ENOSYS. Some functions are actually named
19634 something starting with __ and the normal name is an alias. */
19635 #if defined __stub_res_send || defined __stub___res_send
19636 choke me
19637 #endif
19638
19639 int
19640 main ()
19641 {
19642 return res_send ();
19643 ;
19644 return 0;
19645 }
19646 _ACEOF
19647 rm -f conftest.$ac_objext conftest$ac_exeext
19648 if { (ac_try="$ac_link"
19649 case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652 esac
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_link") 2>conftest.er1
19655 ac_status=$?
19656 grep -v '^ *+' conftest.er1 >conftest.err
19657 rm -f conftest.er1
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } && {
19661 test -z "$ac_c_werror_flag" ||
19662 test ! -s conftest.err
19663 } && test -s conftest$ac_exeext &&
19664 $as_test_x conftest$ac_exeext; then
19665 ac_cv_func_res_send=yes
19666 else
19667 echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19669
19670 ac_cv_func_res_send=no
19671 fi
19672
19673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19674 conftest$ac_exeext conftest.$ac_ext
19675 fi
19676 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19677 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19678 if test $ac_cv_func_res_send = yes; then
19679 :
19680 else
19681 { echo "$as_me:$LINENO: checking for __res_send" >&5
19682 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19683 if test "${ac_cv_func___res_send+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h. */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19694 #define __res_send innocuous___res_send
19695
19696 /* System header to define __stub macros and hopefully few prototypes,
19697 which can conflict with char __res_send (); below.
19698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19699 <limits.h> exists even on freestanding compilers. */
19700
19701 #ifdef __STDC__
19702 # include <limits.h>
19703 #else
19704 # include <assert.h>
19705 #endif
19706
19707 #undef __res_send
19708
19709 /* Override any GCC internal prototype to avoid an error.
19710 Use char because int might match the return type of a GCC
19711 builtin and then its argument prototype would still apply. */
19712 #ifdef __cplusplus
19713 extern "C"
19714 #endif
19715 char __res_send ();
19716 /* The GNU C library defines this for functions which it implements
19717 to always fail with ENOSYS. Some functions are actually named
19718 something starting with __ and the normal name is an alias. */
19719 #if defined __stub___res_send || defined __stub_____res_send
19720 choke me
19721 #endif
19722
19723 int
19724 main ()
19725 {
19726 return __res_send ();
19727 ;
19728 return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19749 ac_cv_func___res_send=yes
19750 else
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19753
19754 ac_cv_func___res_send=no
19755 fi
19756
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19759 fi
19760 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19761 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19762 if test $ac_cv_func___res_send = yes; then
19763 :
19764 else
19765 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19766 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19767 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 else
19770 ac_check_lib_save_LIBS=$LIBS
19771 LIBS="-lresolv $LIBS"
19772 cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h. */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19778
19779 /* Override any GCC internal prototype to avoid an error.
19780 Use char because int might match the return type of a GCC
19781 builtin and then its argument prototype would still apply. */
19782 #ifdef __cplusplus
19783 extern "C"
19784 #endif
19785 char res_send ();
19786 int
19787 main ()
19788 {
19789 return res_send ();
19790 ;
19791 return 0;
19792 }
19793 _ACEOF
19794 rm -f conftest.$ac_objext conftest$ac_exeext
19795 if { (ac_try="$ac_link"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_link") 2>conftest.er1
19802 ac_status=$?
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } && {
19808 test -z "$ac_c_werror_flag" ||
19809 test ! -s conftest.err
19810 } && test -s conftest$ac_exeext &&
19811 $as_test_x conftest$ac_exeext; then
19812 ac_cv_lib_resolv_res_send=yes
19813 else
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19816
19817 ac_cv_lib_resolv_res_send=no
19818 fi
19819
19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LIBS=$ac_check_lib_save_LIBS
19823 fi
19824 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19825 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19826 if test $ac_cv_lib_resolv_res_send = yes; then
19827 resolv=yes
19828 else
19829 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19830 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19831 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 else
19834 ac_check_lib_save_LIBS=$LIBS
19835 LIBS="-lresolv $LIBS"
19836 cat >conftest.$ac_ext <<_ACEOF
19837 /* confdefs.h. */
19838 _ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842
19843 /* Override any GCC internal prototype to avoid an error.
19844 Use char because int might match the return type of a GCC
19845 builtin and then its argument prototype would still apply. */
19846 #ifdef __cplusplus
19847 extern "C"
19848 #endif
19849 char __res_send ();
19850 int
19851 main ()
19852 {
19853 return __res_send ();
19854 ;
19855 return 0;
19856 }
19857 _ACEOF
19858 rm -f conftest.$ac_objext conftest$ac_exeext
19859 if { (ac_try="$ac_link"
19860 case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_link") 2>conftest.er1
19866 ac_status=$?
19867 grep -v '^ *+' conftest.er1 >conftest.err
19868 rm -f conftest.er1
19869 cat conftest.err >&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } && {
19872 test -z "$ac_c_werror_flag" ||
19873 test ! -s conftest.err
19874 } && test -s conftest$ac_exeext &&
19875 $as_test_x conftest$ac_exeext; then
19876 ac_cv_lib_resolv___res_send=yes
19877 else
19878 echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19880
19881 ac_cv_lib_resolv___res_send=no
19882 fi
19883
19884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19885 conftest$ac_exeext conftest.$ac_ext
19886 LIBS=$ac_check_lib_save_LIBS
19887 fi
19888 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19889 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19890 if test $ac_cv_lib_resolv___res_send = yes; then
19891 resolv=yes
19892 fi
19893
19894 fi
19895
19896 fi
19897
19898 fi
19899
19900 if test "$resolv" = yes ; then
19901 RESOLVLIB=-lresolv
19902
19903 cat >>confdefs.h <<\_ACEOF
19904 #define HAVE_LIBRESOLV 1
19905 _ACEOF
19906
19907 else
19908 RESOLVLIB=
19909 fi
19910 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19911 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19912 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 else
19915 cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h. */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19923 #define hes_getmailhost innocuous_hes_getmailhost
19924
19925 /* System header to define __stub macros and hopefully few prototypes,
19926 which can conflict with char hes_getmailhost (); below.
19927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19928 <limits.h> exists even on freestanding compilers. */
19929
19930 #ifdef __STDC__
19931 # include <limits.h>
19932 #else
19933 # include <assert.h>
19934 #endif
19935
19936 #undef hes_getmailhost
19937
19938 /* Override any GCC internal prototype to avoid an error.
19939 Use char because int might match the return type of a GCC
19940 builtin and then its argument prototype would still apply. */
19941 #ifdef __cplusplus
19942 extern "C"
19943 #endif
19944 char hes_getmailhost ();
19945 /* The GNU C library defines this for functions which it implements
19946 to always fail with ENOSYS. Some functions are actually named
19947 something starting with __ and the normal name is an alias. */
19948 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19949 choke me
19950 #endif
19951
19952 int
19953 main ()
19954 {
19955 return hes_getmailhost ();
19956 ;
19957 return 0;
19958 }
19959 _ACEOF
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (ac_try="$ac_link"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_link") 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest$ac_exeext &&
19977 $as_test_x conftest$ac_exeext; then
19978 ac_cv_func_hes_getmailhost=yes
19979 else
19980 echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19982
19983 ac_cv_func_hes_getmailhost=no
19984 fi
19985
19986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19987 conftest$ac_exeext conftest.$ac_ext
19988 fi
19989 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19990 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19991 if test $ac_cv_func_hes_getmailhost = yes; then
19992 :
19993 else
19994 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19995 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19996 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999 ac_check_lib_save_LIBS=$LIBS
20000 LIBS="-lhesiod $RESOLVLIB $LIBS"
20001 cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h. */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20007
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20011 #ifdef __cplusplus
20012 extern "C"
20013 #endif
20014 char hes_getmailhost ();
20015 int
20016 main ()
20017 {
20018 return hes_getmailhost ();
20019 ;
20020 return 0;
20021 }
20022 _ACEOF
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_link") 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest$ac_exeext &&
20040 $as_test_x conftest$ac_exeext; then
20041 ac_cv_lib_hesiod_hes_getmailhost=yes
20042 else
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20045
20046 ac_cv_lib_hesiod_hes_getmailhost=no
20047 fi
20048
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050 conftest$ac_exeext conftest.$ac_ext
20051 LIBS=$ac_check_lib_save_LIBS
20052 fi
20053 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20054 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20055 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20056
20057 cat >>confdefs.h <<\_ACEOF
20058 #define HAVE_LIBHESIOD 1
20059 _ACEOF
20060
20061 else
20062 :
20063 fi
20064
20065 fi
20066
20067 fi
20068
20069 # These tell us which Kerberos-related libraries to use.
20070 if test "${with_kerberos+set}" = set; then
20071
20072 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20073 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20074 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20076 else
20077 ac_check_lib_save_LIBS=$LIBS
20078 LIBS="-lcom_err $LIBS"
20079 cat >conftest.$ac_ext <<_ACEOF
20080 /* confdefs.h. */
20081 _ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20085
20086 /* Override any GCC internal prototype to avoid an error.
20087 Use char because int might match the return type of a GCC
20088 builtin and then its argument prototype would still apply. */
20089 #ifdef __cplusplus
20090 extern "C"
20091 #endif
20092 char com_err ();
20093 int
20094 main ()
20095 {
20096 return com_err ();
20097 ;
20098 return 0;
20099 }
20100 _ACEOF
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_link") 2>conftest.er1
20109 ac_status=$?
20110 grep -v '^ *+' conftest.er1 >conftest.err
20111 rm -f conftest.er1
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest$ac_exeext &&
20118 $as_test_x conftest$ac_exeext; then
20119 ac_cv_lib_com_err_com_err=yes
20120 else
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124 ac_cv_lib_com_err_com_err=no
20125 fi
20126
20127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20128 conftest$ac_exeext conftest.$ac_ext
20129 LIBS=$ac_check_lib_save_LIBS
20130 fi
20131 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20132 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20133 if test $ac_cv_lib_com_err_com_err = yes; then
20134 cat >>confdefs.h <<_ACEOF
20135 #define HAVE_LIBCOM_ERR 1
20136 _ACEOF
20137
20138 LIBS="-lcom_err $LIBS"
20139
20140 fi
20141
20142
20143 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20144 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20145 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 else
20148 ac_check_lib_save_LIBS=$LIBS
20149 LIBS="-lk5crypto $LIBS"
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h. */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156
20157 /* Override any GCC internal prototype to avoid an error.
20158 Use char because int might match the return type of a GCC
20159 builtin and then its argument prototype would still apply. */
20160 #ifdef __cplusplus
20161 extern "C"
20162 #endif
20163 char mit_des_cbc_encrypt ();
20164 int
20165 main ()
20166 {
20167 return mit_des_cbc_encrypt ();
20168 ;
20169 return 0;
20170 }
20171 _ACEOF
20172 rm -f conftest.$ac_objext conftest$ac_exeext
20173 if { (ac_try="$ac_link"
20174 case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_link") 2>conftest.er1
20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } && {
20186 test -z "$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20188 } && test -s conftest$ac_exeext &&
20189 $as_test_x conftest$ac_exeext; then
20190 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20191 else
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20196 fi
20197
20198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20199 conftest$ac_exeext conftest.$ac_ext
20200 LIBS=$ac_check_lib_save_LIBS
20201 fi
20202 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20203 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20204 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20205 cat >>confdefs.h <<_ACEOF
20206 #define HAVE_LIBK5CRYPTO 1
20207 _ACEOF
20208
20209 LIBS="-lk5crypto $LIBS"
20210
20211 fi
20212
20213
20214 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20215 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20216 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219 ac_check_lib_save_LIBS=$LIBS
20220 LIBS="-lcrypto $LIBS"
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h. */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227
20228 /* Override any GCC internal prototype to avoid an error.
20229 Use char because int might match the return type of a GCC
20230 builtin and then its argument prototype would still apply. */
20231 #ifdef __cplusplus
20232 extern "C"
20233 #endif
20234 char mit_des_cbc_encrypt ();
20235 int
20236 main ()
20237 {
20238 return mit_des_cbc_encrypt ();
20239 ;
20240 return 0;
20241 }
20242 _ACEOF
20243 rm -f conftest.$ac_objext conftest$ac_exeext
20244 if { (ac_try="$ac_link"
20245 case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20248 esac
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_link") 2>conftest.er1
20251 ac_status=$?
20252 grep -v '^ *+' conftest.er1 >conftest.err
20253 rm -f conftest.er1
20254 cat conftest.err >&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } && {
20257 test -z "$ac_c_werror_flag" ||
20258 test ! -s conftest.err
20259 } && test -s conftest$ac_exeext &&
20260 $as_test_x conftest$ac_exeext; then
20261 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20262 else
20263 echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20265
20266 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20267 fi
20268
20269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20270 conftest$ac_exeext conftest.$ac_ext
20271 LIBS=$ac_check_lib_save_LIBS
20272 fi
20273 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20274 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20275 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20276 cat >>confdefs.h <<_ACEOF
20277 #define HAVE_LIBCRYPTO 1
20278 _ACEOF
20279
20280 LIBS="-lcrypto $LIBS"
20281
20282 fi
20283
20284
20285 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20286 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20287 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290 ac_check_lib_save_LIBS=$LIBS
20291 LIBS="-lkrb5 $LIBS"
20292 cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h. */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20298
20299 /* Override any GCC internal prototype to avoid an error.
20300 Use char because int might match the return type of a GCC
20301 builtin and then its argument prototype would still apply. */
20302 #ifdef __cplusplus
20303 extern "C"
20304 #endif
20305 char krb5_init_context ();
20306 int
20307 main ()
20308 {
20309 return krb5_init_context ();
20310 ;
20311 return 0;
20312 }
20313 _ACEOF
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (ac_try="$ac_link"
20316 case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_link") 2>conftest.er1
20322 ac_status=$?
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && {
20328 test -z "$ac_c_werror_flag" ||
20329 test ! -s conftest.err
20330 } && test -s conftest$ac_exeext &&
20331 $as_test_x conftest$ac_exeext; then
20332 ac_cv_lib_krb5_krb5_init_context=yes
20333 else
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20336
20337 ac_cv_lib_krb5_krb5_init_context=no
20338 fi
20339
20340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20341 conftest$ac_exeext conftest.$ac_ext
20342 LIBS=$ac_check_lib_save_LIBS
20343 fi
20344 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20345 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20346 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20347 cat >>confdefs.h <<_ACEOF
20348 #define HAVE_LIBKRB5 1
20349 _ACEOF
20350
20351 LIBS="-lkrb5 $LIBS"
20352
20353 fi
20354
20355 if test "${with_kerberos5+set}" != set; then
20356
20357 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20358 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20359 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20360 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 else
20362 ac_check_lib_save_LIBS=$LIBS
20363 LIBS="-ldes425 $LIBS"
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h. */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370
20371 /* Override any GCC internal prototype to avoid an error.
20372 Use char because int might match the return type of a GCC
20373 builtin and then its argument prototype would still apply. */
20374 #ifdef __cplusplus
20375 extern "C"
20376 #endif
20377 char des_cbc_encrypt ();
20378 int
20379 main ()
20380 {
20381 return des_cbc_encrypt ();
20382 ;
20383 return 0;
20384 }
20385 _ACEOF
20386 rm -f conftest.$ac_objext conftest$ac_exeext
20387 if { (ac_try="$ac_link"
20388 case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20391 esac
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393 (eval "$ac_link") 2>conftest.er1
20394 ac_status=$?
20395 grep -v '^ *+' conftest.er1 >conftest.err
20396 rm -f conftest.er1
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } && {
20400 test -z "$ac_c_werror_flag" ||
20401 test ! -s conftest.err
20402 } && test -s conftest$ac_exeext &&
20403 $as_test_x conftest$ac_exeext; then
20404 ac_cv_lib_des425_des_cbc_encrypt=yes
20405 else
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20408
20409 ac_cv_lib_des425_des_cbc_encrypt=no
20410 fi
20411
20412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20413 conftest$ac_exeext conftest.$ac_ext
20414 LIBS=$ac_check_lib_save_LIBS
20415 fi
20416 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20417 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20418 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20419 cat >>confdefs.h <<_ACEOF
20420 #define HAVE_LIBDES425 1
20421 _ACEOF
20422
20423 LIBS="-ldes425 $LIBS"
20424
20425 else
20426
20427 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20428 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20429 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 else
20432 ac_check_lib_save_LIBS=$LIBS
20433 LIBS="-ldes $LIBS"
20434 cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h. */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20440
20441 /* Override any GCC internal prototype to avoid an error.
20442 Use char because int might match the return type of a GCC
20443 builtin and then its argument prototype would still apply. */
20444 #ifdef __cplusplus
20445 extern "C"
20446 #endif
20447 char des_cbc_encrypt ();
20448 int
20449 main ()
20450 {
20451 return des_cbc_encrypt ();
20452 ;
20453 return 0;
20454 }
20455 _ACEOF
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_link") 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest$ac_exeext &&
20473 $as_test_x conftest$ac_exeext; then
20474 ac_cv_lib_des_des_cbc_encrypt=yes
20475 else
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 ac_cv_lib_des_des_cbc_encrypt=no
20480 fi
20481
20482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20483 conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20485 fi
20486 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20487 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20488 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20489 cat >>confdefs.h <<_ACEOF
20490 #define HAVE_LIBDES 1
20491 _ACEOF
20492
20493 LIBS="-ldes $LIBS"
20494
20495 fi
20496
20497 fi
20498
20499
20500 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20501 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20502 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 else
20505 ac_check_lib_save_LIBS=$LIBS
20506 LIBS="-lkrb4 $LIBS"
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h. */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513
20514 /* Override any GCC internal prototype to avoid an error.
20515 Use char because int might match the return type of a GCC
20516 builtin and then its argument prototype would still apply. */
20517 #ifdef __cplusplus
20518 extern "C"
20519 #endif
20520 char krb_get_cred ();
20521 int
20522 main ()
20523 {
20524 return krb_get_cred ();
20525 ;
20526 return 0;
20527 }
20528 _ACEOF
20529 rm -f conftest.$ac_objext conftest$ac_exeext
20530 if { (ac_try="$ac_link"
20531 case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20534 esac
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_link") 2>conftest.er1
20537 ac_status=$?
20538 grep -v '^ *+' conftest.er1 >conftest.err
20539 rm -f conftest.er1
20540 cat conftest.err >&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } && {
20543 test -z "$ac_c_werror_flag" ||
20544 test ! -s conftest.err
20545 } && test -s conftest$ac_exeext &&
20546 $as_test_x conftest$ac_exeext; then
20547 ac_cv_lib_krb4_krb_get_cred=yes
20548 else
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20551
20552 ac_cv_lib_krb4_krb_get_cred=no
20553 fi
20554
20555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20556 conftest$ac_exeext conftest.$ac_ext
20557 LIBS=$ac_check_lib_save_LIBS
20558 fi
20559 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20560 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20561 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_LIBKRB4 1
20564 _ACEOF
20565
20566 LIBS="-lkrb4 $LIBS"
20567
20568 else
20569
20570 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20571 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20572 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 else
20575 ac_check_lib_save_LIBS=$LIBS
20576 LIBS="-lkrb $LIBS"
20577 cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h. */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20583
20584 /* Override any GCC internal prototype to avoid an error.
20585 Use char because int might match the return type of a GCC
20586 builtin and then its argument prototype would still apply. */
20587 #ifdef __cplusplus
20588 extern "C"
20589 #endif
20590 char krb_get_cred ();
20591 int
20592 main ()
20593 {
20594 return krb_get_cred ();
20595 ;
20596 return 0;
20597 }
20598 _ACEOF
20599 rm -f conftest.$ac_objext conftest$ac_exeext
20600 if { (ac_try="$ac_link"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20604 esac
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_link") 2>conftest.er1
20607 ac_status=$?
20608 grep -v '^ *+' conftest.er1 >conftest.err
20609 rm -f conftest.er1
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && {
20613 test -z "$ac_c_werror_flag" ||
20614 test ! -s conftest.err
20615 } && test -s conftest$ac_exeext &&
20616 $as_test_x conftest$ac_exeext; then
20617 ac_cv_lib_krb_krb_get_cred=yes
20618 else
20619 echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622 ac_cv_lib_krb_krb_get_cred=no
20623 fi
20624
20625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20626 conftest$ac_exeext conftest.$ac_ext
20627 LIBS=$ac_check_lib_save_LIBS
20628 fi
20629 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20630 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20631 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20632 cat >>confdefs.h <<_ACEOF
20633 #define HAVE_LIBKRB 1
20634 _ACEOF
20635
20636 LIBS="-lkrb $LIBS"
20637
20638 fi
20639
20640 fi
20641
20642 fi
20643
20644 if test "${with_kerberos5+set}" = set; then
20645
20646 for ac_header in krb5.h
20647 do
20648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 fi
20655 ac_res=`eval echo '${'$as_ac_Header'}'`
20656 { echo "$as_me:$LINENO: result: $ac_res" >&5
20657 echo "${ECHO_T}$ac_res" >&6; }
20658 else
20659 # Is the header compilable?
20660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20662 cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h. */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20668 $ac_includes_default
20669 #include <$ac_header>
20670 _ACEOF
20671 rm -f conftest.$ac_objext
20672 if { (ac_try="$ac_compile"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20676 esac
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_compile") 2>conftest.er1
20679 ac_status=$?
20680 grep -v '^ *+' conftest.er1 >conftest.err
20681 rm -f conftest.er1
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } && {
20685 test -z "$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20687 } && test -s conftest.$ac_objext; then
20688 ac_header_compiler=yes
20689 else
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693 ac_header_compiler=no
20694 fi
20695
20696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20698 echo "${ECHO_T}$ac_header_compiler" >&6; }
20699
20700 # Is the header present?
20701 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20703 cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h. */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 #include <$ac_header>
20710 _ACEOF
20711 if { (ac_try="$ac_cpp conftest.$ac_ext"
20712 case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20715 esac
20716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20718 ac_status=$?
20719 grep -v '^ *+' conftest.er1 >conftest.err
20720 rm -f conftest.er1
20721 cat conftest.err >&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } >/dev/null && {
20724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20725 test ! -s conftest.err
20726 }; then
20727 ac_header_preproc=yes
20728 else
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20731
20732 ac_header_preproc=no
20733 fi
20734
20735 rm -f conftest.err conftest.$ac_ext
20736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20737 echo "${ECHO_T}$ac_header_preproc" >&6; }
20738
20739 # So? What about this header?
20740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20741 yes:no: )
20742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20746 ac_header_preproc=yes
20747 ;;
20748 no:yes:* )
20749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20761
20762 ;;
20763 esac
20764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20767 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 else
20769 eval "$as_ac_Header=\$ac_header_preproc"
20770 fi
20771 ac_res=`eval echo '${'$as_ac_Header'}'`
20772 { echo "$as_me:$LINENO: result: $ac_res" >&5
20773 echo "${ECHO_T}$ac_res" >&6; }
20774
20775 fi
20776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20777 cat >>confdefs.h <<_ACEOF
20778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20779 _ACEOF
20780
20781 fi
20782
20783 done
20784
20785 else
20786
20787 for ac_header in des.h
20788 do
20789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20795 fi
20796 ac_res=`eval echo '${'$as_ac_Header'}'`
20797 { echo "$as_me:$LINENO: result: $ac_res" >&5
20798 echo "${ECHO_T}$ac_res" >&6; }
20799 else
20800 # Is the header compilable?
20801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20803 cat >conftest.$ac_ext <<_ACEOF
20804 /* confdefs.h. */
20805 _ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20809 $ac_includes_default
20810 #include <$ac_header>
20811 _ACEOF
20812 rm -f conftest.$ac_objext
20813 if { (ac_try="$ac_compile"
20814 case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20817 esac
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_compile") 2>conftest.er1
20820 ac_status=$?
20821 grep -v '^ *+' conftest.er1 >conftest.err
20822 rm -f conftest.er1
20823 cat conftest.err >&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } && {
20826 test -z "$ac_c_werror_flag" ||
20827 test ! -s conftest.err
20828 } && test -s conftest.$ac_objext; then
20829 ac_header_compiler=yes
20830 else
20831 echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20833
20834 ac_header_compiler=no
20835 fi
20836
20837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20839 echo "${ECHO_T}$ac_header_compiler" >&6; }
20840
20841 # Is the header present?
20842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 #include <$ac_header>
20851 _ACEOF
20852 if { (ac_try="$ac_cpp conftest.$ac_ext"
20853 case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20856 esac
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20859 ac_status=$?
20860 grep -v '^ *+' conftest.er1 >conftest.err
20861 rm -f conftest.er1
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } >/dev/null && {
20865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20866 test ! -s conftest.err
20867 }; then
20868 ac_header_preproc=yes
20869 else
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20872
20873 ac_header_preproc=no
20874 fi
20875
20876 rm -f conftest.err conftest.$ac_ext
20877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20878 echo "${ECHO_T}$ac_header_preproc" >&6; }
20879
20880 # So? What about this header?
20881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20882 yes:no: )
20883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20887 ac_header_preproc=yes
20888 ;;
20889 no:yes:* )
20890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20902
20903 ;;
20904 esac
20905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 else
20910 eval "$as_ac_Header=\$ac_header_preproc"
20911 fi
20912 ac_res=`eval echo '${'$as_ac_Header'}'`
20913 { echo "$as_me:$LINENO: result: $ac_res" >&5
20914 echo "${ECHO_T}$ac_res" >&6; }
20915
20916 fi
20917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20918 cat >>confdefs.h <<_ACEOF
20919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20920 _ACEOF
20921
20922 else
20923
20924 for ac_header in kerberosIV/des.h
20925 do
20926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 fi
20933 ac_res=`eval echo '${'$as_ac_Header'}'`
20934 { echo "$as_me:$LINENO: result: $ac_res" >&5
20935 echo "${ECHO_T}$ac_res" >&6; }
20936 else
20937 # Is the header compilable?
20938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20940 cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h. */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20946 $ac_includes_default
20947 #include <$ac_header>
20948 _ACEOF
20949 rm -f conftest.$ac_objext
20950 if { (ac_try="$ac_compile"
20951 case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20954 esac
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } && {
20963 test -z "$ac_c_werror_flag" ||
20964 test ! -s conftest.err
20965 } && test -s conftest.$ac_objext; then
20966 ac_header_compiler=yes
20967 else
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971 ac_header_compiler=no
20972 fi
20973
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20976 echo "${ECHO_T}$ac_header_compiler" >&6; }
20977
20978 # Is the header present?
20979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h. */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 #include <$ac_header>
20988 _ACEOF
20989 if { (ac_try="$ac_cpp conftest.$ac_ext"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } >/dev/null && {
21002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 }; then
21005 ac_header_preproc=yes
21006 else
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 ac_header_preproc=no
21011 fi
21012
21013 rm -f conftest.err conftest.$ac_ext
21014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21015 echo "${ECHO_T}$ac_header_preproc" >&6; }
21016
21017 # So? What about this header?
21018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21019 yes:no: )
21020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21024 ac_header_preproc=yes
21025 ;;
21026 no:yes:* )
21027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21039
21040 ;;
21041 esac
21042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21046 else
21047 eval "$as_ac_Header=\$ac_header_preproc"
21048 fi
21049 ac_res=`eval echo '${'$as_ac_Header'}'`
21050 { echo "$as_me:$LINENO: result: $ac_res" >&5
21051 echo "${ECHO_T}$ac_res" >&6; }
21052
21053 fi
21054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21055 cat >>confdefs.h <<_ACEOF
21056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21057 _ACEOF
21058
21059 else
21060
21061 for ac_header in kerberos/des.h
21062 do
21063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 fi
21070 ac_res=`eval echo '${'$as_ac_Header'}'`
21071 { echo "$as_me:$LINENO: result: $ac_res" >&5
21072 echo "${ECHO_T}$ac_res" >&6; }
21073 else
21074 # Is the header compilable?
21075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21077 cat >conftest.$ac_ext <<_ACEOF
21078 /* confdefs.h. */
21079 _ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 $ac_includes_default
21084 #include <$ac_header>
21085 _ACEOF
21086 rm -f conftest.$ac_objext
21087 if { (ac_try="$ac_compile"
21088 case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21091 esac
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_compile") 2>conftest.er1
21094 ac_status=$?
21095 grep -v '^ *+' conftest.er1 >conftest.err
21096 rm -f conftest.er1
21097 cat conftest.err >&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } && {
21100 test -z "$ac_c_werror_flag" ||
21101 test ! -s conftest.err
21102 } && test -s conftest.$ac_objext; then
21103 ac_header_compiler=yes
21104 else
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21107
21108 ac_header_compiler=no
21109 fi
21110
21111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21113 echo "${ECHO_T}$ac_header_compiler" >&6; }
21114
21115 # Is the header present?
21116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21118 cat >conftest.$ac_ext <<_ACEOF
21119 /* confdefs.h. */
21120 _ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21124 #include <$ac_header>
21125 _ACEOF
21126 if { (ac_try="$ac_cpp conftest.$ac_ext"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21130 esac
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } >/dev/null && {
21139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 }; then
21142 ac_header_preproc=yes
21143 else
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147 ac_header_preproc=no
21148 fi
21149
21150 rm -f conftest.err conftest.$ac_ext
21151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21152 echo "${ECHO_T}$ac_header_preproc" >&6; }
21153
21154 # So? What about this header?
21155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21156 yes:no: )
21157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21161 ac_header_preproc=yes
21162 ;;
21163 no:yes:* )
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21176
21177 ;;
21178 esac
21179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21183 else
21184 eval "$as_ac_Header=\$ac_header_preproc"
21185 fi
21186 ac_res=`eval echo '${'$as_ac_Header'}'`
21187 { echo "$as_me:$LINENO: result: $ac_res" >&5
21188 echo "${ECHO_T}$ac_res" >&6; }
21189
21190 fi
21191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21192 cat >>confdefs.h <<_ACEOF
21193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21194 _ACEOF
21195
21196 fi
21197
21198 done
21199
21200 fi
21201
21202 done
21203
21204 fi
21205
21206 done
21207
21208
21209 for ac_header in krb.h
21210 do
21211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 fi
21218 ac_res=`eval echo '${'$as_ac_Header'}'`
21219 { echo "$as_me:$LINENO: result: $ac_res" >&5
21220 echo "${ECHO_T}$ac_res" >&6; }
21221 else
21222 # Is the header compilable?
21223 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21225 cat >conftest.$ac_ext <<_ACEOF
21226 /* confdefs.h. */
21227 _ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h. */
21231 $ac_includes_default
21232 #include <$ac_header>
21233 _ACEOF
21234 rm -f conftest.$ac_objext
21235 if { (ac_try="$ac_compile"
21236 case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21239 esac
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_compile") 2>conftest.er1
21242 ac_status=$?
21243 grep -v '^ *+' conftest.er1 >conftest.err
21244 rm -f conftest.er1
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } && {
21248 test -z "$ac_c_werror_flag" ||
21249 test ! -s conftest.err
21250 } && test -s conftest.$ac_objext; then
21251 ac_header_compiler=yes
21252 else
21253 echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21255
21256 ac_header_compiler=no
21257 fi
21258
21259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21261 echo "${ECHO_T}$ac_header_compiler" >&6; }
21262
21263 # Is the header present?
21264 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21266 cat >conftest.$ac_ext <<_ACEOF
21267 /* confdefs.h. */
21268 _ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h. */
21272 #include <$ac_header>
21273 _ACEOF
21274 if { (ac_try="$ac_cpp conftest.$ac_ext"
21275 case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21278 esac
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21281 ac_status=$?
21282 grep -v '^ *+' conftest.er1 >conftest.err
21283 rm -f conftest.er1
21284 cat conftest.err >&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } >/dev/null && {
21287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21288 test ! -s conftest.err
21289 }; then
21290 ac_header_preproc=yes
21291 else
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21294
21295 ac_header_preproc=no
21296 fi
21297
21298 rm -f conftest.err conftest.$ac_ext
21299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21300 echo "${ECHO_T}$ac_header_preproc" >&6; }
21301
21302 # So? What about this header?
21303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21304 yes:no: )
21305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21309 ac_header_preproc=yes
21310 ;;
21311 no:yes:* )
21312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21324
21325 ;;
21326 esac
21327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21331 else
21332 eval "$as_ac_Header=\$ac_header_preproc"
21333 fi
21334 ac_res=`eval echo '${'$as_ac_Header'}'`
21335 { echo "$as_me:$LINENO: result: $ac_res" >&5
21336 echo "${ECHO_T}$ac_res" >&6; }
21337
21338 fi
21339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21340 cat >>confdefs.h <<_ACEOF
21341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21342 _ACEOF
21343
21344 else
21345
21346 for ac_header in kerberosIV/krb.h
21347 do
21348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21354 fi
21355 ac_res=`eval echo '${'$as_ac_Header'}'`
21356 { echo "$as_me:$LINENO: result: $ac_res" >&5
21357 echo "${ECHO_T}$ac_res" >&6; }
21358 else
21359 # Is the header compilable?
21360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21362 cat >conftest.$ac_ext <<_ACEOF
21363 /* confdefs.h. */
21364 _ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368 $ac_includes_default
21369 #include <$ac_header>
21370 _ACEOF
21371 rm -f conftest.$ac_objext
21372 if { (ac_try="$ac_compile"
21373 case "(($ac_try" in
21374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375 *) ac_try_echo=$ac_try;;
21376 esac
21377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21378 (eval "$ac_compile") 2>conftest.er1
21379 ac_status=$?
21380 grep -v '^ *+' conftest.er1 >conftest.err
21381 rm -f conftest.er1
21382 cat conftest.err >&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); } && {
21385 test -z "$ac_c_werror_flag" ||
21386 test ! -s conftest.err
21387 } && test -s conftest.$ac_objext; then
21388 ac_header_compiler=yes
21389 else
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393 ac_header_compiler=no
21394 fi
21395
21396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21398 echo "${ECHO_T}$ac_header_compiler" >&6; }
21399
21400 # Is the header present?
21401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21403 cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h. */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 #include <$ac_header>
21410 _ACEOF
21411 if { (ac_try="$ac_cpp conftest.$ac_ext"
21412 case "(($ac_try" in
21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21415 esac
21416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21418 ac_status=$?
21419 grep -v '^ *+' conftest.er1 >conftest.err
21420 rm -f conftest.er1
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } >/dev/null && {
21424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21425 test ! -s conftest.err
21426 }; then
21427 ac_header_preproc=yes
21428 else
21429 echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21431
21432 ac_header_preproc=no
21433 fi
21434
21435 rm -f conftest.err conftest.$ac_ext
21436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21437 echo "${ECHO_T}$ac_header_preproc" >&6; }
21438
21439 # So? What about this header?
21440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21441 yes:no: )
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21446 ac_header_preproc=yes
21447 ;;
21448 no:yes:* )
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21461
21462 ;;
21463 esac
21464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21468 else
21469 eval "$as_ac_Header=\$ac_header_preproc"
21470 fi
21471 ac_res=`eval echo '${'$as_ac_Header'}'`
21472 { echo "$as_me:$LINENO: result: $ac_res" >&5
21473 echo "${ECHO_T}$ac_res" >&6; }
21474
21475 fi
21476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21477 cat >>confdefs.h <<_ACEOF
21478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21479 _ACEOF
21480
21481 else
21482
21483 for ac_header in kerberos/krb.h
21484 do
21485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491 fi
21492 ac_res=`eval echo '${'$as_ac_Header'}'`
21493 { echo "$as_me:$LINENO: result: $ac_res" >&5
21494 echo "${ECHO_T}$ac_res" >&6; }
21495 else
21496 # Is the header compilable?
21497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21499 cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h. */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 $ac_includes_default
21506 #include <$ac_header>
21507 _ACEOF
21508 rm -f conftest.$ac_objext
21509 if { (ac_try="$ac_compile"
21510 case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_compile") 2>conftest.er1
21516 ac_status=$?
21517 grep -v '^ *+' conftest.er1 >conftest.err
21518 rm -f conftest.er1
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } && {
21522 test -z "$ac_c_werror_flag" ||
21523 test ! -s conftest.err
21524 } && test -s conftest.$ac_objext; then
21525 ac_header_compiler=yes
21526 else
21527 echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21529
21530 ac_header_compiler=no
21531 fi
21532
21533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21535 echo "${ECHO_T}$ac_header_compiler" >&6; }
21536
21537 # Is the header present?
21538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21540 cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h. */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21546 #include <$ac_header>
21547 _ACEOF
21548 if { (ac_try="$ac_cpp conftest.$ac_ext"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21552 esac
21553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21555 ac_status=$?
21556 grep -v '^ *+' conftest.er1 >conftest.err
21557 rm -f conftest.er1
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } >/dev/null && {
21561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21562 test ! -s conftest.err
21563 }; then
21564 ac_header_preproc=yes
21565 else
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21568
21569 ac_header_preproc=no
21570 fi
21571
21572 rm -f conftest.err conftest.$ac_ext
21573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21574 echo "${ECHO_T}$ac_header_preproc" >&6; }
21575
21576 # So? What about this header?
21577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21578 yes:no: )
21579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21583 ac_header_preproc=yes
21584 ;;
21585 no:yes:* )
21586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21598
21599 ;;
21600 esac
21601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21605 else
21606 eval "$as_ac_Header=\$ac_header_preproc"
21607 fi
21608 ac_res=`eval echo '${'$as_ac_Header'}'`
21609 { echo "$as_me:$LINENO: result: $ac_res" >&5
21610 echo "${ECHO_T}$ac_res" >&6; }
21611
21612 fi
21613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21614 cat >>confdefs.h <<_ACEOF
21615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21616 _ACEOF
21617
21618 fi
21619
21620 done
21621
21622 fi
21623
21624 done
21625
21626 fi
21627
21628 done
21629
21630 fi
21631
21632 for ac_header in com_err.h
21633 do
21634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21639 echo $ECHO_N "(cached) $ECHO_C" >&6
21640 fi
21641 ac_res=`eval echo '${'$as_ac_Header'}'`
21642 { echo "$as_me:$LINENO: result: $ac_res" >&5
21643 echo "${ECHO_T}$ac_res" >&6; }
21644 else
21645 # Is the header compilable?
21646 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21648 cat >conftest.$ac_ext <<_ACEOF
21649 /* confdefs.h. */
21650 _ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 $ac_includes_default
21655 #include <$ac_header>
21656 _ACEOF
21657 rm -f conftest.$ac_objext
21658 if { (ac_try="$ac_compile"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21662 esac
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_compile") 2>conftest.er1
21665 ac_status=$?
21666 grep -v '^ *+' conftest.er1 >conftest.err
21667 rm -f conftest.er1
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } && {
21671 test -z "$ac_c_werror_flag" ||
21672 test ! -s conftest.err
21673 } && test -s conftest.$ac_objext; then
21674 ac_header_compiler=yes
21675 else
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21678
21679 ac_header_compiler=no
21680 fi
21681
21682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21684 echo "${ECHO_T}$ac_header_compiler" >&6; }
21685
21686 # Is the header present?
21687 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21689 cat >conftest.$ac_ext <<_ACEOF
21690 /* confdefs.h. */
21691 _ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21695 #include <$ac_header>
21696 _ACEOF
21697 if { (ac_try="$ac_cpp conftest.$ac_ext"
21698 case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21701 esac
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21704 ac_status=$?
21705 grep -v '^ *+' conftest.er1 >conftest.err
21706 rm -f conftest.er1
21707 cat conftest.err >&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } >/dev/null && {
21710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21711 test ! -s conftest.err
21712 }; then
21713 ac_header_preproc=yes
21714 else
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21717
21718 ac_header_preproc=no
21719 fi
21720
21721 rm -f conftest.err conftest.$ac_ext
21722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21723 echo "${ECHO_T}$ac_header_preproc" >&6; }
21724
21725 # So? What about this header?
21726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21727 yes:no: )
21728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21732 ac_header_preproc=yes
21733 ;;
21734 no:yes:* )
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21747
21748 ;;
21749 esac
21750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21753 echo $ECHO_N "(cached) $ECHO_C" >&6
21754 else
21755 eval "$as_ac_Header=\$ac_header_preproc"
21756 fi
21757 ac_res=`eval echo '${'$as_ac_Header'}'`
21758 { echo "$as_me:$LINENO: result: $ac_res" >&5
21759 echo "${ECHO_T}$ac_res" >&6; }
21760
21761 fi
21762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21763 cat >>confdefs.h <<_ACEOF
21764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21765 _ACEOF
21766
21767 fi
21768
21769 done
21770
21771 fi
21772
21773 # Solaris requires -lintl if you want strerror (which calls dgettext)
21774 # to return localized messages.
21775
21776 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21777 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21778 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 else
21781 ac_check_lib_save_LIBS=$LIBS
21782 LIBS="-lintl $LIBS"
21783 cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h. */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789
21790 /* Override any GCC internal prototype to avoid an error.
21791 Use char because int might match the return type of a GCC
21792 builtin and then its argument prototype would still apply. */
21793 #ifdef __cplusplus
21794 extern "C"
21795 #endif
21796 char dgettext ();
21797 int
21798 main ()
21799 {
21800 return dgettext ();
21801 ;
21802 return 0;
21803 }
21804 _ACEOF
21805 rm -f conftest.$ac_objext conftest$ac_exeext
21806 if { (ac_try="$ac_link"
21807 case "(($ac_try" in
21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 *) ac_try_echo=$ac_try;;
21810 esac
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812 (eval "$ac_link") 2>conftest.er1
21813 ac_status=$?
21814 grep -v '^ *+' conftest.er1 >conftest.err
21815 rm -f conftest.er1
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } && {
21819 test -z "$ac_c_werror_flag" ||
21820 test ! -s conftest.err
21821 } && test -s conftest$ac_exeext &&
21822 $as_test_x conftest$ac_exeext; then
21823 ac_cv_lib_intl_dgettext=yes
21824 else
21825 echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21827
21828 ac_cv_lib_intl_dgettext=no
21829 fi
21830
21831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21832 conftest$ac_exeext conftest.$ac_ext
21833 LIBS=$ac_check_lib_save_LIBS
21834 fi
21835 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21836 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21837 if test $ac_cv_lib_intl_dgettext = yes; then
21838 cat >>confdefs.h <<_ACEOF
21839 #define HAVE_LIBINTL 1
21840 _ACEOF
21841
21842 LIBS="-lintl $LIBS"
21843
21844 fi
21845
21846
21847 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21848 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21849 if test "${emacs_cv_localtime_cache+set}" = set; then
21850 echo $ECHO_N "(cached) $ECHO_C" >&6
21851 else
21852 if test x$ac_cv_func_tzset = xyes; then
21853 if test "$cross_compiling" = yes; then
21854 # If we have tzset, assume the worst when cross-compiling.
21855 emacs_cv_localtime_cache=yes
21856 else
21857 cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h. */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 #include <time.h>
21864 extern char **environ;
21865 unset_TZ ()
21866 {
21867 char **from, **to;
21868 for (to = from = environ; (*to = *from); from++)
21869 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21870 to++;
21871 }
21872 char TZ_GMT0[] = "TZ=GMT0";
21873 char TZ_PST8[] = "TZ=PST8";
21874 main()
21875 {
21876 time_t now = time ((time_t *) 0);
21877 int hour_GMT0, hour_unset;
21878 if (putenv (TZ_GMT0) != 0)
21879 exit (1);
21880 hour_GMT0 = localtime (&now)->tm_hour;
21881 unset_TZ ();
21882 hour_unset = localtime (&now)->tm_hour;
21883 if (putenv (TZ_PST8) != 0)
21884 exit (1);
21885 if (localtime (&now)->tm_hour == hour_GMT0)
21886 exit (1);
21887 unset_TZ ();
21888 if (localtime (&now)->tm_hour != hour_unset)
21889 exit (1);
21890 exit (0);
21891 }
21892 _ACEOF
21893 rm -f conftest$ac_exeext
21894 if { (ac_try="$ac_link"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_link") 2>&5
21901 ac_status=$?
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21904 { (case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21907 esac
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_try") 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 emacs_cv_localtime_cache=no
21914 else
21915 echo "$as_me: program exited with status $ac_status" >&5
21916 echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21918
21919 ( exit $ac_status )
21920 emacs_cv_localtime_cache=yes
21921 fi
21922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21923 fi
21924
21925
21926 else
21927 # If we lack tzset, report that localtime does not cache TZ,
21928 # since we can't invalidate the cache if we don't have tzset.
21929 emacs_cv_localtime_cache=no
21930 fi
21931 fi
21932 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21933 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21934 if test $emacs_cv_localtime_cache = yes; then
21935
21936 cat >>confdefs.h <<\_ACEOF
21937 #define LOCALTIME_CACHE 1
21938 _ACEOF
21939
21940 fi
21941
21942 if test "x$HAVE_TIMEVAL" = xyes; then
21943
21944 for ac_func in gettimeofday
21945 do
21946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952 cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h. */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21960 #define $ac_func innocuous_$ac_func
21961
21962 /* System header to define __stub macros and hopefully few prototypes,
21963 which can conflict with char $ac_func (); below.
21964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21965 <limits.h> exists even on freestanding compilers. */
21966
21967 #ifdef __STDC__
21968 # include <limits.h>
21969 #else
21970 # include <assert.h>
21971 #endif
21972
21973 #undef $ac_func
21974
21975 /* Override any GCC internal prototype to avoid an error.
21976 Use char because int might match the return type of a GCC
21977 builtin and then its argument prototype would still apply. */
21978 #ifdef __cplusplus
21979 extern "C"
21980 #endif
21981 char $ac_func ();
21982 /* The GNU C library defines this for functions which it implements
21983 to always fail with ENOSYS. Some functions are actually named
21984 something starting with __ and the normal name is an alias. */
21985 #if defined __stub_$ac_func || defined __stub___$ac_func
21986 choke me
21987 #endif
21988
21989 int
21990 main ()
21991 {
21992 return $ac_func ();
21993 ;
21994 return 0;
21995 }
21996 _ACEOF
21997 rm -f conftest.$ac_objext conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22002 esac
22003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22004 (eval "$ac_link") 2>conftest.er1
22005 ac_status=$?
22006 grep -v '^ *+' conftest.er1 >conftest.err
22007 rm -f conftest.er1
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } && {
22011 test -z "$ac_c_werror_flag" ||
22012 test ! -s conftest.err
22013 } && test -s conftest$ac_exeext &&
22014 $as_test_x conftest$ac_exeext; then
22015 eval "$as_ac_var=yes"
22016 else
22017 echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22019
22020 eval "$as_ac_var=no"
22021 fi
22022
22023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22024 conftest$ac_exeext conftest.$ac_ext
22025 fi
22026 ac_res=`eval echo '${'$as_ac_var'}'`
22027 { echo "$as_me:$LINENO: result: $ac_res" >&5
22028 echo "${ECHO_T}$ac_res" >&6; }
22029 if test `eval echo '${'$as_ac_var'}'` = yes; then
22030 cat >>confdefs.h <<_ACEOF
22031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22032 _ACEOF
22033
22034 fi
22035 done
22036
22037 if test $ac_cv_func_gettimeofday = yes; then
22038 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22039 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22040 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043 cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h. */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049
22050 #ifdef TIME_WITH_SYS_TIME
22051 #include <sys/time.h>
22052 #include <time.h>
22053 #else
22054 #ifdef HAVE_SYS_TIME_H
22055 #include <sys/time.h>
22056 #else
22057 #include <time.h>
22058 #endif
22059 #endif
22060 int
22061 main ()
22062 {
22063 struct timeval time;
22064 gettimeofday (&time, 0);
22065 ;
22066 return 0;
22067 }
22068 _ACEOF
22069 rm -f conftest.$ac_objext
22070 if { (ac_try="$ac_compile"
22071 case "(($ac_try" in
22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073 *) ac_try_echo=$ac_try;;
22074 esac
22075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22076 (eval "$ac_compile") 2>conftest.er1
22077 ac_status=$?
22078 grep -v '^ *+' conftest.er1 >conftest.err
22079 rm -f conftest.er1
22080 cat conftest.err >&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); } && {
22083 test -z "$ac_c_werror_flag" ||
22084 test ! -s conftest.err
22085 } && test -s conftest.$ac_objext; then
22086 emacs_cv_gettimeofday_two_arguments=yes
22087 else
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22090
22091 emacs_cv_gettimeofday_two_arguments=no
22092 fi
22093
22094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22095 fi
22096 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22097 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22098 if test $emacs_cv_gettimeofday_two_arguments = no; then
22099
22100 cat >>confdefs.h <<\_ACEOF
22101 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22102 _ACEOF
22103
22104 fi
22105 fi
22106 fi
22107
22108 ok_so_far=yes
22109 { echo "$as_me:$LINENO: checking for socket" >&5
22110 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22111 if test "${ac_cv_func_socket+set}" = set; then
22112 echo $ECHO_N "(cached) $ECHO_C" >&6
22113 else
22114 cat >conftest.$ac_ext <<_ACEOF
22115 /* confdefs.h. */
22116 _ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22122 #define socket innocuous_socket
22123
22124 /* System header to define __stub macros and hopefully few prototypes,
22125 which can conflict with char socket (); below.
22126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22127 <limits.h> exists even on freestanding compilers. */
22128
22129 #ifdef __STDC__
22130 # include <limits.h>
22131 #else
22132 # include <assert.h>
22133 #endif
22134
22135 #undef socket
22136
22137 /* Override any GCC internal prototype to avoid an error.
22138 Use char because int might match the return type of a GCC
22139 builtin and then its argument prototype would still apply. */
22140 #ifdef __cplusplus
22141 extern "C"
22142 #endif
22143 char socket ();
22144 /* The GNU C library defines this for functions which it implements
22145 to always fail with ENOSYS. Some functions are actually named
22146 something starting with __ and the normal name is an alias. */
22147 #if defined __stub_socket || defined __stub___socket
22148 choke me
22149 #endif
22150
22151 int
22152 main ()
22153 {
22154 return socket ();
22155 ;
22156 return 0;
22157 }
22158 _ACEOF
22159 rm -f conftest.$ac_objext conftest$ac_exeext
22160 if { (ac_try="$ac_link"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_link") 2>conftest.er1
22167 ac_status=$?
22168 grep -v '^ *+' conftest.er1 >conftest.err
22169 rm -f conftest.er1
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest$ac_exeext &&
22176 $as_test_x conftest$ac_exeext; then
22177 ac_cv_func_socket=yes
22178 else
22179 echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22181
22182 ac_cv_func_socket=no
22183 fi
22184
22185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22186 conftest$ac_exeext conftest.$ac_ext
22187 fi
22188 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22189 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22190 if test $ac_cv_func_socket = yes; then
22191 :
22192 else
22193 ok_so_far=no
22194 fi
22195
22196 if test $ok_so_far = yes; then
22197 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22198 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22199 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22200 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22202 fi
22203 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22204 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22205 else
22206 # Is the header compilable?
22207 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22208 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22209 cat >conftest.$ac_ext <<_ACEOF
22210 /* confdefs.h. */
22211 _ACEOF
22212 cat confdefs.h >>conftest.$ac_ext
22213 cat >>conftest.$ac_ext <<_ACEOF
22214 /* end confdefs.h. */
22215 $ac_includes_default
22216 #include <netinet/in.h>
22217 _ACEOF
22218 rm -f conftest.$ac_objext
22219 if { (ac_try="$ac_compile"
22220 case "(($ac_try" in
22221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22222 *) ac_try_echo=$ac_try;;
22223 esac
22224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22225 (eval "$ac_compile") 2>conftest.er1
22226 ac_status=$?
22227 grep -v '^ *+' conftest.er1 >conftest.err
22228 rm -f conftest.er1
22229 cat conftest.err >&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); } && {
22232 test -z "$ac_c_werror_flag" ||
22233 test ! -s conftest.err
22234 } && test -s conftest.$ac_objext; then
22235 ac_header_compiler=yes
22236 else
22237 echo "$as_me: failed program was:" >&5
22238 sed 's/^/| /' conftest.$ac_ext >&5
22239
22240 ac_header_compiler=no
22241 fi
22242
22243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22245 echo "${ECHO_T}$ac_header_compiler" >&6; }
22246
22247 # Is the header present?
22248 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22249 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22250 cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h. */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22256 #include <netinet/in.h>
22257 _ACEOF
22258 if { (ac_try="$ac_cpp conftest.$ac_ext"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22262 esac
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22265 ac_status=$?
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } >/dev/null && {
22271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22272 test ! -s conftest.err
22273 }; then
22274 ac_header_preproc=yes
22275 else
22276 echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22278
22279 ac_header_preproc=no
22280 fi
22281
22282 rm -f conftest.err conftest.$ac_ext
22283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22284 echo "${ECHO_T}$ac_header_preproc" >&6; }
22285
22286 # So? What about this header?
22287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22288 yes:no: )
22289 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22290 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22291 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22292 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22293 ac_header_preproc=yes
22294 ;;
22295 no:yes:* )
22296 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22297 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22298 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22299 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22300 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22301 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22302 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22303 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22304 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22305 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22306 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22307 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22308
22309 ;;
22310 esac
22311 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22312 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22313 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22314 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 else
22316 ac_cv_header_netinet_in_h=$ac_header_preproc
22317 fi
22318 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22319 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22320
22321 fi
22322 if test $ac_cv_header_netinet_in_h = yes; then
22323 :
22324 else
22325 ok_so_far=no
22326 fi
22327
22328
22329 fi
22330 if test $ok_so_far = yes; then
22331 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22332 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22333 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22334 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
22336 fi
22337 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22338 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22339 else
22340 # Is the header compilable?
22341 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22342 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22343 cat >conftest.$ac_ext <<_ACEOF
22344 /* confdefs.h. */
22345 _ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22349 $ac_includes_default
22350 #include <arpa/inet.h>
22351 _ACEOF
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356 *) ac_try_echo=$ac_try;;
22357 esac
22358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22359 (eval "$ac_compile") 2>conftest.er1
22360 ac_status=$?
22361 grep -v '^ *+' conftest.er1 >conftest.err
22362 rm -f conftest.er1
22363 cat conftest.err >&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } && {
22366 test -z "$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22368 } && test -s conftest.$ac_objext; then
22369 ac_header_compiler=yes
22370 else
22371 echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22373
22374 ac_header_compiler=no
22375 fi
22376
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22379 echo "${ECHO_T}$ac_header_compiler" >&6; }
22380
22381 # Is the header present?
22382 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22383 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22384 cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h. */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22390 #include <arpa/inet.h>
22391 _ACEOF
22392 if { (ac_try="$ac_cpp conftest.$ac_ext"
22393 case "(($ac_try" in
22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395 *) ac_try_echo=$ac_try;;
22396 esac
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22399 ac_status=$?
22400 grep -v '^ *+' conftest.er1 >conftest.err
22401 rm -f conftest.er1
22402 cat conftest.err >&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } >/dev/null && {
22405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22406 test ! -s conftest.err
22407 }; then
22408 ac_header_preproc=yes
22409 else
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413 ac_header_preproc=no
22414 fi
22415
22416 rm -f conftest.err conftest.$ac_ext
22417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22418 echo "${ECHO_T}$ac_header_preproc" >&6; }
22419
22420 # So? What about this header?
22421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22422 yes:no: )
22423 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22424 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22425 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22426 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22427 ac_header_preproc=yes
22428 ;;
22429 no:yes:* )
22430 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22431 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22432 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22433 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22434 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22435 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22436 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22437 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22438 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22439 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22440 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22441 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22442
22443 ;;
22444 esac
22445 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22446 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22447 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22448 echo $ECHO_N "(cached) $ECHO_C" >&6
22449 else
22450 ac_cv_header_arpa_inet_h=$ac_header_preproc
22451 fi
22452 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22453 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22454
22455 fi
22456 if test $ac_cv_header_arpa_inet_h = yes; then
22457 :
22458 else
22459 ok_so_far=no
22460 fi
22461
22462
22463 fi
22464 if test $ok_so_far = yes; then
22465
22466 cat >>confdefs.h <<\_ACEOF
22467 #define HAVE_INET_SOCKETS 1
22468 _ACEOF
22469
22470 fi
22471
22472
22473 for ac_header in sys/ioctl.h
22474 do
22475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22480 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 fi
22482 ac_res=`eval echo '${'$as_ac_Header'}'`
22483 { echo "$as_me:$LINENO: result: $ac_res" >&5
22484 echo "${ECHO_T}$ac_res" >&6; }
22485 else
22486 # Is the header compilable?
22487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22489 cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h. */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22495 $ac_includes_default
22496 #include <$ac_header>
22497 _ACEOF
22498 rm -f conftest.$ac_objext
22499 if { (ac_try="$ac_compile"
22500 case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22503 esac
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_compile") 2>conftest.er1
22506 ac_status=$?
22507 grep -v '^ *+' conftest.er1 >conftest.err
22508 rm -f conftest.er1
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } && {
22512 test -z "$ac_c_werror_flag" ||
22513 test ! -s conftest.err
22514 } && test -s conftest.$ac_objext; then
22515 ac_header_compiler=yes
22516 else
22517 echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22519
22520 ac_header_compiler=no
22521 fi
22522
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22525 echo "${ECHO_T}$ac_header_compiler" >&6; }
22526
22527 # Is the header present?
22528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22530 cat >conftest.$ac_ext <<_ACEOF
22531 /* confdefs.h. */
22532 _ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h. */
22536 #include <$ac_header>
22537 _ACEOF
22538 if { (ac_try="$ac_cpp conftest.$ac_ext"
22539 case "(($ac_try" in
22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22542 esac
22543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22545 ac_status=$?
22546 grep -v '^ *+' conftest.er1 >conftest.err
22547 rm -f conftest.er1
22548 cat conftest.err >&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } >/dev/null && {
22551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22552 test ! -s conftest.err
22553 }; then
22554 ac_header_preproc=yes
22555 else
22556 echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22558
22559 ac_header_preproc=no
22560 fi
22561
22562 rm -f conftest.err conftest.$ac_ext
22563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22564 echo "${ECHO_T}$ac_header_preproc" >&6; }
22565
22566 # So? What about this header?
22567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22568 yes:no: )
22569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22573 ac_header_preproc=yes
22574 ;;
22575 no:yes:* )
22576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22588
22589 ;;
22590 esac
22591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22594 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 else
22596 eval "$as_ac_Header=\$ac_header_preproc"
22597 fi
22598 ac_res=`eval echo '${'$as_ac_Header'}'`
22599 { echo "$as_me:$LINENO: result: $ac_res" >&5
22600 echo "${ECHO_T}$ac_res" >&6; }
22601
22602 fi
22603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22604 cat >>confdefs.h <<_ACEOF
22605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22606 _ACEOF
22607
22608 fi
22609
22610 done
22611
22612
22613 if test -f /usr/lpp/X11/bin/smt.exp; then
22614
22615 cat >>confdefs.h <<\_ACEOF
22616 #define HAVE_AIX_SMT_EXP 1
22617 _ACEOF
22618
22619 fi
22620
22621 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22622 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22623 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22624 { echo "$as_me:$LINENO: result: yes" >&5
22625 echo "${ECHO_T}yes" >&6; }
22626
22627 cat >>confdefs.h <<\_ACEOF
22628 #define HAVE_DEV_PTMX 1
22629 _ACEOF
22630
22631 else
22632 { echo "$as_me:$LINENO: result: no" >&5
22633 echo "${ECHO_T}no" >&6; }
22634 fi
22635
22636 { echo "$as_me:$LINENO: checking for pid_t" >&5
22637 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22638 if test "${ac_cv_type_pid_t+set}" = set; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22640 else
22641 cat >conftest.$ac_ext <<_ACEOF
22642 /* confdefs.h. */
22643 _ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22647 $ac_includes_default
22648 typedef pid_t ac__type_new_;
22649 int
22650 main ()
22651 {
22652 if ((ac__type_new_ *) 0)
22653 return 0;
22654 if (sizeof (ac__type_new_))
22655 return 0;
22656 ;
22657 return 0;
22658 }
22659 _ACEOF
22660 rm -f conftest.$ac_objext
22661 if { (ac_try="$ac_compile"
22662 case "(($ac_try" in
22663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22664 *) ac_try_echo=$ac_try;;
22665 esac
22666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22667 (eval "$ac_compile") 2>conftest.er1
22668 ac_status=$?
22669 grep -v '^ *+' conftest.er1 >conftest.err
22670 rm -f conftest.er1
22671 cat conftest.err >&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } && {
22674 test -z "$ac_c_werror_flag" ||
22675 test ! -s conftest.err
22676 } && test -s conftest.$ac_objext; then
22677 ac_cv_type_pid_t=yes
22678 else
22679 echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22681
22682 ac_cv_type_pid_t=no
22683 fi
22684
22685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22686 fi
22687 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22688 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22689 if test $ac_cv_type_pid_t = yes; then
22690 :
22691 else
22692
22693 cat >>confdefs.h <<_ACEOF
22694 #define pid_t int
22695 _ACEOF
22696
22697 fi
22698
22699
22700 for ac_header in vfork.h
22701 do
22702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 fi
22709 ac_res=`eval echo '${'$as_ac_Header'}'`
22710 { echo "$as_me:$LINENO: result: $ac_res" >&5
22711 echo "${ECHO_T}$ac_res" >&6; }
22712 else
22713 # Is the header compilable?
22714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22716 cat >conftest.$ac_ext <<_ACEOF
22717 /* confdefs.h. */
22718 _ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 $ac_includes_default
22723 #include <$ac_header>
22724 _ACEOF
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22730 esac
22731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22742 ac_header_compiler=yes
22743 else
22744 echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22746
22747 ac_header_compiler=no
22748 fi
22749
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22752 echo "${ECHO_T}$ac_header_compiler" >&6; }
22753
22754 # Is the header present?
22755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22757 cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h. */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 #include <$ac_header>
22764 _ACEOF
22765 if { (ac_try="$ac_cpp conftest.$ac_ext"
22766 case "(($ac_try" in
22767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22768 *) ac_try_echo=$ac_try;;
22769 esac
22770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22772 ac_status=$?
22773 grep -v '^ *+' conftest.er1 >conftest.err
22774 rm -f conftest.er1
22775 cat conftest.err >&5
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); } >/dev/null && {
22778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22779 test ! -s conftest.err
22780 }; then
22781 ac_header_preproc=yes
22782 else
22783 echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22785
22786 ac_header_preproc=no
22787 fi
22788
22789 rm -f conftest.err conftest.$ac_ext
22790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22791 echo "${ECHO_T}$ac_header_preproc" >&6; }
22792
22793 # So? What about this header?
22794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22795 yes:no: )
22796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22800 ac_header_preproc=yes
22801 ;;
22802 no:yes:* )
22803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22815
22816 ;;
22817 esac
22818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22821 echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823 eval "$as_ac_Header=\$ac_header_preproc"
22824 fi
22825 ac_res=`eval echo '${'$as_ac_Header'}'`
22826 { echo "$as_me:$LINENO: result: $ac_res" >&5
22827 echo "${ECHO_T}$ac_res" >&6; }
22828
22829 fi
22830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22831 cat >>confdefs.h <<_ACEOF
22832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22833 _ACEOF
22834
22835 fi
22836
22837 done
22838
22839
22840
22841 for ac_func in fork vfork
22842 do
22843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22848 else
22849 cat >conftest.$ac_ext <<_ACEOF
22850 /* confdefs.h. */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22857 #define $ac_func innocuous_$ac_func
22858
22859 /* System header to define __stub macros and hopefully few prototypes,
22860 which can conflict with char $ac_func (); below.
22861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22862 <limits.h> exists even on freestanding compilers. */
22863
22864 #ifdef __STDC__
22865 # include <limits.h>
22866 #else
22867 # include <assert.h>
22868 #endif
22869
22870 #undef $ac_func
22871
22872 /* Override any GCC internal prototype to avoid an error.
22873 Use char because int might match the return type of a GCC
22874 builtin and then its argument prototype would still apply. */
22875 #ifdef __cplusplus
22876 extern "C"
22877 #endif
22878 char $ac_func ();
22879 /* The GNU C library defines this for functions which it implements
22880 to always fail with ENOSYS. Some functions are actually named
22881 something starting with __ and the normal name is an alias. */
22882 #if defined __stub_$ac_func || defined __stub___$ac_func
22883 choke me
22884 #endif
22885
22886 int
22887 main ()
22888 {
22889 return $ac_func ();
22890 ;
22891 return 0;
22892 }
22893 _ACEOF
22894 rm -f conftest.$ac_objext conftest$ac_exeext
22895 if { (ac_try="$ac_link"
22896 case "(($ac_try" in
22897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898 *) ac_try_echo=$ac_try;;
22899 esac
22900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22901 (eval "$ac_link") 2>conftest.er1
22902 ac_status=$?
22903 grep -v '^ *+' conftest.er1 >conftest.err
22904 rm -f conftest.er1
22905 cat conftest.err >&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } && {
22908 test -z "$ac_c_werror_flag" ||
22909 test ! -s conftest.err
22910 } && test -s conftest$ac_exeext &&
22911 $as_test_x conftest$ac_exeext; then
22912 eval "$as_ac_var=yes"
22913 else
22914 echo "$as_me: failed program was:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22916
22917 eval "$as_ac_var=no"
22918 fi
22919
22920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22921 conftest$ac_exeext conftest.$ac_ext
22922 fi
22923 ac_res=`eval echo '${'$as_ac_var'}'`
22924 { echo "$as_me:$LINENO: result: $ac_res" >&5
22925 echo "${ECHO_T}$ac_res" >&6; }
22926 if test `eval echo '${'$as_ac_var'}'` = yes; then
22927 cat >>confdefs.h <<_ACEOF
22928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22929 _ACEOF
22930
22931 fi
22932 done
22933
22934 if test "x$ac_cv_func_fork" = xyes; then
22935 { echo "$as_me:$LINENO: checking for working fork" >&5
22936 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22937 if test "${ac_cv_func_fork_works+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22940 if test "$cross_compiling" = yes; then
22941 ac_cv_func_fork_works=cross
22942 else
22943 cat >conftest.$ac_ext <<_ACEOF
22944 /* confdefs.h. */
22945 _ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22949 $ac_includes_default
22950 int
22951 main ()
22952 {
22953
22954 /* By Ruediger Kuhlmann. */
22955 return fork () < 0;
22956
22957 ;
22958 return 0;
22959 }
22960 _ACEOF
22961 rm -f conftest$ac_exeext
22962 if { (ac_try="$ac_link"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22966 esac
22967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22968 (eval "$ac_link") 2>&5
22969 ac_status=$?
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22972 { (case "(($ac_try" in
22973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22974 *) ac_try_echo=$ac_try;;
22975 esac
22976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22977 (eval "$ac_try") 2>&5
22978 ac_status=$?
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); }; }; then
22981 ac_cv_func_fork_works=yes
22982 else
22983 echo "$as_me: program exited with status $ac_status" >&5
22984 echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22986
22987 ( exit $ac_status )
22988 ac_cv_func_fork_works=no
22989 fi
22990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22991 fi
22992
22993
22994 fi
22995 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22996 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22997
22998 else
22999 ac_cv_func_fork_works=$ac_cv_func_fork
23000 fi
23001 if test "x$ac_cv_func_fork_works" = xcross; then
23002 case $host in
23003 *-*-amigaos* | *-*-msdosdjgpp*)
23004 # Override, as these systems have only a dummy fork() stub
23005 ac_cv_func_fork_works=no
23006 ;;
23007 *)
23008 ac_cv_func_fork_works=yes
23009 ;;
23010 esac
23011 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23012 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23013 fi
23014 ac_cv_func_vfork_works=$ac_cv_func_vfork
23015 if test "x$ac_cv_func_vfork" = xyes; then
23016 { echo "$as_me:$LINENO: checking for working vfork" >&5
23017 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23018 if test "${ac_cv_func_vfork_works+set}" = set; then
23019 echo $ECHO_N "(cached) $ECHO_C" >&6
23020 else
23021 if test "$cross_compiling" = yes; then
23022 ac_cv_func_vfork_works=cross
23023 else
23024 cat >conftest.$ac_ext <<_ACEOF
23025 /* confdefs.h. */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030 /* Thanks to Paul Eggert for this test. */
23031 $ac_includes_default
23032 #include <sys/wait.h>
23033 #ifdef HAVE_VFORK_H
23034 # include <vfork.h>
23035 #endif
23036 /* On some sparc systems, changes by the child to local and incoming
23037 argument registers are propagated back to the parent. The compiler
23038 is told about this with #include <vfork.h>, but some compilers
23039 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23040 static variable whose address is put into a register that is
23041 clobbered by the vfork. */
23042 static void
23043 #ifdef __cplusplus
23044 sparc_address_test (int arg)
23045 # else
23046 sparc_address_test (arg) int arg;
23047 #endif
23048 {
23049 static pid_t child;
23050 if (!child) {
23051 child = vfork ();
23052 if (child < 0) {
23053 perror ("vfork");
23054 _exit(2);
23055 }
23056 if (!child) {
23057 arg = getpid();
23058 write(-1, "", 0);
23059 _exit (arg);
23060 }
23061 }
23062 }
23063
23064 int
23065 main ()
23066 {
23067 pid_t parent = getpid ();
23068 pid_t child;
23069
23070 sparc_address_test (0);
23071
23072 child = vfork ();
23073
23074 if (child == 0) {
23075 /* Here is another test for sparc vfork register problems. This
23076 test uses lots of local variables, at least as many local
23077 variables as main has allocated so far including compiler
23078 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23079 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23080 reuse the register of parent for one of the local variables,
23081 since it will think that parent can't possibly be used any more
23082 in this routine. Assigning to the local variable will thus
23083 munge parent in the parent process. */
23084 pid_t
23085 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23086 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23087 /* Convince the compiler that p..p7 are live; otherwise, it might
23088 use the same hardware register for all 8 local variables. */
23089 if (p != p1 || p != p2 || p != p3 || p != p4
23090 || p != p5 || p != p6 || p != p7)
23091 _exit(1);
23092
23093 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23094 from child file descriptors. If the child closes a descriptor
23095 before it execs or exits, this munges the parent's descriptor
23096 as well. Test for this by closing stdout in the child. */
23097 _exit(close(fileno(stdout)) != 0);
23098 } else {
23099 int status;
23100 struct stat st;
23101
23102 while (wait(&status) != child)
23103 ;
23104 return (
23105 /* Was there some problem with vforking? */
23106 child < 0
23107
23108 /* Did the child fail? (This shouldn't happen.) */
23109 || status
23110
23111 /* Did the vfork/compiler bug occur? */
23112 || parent != getpid()
23113
23114 /* Did the file descriptor bug occur? */
23115 || fstat(fileno(stdout), &st) != 0
23116 );
23117 }
23118 }
23119 _ACEOF
23120 rm -f conftest$ac_exeext
23121 if { (ac_try="$ac_link"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23125 esac
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_link") 2>&5
23128 ac_status=$?
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23131 { (case "(($ac_try" in
23132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133 *) ac_try_echo=$ac_try;;
23134 esac
23135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23136 (eval "$ac_try") 2>&5
23137 ac_status=$?
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); }; }; then
23140 ac_cv_func_vfork_works=yes
23141 else
23142 echo "$as_me: program exited with status $ac_status" >&5
23143 echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23145
23146 ( exit $ac_status )
23147 ac_cv_func_vfork_works=no
23148 fi
23149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23150 fi
23151
23152
23153 fi
23154 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23155 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23156
23157 fi;
23158 if test "x$ac_cv_func_fork_works" = xcross; then
23159 ac_cv_func_vfork_works=$ac_cv_func_vfork
23160 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23161 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23162 fi
23163
23164 if test "x$ac_cv_func_vfork_works" = xyes; then
23165
23166 cat >>confdefs.h <<\_ACEOF
23167 #define HAVE_WORKING_VFORK 1
23168 _ACEOF
23169
23170 else
23171
23172 cat >>confdefs.h <<\_ACEOF
23173 #define vfork fork
23174 _ACEOF
23175
23176 fi
23177 if test "x$ac_cv_func_fork_works" = xyes; then
23178
23179 cat >>confdefs.h <<\_ACEOF
23180 #define HAVE_WORKING_FORK 1
23181 _ACEOF
23182
23183 fi
23184
23185
23186 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23187 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23188 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23190 else
23191 cat >conftest.$ac_ext <<_ACEOF
23192 /* confdefs.h. */
23193 _ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23197 #include <langinfo.h>
23198 int
23199 main ()
23200 {
23201 char* cs = nl_langinfo(CODESET);
23202 ;
23203 return 0;
23204 }
23205 _ACEOF
23206 rm -f conftest.$ac_objext conftest$ac_exeext
23207 if { (ac_try="$ac_link"
23208 case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23211 esac
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_link") 2>conftest.er1
23214 ac_status=$?
23215 grep -v '^ *+' conftest.er1 >conftest.err
23216 rm -f conftest.er1
23217 cat conftest.err >&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); } && {
23220 test -z "$ac_c_werror_flag" ||
23221 test ! -s conftest.err
23222 } && test -s conftest$ac_exeext &&
23223 $as_test_x conftest$ac_exeext; then
23224 emacs_cv_langinfo_codeset=yes
23225 else
23226 echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23228
23229 emacs_cv_langinfo_codeset=no
23230 fi
23231
23232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23233 conftest$ac_exeext conftest.$ac_ext
23234
23235 fi
23236 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23237 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23238 if test $emacs_cv_langinfo_codeset = yes; then
23239
23240 cat >>confdefs.h <<\_ACEOF
23241 #define HAVE_LANGINFO_CODESET 1
23242 _ACEOF
23243
23244 fi
23245
23246 { echo "$as_me:$LINENO: checking for size_t" >&5
23247 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23248 if test "${ac_cv_type_size_t+set}" = set; then
23249 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 else
23251 cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h. */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 $ac_includes_default
23258 typedef size_t ac__type_new_;
23259 int
23260 main ()
23261 {
23262 if ((ac__type_new_ *) 0)
23263 return 0;
23264 if (sizeof (ac__type_new_))
23265 return 0;
23266 ;
23267 return 0;
23268 }
23269 _ACEOF
23270 rm -f conftest.$ac_objext
23271 if { (ac_try="$ac_compile"
23272 case "(($ac_try" in
23273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274 *) ac_try_echo=$ac_try;;
23275 esac
23276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23277 (eval "$ac_compile") 2>conftest.er1
23278 ac_status=$?
23279 grep -v '^ *+' conftest.er1 >conftest.err
23280 rm -f conftest.er1
23281 cat conftest.err >&5
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); } && {
23284 test -z "$ac_c_werror_flag" ||
23285 test ! -s conftest.err
23286 } && test -s conftest.$ac_objext; then
23287 ac_cv_type_size_t=yes
23288 else
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23291
23292 ac_cv_type_size_t=no
23293 fi
23294
23295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23296 fi
23297 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23298 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23299 if test $ac_cv_type_size_t = yes; then
23300
23301 cat >>confdefs.h <<_ACEOF
23302 #define HAVE_SIZE_T 1
23303 _ACEOF
23304
23305
23306 fi
23307
23308
23309 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23310 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23311 if test "${ac_cv_type_mbstate_t+set}" = set; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
23313 else
23314 cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h. */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 $ac_includes_default
23321 # include <wchar.h>
23322 int
23323 main ()
23324 {
23325 mbstate_t x; return sizeof x;
23326 ;
23327 return 0;
23328 }
23329 _ACEOF
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334 *) ac_try_echo=$ac_try;;
23335 esac
23336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23337 (eval "$ac_compile") 2>conftest.er1
23338 ac_status=$?
23339 grep -v '^ *+' conftest.er1 >conftest.err
23340 rm -f conftest.er1
23341 cat conftest.err >&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); } && {
23344 test -z "$ac_c_werror_flag" ||
23345 test ! -s conftest.err
23346 } && test -s conftest.$ac_objext; then
23347 ac_cv_type_mbstate_t=yes
23348 else
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23351
23352 ac_cv_type_mbstate_t=no
23353 fi
23354
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356 fi
23357 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23358 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23359 if test $ac_cv_type_mbstate_t = yes; then
23360
23361 cat >>confdefs.h <<\_ACEOF
23362 #define HAVE_MBSTATE_T 1
23363 _ACEOF
23364
23365 else
23366
23367 cat >>confdefs.h <<\_ACEOF
23368 #define mbstate_t int
23369 _ACEOF
23370
23371 fi
23372
23373 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23374 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23375 if test "${emacs_cv_c_restrict+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23377 else
23378 cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h. */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 void fred (int *restrict x);
23385 int
23386 main ()
23387 {
23388
23389 ;
23390 return 0;
23391 }
23392 _ACEOF
23393 rm -f conftest.$ac_objext
23394 if { (ac_try="$ac_compile"
23395 case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23398 esac
23399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400 (eval "$ac_compile") 2>conftest.er1
23401 ac_status=$?
23402 grep -v '^ *+' conftest.er1 >conftest.err
23403 rm -f conftest.er1
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } && {
23407 test -z "$ac_c_werror_flag" ||
23408 test ! -s conftest.err
23409 } && test -s conftest.$ac_objext; then
23410 emacs_cv_c_restrict=yes
23411 else
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23414
23415 cat >conftest.$ac_ext <<_ACEOF
23416 /* confdefs.h. */
23417 _ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h. */
23421 void fred (int *__restrict x);
23422 int
23423 main ()
23424 {
23425
23426 ;
23427 return 0;
23428 }
23429 _ACEOF
23430 rm -f conftest.$ac_objext
23431 if { (ac_try="$ac_compile"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23435 esac
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_compile") 2>conftest.er1
23438 ac_status=$?
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } && {
23444 test -z "$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 } && test -s conftest.$ac_objext; then
23447 emacs_cv_c_restrict=__restrict
23448 else
23449 echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23451
23452 emacs_cv_c_restrict=no
23453 fi
23454
23455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23456 fi
23457
23458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23459 fi
23460 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23461 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23462 case "$emacs_cv_c_restrict" in
23463 yes) emacs_restrict=restrict;;
23464 no) emacs_restrict="";;
23465 *) emacs_restrict="$emacs_cv_c_restrict";;
23466 esac
23467 if test "$emacs_restrict" != __restrict; then
23468
23469 cat >>confdefs.h <<_ACEOF
23470 #define __restrict $emacs_restrict
23471 _ACEOF
23472
23473 fi
23474
23475 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23476 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23477 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23478 echo $ECHO_N "(cached) $ECHO_C" >&6
23479 else
23480 cat >conftest.$ac_ext <<_ACEOF
23481 /* confdefs.h. */
23482 _ACEOF
23483 cat confdefs.h >>conftest.$ac_ext
23484 cat >>conftest.$ac_ext <<_ACEOF
23485 /* end confdefs.h. */
23486 void fred (int x[__restrict]);
23487 int
23488 main ()
23489 {
23490
23491 ;
23492 return 0;
23493 }
23494 _ACEOF
23495 rm -f conftest.$ac_objext
23496 if { (ac_try="$ac_compile"
23497 case "(($ac_try" in
23498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499 *) ac_try_echo=$ac_try;;
23500 esac
23501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23502 (eval "$ac_compile") 2>conftest.er1
23503 ac_status=$?
23504 grep -v '^ *+' conftest.er1 >conftest.err
23505 rm -f conftest.er1
23506 cat conftest.err >&5
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); } && {
23509 test -z "$ac_c_werror_flag" ||
23510 test ! -s conftest.err
23511 } && test -s conftest.$ac_objext; then
23512 emacs_cv_c_restrict_arr=yes
23513 else
23514 echo "$as_me: failed program was:" >&5
23515 sed 's/^/| /' conftest.$ac_ext >&5
23516
23517 emacs_cv_c_restrict_arr=no
23518 fi
23519
23520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23521 fi
23522 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23523 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23524 if test "$emacs_cv_c_restrict_arr" = yes; then
23525
23526 cat >>confdefs.h <<\_ACEOF
23527 #define __restrict_arr __restrict
23528 _ACEOF
23529
23530 fi
23531
23532
23533
23534 # Set up the CFLAGS for real compilation, so we can substitute it.
23535 CFLAGS="$REAL_CFLAGS"
23536 CPPFLAGS="$REAL_CPPFLAGS"
23537
23538 #### Find out which version of Emacs this is.
23539 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23540 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23541 if test x"${version}" = x; then
23542 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23543 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23544 { (exit 1); exit 1; }; }
23545 fi
23546
23547 ### Specify what sort of things we'll be editing into Makefile and config.h.
23548 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23549
23550
23551
23552
23553
23554
23555
23556
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 cat >>confdefs.h <<_ACEOF
23585 #define EMACS_CONFIGURATION "${canonical}"
23586 _ACEOF
23587
23588
23589 cat >>confdefs.h <<_ACEOF
23590 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23591 _ACEOF
23592
23593
23594 cat >>confdefs.h <<_ACEOF
23595 #define config_machfile "${machfile}"
23596 _ACEOF
23597
23598
23599 cat >>confdefs.h <<_ACEOF
23600 #define config_opsysfile "${opsysfile}"
23601 _ACEOF
23602
23603
23604 cat >>confdefs.h <<_ACEOF
23605 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23606 _ACEOF
23607
23608
23609 cat >>confdefs.h <<_ACEOF
23610 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23611 _ACEOF
23612
23613
23614 cat >>confdefs.h <<_ACEOF
23615 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23616 _ACEOF
23617
23618
23619 cat >>confdefs.h <<_ACEOF
23620 #define UNEXEC_SRC ${UNEXEC_SRC}
23621 _ACEOF
23622
23623
23624 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23625
23626 cat >>confdefs.h <<\_ACEOF
23627 #define HAVE_X_WINDOWS 1
23628 _ACEOF
23629
23630 fi
23631 if test "${USE_X_TOOLKIT}" != "none" ; then
23632
23633 cat >>confdefs.h <<\_ACEOF
23634 #define USE_X_TOOLKIT 1
23635 _ACEOF
23636
23637 fi
23638 if test "${HAVE_X11}" = "yes" ; then
23639
23640 cat >>confdefs.h <<\_ACEOF
23641 #define HAVE_X11 1
23642 _ACEOF
23643
23644 fi
23645 if test "${HAVE_XFREE386}" = "yes" ; then
23646
23647 cat >>confdefs.h <<\_ACEOF
23648 #define HAVE_XFREE386 1
23649 _ACEOF
23650
23651 fi
23652 if test "${HAVE_MENUS}" = "yes" ; then
23653
23654 cat >>confdefs.h <<\_ACEOF
23655 #define HAVE_MENUS 1
23656 _ACEOF
23657
23658 fi
23659 if test "${GNU_MALLOC}" = "yes" ; then
23660
23661 cat >>confdefs.h <<\_ACEOF
23662 #define GNU_MALLOC 1
23663 _ACEOF
23664
23665 fi
23666 if test "${REL_ALLOC}" = "yes" ; then
23667
23668 cat >>confdefs.h <<\_ACEOF
23669 #define REL_ALLOC 1
23670 _ACEOF
23671
23672 fi
23673
23674
23675
23676
23677
23678 #### Report on what we decided to do.
23679 #### Report GTK as a toolkit, even if it doesn't use Xt.
23680 #### It makes printing result more understandable as using GTK sets
23681 #### toolkit_scroll_bars to yes by default.
23682 if test "${HAVE_GTK}" = "yes"; then
23683 USE_X_TOOLKIT=GTK
23684 fi
23685
23686 echo "
23687 Configured for \`${canonical}'.
23688
23689 Where should the build process find the source code? ${srcdir}
23690 What operating system and machine description files should Emacs use?
23691 \`${opsysfile}' and \`${machfile}'
23692 What compiler should emacs be built with? ${CC} ${CFLAGS}
23693 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23694 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23695 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23696 What window system should Emacs use? ${window_system}
23697 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23698
23699 if test -n "${x_includes}"; then
23700 echo " Where do we find X Windows header files? ${x_includes}"
23701 else
23702 echo " Where do we find X Windows header files? Standard dirs"
23703 fi
23704 if test -n "${x_libraries}"; then
23705 echo " Where do we find X Windows libraries? ${x_libraries}"
23706 else
23707 echo " Where do we find X Windows libraries? Standard dirs"
23708 fi
23709
23710 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23711 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23712 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23713 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23714 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23715 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23716 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23717 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23718 echo
23719
23720 if test $USE_XASSERTS = yes; then
23721 echo " Compiling with asserts turned on."
23722 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23723 echo
23724 fi
23725
23726 if test "$USE_X_TOOLKIT" = GTK; then
23727 case "$canonical" in
23728 *cygwin*)
23729 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23730 will probably get a crash on startup. If this happens, please use another
23731 toolkit for Emacs. See etc/PROBLEMS for more information."
23732 ;;
23733 esac
23734 fi
23735
23736
23737
23738 # Remove any trailing slashes in these variables.
23739 test "${prefix}" != NONE &&
23740 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23741 test "${exec_prefix}" != NONE &&
23742 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23743
23744 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23745 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23746 ## from Makefile.c can correctly provide the arg `-traditional' to the
23747 ## C preprocessor.
23748
23749 cat >conftest.$ac_ext <<_ACEOF
23750 /* confdefs.h. */
23751 _ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h. */
23755 yes..yes
23756 _ACEOF
23757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23758 $EGREP "yes..yes" >/dev/null 2>&1; then
23759 CPP_NEED_TRADITIONAL=no
23760 else
23761 CPP_NEED_TRADITIONAL=yes
23762 fi
23763 rm -f conftest*
23764
23765
23766 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"
23767
23768 ac_config_commands="$ac_config_commands default"
23769
23770 cat >confcache <<\_ACEOF
23771 # This file is a shell script that caches the results of configure
23772 # tests run on this system so they can be shared between configure
23773 # scripts and configure runs, see configure's option --config-cache.
23774 # It is not useful on other systems. If it contains results you don't
23775 # want to keep, you may remove or edit it.
23776 #
23777 # config.status only pays attention to the cache file if you give it
23778 # the --recheck option to rerun configure.
23779 #
23780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23782 # following values.
23783
23784 _ACEOF
23785
23786 # The following way of writing the cache mishandles newlines in values,
23787 # but we know of no workaround that is simple, portable, and efficient.
23788 # So, we kill variables containing newlines.
23789 # Ultrix sh set writes to stderr and can't be redirected directly,
23790 # and sets the high bit in the cache file unless we assign to the vars.
23791 (
23792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23793 eval ac_val=\$$ac_var
23794 case $ac_val in #(
23795 *${as_nl}*)
23796 case $ac_var in #(
23797 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23798 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23799 esac
23800 case $ac_var in #(
23801 _ | IFS | as_nl) ;; #(
23802 *) $as_unset $ac_var ;;
23803 esac ;;
23804 esac
23805 done
23806
23807 (set) 2>&1 |
23808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23809 *${as_nl}ac_space=\ *)
23810 # `set' does not quote correctly, so add quotes (double-quote
23811 # substitution turns \\\\ into \\, and sed turns \\ into \).
23812 sed -n \
23813 "s/'/'\\\\''/g;
23814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23815 ;; #(
23816 *)
23817 # `set' quotes correctly as required by POSIX, so do not add quotes.
23818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23819 ;;
23820 esac |
23821 sort
23822 ) |
23823 sed '
23824 /^ac_cv_env_/b end
23825 t clear
23826 :clear
23827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23828 t end
23829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23830 :end' >>confcache
23831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23832 if test -w "$cache_file"; then
23833 test "x$cache_file" != "x/dev/null" &&
23834 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23835 echo "$as_me: updating cache $cache_file" >&6;}
23836 cat confcache >$cache_file
23837 else
23838 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23839 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23840 fi
23841 fi
23842 rm -f confcache
23843
23844 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23845 # Let make expand exec_prefix.
23846 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23847
23848 DEFS=-DHAVE_CONFIG_H
23849
23850 ac_libobjs=
23851 ac_ltlibobjs=
23852 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23853 # 1. Remove the extension, and $U if already installed.
23854 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23855 ac_i=`echo "$ac_i" | sed "$ac_script"`
23856 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23857 # will be set to the directory where LIBOBJS objects are built.
23858 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23859 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23860 done
23861 LIBOBJS=$ac_libobjs
23862
23863 LTLIBOBJS=$ac_ltlibobjs
23864
23865
23866
23867 : ${CONFIG_STATUS=./config.status}
23868 ac_clean_files_save=$ac_clean_files
23869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23870 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23871 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23872 cat >$CONFIG_STATUS <<_ACEOF
23873 #! $SHELL
23874 # Generated by $as_me.
23875 # Run this file to recreate the current configuration.
23876 # Compiler output produced by configure, useful for debugging
23877 # configure, is in config.log if it exists.
23878
23879 debug=false
23880 ac_cs_recheck=false
23881 ac_cs_silent=false
23882 SHELL=\${CONFIG_SHELL-$SHELL}
23883 _ACEOF
23884
23885 cat >>$CONFIG_STATUS <<\_ACEOF
23886 ## --------------------- ##
23887 ## M4sh Initialization. ##
23888 ## --------------------- ##
23889
23890 # Be more Bourne compatible
23891 DUALCASE=1; export DUALCASE # for MKS sh
23892 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23893 emulate sh
23894 NULLCMD=:
23895 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23896 # is contrary to our usage. Disable this feature.
23897 alias -g '${1+"$@"}'='"$@"'
23898 setopt NO_GLOB_SUBST
23899 else
23900 case `(set -o) 2>/dev/null` in
23901 *posix*) set -o posix ;;
23902 esac
23903
23904 fi
23905
23906
23907
23908
23909 # PATH needs CR
23910 # Avoid depending upon Character Ranges.
23911 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23912 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23913 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23914 as_cr_digits='0123456789'
23915 as_cr_alnum=$as_cr_Letters$as_cr_digits
23916
23917 # The user is always right.
23918 if test "${PATH_SEPARATOR+set}" != set; then
23919 echo "#! /bin/sh" >conf$$.sh
23920 echo "exit 0" >>conf$$.sh
23921 chmod +x conf$$.sh
23922 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23923 PATH_SEPARATOR=';'
23924 else
23925 PATH_SEPARATOR=:
23926 fi
23927 rm -f conf$$.sh
23928 fi
23929
23930 # Support unset when possible.
23931 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23932 as_unset=unset
23933 else
23934 as_unset=false
23935 fi
23936
23937
23938 # IFS
23939 # We need space, tab and new line, in precisely that order. Quoting is
23940 # there to prevent editors from complaining about space-tab.
23941 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23942 # splitting by setting IFS to empty value.)
23943 as_nl='
23944 '
23945 IFS=" "" $as_nl"
23946
23947 # Find who we are. Look in the path if we contain no directory separator.
23948 case $0 in
23949 *[\\/]* ) as_myself=$0 ;;
23950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23951 for as_dir in $PATH
23952 do
23953 IFS=$as_save_IFS
23954 test -z "$as_dir" && as_dir=.
23955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23956 done
23957 IFS=$as_save_IFS
23958
23959 ;;
23960 esac
23961 # We did not find ourselves, most probably we were run as `sh COMMAND'
23962 # in which case we are not to be found in the path.
23963 if test "x$as_myself" = x; then
23964 as_myself=$0
23965 fi
23966 if test ! -f "$as_myself"; then
23967 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23968 { (exit 1); exit 1; }
23969 fi
23970
23971 # Work around bugs in pre-3.0 UWIN ksh.
23972 for as_var in ENV MAIL MAILPATH
23973 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23974 done
23975 PS1='$ '
23976 PS2='> '
23977 PS4='+ '
23978
23979 # NLS nuisances.
23980 for as_var in \
23981 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23982 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23983 LC_TELEPHONE LC_TIME
23984 do
23985 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23986 eval $as_var=C; export $as_var
23987 else
23988 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23989 fi
23990 done
23991
23992 # Required to use basename.
23993 if expr a : '\(a\)' >/dev/null 2>&1 &&
23994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23995 as_expr=expr
23996 else
23997 as_expr=false
23998 fi
23999
24000 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24001 as_basename=basename
24002 else
24003 as_basename=false
24004 fi
24005
24006
24007 # Name of the executable.
24008 as_me=`$as_basename -- "$0" ||
24009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24010 X"$0" : 'X\(//\)$' \| \
24011 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24012 echo X/"$0" |
24013 sed '/^.*\/\([^/][^/]*\)\/*$/{
24014 s//\1/
24015 q
24016 }
24017 /^X\/\(\/\/\)$/{
24018 s//\1/
24019 q
24020 }
24021 /^X\/\(\/\).*/{
24022 s//\1/
24023 q
24024 }
24025 s/.*/./; q'`
24026
24027 # CDPATH.
24028 $as_unset CDPATH
24029
24030
24031
24032 as_lineno_1=$LINENO
24033 as_lineno_2=$LINENO
24034 test "x$as_lineno_1" != "x$as_lineno_2" &&
24035 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24036
24037 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24038 # uniformly replaced by the line number. The first 'sed' inserts a
24039 # line-number line after each line using $LINENO; the second 'sed'
24040 # does the real work. The second script uses 'N' to pair each
24041 # line-number line with the line containing $LINENO, and appends
24042 # trailing '-' during substitution so that $LINENO is not a special
24043 # case at line end.
24044 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24045 # scripts with optimization help from Paolo Bonzini. Blame Lee
24046 # E. McMahon (1931-1989) for sed's syntax. :-)
24047 sed -n '
24048 p
24049 /[$]LINENO/=
24050 ' <$as_myself |
24051 sed '
24052 s/[$]LINENO.*/&-/
24053 t lineno
24054 b
24055 :lineno
24056 N
24057 :loop
24058 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24059 t loop
24060 s/-\n.*//
24061 ' >$as_me.lineno &&
24062 chmod +x "$as_me.lineno" ||
24063 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24064 { (exit 1); exit 1; }; }
24065
24066 # Don't try to exec as it changes $[0], causing all sort of problems
24067 # (the dirname of $[0] is not the place where we might find the
24068 # original and so on. Autoconf is especially sensitive to this).
24069 . "./$as_me.lineno"
24070 # Exit status is that of the last command.
24071 exit
24072 }
24073
24074
24075 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24076 as_dirname=dirname
24077 else
24078 as_dirname=false
24079 fi
24080
24081 ECHO_C= ECHO_N= ECHO_T=
24082 case `echo -n x` in
24083 -n*)
24084 case `echo 'x\c'` in
24085 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24086 *) ECHO_C='\c';;
24087 esac;;
24088 *)
24089 ECHO_N='-n';;
24090 esac
24091
24092 if expr a : '\(a\)' >/dev/null 2>&1 &&
24093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24094 as_expr=expr
24095 else
24096 as_expr=false
24097 fi
24098
24099 rm -f conf$$ conf$$.exe conf$$.file
24100 if test -d conf$$.dir; then
24101 rm -f conf$$.dir/conf$$.file
24102 else
24103 rm -f conf$$.dir
24104 mkdir conf$$.dir
24105 fi
24106 echo >conf$$.file
24107 if ln -s conf$$.file conf$$ 2>/dev/null; then
24108 as_ln_s='ln -s'
24109 # ... but there are two gotchas:
24110 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24111 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24112 # In both cases, we have to default to `cp -p'.
24113 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24114 as_ln_s='cp -p'
24115 elif ln conf$$.file conf$$ 2>/dev/null; then
24116 as_ln_s=ln
24117 else
24118 as_ln_s='cp -p'
24119 fi
24120 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24121 rmdir conf$$.dir 2>/dev/null
24122
24123 if mkdir -p . 2>/dev/null; then
24124 as_mkdir_p=:
24125 else
24126 test -d ./-p && rmdir ./-p
24127 as_mkdir_p=false
24128 fi
24129
24130 if test -x / >/dev/null 2>&1; then
24131 as_test_x='test -x'
24132 else
24133 if ls -dL / >/dev/null 2>&1; then
24134 as_ls_L_option=L
24135 else
24136 as_ls_L_option=
24137 fi
24138 as_test_x='
24139 eval sh -c '\''
24140 if test -d "$1"; then
24141 test -d "$1/.";
24142 else
24143 case $1 in
24144 -*)set "./$1";;
24145 esac;
24146 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24147 ???[sx]*):;;*)false;;esac;fi
24148 '\'' sh
24149 '
24150 fi
24151 as_executable_p=$as_test_x
24152
24153 # Sed expression to map a string onto a valid CPP name.
24154 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24155
24156 # Sed expression to map a string onto a valid variable name.
24157 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24158
24159
24160 exec 6>&1
24161
24162 # Save the log message, to keep $[0] and so on meaningful, and to
24163 # report actual input values of CONFIG_FILES etc. instead of their
24164 # values after options handling.
24165 ac_log="
24166 This file was extended by $as_me, which was
24167 generated by GNU Autoconf 2.61. Invocation command line was
24168
24169 CONFIG_FILES = $CONFIG_FILES
24170 CONFIG_HEADERS = $CONFIG_HEADERS
24171 CONFIG_LINKS = $CONFIG_LINKS
24172 CONFIG_COMMANDS = $CONFIG_COMMANDS
24173 $ $0 $@
24174
24175 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24176 "
24177
24178 _ACEOF
24179
24180 cat >>$CONFIG_STATUS <<_ACEOF
24181 # Files that config.status was made for.
24182 config_files="$ac_config_files"
24183 config_headers="$ac_config_headers"
24184 config_commands="$ac_config_commands"
24185
24186 _ACEOF
24187
24188 cat >>$CONFIG_STATUS <<\_ACEOF
24189 ac_cs_usage="\
24190 \`$as_me' instantiates files from templates according to the
24191 current configuration.
24192
24193 Usage: $0 [OPTIONS] [FILE]...
24194
24195 -h, --help print this help, then exit
24196 -V, --version print version number and configuration settings, then exit
24197 -q, --quiet do not print progress messages
24198 -d, --debug don't remove temporary files
24199 --recheck update $as_me by reconfiguring in the same conditions
24200 --file=FILE[:TEMPLATE]
24201 instantiate the configuration file FILE
24202 --header=FILE[:TEMPLATE]
24203 instantiate the configuration header FILE
24204
24205 Configuration files:
24206 $config_files
24207
24208 Configuration headers:
24209 $config_headers
24210
24211 Configuration commands:
24212 $config_commands
24213
24214 Report bugs to <bug-autoconf@gnu.org>."
24215
24216 _ACEOF
24217 cat >>$CONFIG_STATUS <<_ACEOF
24218 ac_cs_version="\\
24219 config.status
24220 configured by $0, generated by GNU Autoconf 2.61,
24221 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24222
24223 Copyright (C) 2006 Free Software Foundation, Inc.
24224 This config.status script is free software; the Free Software Foundation
24225 gives unlimited permission to copy, distribute and modify it."
24226
24227 ac_pwd='$ac_pwd'
24228 srcdir='$srcdir'
24229 INSTALL='$INSTALL'
24230 _ACEOF
24231
24232 cat >>$CONFIG_STATUS <<\_ACEOF
24233 # If no file are specified by the user, then we need to provide default
24234 # value. By we need to know if files were specified by the user.
24235 ac_need_defaults=:
24236 while test $# != 0
24237 do
24238 case $1 in
24239 --*=*)
24240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24241 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24242 ac_shift=:
24243 ;;
24244 *)
24245 ac_option=$1
24246 ac_optarg=$2
24247 ac_shift=shift
24248 ;;
24249 esac
24250
24251 case $ac_option in
24252 # Handling of the options.
24253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24254 ac_cs_recheck=: ;;
24255 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24256 echo "$ac_cs_version"; exit ;;
24257 --debug | --debu | --deb | --de | --d | -d )
24258 debug=: ;;
24259 --file | --fil | --fi | --f )
24260 $ac_shift
24261 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24262 ac_need_defaults=false;;
24263 --header | --heade | --head | --hea )
24264 $ac_shift
24265 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24266 ac_need_defaults=false;;
24267 --he | --h)
24268 # Conflict between --help and --header
24269 { echo "$as_me: error: ambiguous option: $1
24270 Try \`$0 --help' for more information." >&2
24271 { (exit 1); exit 1; }; };;
24272 --help | --hel | -h )
24273 echo "$ac_cs_usage"; exit ;;
24274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24275 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24276 ac_cs_silent=: ;;
24277
24278 # This is an error.
24279 -*) { echo "$as_me: error: unrecognized option: $1
24280 Try \`$0 --help' for more information." >&2
24281 { (exit 1); exit 1; }; } ;;
24282
24283 *) ac_config_targets="$ac_config_targets $1"
24284 ac_need_defaults=false ;;
24285
24286 esac
24287 shift
24288 done
24289
24290 ac_configure_extra_args=
24291
24292 if $ac_cs_silent; then
24293 exec 6>/dev/null
24294 ac_configure_extra_args="$ac_configure_extra_args --silent"
24295 fi
24296
24297 _ACEOF
24298 cat >>$CONFIG_STATUS <<_ACEOF
24299 if \$ac_cs_recheck; then
24300 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24301 CONFIG_SHELL=$SHELL
24302 export CONFIG_SHELL
24303 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24304 fi
24305
24306 _ACEOF
24307 cat >>$CONFIG_STATUS <<\_ACEOF
24308 exec 5>>config.log
24309 {
24310 echo
24311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24312 ## Running $as_me. ##
24313 _ASBOX
24314 echo "$ac_log"
24315 } >&5
24316
24317 _ACEOF
24318 cat >>$CONFIG_STATUS <<_ACEOF
24319 #
24320 # INIT-COMMANDS
24321 #
24322 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24323
24324 _ACEOF
24325
24326 cat >>$CONFIG_STATUS <<\_ACEOF
24327
24328 # Handling of arguments.
24329 for ac_config_target in $ac_config_targets
24330 do
24331 case $ac_config_target in
24332 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24333 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24334 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24335 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24336 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24337 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24338 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24339 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24340 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24341 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24342 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24343 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24344
24345 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24347 { (exit 1); exit 1; }; };;
24348 esac
24349 done
24350
24351
24352 # If the user did not use the arguments to specify the items to instantiate,
24353 # then the envvar interface is used. Set only those that are not.
24354 # We use the long form for the default assignment because of an extremely
24355 # bizarre bug on SunOS 4.1.3.
24356 if $ac_need_defaults; then
24357 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24358 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24359 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24360 fi
24361
24362 # Have a temporary directory for convenience. Make it in the build tree
24363 # simply because there is no reason against having it here, and in addition,
24364 # creating and moving files from /tmp can sometimes cause problems.
24365 # Hook for its removal unless debugging.
24366 # Note that there is a small window in which the directory will not be cleaned:
24367 # after its creation but before its name has been assigned to `$tmp'.
24368 $debug ||
24369 {
24370 tmp=
24371 trap 'exit_status=$?
24372 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24373 ' 0
24374 trap '{ (exit 1); exit 1; }' 1 2 13 15
24375 }
24376 # Create a (secure) tmp directory for tmp files.
24377
24378 {
24379 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24380 test -n "$tmp" && test -d "$tmp"
24381 } ||
24382 {
24383 tmp=./conf$$-$RANDOM
24384 (umask 077 && mkdir "$tmp")
24385 } ||
24386 {
24387 echo "$me: cannot create a temporary directory in ." >&2
24388 { (exit 1); exit 1; }
24389 }
24390
24391 #
24392 # Set up the sed scripts for CONFIG_FILES section.
24393 #
24394
24395 # No need to generate the scripts if there are no CONFIG_FILES.
24396 # This happens for instance when ./config.status config.h
24397 if test -n "$CONFIG_FILES"; then
24398
24399 _ACEOF
24400
24401
24402
24403 ac_delim='%!_!# '
24404 for ac_last_try in false false false false false :; do
24405 cat >conf$$subs.sed <<_ACEOF
24406 SHELL!$SHELL$ac_delim
24407 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24408 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24409 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24410 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24411 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24412 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24413 exec_prefix!$exec_prefix$ac_delim
24414 prefix!$prefix$ac_delim
24415 program_transform_name!$program_transform_name$ac_delim
24416 bindir!$bindir$ac_delim
24417 sbindir!$sbindir$ac_delim
24418 libexecdir!$libexecdir$ac_delim
24419 datarootdir!$datarootdir$ac_delim
24420 datadir!$datadir$ac_delim
24421 sysconfdir!$sysconfdir$ac_delim
24422 sharedstatedir!$sharedstatedir$ac_delim
24423 localstatedir!$localstatedir$ac_delim
24424 includedir!$includedir$ac_delim
24425 oldincludedir!$oldincludedir$ac_delim
24426 docdir!$docdir$ac_delim
24427 infodir!$infodir$ac_delim
24428 htmldir!$htmldir$ac_delim
24429 dvidir!$dvidir$ac_delim
24430 pdfdir!$pdfdir$ac_delim
24431 psdir!$psdir$ac_delim
24432 libdir!$libdir$ac_delim
24433 localedir!$localedir$ac_delim
24434 mandir!$mandir$ac_delim
24435 DEFS!$DEFS$ac_delim
24436 ECHO_C!$ECHO_C$ac_delim
24437 ECHO_N!$ECHO_N$ac_delim
24438 ECHO_T!$ECHO_T$ac_delim
24439 LIBS!$LIBS$ac_delim
24440 build_alias!$build_alias$ac_delim
24441 host_alias!$host_alias$ac_delim
24442 target_alias!$target_alias$ac_delim
24443 MAINT!$MAINT$ac_delim
24444 build!$build$ac_delim
24445 build_cpu!$build_cpu$ac_delim
24446 build_vendor!$build_vendor$ac_delim
24447 build_os!$build_os$ac_delim
24448 host!$host$ac_delim
24449 host_cpu!$host_cpu$ac_delim
24450 host_vendor!$host_vendor$ac_delim
24451 host_os!$host_os$ac_delim
24452 CC!$CC$ac_delim
24453 CFLAGS!$CFLAGS$ac_delim
24454 LDFLAGS!$LDFLAGS$ac_delim
24455 CPPFLAGS!$CPPFLAGS$ac_delim
24456 ac_ct_CC!$ac_ct_CC$ac_delim
24457 EXEEXT!$EXEEXT$ac_delim
24458 OBJEXT!$OBJEXT$ac_delim
24459 CPP!$CPP$ac_delim
24460 GREP!$GREP$ac_delim
24461 EGREP!$EGREP$ac_delim
24462 LN_S!$LN_S$ac_delim
24463 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24464 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24465 INSTALL_DATA!$INSTALL_DATA$ac_delim
24466 RANLIB!$RANLIB$ac_delim
24467 INSTALL_INFO!$INSTALL_INFO$ac_delim
24468 GZIP_PROG!$GZIP_PROG$ac_delim
24469 LIBSOUND!$LIBSOUND$ac_delim
24470 PKG_CONFIG!$PKG_CONFIG$ac_delim
24471 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24472 ALSA_LIBS!$ALSA_LIBS$ac_delim
24473 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24474 SET_MAKE!$SET_MAKE$ac_delim
24475 XMKMF!$XMKMF$ac_delim
24476 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24477 GTK_LIBS!$GTK_LIBS$ac_delim
24478 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24479 XFT_LIBS!$XFT_LIBS$ac_delim
24480 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24481 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24482 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24483 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24484 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24485 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24486 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24487 ALLOCA!$ALLOCA$ac_delim
24488 liblockfile!$liblockfile$ac_delim
24489 LIBOBJS!$LIBOBJS$ac_delim
24490 NEED_SETGID!$NEED_SETGID$ac_delim
24491 KMEM_GROUP!$KMEM_GROUP$ac_delim
24492 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24493 GETOPT_H!$GETOPT_H$ac_delim
24494 GETOPTOBJS!$GETOPTOBJS$ac_delim
24495 version!$version$ac_delim
24496 configuration!$configuration$ac_delim
24497 canonical!$canonical$ac_delim
24498 srcdir!$srcdir$ac_delim
24499 lispdir!$lispdir$ac_delim
24500 locallisppath!$locallisppath$ac_delim
24501 lisppath!$lisppath$ac_delim
24502 x_default_search_path!$x_default_search_path$ac_delim
24503 _ACEOF
24504
24505 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24506 break
24507 elif $ac_last_try; then
24508 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24509 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24510 { (exit 1); exit 1; }; }
24511 else
24512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24513 fi
24514 done
24515
24516 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24517 if test -n "$ac_eof"; then
24518 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24519 ac_eof=`expr $ac_eof + 1`
24520 fi
24521
24522 cat >>$CONFIG_STATUS <<_ACEOF
24523 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24525 _ACEOF
24526 sed '
24527 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24528 s/^/s,@/; s/!/@,|#_!!_#|/
24529 :n
24530 t n
24531 s/'"$ac_delim"'$/,g/; t
24532 s/$/\\/; p
24533 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24534 ' >>$CONFIG_STATUS <conf$$subs.sed
24535 rm -f conf$$subs.sed
24536 cat >>$CONFIG_STATUS <<_ACEOF
24537 CEOF$ac_eof
24538 _ACEOF
24539
24540
24541 ac_delim='%!_!# '
24542 for ac_last_try in false false false false false :; do
24543 cat >conf$$subs.sed <<_ACEOF
24544 etcdir!$etcdir$ac_delim
24545 archlibdir!$archlibdir$ac_delim
24546 bitmapdir!$bitmapdir$ac_delim
24547 gamedir!$gamedir$ac_delim
24548 gameuser!$gameuser$ac_delim
24549 c_switch_system!$c_switch_system$ac_delim
24550 c_switch_machine!$c_switch_machine$ac_delim
24551 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24552 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24553 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24554 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24555 machfile!$machfile$ac_delim
24556 opsysfile!$opsysfile$ac_delim
24557 carbon_appdir!$carbon_appdir$ac_delim
24558 LTLIBOBJS!$LTLIBOBJS$ac_delim
24559 _ACEOF
24560
24561 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24562 break
24563 elif $ac_last_try; then
24564 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24565 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24566 { (exit 1); exit 1; }; }
24567 else
24568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24569 fi
24570 done
24571
24572 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24573 if test -n "$ac_eof"; then
24574 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24575 ac_eof=`expr $ac_eof + 1`
24576 fi
24577
24578 cat >>$CONFIG_STATUS <<_ACEOF
24579 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24581 _ACEOF
24582 sed '
24583 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24584 s/^/s,@/; s/!/@,|#_!!_#|/
24585 :n
24586 t n
24587 s/'"$ac_delim"'$/,g/; t
24588 s/$/\\/; p
24589 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24590 ' >>$CONFIG_STATUS <conf$$subs.sed
24591 rm -f conf$$subs.sed
24592 cat >>$CONFIG_STATUS <<_ACEOF
24593 :end
24594 s/|#_!!_#|//g
24595 CEOF$ac_eof
24596 _ACEOF
24597
24598
24599 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24600 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24601 # trailing colons and then remove the whole line if VPATH becomes empty
24602 # (actually we leave an empty line to preserve line numbers).
24603 if test "x$srcdir" = x.; then
24604 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24605 s/:*\$(srcdir):*/:/
24606 s/:*\${srcdir}:*/:/
24607 s/:*@srcdir@:*/:/
24608 s/^\([^=]*=[ ]*\):*/\1/
24609 s/:*$//
24610 s/^[^=]*=[ ]*$//
24611 }'
24612 fi
24613
24614 cat >>$CONFIG_STATUS <<\_ACEOF
24615 fi # test -n "$CONFIG_FILES"
24616
24617
24618 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24619 do
24620 case $ac_tag in
24621 :[FHLC]) ac_mode=$ac_tag; continue;;
24622 esac
24623 case $ac_mode$ac_tag in
24624 :[FHL]*:*);;
24625 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24626 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24627 { (exit 1); exit 1; }; };;
24628 :[FH]-) ac_tag=-:-;;
24629 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24630 esac
24631 ac_save_IFS=$IFS
24632 IFS=:
24633 set x $ac_tag
24634 IFS=$ac_save_IFS
24635 shift
24636 ac_file=$1
24637 shift
24638
24639 case $ac_mode in
24640 :L) ac_source=$1;;
24641 :[FH])
24642 ac_file_inputs=
24643 for ac_f
24644 do
24645 case $ac_f in
24646 -) ac_f="$tmp/stdin";;
24647 *) # Look for the file first in the build tree, then in the source tree
24648 # (if the path is not absolute). The absolute path cannot be DOS-style,
24649 # because $ac_f cannot contain `:'.
24650 test -f "$ac_f" ||
24651 case $ac_f in
24652 [\\/$]*) false;;
24653 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24654 esac ||
24655 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24656 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24657 { (exit 1); exit 1; }; };;
24658 esac
24659 ac_file_inputs="$ac_file_inputs $ac_f"
24660 done
24661
24662 # Let's still pretend it is `configure' which instantiates (i.e., don't
24663 # use $as_me), people would be surprised to read:
24664 # /* config.h. Generated by config.status. */
24665 configure_input="Generated from "`IFS=:
24666 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24667 if test x"$ac_file" != x-; then
24668 configure_input="$ac_file. $configure_input"
24669 { echo "$as_me:$LINENO: creating $ac_file" >&5
24670 echo "$as_me: creating $ac_file" >&6;}
24671 fi
24672
24673 case $ac_tag in
24674 *:-:* | *:-) cat >"$tmp/stdin";;
24675 esac
24676 ;;
24677 esac
24678
24679 ac_dir=`$as_dirname -- "$ac_file" ||
24680 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24681 X"$ac_file" : 'X\(//\)[^/]' \| \
24682 X"$ac_file" : 'X\(//\)$' \| \
24683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24684 echo X"$ac_file" |
24685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24686 s//\1/
24687 q
24688 }
24689 /^X\(\/\/\)[^/].*/{
24690 s//\1/
24691 q
24692 }
24693 /^X\(\/\/\)$/{
24694 s//\1/
24695 q
24696 }
24697 /^X\(\/\).*/{
24698 s//\1/
24699 q
24700 }
24701 s/.*/./; q'`
24702 { as_dir="$ac_dir"
24703 case $as_dir in #(
24704 -*) as_dir=./$as_dir;;
24705 esac
24706 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24707 as_dirs=
24708 while :; do
24709 case $as_dir in #(
24710 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24711 *) as_qdir=$as_dir;;
24712 esac
24713 as_dirs="'$as_qdir' $as_dirs"
24714 as_dir=`$as_dirname -- "$as_dir" ||
24715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24716 X"$as_dir" : 'X\(//\)[^/]' \| \
24717 X"$as_dir" : 'X\(//\)$' \| \
24718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24719 echo X"$as_dir" |
24720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24721 s//\1/
24722 q
24723 }
24724 /^X\(\/\/\)[^/].*/{
24725 s//\1/
24726 q
24727 }
24728 /^X\(\/\/\)$/{
24729 s//\1/
24730 q
24731 }
24732 /^X\(\/\).*/{
24733 s//\1/
24734 q
24735 }
24736 s/.*/./; q'`
24737 test -d "$as_dir" && break
24738 done
24739 test -z "$as_dirs" || eval "mkdir $as_dirs"
24740 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24741 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24742 { (exit 1); exit 1; }; }; }
24743 ac_builddir=.
24744
24745 case "$ac_dir" in
24746 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24747 *)
24748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24749 # A ".." for each directory in $ac_dir_suffix.
24750 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24751 case $ac_top_builddir_sub in
24752 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24753 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24754 esac ;;
24755 esac
24756 ac_abs_top_builddir=$ac_pwd
24757 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24758 # for backward compatibility:
24759 ac_top_builddir=$ac_top_build_prefix
24760
24761 case $srcdir in
24762 .) # We are building in place.
24763 ac_srcdir=.
24764 ac_top_srcdir=$ac_top_builddir_sub
24765 ac_abs_top_srcdir=$ac_pwd ;;
24766 [\\/]* | ?:[\\/]* ) # Absolute name.
24767 ac_srcdir=$srcdir$ac_dir_suffix;
24768 ac_top_srcdir=$srcdir
24769 ac_abs_top_srcdir=$srcdir ;;
24770 *) # Relative name.
24771 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24772 ac_top_srcdir=$ac_top_build_prefix$srcdir
24773 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24774 esac
24775 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24776
24777
24778 case $ac_mode in
24779 :F)
24780 #
24781 # CONFIG_FILE
24782 #
24783
24784 case $INSTALL in
24785 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24786 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24787 esac
24788 _ACEOF
24789
24790 cat >>$CONFIG_STATUS <<\_ACEOF
24791 # If the template does not know about datarootdir, expand it.
24792 # FIXME: This hack should be removed a few years after 2.60.
24793 ac_datarootdir_hack=; ac_datarootdir_seen=
24794
24795 case `sed -n '/datarootdir/ {
24796 p
24797 q
24798 }
24799 /@datadir@/p
24800 /@docdir@/p
24801 /@infodir@/p
24802 /@localedir@/p
24803 /@mandir@/p
24804 ' $ac_file_inputs` in
24805 *datarootdir*) ac_datarootdir_seen=yes;;
24806 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24807 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24808 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24809 _ACEOF
24810 cat >>$CONFIG_STATUS <<_ACEOF
24811 ac_datarootdir_hack='
24812 s&@datadir@&$datadir&g
24813 s&@docdir@&$docdir&g
24814 s&@infodir@&$infodir&g
24815 s&@localedir@&$localedir&g
24816 s&@mandir@&$mandir&g
24817 s&\\\${datarootdir}&$datarootdir&g' ;;
24818 esac
24819 _ACEOF
24820
24821 # Neutralize VPATH when `$srcdir' = `.'.
24822 # Shell code in configure.ac might set extrasub.
24823 # FIXME: do we really want to maintain this feature?
24824 cat >>$CONFIG_STATUS <<_ACEOF
24825 sed "$ac_vpsub
24826 $extrasub
24827 _ACEOF
24828 cat >>$CONFIG_STATUS <<\_ACEOF
24829 :t
24830 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24831 s&@configure_input@&$configure_input&;t t
24832 s&@top_builddir@&$ac_top_builddir_sub&;t t
24833 s&@srcdir@&$ac_srcdir&;t t
24834 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24835 s&@top_srcdir@&$ac_top_srcdir&;t t
24836 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24837 s&@builddir@&$ac_builddir&;t t
24838 s&@abs_builddir@&$ac_abs_builddir&;t t
24839 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24840 s&@INSTALL@&$ac_INSTALL&;t t
24841 $ac_datarootdir_hack
24842 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24843
24844 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24845 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24846 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24847 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24848 which seems to be undefined. Please make sure it is defined." >&5
24849 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24850 which seems to be undefined. Please make sure it is defined." >&2;}
24851
24852 rm -f "$tmp/stdin"
24853 case $ac_file in
24854 -) cat "$tmp/out"; rm -f "$tmp/out";;
24855 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24856 esac
24857 ;;
24858 :H)
24859 #
24860 # CONFIG_HEADER
24861 #
24862 _ACEOF
24863
24864 # Transform confdefs.h into a sed script `conftest.defines', that
24865 # substitutes the proper values into config.h.in to produce config.h.
24866 rm -f conftest.defines conftest.tail
24867 # First, append a space to every undef/define line, to ease matching.
24868 echo 's/$/ /' >conftest.defines
24869 # Then, protect against being on the right side of a sed subst, or in
24870 # an unquoted here document, in config.status. If some macros were
24871 # called several times there might be several #defines for the same
24872 # symbol, which is useless. But do not sort them, since the last
24873 # AC_DEFINE must be honored.
24874 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24875 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24876 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24877 # PARAMS is the parameter list in the macro definition--in most cases, it's
24878 # just an empty string.
24879 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24880 ac_dB='\\)[ (].*,\\1define\\2'
24881 ac_dC=' '
24882 ac_dD=' ,'
24883
24884 uniq confdefs.h |
24885 sed -n '
24886 t rset
24887 :rset
24888 s/^[ ]*#[ ]*define[ ][ ]*//
24889 t ok
24890 d
24891 :ok
24892 s/[\\&,]/\\&/g
24893 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24894 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24895 ' >>conftest.defines
24896
24897 # Remove the space that was appended to ease matching.
24898 # Then replace #undef with comments. This is necessary, for
24899 # example, in the case of _POSIX_SOURCE, which is predefined and required
24900 # on some systems where configure will not decide to define it.
24901 # (The regexp can be short, since the line contains either #define or #undef.)
24902 echo 's/ $//
24903 s,^[ #]*u.*,/* & */,' >>conftest.defines
24904
24905 # Break up conftest.defines:
24906 ac_max_sed_lines=50
24907
24908 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24909 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24910 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24911 # et cetera.
24912 ac_in='$ac_file_inputs'
24913 ac_out='"$tmp/out1"'
24914 ac_nxt='"$tmp/out2"'
24915
24916 while :
24917 do
24918 # Write a here document:
24919 cat >>$CONFIG_STATUS <<_ACEOF
24920 # First, check the format of the line:
24921 cat >"\$tmp/defines.sed" <<\\CEOF
24922 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24923 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24924 b
24925 :def
24926 _ACEOF
24927 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24928 echo 'CEOF
24929 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24930 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24931 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24932 grep . conftest.tail >/dev/null || break
24933 rm -f conftest.defines
24934 mv conftest.tail conftest.defines
24935 done
24936 rm -f conftest.defines conftest.tail
24937
24938 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24939 cat >>$CONFIG_STATUS <<\_ACEOF
24940 if test x"$ac_file" != x-; then
24941 echo "/* $configure_input */" >"$tmp/config.h"
24942 cat "$ac_result" >>"$tmp/config.h"
24943 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24944 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24945 echo "$as_me: $ac_file is unchanged" >&6;}
24946 else
24947 rm -f $ac_file
24948 mv "$tmp/config.h" $ac_file
24949 fi
24950 else
24951 echo "/* $configure_input */"
24952 cat "$ac_result"
24953 fi
24954 rm -f "$tmp/out12"
24955 ;;
24956
24957 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24958 echo "$as_me: executing $ac_file commands" >&6;}
24959 ;;
24960 esac
24961
24962
24963 case $ac_file$ac_mode in
24964 "default":C)
24965
24966 ### Make the necessary directories, if they don't exist.
24967 for dir in etc lisp ; do
24968 test -d ${dir} || mkdir ${dir}
24969 done
24970
24971 # Build src/Makefile from ${srcdir}/src/Makefile.c
24972 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24973 # This must be done after src/config.h is built, since we rely on that file.
24974
24975 # Now get this: Some word that is part of the ${srcdir} directory name
24976 # or the ${configuration} value might, just might, happen to be an
24977 # identifier like `sun4' or `i386' or something, and be predefined by
24978 # the C preprocessor to some helpful value like 1, or maybe the empty
24979 # string. Needless to say consequent macro substitutions are less
24980 # than conducive to the makefile finding the correct directory.
24981 undefs="`echo $top_srcdir $configuration $canonical |
24982 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24983 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24984 `"
24985
24986 echo creating src/epaths.h
24987 ${MAKE-make} epaths-force
24988
24989 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24990 # `..' to `. .' unless invoked with -traditional
24991
24992 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24993 CPPFLAGS="$CPPFLAGS -traditional"
24994 fi
24995
24996 echo creating lib-src/Makefile
24997 ( cd lib-src
24998 rm -f junk.c junk1.c junk2.c
24999 sed -e '/start of cpp stuff/q' \
25000 < Makefile.c > junk1.c
25001 sed -e '1,/start of cpp stuff/d'\
25002 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25003 < Makefile.c > junk.c
25004 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25005 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25006 cat junk1.c junk2.c > Makefile.new
25007 rm -f junk.c junk1.c junk2.c
25008 chmod 444 Makefile.new
25009 mv -f Makefile.new Makefile
25010 )
25011
25012 echo creating src/Makefile
25013 ( cd src
25014 rm -f junk.c junk1.c junk2.c
25015 sed -e '/start of cpp stuff/q' \
25016 < Makefile.c > junk1.c
25017 sed -e '1,/start of cpp stuff/d'\
25018 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25019 < Makefile.c > junk.c
25020 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25021 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25022 fi
25023 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25024 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25025 cat junk1.c junk2.c > Makefile.new
25026 rm -f junk.c junk1.c junk2.c
25027 chmod 444 Makefile.new
25028 mv -f Makefile.new Makefile
25029 )
25030
25031 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25032 echo creating src/.gdbinit
25033 echo source $srcdir/src/.gdbinit > src/.gdbinit
25034 fi
25035
25036 # This is how we know whether to re-run configure in certain cases.
25037 touch src/config.stamp
25038
25039 ;;
25040
25041 esac
25042 done # for ac_tag
25043
25044
25045 { (exit 0); exit 0; }
25046 _ACEOF
25047 chmod +x $CONFIG_STATUS
25048 ac_clean_files=$ac_clean_files_save
25049
25050
25051 # configure is writing to config.log, and then calls config.status.
25052 # config.status does its own redirection, appending to config.log.
25053 # Unfortunately, on DOS this fails, as config.log is still kept open
25054 # by configure, so config.status won't be able to write to it; its
25055 # output is simply discarded. So we exec the FD to /dev/null,
25056 # effectively closing config.log, so it can be properly (re)opened and
25057 # appended to by config.status. When coming back to configure, we
25058 # need to make the FD available again.
25059 if test "$no_create" != yes; then
25060 ac_cs_success=:
25061 ac_config_status_args=
25062 test "$silent" = yes &&
25063 ac_config_status_args="$ac_config_status_args --quiet"
25064 exec 5>/dev/null
25065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25066 exec 5>>config.log
25067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25068 # would make configure fail if this is the last instruction.
25069 $ac_cs_success || { (exit 1); exit 1; }
25070 fi
25071
25072