]> code.delx.au - gnu-emacs/blob - configure
Merge from emacs--devo--0
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 FREETYPE_CFLAGS
695 FREETYPE_LIBS
696 FONTCONFIG_CFLAGS
697 FONTCONFIG_LIBS
698 HAVE_LIBOTF
699 LIBOTF_CFLAGS
700 LIBOTF_LIBS
701 ALLOCA
702 liblockfile
703 LIBOBJS
704 NEED_SETGID
705 KMEM_GROUP
706 GETLOADAVG_LIBS
707 GETOPT_H
708 GETOPTOBJS
709 version
710 configuration
711 canonical
712 srcdir
713 lispdir
714 locallisppath
715 lisppath
716 x_default_search_path
717 etcdir
718 archlibdir
719 bitmapdir
720 gamedir
721 gameuser
722 c_switch_system
723 c_switch_machine
724 LD_SWITCH_X_SITE
725 LD_SWITCH_X_SITE_AUX
726 C_SWITCH_X_SITE
727 X_TOOLKIT_TYPE
728 machfile
729 opsysfile
730 carbon_appdir
731 LTLIBOBJS'
732 ac_subst_files=''
733 ac_precious_vars='build_alias
734 host_alias
735 target_alias
736 CC
737 CFLAGS
738 LDFLAGS
739 LIBS
740 CPPFLAGS
741 CPP
742 XMKMF'
743
744
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
764
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
790
791 ac_prev=
792 ac_dashdash=
793 for ac_option
794 do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
801
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
806
807 # Accept the important Cygnus configure options, so we can diagnose typos.
808
809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
817
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
832
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
837
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
863
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
1069
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
1078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1096
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1110
1111 *)
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 ;;
1118
1119 esac
1120 done
1121
1122 if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1126 fi
1127
1128 # Be sure to have absolute directory names.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1133 do
1134 eval ac_val=\$$ac_var
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1141 done
1142
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1149
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159 fi
1160
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164 test "$silent" = yes && exec 6>/dev/null
1165
1166
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1175
1176
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 echo X"$0" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\).*/{
1200 s//\1/
1201 q
1202 }
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1207 fi
1208 else
1209 ac_srcdir_defaulted=no
1210 fi
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1215 fi
1216 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224 fi
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1237
1238 #
1239 # Report the --help message.
1240 #
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures this package to adapt to many kinds of systems.
1246
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252 Defaults for the options are specified in brackets.
1253
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1270
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1275
1276 For better control, use the options below.
1277
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298 _ACEOF
1299
1300 cat <<\_ACEOF
1301
1302 Program names:
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1306
1307 X features:
1308 --x-includes=DIR X include files are in DIR
1309 --x-libraries=DIR X library files are in DIR
1310
1311 System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 _ACEOF
1315 fi
1316
1317 if test -n "$ac_init_help"; then
1318
1319 cat <<\_ACEOF
1320
1321 Optional Features:
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-carbon-app[=DIR] [DIR=/Application]
1325 specify install directory for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search for lisp files
1332 specific to this site
1333 --disable-largefile omit support for large files
1334
1335 Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --without-gcc don't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version 5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server host
1343 --without-sound don't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit
1345 (KIT = yes/lucid/athena/motif/gtk/no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lungif for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1360
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1370 XMKMF Path to xmkmf, Makefile generator for X Window System
1371
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1374
1375 _ACEOF
1376 ac_status=$?
1377 fi
1378
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1384
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *)
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1400
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1430 fi
1431
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 configure
1436 generated by GNU Autoconf 2.61
1437
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1444 fi
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1448
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1451
1452 $ $0 $@
1453
1454 _ACEOF
1455 exec 5>>config.log
1456 {
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1461
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1467
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1470
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1478
1479 _ASUNAME
1480
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1489
1490 } >&5
1491
1492 cat >&5 <<_ACEOF
1493
1494
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1498
1499 _ACEOF
1500
1501
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1512 do
1513 for ac_arg
1514 do
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1525 2)
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1538 ;;
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1541 fi
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1543 ;;
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1549
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1557 {
1558 echo
1559
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1567 (
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1589 *)
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1591 ;;
1592 esac |
1593 sort
1594 )
1595 echo
1596
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1604 do
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1612
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1621 do
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1629 fi
1630
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1640 fi
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1648 ' 0
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1653
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1656
1657 # Predefined preprocessor variables.
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1682
1683
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1693 fi
1694 shift
1695 for ac_site_file
1696 do
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1702 fi
1703 done
1704
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1715 fi
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1720 fi
1721
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1726 # value.
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1734 set,)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,set)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,);;
1743 *)
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1748 echo "$as_me: former value: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1750 echo "$as_me: current value: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1752 fi;;
1753 esac
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1756 case $ac_new_val in
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1759 esac
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 esac
1764 fi
1765 done
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1772 fi
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790 ac_ext=c
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795
1796
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1798
1799
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s,x,x', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1809 _ACEOF
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1811 rm -f conftest.sed
1812
1813
1814 lispdir='${datadir}/emacs/${version}/lisp'
1815 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1816 '${datadir}/emacs/site-lisp'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1818 etcdir='${datadir}/emacs/${version}/etc'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs/${version}/etc'
1821 gamedir='${localstatedir}/games/emacs'
1822
1823 gameuser=games
1824
1825
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1828 withval=$with_gcc;
1829 fi
1830
1831
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1837 _ACEOF
1838
1839 else :
1840 fi
1841 else
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1844 _ACEOF
1845
1846 fi
1847
1848
1849
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1853 #define KERBEROS 1
1854 _ACEOF
1855
1856 fi
1857
1858
1859
1860 # Check whether --with-kerberos5 was given.
1861 if test "${with_kerberos5+set}" = set; then
1862 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1863 if test "${with_kerberos+set}" != set; then
1864 with_kerberos=yes
1865 cat >>confdefs.h <<\_ACEOF
1866 #define KERBEROS 1
1867 _ACEOF
1868
1869 fi
1870 fi
1871
1872 cat >>confdefs.h <<\_ACEOF
1873 #define KERBEROS5 1
1874 _ACEOF
1875
1876 fi
1877
1878
1879 # Check whether --with-hesiod was given.
1880 if test "${with_hesiod+set}" = set; then
1881 withval=$with_hesiod;
1882 cat >>confdefs.h <<\_ACEOF
1883 #define HESIOD 1
1884 _ACEOF
1885
1886 fi
1887
1888
1889
1890 # Check whether --with-sound was given.
1891 if test "${with_sound+set}" = set; then
1892 withval=$with_sound;
1893 fi
1894
1895
1896
1897 # Check whether --with-x-toolkit was given.
1898 if test "${with_x_toolkit+set}" = set; then
1899 withval=$with_x_toolkit; case "${withval}" in
1900 y | ye | yes ) val=athena ;;
1901 n | no ) val=no ;;
1902 l | lu | luc | luci | lucid ) val=lucid ;;
1903 a | at | ath | athe | athen | athena ) val=athena ;;
1904 m | mo | mot | moti | motif ) val=motif ;;
1905 g | gt | gtk ) val=gtk ;;
1906 * )
1907 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1908 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1909 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1910 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1911 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1912 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1913 { (exit 1); exit 1; }; }
1914 ;;
1915 esac
1916 with_x_toolkit=$val
1917
1918 fi
1919
1920
1921 # Check whether --with-xpm was given.
1922 if test "${with_xpm+set}" = set; then
1923 withval=$with_xpm;
1924 fi
1925
1926
1927 # Check whether --with-jpeg was given.
1928 if test "${with_jpeg+set}" = set; then
1929 withval=$with_jpeg;
1930 fi
1931
1932
1933 # Check whether --with-tiff was given.
1934 if test "${with_tiff+set}" = set; then
1935 withval=$with_tiff;
1936 fi
1937
1938
1939 # Check whether --with-gif was given.
1940 if test "${with_gif+set}" = set; then
1941 withval=$with_gif;
1942 fi
1943
1944
1945 # Check whether --with-png was given.
1946 if test "${with_png+set}" = set; then
1947 withval=$with_png;
1948 fi
1949
1950
1951 # Check whether --with-freetype was given.
1952 if test "${with_freetype+set}" = set; then
1953 withval=$with_freetype;
1954 fi
1955
1956
1957 # Check whether --with-xft was given.
1958 if test "${with_xft+set}" = set; then
1959 withval=$with_xft;
1960 fi
1961
1962
1963 # Check whether --with-gtk was given.
1964 if test "${with_gtk+set}" = set; then
1965 withval=$with_gtk;
1966 fi
1967
1968
1969 # Check whether --with-pkg-config-prog was given.
1970 if test "${with_pkg_config_prog+set}" = set; then
1971 withval=$with_pkg_config_prog;
1972 fi
1973
1974
1975 # Check whether --with-toolkit-scroll-bars was given.
1976 if test "${with_toolkit_scroll_bars+set}" = set; then
1977 withval=$with_toolkit_scroll_bars;
1978 fi
1979
1980
1981 # Check whether --with-xim was given.
1982 if test "${with_xim+set}" = set; then
1983 withval=$with_xim;
1984 fi
1985
1986
1987 # Check whether --with-carbon was given.
1988 if test "${with_carbon+set}" = set; then
1989 withval=$with_carbon;
1990 fi
1991
1992 # Check whether --enable-carbon-app was given.
1993 if test "${enable_carbon_app+set}" = set; then
1994 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1995 fi
1996
1997
1998 # Check whether --enable-font-backend was given.
1999 if test "${enable_font_backend+set}" = set; then
2000 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2001 else
2002 USE_FONT_BACKEND=no
2003 fi
2004
2005
2006 # Check whether --enable-asserts was given.
2007 if test "${enable_asserts+set}" = set; then
2008 enableval=$enable_asserts; USE_XASSERTS=$enableval
2009 else
2010 USE_XASSERTS=no
2011 fi
2012
2013
2014 # Check whether --enable-maintainer-mode was given.
2015 if test "${enable_maintainer_mode+set}" = set; then
2016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2017 else
2018 USE_MAINTAINER_MODE=no
2019 fi
2020
2021 if test $USE_MAINTAINER_MODE = yes; then
2022 MAINT=
2023 else
2024 MAINT=#
2025 fi
2026
2027
2028 # Check whether --enable-locallisppath was given.
2029 if test "${enable_locallisppath+set}" = set; then
2030 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2031 locallisppath=
2032 elif test "${enableval}" != "yes"; then
2033 locallisppath=${enableval}
2034 fi
2035 fi
2036
2037
2038 #### Make srcdir absolute, if it isn't already. It's important to
2039 #### avoid running the path through pwd unnecessarily, since pwd can
2040 #### give you automounter prefixes, which can go away. We do all this
2041 #### so Emacs can find its files when run uninstalled.
2042 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2043 unset CDPATH
2044 case "${srcdir}" in
2045 /* ) ;;
2046 . )
2047 ## We may be able to use the $PWD environment variable to make this
2048 ## absolute. But sometimes PWD is inaccurate.
2049 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2050 ## but that tested only for a well-formed and valid PWD,
2051 ## it did not object when PWD was well-formed and valid but just wrong.
2052 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2053 then
2054 srcdir="$PWD"
2055 else
2056 srcdir="`(cd ${srcdir}; pwd)`"
2057 fi
2058 ;;
2059 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2060 esac
2061
2062 #### Check if the source directory already has a configured system in it.
2063 if test `pwd` != `(cd ${srcdir} && pwd)` \
2064 && test -f "${srcdir}/src/config.h" ; then
2065 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2066 as a build directory right now; it has been configured in its own
2067 right. To configure in another directory as well, you MUST
2068 use GNU make. If you do not have GNU make, then you must
2069 now do \`make distclean' in ${srcdir},
2070 and then run $0 again." >&5
2071 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2072 as a build directory right now; it has been configured in its own
2073 right. To configure in another directory as well, you MUST
2074 use GNU make. If you do not have GNU make, then you must
2075 now do \`make distclean' in ${srcdir},
2076 and then run $0 again." >&2;}
2077 fi
2078
2079 #### Given the configuration name, set machfile and opsysfile to the
2080 #### names of the m/*.h and s/*.h files we should use.
2081
2082 ### Canonicalize the configuration name.
2083
2084 ac_aux_dir=
2085 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2086 if test -f "$ac_dir/install-sh"; then
2087 ac_aux_dir=$ac_dir
2088 ac_install_sh="$ac_aux_dir/install-sh -c"
2089 break
2090 elif test -f "$ac_dir/install.sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install.sh -c"
2093 break
2094 elif test -f "$ac_dir/shtool"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/shtool install -c"
2097 break
2098 fi
2099 done
2100 if test -z "$ac_aux_dir"; then
2101 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2102 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2103 { (exit 1); exit 1; }; }
2104 fi
2105
2106 # These three variables are undocumented and unsupported,
2107 # and are intended to be withdrawn in a future Autoconf release.
2108 # They can cause serious problems if a builder's source tree is in a directory
2109 # whose full name contains unusual characters.
2110 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2111 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2112 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113
2114
2115 # Make sure we can run config.sub.
2116 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2117 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2119 { (exit 1); exit 1; }; }
2120
2121 { echo "$as_me:$LINENO: checking build system type" >&5
2122 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2123 if test "${ac_cv_build+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 ac_build_alias=$build_alias
2127 test "x$ac_build_alias" = x &&
2128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2129 test "x$ac_build_alias" = x &&
2130 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132 { (exit 1); exit 1; }; }
2133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2134 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2136 { (exit 1); exit 1; }; }
2137
2138 fi
2139 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2140 echo "${ECHO_T}$ac_cv_build" >&6; }
2141 case $ac_cv_build in
2142 *-*-*) ;;
2143 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144 echo "$as_me: error: invalid value of canonical build" >&2;}
2145 { (exit 1); exit 1; }; };;
2146 esac
2147 build=$ac_cv_build
2148 ac_save_IFS=$IFS; IFS='-'
2149 set x $ac_cv_build
2150 shift
2151 build_cpu=$1
2152 build_vendor=$2
2153 shift; shift
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2156 build_os=$*
2157 IFS=$ac_save_IFS
2158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2159
2160
2161 { echo "$as_me:$LINENO: checking host system type" >&5
2162 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_host+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 if test "x$host_alias" = x; then
2167 ac_cv_host=$ac_cv_build
2168 else
2169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2170 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
2173 fi
2174
2175 fi
2176 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177 echo "${ECHO_T}$ac_cv_host" >&6; }
2178 case $ac_cv_host in
2179 *-*-*) ;;
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181 echo "$as_me: error: invalid value of canonical host" >&2;}
2182 { (exit 1); exit 1; }; };;
2183 esac
2184 host=$ac_cv_host
2185 ac_save_IFS=$IFS; IFS='-'
2186 set x $ac_cv_host
2187 shift
2188 host_cpu=$1
2189 host_vendor=$2
2190 shift; shift
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2193 host_os=$*
2194 IFS=$ac_save_IFS
2195 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2196
2197
2198 canonical=$host
2199 configuration=${host_alias-$host}
2200
2201
2202
2203 ### If you add support for a new configuration, add code to this
2204 ### switch statement to recognize your configuration name and select
2205 ### the appropriate operating system and machine description files.
2206
2207 ### You would hope that you could choose an m/*.h file pretty much
2208 ### based on the machine portion of the configuration name, and an s-
2209 ### file based on the operating system portion. However, it turns out
2210 ### that each m/*.h file is pretty manufacturer-specific - for
2211 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2212 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2213 ### machines. So we basically have to have a special case for each
2214 ### configuration name.
2215 ###
2216 ### As far as handling version numbers on operating systems is
2217 ### concerned, make sure things will fail in a fixable way. If
2218 ### /etc/MACHINES doesn't say anything about version numbers, be
2219 ### prepared to handle anything reasonably. If version numbers
2220 ### matter, be sure /etc/MACHINES says something about it.
2221 ###
2222 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2223 ### "System V Release 4"; he writes, "The old convention encouraged
2224 ### confusion between `system' and `release' levels'."
2225
2226 machine='' opsys='' unported=no
2227 case "${canonical}" in
2228
2229 ## FreeBSD ports
2230 *-*-freebsd* )
2231 opsys=freebsd
2232 case "${canonical}" in
2233 alpha*-*-freebsd*) machine=alpha ;;
2234 ia64-*-freebsd*) machine=ia64 ;;
2235 sparc64-*-freebsd*) machine=sparc ;;
2236 powerpc-*-freebsd*) machine=macppc ;;
2237 i[3456]86-*-freebsd*) machine=intel386 ;;
2238 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2239 esac
2240 ;;
2241
2242 ## NetBSD ports
2243 *-*-netbsd* )
2244 opsys=netbsd
2245 if test -f /usr/lib/crti.o; then
2246
2247 cat >>confdefs.h <<\_ACEOF
2248 #define HAVE_CRTIN
2249 _ACEOF
2250
2251 fi
2252
2253 case "${canonical}" in
2254 alpha*-*-netbsd*) machine=alpha ;;
2255 i[3456]86-*-netbsd*) machine=intel386 ;;
2256 m68k-*-netbsd*)
2257 # This is somewhat bogus.
2258 machine=hp9000s300 ;;
2259 mips-*-netbsd*) machine=pmax ;;
2260 mipsel-*-netbsd*) machine=pmax ;;
2261 mipseb-*-netbsd*) machine=pmax ;;
2262 ns32k-*-netbsd*) machine=ns32000 ;;
2263 powerpc-*-netbsd*) machine=macppc ;;
2264 sparc*-*-netbsd*) machine=sparc ;;
2265 vax-*-netbsd*) machine=vax ;;
2266 arm-*-netbsd*) machine=arm ;;
2267 x86_64-*-netbsd*) machine=amdx86-64 ;;
2268 hppa-*-netbsd*) machine=hp800 ;;
2269 shle-*-netbsd*) machine=sh3el ;;
2270 esac
2271 ;;
2272
2273 ## OpenBSD ports
2274 *-*-openbsd* )
2275 opsys=openbsd
2276 case "${canonical}" in
2277 alpha*-*-openbsd*) machine=alpha ;;
2278 i386-*-openbsd*) machine=intel386 ;;
2279 x86_64-*-openbsd*) machine=amdx86-64 ;;
2280 m68k-*-openbsd*) machine=hp9000s300 ;;
2281 mipsel-*-openbsd*) machine=pmax ;;
2282 ns32k-*-openbsd*) machine=ns32000 ;;
2283 sparc-*-openbsd*) machine=sparc ;;
2284 vax-*-openbsd*) machine=vax ;;
2285 esac
2286 ;;
2287
2288 ## LynxOS ports
2289 *-*-lynxos* )
2290 opsys=lynxos
2291 case "${canonical}" in
2292 i[3456]86-*-lynxos*) machine=intel386 ;;
2293 powerpc-*-lynxos*) machine=powerpc ;;
2294 esac
2295 ;;
2296
2297 ## Acorn RISCiX:
2298 arm-acorn-riscix1.1* )
2299 machine=acorn opsys=riscix1-1
2300 ;;
2301 arm-acorn-riscix1.2* | arm-acorn-riscix )
2302 ## This name is riscix12 instead of riscix1.2
2303 ## to avoid a file name conflict on MSDOS.
2304 machine=acorn opsys=riscix12
2305 ;;
2306
2307 ## BSDI ports
2308 *-*-bsdi* )
2309 opsys=bsdi
2310 case "${canonical}" in
2311 i[345]86-*-bsdi*) machine=intel386 ;;
2312 sparc-*-bsdi*) machine=sparc ;;
2313 powerpc-*-bsdi*) machine=macppc ;;
2314 esac
2315 case "${canonical}" in
2316 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2317 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2318 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2319 *-*-bsdi3* ) opsys=bsdos3 ;;
2320 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2321 esac
2322 ;;
2323
2324 ## Alliant machines
2325 ## Strictly speaking, we need the version of the alliant operating
2326 ## system to choose the right machine file, but currently the
2327 ## configuration name doesn't tell us enough to choose the right
2328 ## one; we need to give alliants their own operating system name to
2329 ## do this right. When someone cares, they can help us.
2330 fx80-alliant-* )
2331 machine=alliant4 opsys=bsd4-2
2332 ;;
2333 i860-alliant-* )
2334 machine=alliant-2800 opsys=bsd4-3
2335 ;;
2336
2337 ## Alpha (DEC) machines.
2338 alpha*-dec-osf* )
2339 machine=alpha opsys=osf1
2340 # This is needed to find X11R6.1 libraries for certain tests.
2341 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2342 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2343 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2344 # due to non-traditional preprocessing with the current compiler
2345 # defaults. OSF 4 can also have that compiler version, and there
2346 # seems always to have been a usable /usr/bin/cpp.
2347 NON_GNU_CPP=/usr/bin/cpp
2348 case "${canonical}" in
2349 alpha*-dec-osf[5-9]*)
2350 opsys=osf5-0 ;;
2351 esac
2352 ;;
2353
2354 alpha*-*-linux-gnu* )
2355 machine=alpha opsys=gnu-linux
2356 ;;
2357
2358 arm*-*-linux-gnu* )
2359 machine=arm opsys=gnu-linux
2360 ;;
2361
2362 ## Altos 3068
2363 m68*-altos-sysv* )
2364 machine=altos opsys=usg5-2
2365 ;;
2366
2367 ## Amdahl UTS
2368 580-amdahl-sysv* )
2369 machine=amdahl opsys=usg5-2-2
2370 ;;
2371
2372 ## Apollo, Domain/OS
2373 m68*-apollo-* )
2374 machine=apollo opsys=bsd4-3
2375 ;;
2376
2377 ## AT&T 3b2, 3b5, 3b15, 3b20
2378 we32k-att-sysv* )
2379 machine=att3b opsys=usg5-2-2
2380 ;;
2381
2382 ## AT&T 3b1 - The Mighty Unix PC!
2383 m68*-att-sysv* )
2384 machine=7300 opsys=usg5-2-2
2385 ;;
2386
2387 ## Bull dpx20
2388 rs6000-bull-bosx* )
2389 machine=ibmrs6000 opsys=aix3-2
2390 ;;
2391
2392 ## Bull dpx2
2393 m68*-bull-sysv3* )
2394 machine=dpx2 opsys=usg5-3
2395 ;;
2396
2397 ## Bull sps7
2398 m68*-bull-sysv2* )
2399 machine=sps7 opsys=usg5-2
2400 ;;
2401
2402 ## CCI 5/32, 6/32 -- see "Tahoe".
2403
2404 ## Celerity
2405 ## I don't know what configuration name to use for this; config.sub
2406 ## doesn't seem to know anything about it. Hey, Celerity users, get
2407 ## in touch with us!
2408 celerity-celerity-bsd* )
2409 machine=celerity opsys=bsd4-2
2410 ;;
2411
2412 ## Clipper
2413 ## What operating systems does this chip run that Emacs has been
2414 ## tested on?
2415 clipper-* )
2416 machine=clipper
2417 ## We'll use the catch-all code at the bottom to guess the
2418 ## operating system.
2419 ;;
2420
2421 ## Compaq Nonstop
2422 mips-compaq-nonstopux* )
2423 machine=nonstopux opsys=nonstopux
2424 ;;
2425
2426 ## Convex
2427 *-convex-bsd* | *-convex-convexos* )
2428 machine=convex opsys=bsd4-3
2429 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2430 NON_GNU_CPP="cc -E -P"
2431 ;;
2432
2433 ## Cubix QBx/386
2434 i[3456]86-cubix-sysv* )
2435 machine=intel386 opsys=usg5-3
2436 ;;
2437
2438 ## Cydra 5
2439 cydra*-cydrome-sysv* )
2440 machine=cydra5 opsys=usg5-3
2441 ;;
2442
2443 ## Data General AViiON Machines
2444 ## DG changed naming conventions with the release of 5.4.4.10, they
2445 ## dropped the initial 5.4 but left the intervening R. Because of the
2446 ## R this shouldn't conflict with older versions of the OS (which I
2447 ## think were named like dgux4.*). In addition, DG new AViiONs series
2448 ## uses either Motorola M88k or Intel Pentium CPUs.
2449 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2450 machine=aviion opsys=dgux4
2451 ;;
2452 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2453 ## This name is dgux5-4-3 instead of dgux5-4r3
2454 ## to avoid a file name conflict on MSDOS.
2455 machine=aviion opsys=dgux5-4-3
2456 ;;
2457 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2458 machine=aviion opsys=dgux5-4r2
2459 ;;
2460 m88k-dg-dgux* )
2461 machine=aviion opsys=dgux
2462 ;;
2463
2464 ## Data General AViiON Intel (x86) Machines
2465 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2466 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2467 i[345]86-dg-dguxR4* )
2468 machine=aviion-intel opsys=dgux4
2469 ;;
2470
2471 ## DECstations
2472 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2473 machine=pmax opsys=bsd4-2
2474 ;;
2475 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2476 machine=pmax opsys=bsd4-3
2477 ;;
2478 mips-dec-ultrix* )
2479 machine=pmax opsys=ultrix4-3
2480 ;;
2481 mips-dec-osf* )
2482 machine=pmax opsys=osf1
2483 ;;
2484 mips-dec-mach_bsd4.3* )
2485 machine=pmax opsys=mach-bsd4-3
2486 ;;
2487
2488 ## Motorola Delta machines
2489 m68k-motorola-sysv* | m68000-motorola-sysv* )
2490 machine=delta opsys=usg5-3
2491 if test -z "`type gnucc | grep 'not found'`"
2492 then
2493 if test -s /etc/167config
2494 then CC="gnucc -m68040"
2495 else CC="gnucc -m68881"
2496 fi
2497 else
2498 if test -z "`type gcc | grep 'not found'`"
2499 then CC=gcc
2500 else CC=cc
2501 fi
2502 fi
2503 ;;
2504 m88k-motorola-sysv4* )
2505 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2506 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2507 # I hope there are not other 4.0 versions for this machine
2508 # which really need usg5-4 instead.
2509 machine=delta88k opsys=usg5-4-2
2510 ;;
2511 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2512 machine=delta88k opsys=usg5-3
2513 ;;
2514
2515 ## Dual machines
2516 m68*-dual-sysv* )
2517 machine=dual opsys=usg5-2
2518 ;;
2519 m68*-dual-uniplus* )
2520 machine=dual opsys=unipl5-2
2521 ;;
2522
2523 ## Elxsi 6400
2524 elxsi-elxsi-sysv* )
2525 machine=elxsi opsys=usg5-2
2526 ;;
2527
2528 ## Encore machines
2529 ns16k-encore-bsd* )
2530 machine=ns16000 opsys=umax
2531 ;;
2532
2533 ## The GEC 63 - apparently, this port isn't really finished yet.
2534 # I'm sure we finished off the last of the machines, though. -- fx
2535
2536 ## Gould Power Node and NP1
2537 pn-gould-bsd4.2* )
2538 machine=gould opsys=bsd4-2
2539 ;;
2540 pn-gould-bsd4.3* )
2541 machine=gould opsys=bsd4-3
2542 ;;
2543 np1-gould-bsd* )
2544 machine=gould-np1 opsys=bsd4-3
2545 ;;
2546
2547 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2548 ## as far as Emacs is concerned).
2549 m88k-harris-cxux* )
2550 # Build needs to be different on 7.0 and later releases
2551 case "`uname -r`" in
2552 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2553 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2554 esac
2555 NON_GNU_CPP="/lib/cpp"
2556 ;;
2557 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2558 m68k-harris-cxux* )
2559 machine=nh3000 opsys=cxux
2560 ;;
2561 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2562 powerpc-harris-powerunix )
2563 machine=nh6000 opsys=powerunix
2564 NON_GNU_CPP="cc -Xo -E -P"
2565 ;;
2566 ## SR2001/SR2201 running HI-UX/MPP
2567 hppa1.1-hitachi-hiuxmpp* )
2568 machine=sr2k opsys=hiuxmpp
2569 ;;
2570 hppa1.1-hitachi-hiuxwe2* )
2571 machine=sr2k opsys=hiuxwe2
2572 ;;
2573 ## Honeywell XPS100
2574 xps*-honeywell-sysv* )
2575 machine=xps100 opsys=usg5-2
2576 ;;
2577
2578 ## HP 9000 series 200 or 300
2579 m68*-hp-bsd* )
2580 machine=hp9000s300 opsys=bsd4-3
2581 ;;
2582 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2583 m68*-hp-hpux* )
2584 case "`uname -r`" in
2585 ## Someone's system reports A.B8.05 for this.
2586 ## I wonder what other possibilities there are.
2587 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2588 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2589 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2590 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2591 *) machine=hp9000s300 opsys=hpux ;;
2592 esac
2593 ;;
2594
2595 ## HP 9000 series 700 and 800, running HP/UX
2596 hppa*-hp-hpux7* )
2597 machine=hp800 opsys=hpux
2598 ;;
2599 hppa*-hp-hpux8* )
2600 machine=hp800 opsys=hpux8
2601 ;;
2602 hppa*-hp-hpux9shr* )
2603 machine=hp800 opsys=hpux9shr
2604 ;;
2605 hppa*-hp-hpux9* )
2606 machine=hp800 opsys=hpux9
2607 ;;
2608 hppa*-hp-hpux10.2* )
2609 machine=hp800 opsys=hpux10-20
2610 ;;
2611 hppa*-hp-hpux10* )
2612 machine=hp800 opsys=hpux10
2613 ;;
2614 hppa*-hp-hpux1[1-9]* )
2615 machine=hp800 opsys=hpux11
2616 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2617 ;;
2618
2619 hppa*-*-linux-gnu* )
2620 machine=hp800 opsys=gnu-linux
2621 ;;
2622
2623 ## HP 9000 series 700 and 800, running HP/UX
2624 hppa*-hp-hpux* )
2625 ## Cross-compilation? Nah!
2626 case "`uname -r`" in
2627 ## Someone's system reports A.B8.05 for this.
2628 ## I wonder what other possibilities there are.
2629 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2630 *.08.* ) machine=hp800 opsys=hpux8 ;;
2631 *.09.* ) machine=hp800 opsys=hpux9 ;;
2632 *) machine=hp800 opsys=hpux10 ;;
2633 esac
2634 ;;
2635 hppa*-*-nextstep* )
2636 machine=hp800 opsys=nextstep
2637 ;;
2638
2639 ## Orion machines
2640 orion-orion-bsd* )
2641 machine=orion opsys=bsd4-2
2642 ;;
2643 clipper-orion-bsd* )
2644 machine=orion105 opsys=bsd4-2
2645 ;;
2646
2647 ## IBM machines
2648 i[3456]86-ibm-aix1.1* )
2649 machine=ibmps2-aix opsys=usg5-2-2
2650 ;;
2651 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2652 machine=ibmps2-aix opsys=usg5-3
2653 ;;
2654 i370-ibm-aix*)
2655 machine=ibm370aix opsys=usg5-3
2656 ;;
2657 s390-*-linux-gnu* )
2658 machine=ibms390 opsys=gnu-linux
2659 ;;
2660 s390x-*-linux-gnu* )
2661 machine=ibms390x opsys=gnu-linux
2662 ;;
2663 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2664 machine=ibmrs6000 opsys=aix3-1
2665 ;;
2666 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2667 machine=ibmrs6000 opsys=aix3-2-5
2668 ;;
2669 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2670 machine=ibmrs6000 opsys=aix4-1
2671 ;;
2672 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2673 machine=ibmrs6000 opsys=aix4-2
2674 ;;
2675 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2676 machine=ibmrs6000 opsys=aix4-2
2677 ;;
2678 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2679 machine=ibmrs6000 opsys=aix4
2680 ;;
2681 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2682 machine=ibmrs6000 opsys=aix4-1
2683 ;;
2684 rs6000-ibm-aix* | powerpc-ibm-aix* )
2685 machine=ibmrs6000 opsys=aix3-2
2686 ;;
2687 romp-ibm-bsd4.3* )
2688 machine=ibmrt opsys=bsd4-3
2689 ;;
2690 romp-ibm-bsd4.2* )
2691 machine=ibmrt opsys=bsd4-2
2692 ;;
2693 romp-ibm-aos4.3* )
2694 machine=ibmrt opsys=bsd4-3
2695 ;;
2696 romp-ibm-aos4.2* )
2697 machine=ibmrt opsys=bsd4-2
2698 ;;
2699 romp-ibm-aos* )
2700 machine=ibmrt opsys=bsd4-3
2701 ;;
2702 romp-ibm-bsd* )
2703 machine=ibmrt opsys=bsd4-3
2704 ;;
2705 romp-ibm-aix* )
2706 machine=ibmrt-aix opsys=usg5-2-2
2707 ;;
2708
2709 ## Integrated Solutions `Optimum V'
2710 m68*-isi-bsd4.2* )
2711 machine=isi-ov opsys=bsd4-2
2712 ;;
2713 m68*-isi-bsd4.3* )
2714 machine=isi-ov opsys=bsd4-3
2715 ;;
2716
2717 ## Intel 386 machines where we do care about the manufacturer
2718 i[3456]86-intsys-sysv* )
2719 machine=is386 opsys=usg5-2-2
2720 ;;
2721
2722 ## Prime EXL
2723 i[3456]86-prime-sysv* )
2724 machine=i386 opsys=usg5-3
2725 ;;
2726
2727 ## Sequent Symmetry running Dynix
2728 i[3456]86-sequent-bsd* )
2729 machine=symmetry opsys=bsd4-3
2730 ;;
2731
2732 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2733 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2734 machine=sequent-ptx opsys=ptx4
2735 NON_GNU_CPP=/lib/cpp
2736 ;;
2737
2738 ## Sequent Symmetry running DYNIX/ptx
2739 ## Use the old cpp rather than the newer ANSI one.
2740 i[3456]86-sequent-ptx* )
2741 machine=sequent-ptx opsys=ptx
2742 NON_GNU_CPP="/lib/cpp"
2743 ;;
2744
2745 ## ncr machine running svr4.3.
2746 i[3456]86-ncr-sysv4.3 )
2747 machine=ncr386 opsys=usg5-4-3
2748 ;;
2749
2750 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2751 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2752 i[3456]86-ncr-sysv* )
2753 machine=ncr386 opsys=usg5-4-2
2754 ;;
2755
2756 ## Intel Paragon OSF/1
2757 i860-intel-osf1* )
2758 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2759 ;;
2760
2761 ## Intel 860
2762 i860-*-sysv4* )
2763 machine=i860 opsys=usg5-4
2764 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2765 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2766 ;;
2767
2768 ## Macintosh PowerPC
2769 powerpc*-*-linux-gnu* )
2770 machine=macppc opsys=gnu-linux
2771 ;;
2772
2773 ## Masscomp machines
2774 m68*-masscomp-rtu* )
2775 machine=masscomp opsys=rtu
2776 ;;
2777
2778 ## Megatest machines
2779 m68*-megatest-bsd* )
2780 machine=mega68 opsys=bsd4-2
2781 ;;
2782
2783 ## Workstations sold by MIPS
2784 ## This is not necessarily all workstations using the MIPS processor -
2785 ## Irises are produced by SGI, and DECstations by DEC.
2786
2787 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2788 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2789 ## it gives for choosing between the alternatives seems to be "Use
2790 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2791 ## the BSD world." I'll assume that these are instructions for
2792 ## handling two odd situations, and that every other situation
2793 ## should use mips.h and usg5-2-2, they being listed first.
2794 mips-mips-usg* )
2795 machine=mips4
2796 ## Fall through to the general code at the bottom to decide on the OS.
2797 ;;
2798 mips-mips-riscos4* )
2799 machine=mips4 opsys=bsd4-3
2800 NON_GNU_CC="cc -systype bsd43"
2801 NON_GNU_CPP="cc -systype bsd43 -E"
2802 ;;
2803 mips-mips-riscos5* )
2804 machine=mips4 opsys=riscos5
2805 NON_GNU_CC="cc -systype bsd43"
2806 NON_GNU_CPP="cc -systype bsd43 -E"
2807 ;;
2808 mips-mips-bsd* )
2809 machine=mips opsys=bsd4-3
2810 ;;
2811 mips-mips-* )
2812 machine=mips opsys=usg5-2-2
2813 ;;
2814
2815 ## NeXT
2816 m68*-next-* | m68k-*-nextstep* )
2817 machine=m68k opsys=nextstep
2818 ;;
2819
2820 ## The complete machine from National Semiconductor
2821 ns32k-ns-genix* )
2822 machine=ns32000 opsys=usg5-2
2823 ;;
2824
2825 ## NCR machines
2826 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2827 machine=tower32 opsys=usg5-2-2
2828 ;;
2829 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2830 machine=tower32v3 opsys=usg5-3
2831 ;;
2832
2833 ## NEC EWS4800
2834 mips-nec-sysv4*)
2835 machine=ews4800 opsys=ux4800
2836 ;;
2837
2838 ## Nixdorf Targon 31
2839 m68*-nixdorf-sysv* )
2840 machine=targon31 opsys=usg5-2-2
2841 ;;
2842
2843 ## Nu (TI or LMI)
2844 m68*-nu-sysv* )
2845 machine=nu opsys=usg5-2
2846 ;;
2847
2848 ## Plexus
2849 m68*-plexus-sysv* )
2850 machine=plexus opsys=usg5-2
2851 ;;
2852
2853 ## Pyramid machines
2854 ## I don't really have any idea what sort of processor the Pyramid has,
2855 ## so I'm assuming it is its own architecture.
2856 pyramid-pyramid-bsd* )
2857 machine=pyramid opsys=bsd4-2
2858 ;;
2859
2860 ## Sequent Balance
2861 ns32k-sequent-bsd4.2* )
2862 machine=sequent opsys=bsd4-2
2863 ;;
2864 ns32k-sequent-bsd4.3* )
2865 machine=sequent opsys=bsd4-3
2866 ;;
2867
2868 ## Siemens Nixdorf
2869 mips-siemens-sysv* | mips-sni-sysv*)
2870 machine=mips-siemens opsys=usg5-4
2871 NON_GNU_CC=/usr/ccs/bin/cc
2872 NON_GNU_CPP=/usr/ccs/lib/cpp
2873 ;;
2874
2875 ## Silicon Graphics machines
2876 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2877 m68*-sgi-iris3.5* )
2878 machine=irist opsys=iris3-5
2879 ;;
2880 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2881 machine=irist opsys=iris3-6
2882 ;;
2883 ## Iris 4D
2884 mips-sgi-irix3* )
2885 machine=iris4d opsys=irix3-3
2886 ;;
2887 mips-sgi-irix4* )
2888 machine=iris4d opsys=irix4-0
2889 ;;
2890 mips-sgi-irix6.5 )
2891 machine=iris4d opsys=irix6-5
2892 # Without defining _LANGUAGE_C, things get masked out in the headers
2893 # so that, for instance, grepping for `free' in stdlib.h fails and
2894 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2895 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2896 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2897 ;;
2898 mips-sgi-irix6* )
2899 machine=iris4d opsys=irix6-0
2900 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2901 # but presumably it does no harm.
2902 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2903 # -32 probably isn't necessary in later v.6s -- anyone know which?
2904 NON_GCC_TEST_OPTIONS=-32
2905 ;;
2906 mips-sgi-irix5.[01]* )
2907 machine=iris4d opsys=irix5-0
2908 ;;
2909 mips-sgi-irix5* | mips-sgi-irix* )
2910 machine=iris4d opsys=irix5-2
2911 ;;
2912
2913 ## SONY machines
2914 m68*-sony-bsd4.2* )
2915 machine=news opsys=bsd4-2
2916 ;;
2917 m68*-sony-bsd4.3* )
2918 machine=news opsys=bsd4-3
2919 ;;
2920 m68*-sony-newsos3* | m68*-sony-news3*)
2921 machine=news opsys=bsd4-3
2922 ;;
2923 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2924 machine=news-risc opsys=bsd4-3
2925 ;;
2926 mips-sony-newsos6* )
2927 machine=news-r6 opsys=newsos6
2928 ;;
2929 mips-sony-news* )
2930 machine=news-risc opsys=newsos5
2931 ;;
2932
2933 ## Stride
2934 m68*-stride-sysv* )
2935 machine=stride opsys=usg5-2
2936 ;;
2937
2938 ## Suns
2939 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2940 machine=sparc opsys=gnu-linux
2941 ;;
2942
2943 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2944 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2945 | rs6000-*-solaris2*)
2946 case "${canonical}" in
2947 m68*-sunos1* ) machine=sun1 ;;
2948 m68*-sunos2* ) machine=sun2 ;;
2949 m68* ) machine=sun3 ;;
2950 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2951 i[3456]86-*-* ) machine=intel386 ;;
2952 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2953 powerpcle* ) machine=powerpcle ;;
2954 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2955 sparc* ) machine=sparc ;;
2956 * ) unported=yes ;;
2957 esac
2958 case "${canonical}" in
2959 ## The Sun386 didn't get past 4.0.
2960 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2961 *-sunos4.0* ) opsys=sunos4-0 ;;
2962 *-sunos4.1.[3-9]*noshare )
2963 ## This name is sunos413 instead of sunos4-1-3
2964 ## to avoid a file name conflict on MSDOS.
2965 opsys=sunos413
2966 NON_GNU_CPP=/usr/lib/cpp
2967 NON_GCC_TEST_OPTIONS=-Bstatic
2968 GCC_TEST_OPTIONS=-static
2969 ;;
2970 *-sunos4.1.[3-9]* | *-sunos4shr*)
2971 opsys=sunos4shr
2972 NON_GNU_CPP=/usr/lib/cpp
2973 ;;
2974 *-sunos4* | *-sunos )
2975 opsys=sunos4-1
2976 NON_GCC_TEST_OPTIONS=-Bstatic
2977 GCC_TEST_OPTIONS=-static
2978 ;;
2979 *-sunos5.3* | *-solaris2.3* )
2980 opsys=sol2-3
2981 NON_GNU_CPP=/usr/ccs/lib/cpp
2982 ;;
2983 *-sunos5.4* | *-solaris2.4* )
2984 opsys=sol2-4
2985 NON_GNU_CPP=/usr/ccs/lib/cpp
2986 RANLIB="ar -ts"
2987 ;;
2988 *-sunos5.5* | *-solaris2.5* )
2989 opsys=sol2-5
2990 NON_GNU_CPP=/usr/ccs/lib/cpp
2991 RANLIB="ar -ts"
2992 ;;
2993 *-sunos5.6* | *-solaris2.6* )
2994 opsys=sol2-6
2995 NON_GNU_CPP=/usr/ccs/lib/cpp
2996 RANLIB="ar -ts"
2997 ;;
2998 *-sunos5* | *-solaris* )
2999 opsys=sol2-6
3000 NON_GNU_CPP=/usr/ccs/lib/cpp
3001 ;;
3002 * ) opsys=bsd4-2 ;;
3003 esac
3004 ## Watch out for a compiler that we know will not work.
3005 case "${canonical}" in
3006 *-solaris* | *-sunos5* )
3007 if [ "x$CC" = x/usr/ucb/cc ]; then
3008 ## /usr/ucb/cc doesn't work;
3009 ## we should find some other compiler that does work.
3010 unset CC
3011 fi
3012 ;;
3013 *) ;;
3014 esac
3015 ;;
3016 sparc-*-nextstep* )
3017 machine=sparc opsys=nextstep
3018 ;;
3019
3020 ## Tadpole 68k
3021 m68*-tadpole-sysv* )
3022 machine=tad68k opsys=usg5-3
3023 ;;
3024
3025 ## Tahoe machines
3026 tahoe-tahoe-bsd4.2* )
3027 machine=tahoe opsys=bsd4-2
3028 ;;
3029 tahoe-tahoe-bsd4.3* )
3030 machine=tahoe opsys=bsd4-3
3031 ;;
3032
3033 ## Tandem Integrity S2
3034 mips-tandem-sysv* )
3035 machine=tandem-s2 opsys=usg5-3
3036 ;;
3037
3038 ## Tektronix XD88
3039 m88k-tektronix-sysv3* )
3040 machine=tekxd88 opsys=usg5-3
3041 ;;
3042
3043 ## Tektronix 16000 box (6130?)
3044 ns16k-tektronix-bsd* )
3045 machine=ns16000 opsys=bsd4-2
3046 ;;
3047 ## Tektronix 4300
3048 ## src/m/tek4300.h hints that this is a m68k machine.
3049 m68*-tektronix-bsd* )
3050 machine=tek4300 opsys=bsd4-3
3051 ;;
3052
3053 ## Titan P2 or P3
3054 ## We seem to have lost the machine-description file titan.h!
3055 titan-titan-sysv* )
3056 machine=titan opsys=usg5-3
3057 ;;
3058
3059 ## Ustation E30 (SS5E)
3060 m68*-unisys-uniplus* )
3061 machine=ustation opsystem=unipl5-2
3062 ;;
3063
3064 ## Vaxen.
3065 vax-dec-* )
3066 machine=vax
3067 case "${canonical}" in
3068 *-bsd4.1* ) opsys=bsd4-1 ;;
3069 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3070 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3071 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3072 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3073 *-vms* ) opsys=vms ;;
3074 * ) unported=yes
3075 esac
3076 ;;
3077
3078 ## Whitechapel MG1
3079 ns16k-whitechapel-* )
3080 machine=mg1
3081 ## We don't know what sort of OS runs on these; we'll let the
3082 ## operating system guessing code below try.
3083 ;;
3084
3085 ## Wicat
3086 m68*-wicat-sysv* )
3087 machine=wicat opsys=usg5-2
3088 ;;
3089
3090 ## IA-64
3091 ia64*-*-linux* )
3092 machine=ia64 opsys=gnu-linux
3093 ;;
3094
3095 ## Intel 386 machines where we don't care about the manufacturer
3096 i[3456]86-*-* )
3097 machine=intel386
3098 case "${canonical}" in
3099 *-cygwin ) opsys=cygwin ;;
3100 *-darwin* ) opsys=darwin
3101 CPP="${CC-cc} -E -no-cpp-precomp"
3102 ;;
3103 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3104 *-isc2.2* ) opsys=isc2-2 ;;
3105 *-isc4.0* ) opsys=isc4-0 ;;
3106 *-isc4.* ) opsys=isc4-1
3107 GCC_TEST_OPTIONS=-posix
3108 NON_GCC_TEST_OPTIONS=-Xp
3109 ;;
3110 *-isc* ) opsys=isc3-0 ;;
3111 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3112 *-esix* ) opsys=esix ;;
3113 *-xenix* ) opsys=xenix ;;
3114 *-linux-gnu* ) opsys=gnu-linux ;;
3115 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3116 *-sco3.2v5* ) opsys=sco5
3117 NON_GNU_CPP=/lib/cpp
3118 # Prevent -belf from being passed to $CPP.
3119 # /lib/cpp does not accept it.
3120 OVERRIDE_CPPFLAGS=" "
3121 ;;
3122 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3123 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3124 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3125 *-386bsd* ) opsys=386bsd ;;
3126 *-nextstep* ) opsys=nextstep ;;
3127 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3128 esac
3129 ;;
3130
3131 ## m68k Linux-based GNU system
3132 m68k-*-linux-gnu* )
3133 machine=m68k opsys=gnu-linux
3134 ;;
3135
3136 ## Mips Linux-based GNU system
3137 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3138 machine=mips opsys=gnu-linux
3139 ;;
3140
3141 ## UXP/DS
3142 sparc-fujitsu-sysv4* )
3143 machine=sparc opsys=uxpds
3144 NON_GNU_CPP=/usr/ccs/lib/cpp
3145 RANLIB="ar -ts"
3146 ;;
3147
3148 ## UXP/V
3149 f301-fujitsu-uxpv4.1)
3150 machine=f301 opsys=uxpv
3151 ;;
3152
3153 ## Darwin / Mac OS X
3154 powerpc-apple-darwin* )
3155 machine=powermac opsys=darwin
3156 # Define CPP as follows to make autoconf work correctly.
3157 CPP="${CC-cc} -E -no-cpp-precomp"
3158 # Use fink packages if available.
3159 if test -d /sw/include && test -d /sw/lib; then
3160 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3161 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3162 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3163 fi
3164 ;;
3165
3166 ## AMD x86-64 Linux-based GNU system
3167 x86_64-*-linux-gnu* )
3168 machine=amdx86-64 opsys=gnu-linux
3169 ;;
3170
3171 * )
3172 unported=yes
3173 ;;
3174 esac
3175
3176 ### If the code above didn't choose an operating system, just choose
3177 ### an operating system based on the configuration name. You really
3178 ### only want to use this when you have no idea what the right
3179 ### operating system is; if you know what operating systems a machine
3180 ### runs, it's cleaner to make it explicit in the case statement
3181 ### above.
3182 if test x"${opsys}" = x; then
3183 case "${canonical}" in
3184 *-gnu* ) opsys=gnu ;;
3185 *-bsd4.[01] ) opsys=bsd4-1 ;;
3186 *-bsd4.2 ) opsys=bsd4-2 ;;
3187 *-bsd4.3 ) opsys=bsd4-3 ;;
3188 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3189 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3190 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3191 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3192 *-sysv4.2uw* ) opsys=unixware ;;
3193 *-sysv5uw* ) opsys=unixware ;;
3194 *-sysv5OpenUNIX* ) opsys=unixware ;;
3195 *-sysv4.1* | *-sysvr4.1* )
3196 NON_GNU_CPP=/usr/lib/cpp
3197 opsys=usg5-4 ;;
3198 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3199 if [ x$NON_GNU_CPP = x ]; then
3200 if [ -f /usr/ccs/lib/cpp ]; then
3201 NON_GNU_CPP=/usr/ccs/lib/cpp
3202 else
3203 NON_GNU_CPP=/lib/cpp
3204 fi
3205 fi
3206 opsys=usg5-4-2 ;;
3207 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3208 * )
3209 unported=yes
3210 ;;
3211 esac
3212 fi
3213
3214
3215
3216 if test $unported = yes; then
3217 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3218 Check \`etc/MACHINES' for recognized configuration names." >&5
3219 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3220 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3221 { (exit 1); exit 1; }; }
3222 fi
3223
3224 machfile="m/${machine}.h"
3225 opsysfile="s/${opsys}.h"
3226
3227
3228 #### Choose a compiler.
3229 test -n "$CC" && cc_specified=yes
3230
3231 # Save the value of CFLAGS that the user specified.
3232 SPECIFIED_CFLAGS="$CFLAGS"
3233
3234 case ${with_gcc} in
3235 "yes" ) CC="gcc" GCC=yes ;;
3236 "no" ) : ${CC=cc} ;;
3237 * )
3238 esac
3239 ac_ext=c
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3249 if test "${ac_cv_prog_CC+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { echo "$as_me:$LINENO: result: $CC" >&5
3275 echo "${ECHO_T}$CC" >&6; }
3276 else
3277 { echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6; }
3279 fi
3280
3281
3282 fi
3283 if test -z "$ac_cv_prog_CC"; then
3284 ac_ct_CC=$CC
3285 # Extract the first word of "gcc", so it can be a program name with args.
3286 set dummy gcc; ac_word=$2
3287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_ac_ct_CC="gcc"
3303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306 done
3307 done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313 if test -n "$ac_ct_CC"; then
3314 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3315 echo "${ECHO_T}$ac_ct_CC" >&6; }
3316 else
3317 { echo "$as_me:$LINENO: result: no" >&5
3318 echo "${ECHO_T}no" >&6; }
3319 fi
3320
3321 if test "x$ac_ct_CC" = x; then
3322 CC=""
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325 yes:)
3326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3327 whose name does not start with the host triplet. If you think this
3328 configuration is useful to you, please write to autoconf@gnu.org." >&5
3329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3330 whose name does not start with the host triplet. If you think this
3331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3332 ac_tool_warned=yes ;;
3333 esac
3334 CC=$ac_ct_CC
3335 fi
3336 else
3337 CC="$ac_cv_prog_CC"
3338 fi
3339
3340 if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3343 set dummy ${ac_tool_prefix}cc; ac_word=$2
3344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_CC="${ac_tool_prefix}cc"
3360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3362 fi
3363 done
3364 done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371 { echo "$as_me:$LINENO: result: $CC" >&5
3372 echo "${ECHO_T}$CC" >&6; }
3373 else
3374 { echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6; }
3376 fi
3377
3378
3379 fi
3380 fi
3381 if test -z "$CC"; then
3382 # Extract the first word of "cc", so it can be a program name with args.
3383 set dummy cc; ac_word=$2
3384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3386 if test "${ac_cv_prog_CC+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3391 else
3392 ac_prog_rejected=no
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3400 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3401 ac_prog_rejected=yes
3402 continue
3403 fi
3404 ac_cv_prog_CC="cc"
3405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3407 fi
3408 done
3409 done
3410 IFS=$as_save_IFS
3411
3412 if test $ac_prog_rejected = yes; then
3413 # We found a bogon in the path, so make sure we never use it.
3414 set dummy $ac_cv_prog_CC
3415 shift
3416 if test $# != 0; then
3417 # We chose a different compiler from the bogus one.
3418 # However, it has the same basename, so the bogon will be chosen
3419 # first if we set CC to just the basename; use the full file name.
3420 shift
3421 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3422 fi
3423 fi
3424 fi
3425 fi
3426 CC=$ac_cv_prog_CC
3427 if test -n "$CC"; then
3428 { echo "$as_me:$LINENO: result: $CC" >&5
3429 echo "${ECHO_T}$CC" >&6; }
3430 else
3431 { echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6; }
3433 fi
3434
3435
3436 fi
3437 if test -z "$CC"; then
3438 if test -n "$ac_tool_prefix"; then
3439 for ac_prog in cl.exe
3440 do
3441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3445 if test "${ac_cv_prog_CC+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC="$CC" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3453 do
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 fi
3467 fi
3468 CC=$ac_cv_prog_CC
3469 if test -n "$CC"; then
3470 { echo "$as_me:$LINENO: result: $CC" >&5
3471 echo "${ECHO_T}$CC" >&6; }
3472 else
3473 { echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6; }
3475 fi
3476
3477
3478 test -n "$CC" && break
3479 done
3480 fi
3481 if test -z "$CC"; then
3482 ac_ct_CC=$CC
3483 for ac_prog in cl.exe
3484 do
3485 # Extract the first word of "$ac_prog", so it can be a program name with args.
3486 set dummy $ac_prog; ac_word=$2
3487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492 if test -n "$ac_ct_CC"; then
3493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3494 else
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3497 do
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3502 ac_cv_prog_ac_ct_CC="$ac_prog"
3503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 break 2
3505 fi
3506 done
3507 done
3508 IFS=$as_save_IFS
3509
3510 fi
3511 fi
3512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3513 if test -n "$ac_ct_CC"; then
3514 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3515 echo "${ECHO_T}$ac_ct_CC" >&6; }
3516 else
3517 { echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6; }
3519 fi
3520
3521
3522 test -n "$ac_ct_CC" && break
3523 done
3524
3525 if test "x$ac_ct_CC" = x; then
3526 CC=""
3527 else
3528 case $cross_compiling:$ac_tool_warned in
3529 yes:)
3530 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3531 whose name does not start with the host triplet. If you think this
3532 configuration is useful to you, please write to autoconf@gnu.org." >&5
3533 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3534 whose name does not start with the host triplet. If you think this
3535 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3536 ac_tool_warned=yes ;;
3537 esac
3538 CC=$ac_ct_CC
3539 fi
3540 fi
3541
3542 fi
3543
3544
3545 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3546 See \`config.log' for more details." >&5
3547 echo "$as_me: error: no acceptable C compiler found in \$PATH
3548 See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3550
3551 # Provide some information about the compiler.
3552 echo "$as_me:$LINENO: checking for C compiler version" >&5
3553 ac_compiler=`set X $ac_compile; echo $2`
3554 { (ac_try="$ac_compiler --version >&5"
3555 case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compiler --version >&5") 2>&5
3561 ac_status=$?
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }
3564 { (ac_try="$ac_compiler -v >&5"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compiler -v >&5") 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }
3574 { (ac_try="$ac_compiler -V >&5"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compiler -V >&5") 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }
3584
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591
3592 int
3593 main ()
3594 {
3595
3596 ;
3597 return 0;
3598 }
3599 _ACEOF
3600 ac_clean_files_save=$ac_clean_files
3601 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3602 # Try to create an executable without -o first, disregard a.out.
3603 # It will help us diagnose broken compilers, and finding out an intuition
3604 # of exeext.
3605 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3606 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3607 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3608 #
3609 # List of possible output files, starting from the most likely.
3610 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3611 # only as a last resort. b.out is created by i960 compilers.
3612 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3613 #
3614 # The IRIX 6 linker writes into existing files which may not be
3615 # executable, retaining their permissions. Remove them first so a
3616 # subsequent execution test works.
3617 ac_rmfiles=
3618 for ac_file in $ac_files
3619 do
3620 case $ac_file in
3621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3622 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3623 esac
3624 done
3625 rm -f $ac_rmfiles
3626
3627 if { (ac_try="$ac_link_default"
3628 case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_link_default") 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; then
3637 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3638 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3639 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3640 # so that the user can short-circuit this test for compilers unknown to
3641 # Autoconf.
3642 for ac_file in $ac_files ''
3643 do
3644 test -f "$ac_file" || continue
3645 case $ac_file in
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3647 ;;
3648 [ab].out )
3649 # We found the default executable, but exeext='' is most
3650 # certainly right.
3651 break;;
3652 *.* )
3653 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3654 then :; else
3655 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656 fi
3657 # We set ac_cv_exeext here because the later test for it is not
3658 # safe: cross compilers may not add the suffix if given an `-o'
3659 # argument, so we may need to know it at that point already.
3660 # Even if this section looks crufty: it has the advantage of
3661 # actually working.
3662 break;;
3663 * )
3664 break;;
3665 esac
3666 done
3667 test "$ac_cv_exeext" = no && ac_cv_exeext=
3668
3669 else
3670 ac_file=''
3671 fi
3672
3673 { echo "$as_me:$LINENO: result: $ac_file" >&5
3674 echo "${ECHO_T}$ac_file" >&6; }
3675 if test -z "$ac_file"; then
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3680 See \`config.log' for more details." >&5
3681 echo "$as_me: error: C compiler cannot create executables
3682 See \`config.log' for more details." >&2;}
3683 { (exit 77); exit 77; }; }
3684 fi
3685
3686 ac_exeext=$ac_cv_exeext
3687
3688 # Check that the compiler produces executables we can run. If not, either
3689 # the compiler is broken, or we cross compile.
3690 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3691 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3692 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3693 # If not cross compiling, check that we can run a simple program.
3694 if test "$cross_compiling" != yes; then
3695 if { ac_try='./$ac_file'
3696 { (case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_try") 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3705 cross_compiling=no
3706 else
3707 if test "$cross_compiling" = maybe; then
3708 cross_compiling=yes
3709 else
3710 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3711 If you meant to cross compile, use \`--host'.
3712 See \`config.log' for more details." >&5
3713 echo "$as_me: error: cannot run C compiled programs.
3714 If you meant to cross compile, use \`--host'.
3715 See \`config.log' for more details." >&2;}
3716 { (exit 1); exit 1; }; }
3717 fi
3718 fi
3719 fi
3720 { echo "$as_me:$LINENO: result: yes" >&5
3721 echo "${ECHO_T}yes" >&6; }
3722
3723 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3724 ac_clean_files=$ac_clean_files_save
3725 # Check that the compiler produces executables we can run. If not, either
3726 # the compiler is broken, or we cross compile.
3727 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3728 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3729 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3730 echo "${ECHO_T}$cross_compiling" >&6; }
3731
3732 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3733 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3734 if { (ac_try="$ac_link"
3735 case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_link") 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; then
3744 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3745 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3746 # work properly (i.e., refer to `conftest.exe'), while it won't with
3747 # `rm'.
3748 for ac_file in conftest.exe conftest conftest.*; do
3749 test -f "$ac_file" || continue
3750 case $ac_file in
3751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3753 break;;
3754 * ) break;;
3755 esac
3756 done
3757 else
3758 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3759 See \`config.log' for more details." >&5
3760 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3761 See \`config.log' for more details." >&2;}
3762 { (exit 1); exit 1; }; }
3763 fi
3764
3765 rm -f conftest$ac_cv_exeext
3766 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3767 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3768
3769 rm -f conftest.$ac_ext
3770 EXEEXT=$ac_cv_exeext
3771 ac_exeext=$EXEEXT
3772 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3773 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3774 if test "${ac_cv_objext+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783
3784 int
3785 main ()
3786 {
3787
3788 ;
3789 return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest.o conftest.obj
3793 if { (ac_try="$ac_compile"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3799 (eval "$ac_compile") 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; then
3803 for ac_file in conftest.o conftest.obj conftest.*; do
3804 test -f "$ac_file" || continue;
3805 case $ac_file in
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3808 break;;
3809 esac
3810 done
3811 else
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3816 See \`config.log' for more details." >&5
3817 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3818 See \`config.log' for more details." >&2;}
3819 { (exit 1); exit 1; }; }
3820 fi
3821
3822 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3823 fi
3824 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3825 echo "${ECHO_T}$ac_cv_objext" >&6; }
3826 OBJEXT=$ac_cv_objext
3827 ac_objext=$OBJEXT
3828 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3829 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3830 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839
3840 int
3841 main ()
3842 {
3843 #ifndef __GNUC__
3844 choke me
3845 #endif
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 rm -f conftest.$ac_objext
3852 if { (ac_try="$ac_compile"
3853 case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_compile") 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } && {
3865 test -z "$ac_c_werror_flag" ||
3866 test ! -s conftest.err
3867 } && test -s conftest.$ac_objext; then
3868 ac_compiler_gnu=yes
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873 ac_compiler_gnu=no
3874 fi
3875
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3878
3879 fi
3880 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3881 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3882 GCC=`test $ac_compiler_gnu = yes && echo yes`
3883 ac_test_CFLAGS=${CFLAGS+set}
3884 ac_save_CFLAGS=$CFLAGS
3885 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3886 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3887 if test "${ac_cv_prog_cc_g+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 ac_save_c_werror_flag=$ac_c_werror_flag
3891 ac_c_werror_flag=yes
3892 ac_cv_prog_cc_g=no
3893 CFLAGS="-g"
3894 cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h. */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900
3901 int
3902 main ()
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 rm -f conftest.$ac_objext
3910 if { (ac_try="$ac_compile"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_compile") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest.$ac_objext; then
3926 ac_cv_prog_cc_g=yes
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 CFLAGS=""
3932 cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h. */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938
3939 int
3940 main ()
3941 {
3942
3943 ;
3944 return 0;
3945 }
3946 _ACEOF
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3964 :
3965 else
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 ac_c_werror_flag=$ac_save_c_werror_flag
3970 CFLAGS="-g"
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977
3978 int
3979 main ()
3980 {
3981
3982 ;
3983 return 0;
3984 }
3985 _ACEOF
3986 rm -f conftest.$ac_objext
3987 if { (ac_try="$ac_compile"
3988 case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991 esac
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993 (eval "$ac_compile") 2>conftest.er1
3994 ac_status=$?
3995 grep -v '^ *+' conftest.er1 >conftest.err
3996 rm -f conftest.er1
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } && {
4000 test -z "$ac_c_werror_flag" ||
4001 test ! -s conftest.err
4002 } && test -s conftest.$ac_objext; then
4003 ac_cv_prog_cc_g=yes
4004 else
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008
4009 fi
4010
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 fi
4013
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 fi
4016
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_c_werror_flag=$ac_save_c_werror_flag
4019 fi
4020 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4021 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4022 if test "$ac_test_CFLAGS" = set; then
4023 CFLAGS=$ac_save_CFLAGS
4024 elif test $ac_cv_prog_cc_g = yes; then
4025 if test "$GCC" = yes; then
4026 CFLAGS="-g -O2"
4027 else
4028 CFLAGS="-g"
4029 fi
4030 else
4031 if test "$GCC" = yes; then
4032 CFLAGS="-O2"
4033 else
4034 CFLAGS=
4035 fi
4036 fi
4037 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4038 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4039 if test "${ac_cv_prog_cc_c89+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042 ac_cv_prog_cc_c89=no
4043 ac_save_CC=$CC
4044 cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h. */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 #include <stdarg.h>
4051 #include <stdio.h>
4052 #include <sys/types.h>
4053 #include <sys/stat.h>
4054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4055 struct buf { int x; };
4056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4057 static char *e (p, i)
4058 char **p;
4059 int i;
4060 {
4061 return p[i];
4062 }
4063 static char *f (char * (*g) (char **, int), char **p, ...)
4064 {
4065 char *s;
4066 va_list v;
4067 va_start (v,p);
4068 s = g (p, va_arg (v,int));
4069 va_end (v);
4070 return s;
4071 }
4072
4073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4074 function prototypes and stuff, but not '\xHH' hex character constants.
4075 These don't provoke an error unfortunately, instead are silently treated
4076 as 'x'. The following induces an error, until -std is added to get
4077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4078 array size at least. It's necessary to write '\x00'==0 to get something
4079 that's true only with -std. */
4080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4081
4082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4083 inside strings and character constants. */
4084 #define FOO(x) 'x'
4085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4086
4087 int test (int i, double x);
4088 struct s1 {int (*f) (int a);};
4089 struct s2 {int (*f) (double a);};
4090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4091 int argc;
4092 char **argv;
4093 int
4094 main ()
4095 {
4096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103 do
4104 CC="$ac_save_CC $ac_arg"
4105 rm -f conftest.$ac_objext
4106 if { (ac_try="$ac_compile"
4107 case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110 esac
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_compile") 2>conftest.er1
4113 ac_status=$?
4114 grep -v '^ *+' conftest.er1 >conftest.err
4115 rm -f conftest.er1
4116 cat conftest.err >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } && {
4119 test -z "$ac_c_werror_flag" ||
4120 test ! -s conftest.err
4121 } && test -s conftest.$ac_objext; then
4122 ac_cv_prog_cc_c89=$ac_arg
4123 else
4124 echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4126
4127
4128 fi
4129
4130 rm -f core conftest.err conftest.$ac_objext
4131 test "x$ac_cv_prog_cc_c89" != "xno" && break
4132 done
4133 rm -f conftest.$ac_ext
4134 CC=$ac_save_CC
4135
4136 fi
4137 # AC_CACHE_VAL
4138 case "x$ac_cv_prog_cc_c89" in
4139 x)
4140 { echo "$as_me:$LINENO: result: none needed" >&5
4141 echo "${ECHO_T}none needed" >&6; } ;;
4142 xno)
4143 { echo "$as_me:$LINENO: result: unsupported" >&5
4144 echo "${ECHO_T}unsupported" >&6; } ;;
4145 *)
4146 CC="$CC $ac_cv_prog_cc_c89"
4147 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4148 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4149 esac
4150
4151
4152 ac_ext=c
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157
4158
4159 # On Suns, sometimes $CPP names a directory.
4160 if test -n "$CPP" && test -d "$CPP"; then
4161 CPP=
4162 fi
4163
4164 #### Some systems specify a CPP to use unless we are using GCC.
4165 #### Now that we know whether we are using GCC, we can decide whether
4166 #### to use that one.
4167 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4168 then
4169 CPP="$NON_GNU_CPP"
4170 fi
4171
4172 #### Some systems specify a CC to use unless we are using GCC.
4173 #### Now that we know whether we are using GCC, we can decide whether
4174 #### to use that one.
4175 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4176 test x$cc_specified != xyes
4177 then
4178 CC="$NON_GNU_CC"
4179 fi
4180
4181 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4182 then
4183 CC="$CC $GCC_TEST_OPTIONS"
4184 fi
4185
4186 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4187 then
4188 CC="$CC $NON_GCC_TEST_OPTIONS"
4189 fi
4190
4191
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4198 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4199 # On Suns, sometimes $CPP names a directory.
4200 if test -n "$CPP" && test -d "$CPP"; then
4201 CPP=
4202 fi
4203 if test -z "$CPP"; then
4204 if test "${ac_cv_prog_CPP+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207 # Double quotes because CPP needs to be expanded
4208 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4209 do
4210 ac_preproc_ok=false
4211 for ac_c_preproc_warn_flag in '' yes
4212 do
4213 # Use a header file that comes with gcc, so configuring glibc
4214 # with a fresh cross-compiler works.
4215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4216 # <limits.h> exists even on freestanding compilers.
4217 # On the NeXT, cc -E runs the code through the compiler's parser,
4218 # not just through cpp. "Syntax error" is here to catch this case.
4219 cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h. */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 #ifdef __STDC__
4226 # include <limits.h>
4227 #else
4228 # include <assert.h>
4229 #endif
4230 Syntax error
4231 _ACEOF
4232 if { (ac_try="$ac_cpp conftest.$ac_ext"
4233 case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236 esac
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } >/dev/null && {
4245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4246 test ! -s conftest.err
4247 }; then
4248 :
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 # Broken: fails on valid input.
4254 continue
4255 fi
4256
4257 rm -f conftest.err conftest.$ac_ext
4258
4259 # OK, works on sane cases. Now check whether nonexistent headers
4260 # can be detected and how.
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #include <ac_nonexistent.h>
4268 _ACEOF
4269 if { (ac_try="$ac_cpp conftest.$ac_ext"
4270 case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } >/dev/null && {
4282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 }; then
4285 # Broken: success on invalid input.
4286 continue
4287 else
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 # Passes both tests.
4292 ac_preproc_ok=:
4293 break
4294 fi
4295
4296 rm -f conftest.err conftest.$ac_ext
4297
4298 done
4299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300 rm -f conftest.err conftest.$ac_ext
4301 if $ac_preproc_ok; then
4302 break
4303 fi
4304
4305 done
4306 ac_cv_prog_CPP=$CPP
4307
4308 fi
4309 CPP=$ac_cv_prog_CPP
4310 else
4311 ac_cv_prog_CPP=$CPP
4312 fi
4313 { echo "$as_me:$LINENO: result: $CPP" >&5
4314 echo "${ECHO_T}$CPP" >&6; }
4315 ac_preproc_ok=false
4316 for ac_c_preproc_warn_flag in '' yes
4317 do
4318 # Use a header file that comes with gcc, so configuring glibc
4319 # with a fresh cross-compiler works.
4320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 # <limits.h> exists even on freestanding compilers.
4322 # On the NeXT, cc -E runs the code through the compiler's parser,
4323 # not just through cpp. "Syntax error" is here to catch this case.
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #ifdef __STDC__
4331 # include <limits.h>
4332 #else
4333 # include <assert.h>
4334 #endif
4335 Syntax error
4336 _ACEOF
4337 if { (ac_try="$ac_cpp conftest.$ac_ext"
4338 case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } >/dev/null && {
4350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4352 }; then
4353 :
4354 else
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 # Broken: fails on valid input.
4359 continue
4360 fi
4361
4362 rm -f conftest.err conftest.$ac_ext
4363
4364 # OK, works on sane cases. Now check whether nonexistent headers
4365 # can be detected and how.
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h. */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 #include <ac_nonexistent.h>
4373 _ACEOF
4374 if { (ac_try="$ac_cpp conftest.$ac_ext"
4375 case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378 esac
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } >/dev/null && {
4387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4388 test ! -s conftest.err
4389 }; then
4390 # Broken: success on invalid input.
4391 continue
4392 else
4393 echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396 # Passes both tests.
4397 ac_preproc_ok=:
4398 break
4399 fi
4400
4401 rm -f conftest.err conftest.$ac_ext
4402
4403 done
4404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4405 rm -f conftest.err conftest.$ac_ext
4406 if $ac_preproc_ok; then
4407 :
4408 else
4409 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4410 See \`config.log' for more details." >&5
4411 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4412 See \`config.log' for more details." >&2;}
4413 { (exit 1); exit 1; }; }
4414 fi
4415
4416 ac_ext=c
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421
4422
4423 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4424 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4425 if test "${ac_cv_path_GREP+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 # Extract the first word of "grep ggrep" to use in msg output
4429 if test -z "$GREP"; then
4430 set dummy grep ggrep; ac_prog_name=$2
4431 if test "${ac_cv_path_GREP+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 ac_path_GREP_found=false
4435 # Loop through the user's path and test for each of PROGNAME-LIST
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4438 do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_prog in grep ggrep; do
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4444 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4445 # Check for GNU ac_path_GREP and select it if it is found.
4446 # Check for GNU $ac_path_GREP
4447 case `"$ac_path_GREP" --version 2>&1` in
4448 *GNU*)
4449 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4450 *)
4451 ac_count=0
4452 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4453 while :
4454 do
4455 cat "conftest.in" "conftest.in" >"conftest.tmp"
4456 mv "conftest.tmp" "conftest.in"
4457 cp "conftest.in" "conftest.nl"
4458 echo 'GREP' >> "conftest.nl"
4459 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4461 ac_count=`expr $ac_count + 1`
4462 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4463 # Best one so far, save it but keep looking for a better one
4464 ac_cv_path_GREP="$ac_path_GREP"
4465 ac_path_GREP_max=$ac_count
4466 fi
4467 # 10*(2^10) chars as input seems more than enough
4468 test $ac_count -gt 10 && break
4469 done
4470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4471 esac
4472
4473
4474 $ac_path_GREP_found && break 3
4475 done
4476 done
4477
4478 done
4479 IFS=$as_save_IFS
4480
4481
4482 fi
4483
4484 GREP="$ac_cv_path_GREP"
4485 if test -z "$GREP"; then
4486 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4487 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4488 { (exit 1); exit 1; }; }
4489 fi
4490
4491 else
4492 ac_cv_path_GREP=$GREP
4493 fi
4494
4495
4496 fi
4497 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4498 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4499 GREP="$ac_cv_path_GREP"
4500
4501
4502 { echo "$as_me:$LINENO: checking for egrep" >&5
4503 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4504 if test "${ac_cv_path_EGREP+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4508 then ac_cv_path_EGREP="$GREP -E"
4509 else
4510 # Extract the first word of "egrep" to use in msg output
4511 if test -z "$EGREP"; then
4512 set dummy egrep; ac_prog_name=$2
4513 if test "${ac_cv_path_EGREP+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516 ac_path_EGREP_found=false
4517 # Loop through the user's path and test for each of PROGNAME-LIST
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520 do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_prog in egrep; do
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4526 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4527 # Check for GNU ac_path_EGREP and select it if it is found.
4528 # Check for GNU $ac_path_EGREP
4529 case `"$ac_path_EGREP" --version 2>&1` in
4530 *GNU*)
4531 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4532 *)
4533 ac_count=0
4534 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4535 while :
4536 do
4537 cat "conftest.in" "conftest.in" >"conftest.tmp"
4538 mv "conftest.tmp" "conftest.in"
4539 cp "conftest.in" "conftest.nl"
4540 echo 'EGREP' >> "conftest.nl"
4541 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543 ac_count=`expr $ac_count + 1`
4544 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4545 # Best one so far, save it but keep looking for a better one
4546 ac_cv_path_EGREP="$ac_path_EGREP"
4547 ac_path_EGREP_max=$ac_count
4548 fi
4549 # 10*(2^10) chars as input seems more than enough
4550 test $ac_count -gt 10 && break
4551 done
4552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553 esac
4554
4555
4556 $ac_path_EGREP_found && break 3
4557 done
4558 done
4559
4560 done
4561 IFS=$as_save_IFS
4562
4563
4564 fi
4565
4566 EGREP="$ac_cv_path_EGREP"
4567 if test -z "$EGREP"; then
4568 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4569 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4570 { (exit 1); exit 1; }; }
4571 fi
4572
4573 else
4574 ac_cv_path_EGREP=$EGREP
4575 fi
4576
4577
4578 fi
4579 fi
4580 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4581 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4582 EGREP="$ac_cv_path_EGREP"
4583
4584
4585
4586 { echo "$as_me:$LINENO: checking for AIX" >&5
4587 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4588 cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h. */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 #ifdef _AIX
4595 yes
4596 #endif
4597
4598 _ACEOF
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 $EGREP "yes" >/dev/null 2>&1; then
4601 { echo "$as_me:$LINENO: result: yes" >&5
4602 echo "${ECHO_T}yes" >&6; }
4603 cat >>confdefs.h <<\_ACEOF
4604 #define _ALL_SOURCE 1
4605 _ACEOF
4606
4607 else
4608 { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4610 fi
4611 rm -f conftest*
4612
4613
4614
4615 cat >>confdefs.h <<\_ACEOF
4616 #define _GNU_SOURCE 1
4617 _ACEOF
4618
4619
4620
4621 ### Use -Wno-pointer-sign if the compiler supports it
4622 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4623 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4624 SAVE_CFLAGS="$CFLAGS"
4625 CFLAGS="$CFLAGS -Wno-pointer-sign"
4626 cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h. */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632
4633 int
4634 main ()
4635 {
4636
4637 ;
4638 return 0;
4639 }
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (ac_try="$ac_compile"
4643 case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_compile") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest.$ac_objext; then
4658 has_option=yes
4659 else
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663 has_option=no
4664 fi
4665
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 if test $has_option = yes; then
4668 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4669 fi
4670 { echo "$as_me:$LINENO: result: $has_option" >&5
4671 echo "${ECHO_T}$has_option" >&6; }
4672 CFLAGS="$SAVE_CFLAGS"
4673 unset has_option
4674 unset SAVE_CFLAGS
4675
4676 #### Some other nice autoconf tests.
4677
4678 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4679 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4680 LN_S=$as_ln_s
4681 if test "$LN_S" = "ln -s"; then
4682 { echo "$as_me:$LINENO: result: yes" >&5
4683 echo "${ECHO_T}yes" >&6; }
4684 else
4685 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4686 echo "${ECHO_T}no, using $LN_S" >&6; }
4687 fi
4688
4689 ac_ext=c
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4695 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4696 # On Suns, sometimes $CPP names a directory.
4697 if test -n "$CPP" && test -d "$CPP"; then
4698 CPP=
4699 fi
4700 if test -z "$CPP"; then
4701 if test "${ac_cv_prog_CPP+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 # Double quotes because CPP needs to be expanded
4705 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4706 do
4707 ac_preproc_ok=false
4708 for ac_c_preproc_warn_flag in '' yes
4709 do
4710 # Use a header file that comes with gcc, so configuring glibc
4711 # with a fresh cross-compiler works.
4712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4713 # <limits.h> exists even on freestanding compilers.
4714 # On the NeXT, cc -E runs the code through the compiler's parser,
4715 # not just through cpp. "Syntax error" is here to catch this case.
4716 cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h. */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 #ifdef __STDC__
4723 # include <limits.h>
4724 #else
4725 # include <assert.h>
4726 #endif
4727 Syntax error
4728 _ACEOF
4729 if { (ac_try="$ac_cpp conftest.$ac_ext"
4730 case "(($ac_try" in
4731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4732 *) ac_try_echo=$ac_try;;
4733 esac
4734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev/null && {
4742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4744 }; then
4745 :
4746 else
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 # Broken: fails on valid input.
4751 continue
4752 fi
4753
4754 rm -f conftest.err conftest.$ac_ext
4755
4756 # OK, works on sane cases. Now check whether nonexistent headers
4757 # can be detected and how.
4758 cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h. */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 #include <ac_nonexistent.h>
4765 _ACEOF
4766 if { (ac_try="$ac_cpp conftest.$ac_ext"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4773 ac_status=$?
4774 grep -v '^ *+' conftest.er1 >conftest.err
4775 rm -f conftest.er1
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null && {
4779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4781 }; then
4782 # Broken: success on invalid input.
4783 continue
4784 else
4785 echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4787
4788 # Passes both tests.
4789 ac_preproc_ok=:
4790 break
4791 fi
4792
4793 rm -f conftest.err conftest.$ac_ext
4794
4795 done
4796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4797 rm -f conftest.err conftest.$ac_ext
4798 if $ac_preproc_ok; then
4799 break
4800 fi
4801
4802 done
4803 ac_cv_prog_CPP=$CPP
4804
4805 fi
4806 CPP=$ac_cv_prog_CPP
4807 else
4808 ac_cv_prog_CPP=$CPP
4809 fi
4810 { echo "$as_me:$LINENO: result: $CPP" >&5
4811 echo "${ECHO_T}$CPP" >&6; }
4812 ac_preproc_ok=false
4813 for ac_c_preproc_warn_flag in '' yes
4814 do
4815 # Use a header file that comes with gcc, so configuring glibc
4816 # with a fresh cross-compiler works.
4817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818 # <limits.h> exists even on freestanding compilers.
4819 # On the NeXT, cc -E runs the code through the compiler's parser,
4820 # not just through cpp. "Syntax error" is here to catch this case.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h. */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #ifdef __STDC__
4828 # include <limits.h>
4829 #else
4830 # include <assert.h>
4831 #endif
4832 Syntax error
4833 _ACEOF
4834 if { (ac_try="$ac_cpp conftest.$ac_ext"
4835 case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838 esac
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null && {
4847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 }; then
4850 :
4851 else
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 # Broken: fails on valid input.
4856 continue
4857 fi
4858
4859 rm -f conftest.err conftest.$ac_ext
4860
4861 # OK, works on sane cases. Now check whether nonexistent headers
4862 # can be detected and how.
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4869 #include <ac_nonexistent.h>
4870 _ACEOF
4871 if { (ac_try="$ac_cpp conftest.$ac_ext"
4872 case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875 esac
4876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev/null && {
4884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4885 test ! -s conftest.err
4886 }; then
4887 # Broken: success on invalid input.
4888 continue
4889 else
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 # Passes both tests.
4894 ac_preproc_ok=:
4895 break
4896 fi
4897
4898 rm -f conftest.err conftest.$ac_ext
4899
4900 done
4901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4902 rm -f conftest.err conftest.$ac_ext
4903 if $ac_preproc_ok; then
4904 :
4905 else
4906 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4907 See \`config.log' for more details." >&5
4908 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4909 See \`config.log' for more details." >&2;}
4910 { (exit 1); exit 1; }; }
4911 fi
4912
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
4919 # Find a good install program. We prefer a C program (faster),
4920 # so one script is as good as another. But avoid the broken or
4921 # incompatible versions:
4922 # SysV /etc/install, /usr/sbin/install
4923 # SunOS /usr/etc/install
4924 # IRIX /sbin/install
4925 # AIX /bin/install
4926 # AmigaOS /C/install, which installs bootblocks on floppy discs
4927 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4928 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4929 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4930 # OS/2's system install, which has a completely different semantic
4931 # ./install, which can be erroneously created by make from ./install.sh.
4932 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4933 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4934 if test -z "$INSTALL"; then
4935 if test "${ac_cv_path_install+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 # Account for people who put trailing slashes in PATH elements.
4944 case $as_dir/ in
4945 ./ | .// | /cC/* | \
4946 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4947 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4948 /usr/ucb/* ) ;;
4949 *)
4950 # OSF1 and SCO ODT 3.0 have their own names for install.
4951 # Don't use installbsd from OSF since it installs stuff as root
4952 # by default.
4953 for ac_prog in ginstall scoinst install; do
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4956 if test $ac_prog = install &&
4957 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4958 # AIX install. It has an incompatible calling convention.
4959 :
4960 elif test $ac_prog = install &&
4961 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4962 # program-specific install script used by HP pwplus--don't use.
4963 :
4964 else
4965 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4966 break 3
4967 fi
4968 fi
4969 done
4970 done
4971 ;;
4972 esac
4973 done
4974 IFS=$as_save_IFS
4975
4976
4977 fi
4978 if test "${ac_cv_path_install+set}" = set; then
4979 INSTALL=$ac_cv_path_install
4980 else
4981 # As a last resort, use the slow shell script. Don't cache a
4982 # value for INSTALL within a source directory, because that will
4983 # break other packages using the cache if that directory is
4984 # removed, or if the value is a relative name.
4985 INSTALL=$ac_install_sh
4986 fi
4987 fi
4988 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4989 echo "${ECHO_T}$INSTALL" >&6; }
4990
4991 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4992 # It thinks the first close brace ends the variable substitution.
4993 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4994
4995 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4996
4997 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4998
4999 if test "x$RANLIB" = x; then
5000 if test -n "$ac_tool_prefix"; then
5001 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5002 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005 if test "${ac_cv_prog_RANLIB+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008 if test -n "$RANLIB"; then
5009 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022 done
5023 done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 RANLIB=$ac_cv_prog_RANLIB
5029 if test -n "$RANLIB"; then
5030 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5031 echo "${ECHO_T}$RANLIB" >&6; }
5032 else
5033 { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5035 fi
5036
5037
5038 fi
5039 if test -z "$ac_cv_prog_RANLIB"; then
5040 ac_ct_RANLIB=$RANLIB
5041 # Extract the first word of "ranlib", so it can be a program name with args.
5042 set dummy ranlib; ac_word=$2
5043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5045 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 if test -n "$ac_ct_RANLIB"; then
5049 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_ac_ct_RANLIB="ranlib"
5059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062 done
5063 done
5064 IFS=$as_save_IFS
5065
5066 fi
5067 fi
5068 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5069 if test -n "$ac_ct_RANLIB"; then
5070 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5071 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5072 else
5073 { echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6; }
5075 fi
5076
5077 if test "x$ac_ct_RANLIB" = x; then
5078 RANLIB=":"
5079 else
5080 case $cross_compiling:$ac_tool_warned in
5081 yes:)
5082 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5083 whose name does not start with the host triplet. If you think this
5084 configuration is useful to you, please write to autoconf@gnu.org." >&5
5085 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5086 whose name does not start with the host triplet. If you think this
5087 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5088 ac_tool_warned=yes ;;
5089 esac
5090 RANLIB=$ac_ct_RANLIB
5091 fi
5092 else
5093 RANLIB="$ac_cv_prog_RANLIB"
5094 fi
5095
5096 fi
5097 # Extract the first word of "install-info", so it can be a program name with args.
5098 set dummy install-info; ac_word=$2
5099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5101 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104 case $INSTALL_INFO in
5105 [\\/]* | ?:[\\/]*)
5106 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5107 ;;
5108 *)
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5119 fi
5120 done
5121 done
5122 IFS=$as_save_IFS
5123
5124 ;;
5125 esac
5126 fi
5127 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5128 if test -n "$INSTALL_INFO"; then
5129 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5130 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5131 else
5132 { echo "$as_me:$LINENO: result: no" >&5
5133 echo "${ECHO_T}no" >&6; }
5134 fi
5135
5136
5137 # Extract the first word of "install-info", so it can be a program name with args.
5138 set dummy install-info; ac_word=$2
5139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5141 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144 case $INSTALL_INFO in
5145 [\\/]* | ?:[\\/]*)
5146 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5147 ;;
5148 *)
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in /usr/sbin
5151 do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160 done
5161 done
5162 IFS=$as_save_IFS
5163
5164 ;;
5165 esac
5166 fi
5167 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5168 if test -n "$INSTALL_INFO"; then
5169 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5170 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5171 else
5172 { echo "$as_me:$LINENO: result: no" >&5
5173 echo "${ECHO_T}no" >&6; }
5174 fi
5175
5176
5177 # Extract the first word of "install-info", so it can be a program name with args.
5178 set dummy install-info; ac_word=$2
5179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5181 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184 case $INSTALL_INFO in
5185 [\\/]* | ?:[\\/]*)
5186 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5187 ;;
5188 *)
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in /sbin
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5205 ;;
5206 esac
5207 fi
5208 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5209 if test -n "$INSTALL_INFO"; then
5210 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5211 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5212 else
5213 { echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6; }
5215 fi
5216
5217
5218 # Extract the first word of "gzip", so it can be a program name with args.
5219 set dummy gzip; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 case $GZIP_PROG in
5226 [\\/]* | ?:[\\/]*)
5227 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5228 ;;
5229 *)
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241 done
5242 done
5243 IFS=$as_save_IFS
5244
5245 ;;
5246 esac
5247 fi
5248 GZIP_PROG=$ac_cv_path_GZIP_PROG
5249 if test -n "$GZIP_PROG"; then
5250 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5251 echo "${ECHO_T}$GZIP_PROG" >&6; }
5252 else
5253 { echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6; }
5255 fi
5256
5257
5258
5259
5260 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5261 then
5262 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5263 fi
5264
5265 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5266 then
5267 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5268 fi
5269
5270
5271 late_LDFLAGS=$LDFLAGS
5272 if test "$GCC" = yes; then
5273 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5274 else
5275 LDFLAGS="$LDFLAGS -znocombreloc"
5276 fi
5277
5278 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5279 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5280 cat >conftest.$ac_ext <<_ACEOF
5281 main(){return 0;}
5282 _ACEOF
5283 rm -f conftest.$ac_objext conftest$ac_exeext
5284 if { (ac_try="$ac_link"
5285 case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_link") 2>conftest.er1
5291 ac_status=$?
5292 grep -v '^ *+' conftest.er1 >conftest.err
5293 rm -f conftest.er1
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && {
5297 test -z "$ac_c_werror_flag" ||
5298 test ! -s conftest.err
5299 } && test -s conftest$ac_exeext &&
5300 $as_test_x conftest$ac_exeext; then
5301 { echo "$as_me:$LINENO: result: yes" >&5
5302 echo "${ECHO_T}yes" >&6; }
5303 else
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5306
5307 LDFLAGS=$late_LDFLAGS
5308 { echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6; }
5310 fi
5311
5312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5313 conftest$ac_exeext conftest.$ac_ext
5314
5315 #### Extract some information from the operating system and machine files.
5316
5317 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5318 - which libraries the lib-src programs will want, and
5319 - whether the GNU malloc routines are usable..." >&5
5320 echo "$as_me: checking the machine- and system-dependent files to find out
5321 - which libraries the lib-src programs will want, and
5322 - whether the GNU malloc routines are usable..." >&6;}
5323
5324 ### First figure out CFLAGS (which we use for running the compiler here)
5325 ### and REAL_CFLAGS (which we use for real compilation).
5326 ### The two are the same except on a few systems, where they are made
5327 ### different to work around various lossages. For example,
5328 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5329 ### as implying static linking.
5330
5331 ### If the CFLAGS env var is specified, we use that value
5332 ### instead of the default.
5333
5334 ### It's not important that this name contain the PID; you can't run
5335 ### two configures in the same directory and have anything work
5336 ### anyway.
5337 tempcname="conftest.c"
5338
5339 echo '
5340 #include "'${srcdir}'/src/'${opsysfile}'"
5341 #include "'${srcdir}'/src/'${machfile}'"
5342 #ifndef LIBS_MACHINE
5343 #define LIBS_MACHINE
5344 #endif
5345 #ifndef LIBS_SYSTEM
5346 #define LIBS_SYSTEM
5347 #endif
5348 #ifndef C_SWITCH_SYSTEM
5349 #define C_SWITCH_SYSTEM
5350 #endif
5351 #ifndef C_SWITCH_MACHINE
5352 #define C_SWITCH_MACHINE
5353 #endif
5354 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5355 configure___ c_switch_system=C_SWITCH_SYSTEM
5356 configure___ c_switch_machine=C_SWITCH_MACHINE
5357
5358 #ifndef LIB_X11_LIB
5359 #define LIB_X11_LIB -lX11
5360 #endif
5361
5362 #ifndef LIBX11_MACHINE
5363 #define LIBX11_MACHINE
5364 #endif
5365
5366 #ifndef LIBX11_SYSTEM
5367 #define LIBX11_SYSTEM
5368 #endif
5369 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5370
5371 #ifdef UNEXEC
5372 configure___ unexec=UNEXEC
5373 #else
5374 configure___ unexec=unexec.o
5375 #endif
5376
5377 #ifdef SYSTEM_MALLOC
5378 configure___ system_malloc=yes
5379 #else
5380 configure___ system_malloc=no
5381 #endif
5382
5383 #ifdef USE_MMAP_FOR_BUFFERS
5384 configure___ use_mmap_for_buffers=yes
5385 #else
5386 configure___ use_mmap_for_buffers=no
5387 #endif
5388
5389 #ifndef C_DEBUG_SWITCH
5390 #define C_DEBUG_SWITCH -g
5391 #endif
5392
5393 #ifndef C_OPTIMIZE_SWITCH
5394 #ifdef __GNUC__
5395 #define C_OPTIMIZE_SWITCH -O2
5396 #else
5397 #define C_OPTIMIZE_SWITCH -O
5398 #endif
5399 #endif
5400
5401 #ifndef C_WARNINGS_SWITCH
5402 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5403 #endif
5404
5405 #ifndef LD_SWITCH_MACHINE
5406 #define LD_SWITCH_MACHINE
5407 #endif
5408
5409 #ifndef LD_SWITCH_SYSTEM
5410 #define LD_SWITCH_SYSTEM
5411 #endif
5412
5413 #ifndef LD_SWITCH_X_SITE_AUX
5414 #define LD_SWITCH_X_SITE_AUX
5415 #endif
5416
5417 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5418 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5419
5420 #ifdef THIS_IS_CONFIGURE
5421
5422 /* Get the CFLAGS for tests in configure. */
5423 #ifdef __GNUC__
5424 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5425 #else
5426 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5427 #endif
5428
5429 #else /* not THIS_IS_CONFIGURE */
5430
5431 /* Get the CFLAGS for real compilation. */
5432 #ifdef __GNUC__
5433 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5434 #else
5435 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5436 #endif
5437
5438 #endif /* not THIS_IS_CONFIGURE */
5439 ' > ${tempcname}
5440
5441 # The value of CPP is a quoted variable reference, so we need to do this
5442 # to get its actual value...
5443 CPP=`eval "echo $CPP"`
5444 eval `${CPP} -Isrc ${tempcname} \
5445 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5446 if test "x$SPECIFIED_CFLAGS" = x; then
5447 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5448 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5449 else
5450 REAL_CFLAGS="$CFLAGS"
5451 fi
5452 rm ${tempcname}
5453
5454 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5455
5456 ### Make sure subsequent tests use flags consistent with the build flags.
5457
5458 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5459 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5460 else
5461 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5462 fi
5463
5464
5465
5466 # Check whether --enable-largefile was given.
5467 if test "${enable_largefile+set}" = set; then
5468 enableval=$enable_largefile;
5469 fi
5470
5471 if test "$enable_largefile" != no; then
5472
5473 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5474 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5475 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 else
5478 ac_cv_sys_largefile_CC=no
5479 if test "$GCC" != yes; then
5480 ac_save_CC=$CC
5481 while :; do
5482 # IRIX 6.2 and later do not support large files by default,
5483 # so use the C compiler's -n32 option if that helps.
5484 cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 #include <sys/types.h>
5491 /* Check that off_t can represent 2**63 - 1 correctly.
5492 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5493 since some C++ compilers masquerading as C compilers
5494 incorrectly reject 9223372036854775807. */
5495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5497 && LARGE_OFF_T % 2147483647 == 1)
5498 ? 1 : -1];
5499 int
5500 main ()
5501 {
5502
5503 ;
5504 return 0;
5505 }
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (ac_try="$ac_compile"
5509 case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_compile") 2>conftest.er1
5515 ac_status=$?
5516 grep -v '^ *+' conftest.er1 >conftest.err
5517 rm -f conftest.er1
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } && {
5521 test -z "$ac_c_werror_flag" ||
5522 test ! -s conftest.err
5523 } && test -s conftest.$ac_objext; then
5524 break
5525 else
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529
5530 fi
5531
5532 rm -f core conftest.err conftest.$ac_objext
5533 CC="$CC -n32"
5534 rm -f conftest.$ac_objext
5535 if { (ac_try="$ac_compile"
5536 case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539 esac
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_compile") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } && {
5548 test -z "$ac_c_werror_flag" ||
5549 test ! -s conftest.err
5550 } && test -s conftest.$ac_objext; then
5551 ac_cv_sys_largefile_CC=' -n32'; break
5552 else
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556
5557 fi
5558
5559 rm -f core conftest.err conftest.$ac_objext
5560 break
5561 done
5562 CC=$ac_save_CC
5563 rm -f conftest.$ac_ext
5564 fi
5565 fi
5566 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5567 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5568 if test "$ac_cv_sys_largefile_CC" != no; then
5569 CC=$CC$ac_cv_sys_largefile_CC
5570 fi
5571
5572 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5573 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5574 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577 while :; do
5578 cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h. */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 #include <sys/types.h>
5585 /* Check that off_t can represent 2**63 - 1 correctly.
5586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5587 since some C++ compilers masquerading as C compilers
5588 incorrectly reject 9223372036854775807. */
5589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5591 && LARGE_OFF_T % 2147483647 == 1)
5592 ? 1 : -1];
5593 int
5594 main ()
5595 {
5596
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 rm -f conftest.$ac_objext
5602 if { (ac_try="$ac_compile"
5603 case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compile") 2>conftest.er1
5609 ac_status=$?
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } && {
5615 test -z "$ac_c_werror_flag" ||
5616 test ! -s conftest.err
5617 } && test -s conftest.$ac_objext; then
5618 ac_cv_sys_file_offset_bits=no; break
5619 else
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623
5624 fi
5625
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627 cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h. */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 #define _FILE_OFFSET_BITS 64
5634 #include <sys/types.h>
5635 /* Check that off_t can represent 2**63 - 1 correctly.
5636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5637 since some C++ compilers masquerading as C compilers
5638 incorrectly reject 9223372036854775807. */
5639 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5641 && LARGE_OFF_T % 2147483647 == 1)
5642 ? 1 : -1];
5643 int
5644 main ()
5645 {
5646
5647 ;
5648 return 0;
5649 }
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (ac_try="$ac_compile"
5653 case "(($ac_try" in
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5656 esac
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_compile") 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && {
5665 test -z "$ac_c_werror_flag" ||
5666 test ! -s conftest.err
5667 } && test -s conftest.$ac_objext; then
5668 ac_cv_sys_file_offset_bits=64; break
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673
5674 fi
5675
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 ac_cv_sys_file_offset_bits=unknown
5678 break
5679 done
5680 fi
5681 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5682 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5683 case $ac_cv_sys_file_offset_bits in #(
5684 no | unknown) ;;
5685 *)
5686 cat >>confdefs.h <<_ACEOF
5687 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5688 _ACEOF
5689 ;;
5690 esac
5691 rm -f conftest*
5692 if test $ac_cv_sys_file_offset_bits = unknown; then
5693 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5694 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5695 if test "${ac_cv_sys_large_files+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 while :; do
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h. */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #include <sys/types.h>
5706 /* Check that off_t can represent 2**63 - 1 correctly.
5707 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5708 since some C++ compilers masquerading as C compilers
5709 incorrectly reject 9223372036854775807. */
5710 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5711 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5712 && LARGE_OFF_T % 2147483647 == 1)
5713 ? 1 : -1];
5714 int
5715 main ()
5716 {
5717
5718 ;
5719 return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext
5723 if { (ac_try="$ac_compile"
5724 case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_compile") 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } && {
5736 test -z "$ac_c_werror_flag" ||
5737 test ! -s conftest.err
5738 } && test -s conftest.$ac_objext; then
5739 ac_cv_sys_large_files=no; break
5740 else
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744
5745 fi
5746
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h. */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 #define _LARGE_FILES 1
5755 #include <sys/types.h>
5756 /* Check that off_t can represent 2**63 - 1 correctly.
5757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5758 since some C++ compilers masquerading as C compilers
5759 incorrectly reject 9223372036854775807. */
5760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5762 && LARGE_OFF_T % 2147483647 == 1)
5763 ? 1 : -1];
5764 int
5765 main ()
5766 {
5767
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_c_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
5789 ac_cv_sys_large_files=1; break
5790 else
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794
5795 fi
5796
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ac_cv_sys_large_files=unknown
5799 break
5800 done
5801 fi
5802 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5803 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5804 case $ac_cv_sys_large_files in #(
5805 no | unknown) ;;
5806 *)
5807 cat >>confdefs.h <<_ACEOF
5808 #define _LARGE_FILES $ac_cv_sys_large_files
5809 _ACEOF
5810 ;;
5811 esac
5812 rm -f conftest*
5813 fi
5814 fi
5815
5816
5817
5818 ### The standard library on x86-64 GNU/Linux distributions can
5819 ### be located in either /usr/lib64 or /usr/lib.
5820 case "${canonical}" in
5821 x86_64-*-linux-gnu* )
5822 if test -d /usr/lib64; then
5823
5824 cat >>confdefs.h <<\_ACEOF
5825 #define HAVE_X86_64_LIB64_DIR 1
5826 _ACEOF
5827
5828 fi
5829 esac
5830
5831
5832
5833
5834 if test "${with_sound}" != "no"; then
5835 # Sound support for GNU/Linux and the free BSDs.
5836 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5837 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5838 if test "${ac_cv_header_stdc+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 #include <stdlib.h>
5848 #include <stdarg.h>
5849 #include <string.h>
5850 #include <float.h>
5851
5852 int
5853 main ()
5854 {
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5862 case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && {
5874 test -z "$ac_c_werror_flag" ||
5875 test ! -s conftest.err
5876 } && test -s conftest.$ac_objext; then
5877 ac_cv_header_stdc=yes
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882 ac_cv_header_stdc=no
5883 fi
5884
5885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886
5887 if test $ac_cv_header_stdc = yes; then
5888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 #include <string.h>
5896
5897 _ACEOF
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 $EGREP "memchr" >/dev/null 2>&1; then
5900 :
5901 else
5902 ac_cv_header_stdc=no
5903 fi
5904 rm -f conftest*
5905
5906 fi
5907
5908 if test $ac_cv_header_stdc = yes; then
5909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <stdlib.h>
5917
5918 _ACEOF
5919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5920 $EGREP "free" >/dev/null 2>&1; then
5921 :
5922 else
5923 ac_cv_header_stdc=no
5924 fi
5925 rm -f conftest*
5926
5927 fi
5928
5929 if test $ac_cv_header_stdc = yes; then
5930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5931 if test "$cross_compiling" = yes; then
5932 :
5933 else
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <ctype.h>
5941 #include <stdlib.h>
5942 #if ((' ' & 0x0FF) == 0x020)
5943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5945 #else
5946 # define ISLOWER(c) \
5947 (('a' <= (c) && (c) <= 'i') \
5948 || ('j' <= (c) && (c) <= 'r') \
5949 || ('s' <= (c) && (c) <= 'z'))
5950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5951 #endif
5952
5953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5954 int
5955 main ()
5956 {
5957 int i;
5958 for (i = 0; i < 256; i++)
5959 if (XOR (islower (i), ISLOWER (i))
5960 || toupper (i) != TOUPPER (i))
5961 return 2;
5962 return 0;
5963 }
5964 _ACEOF
5965 rm -f conftest$ac_exeext
5966 if { (ac_try="$ac_link"
5967 case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_link") 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5976 { (case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_try") 2>&5
5982 ac_status=$?
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5985 :
5986 else
5987 echo "$as_me: program exited with status $ac_status" >&5
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991 ( exit $ac_status )
5992 ac_cv_header_stdc=no
5993 fi
5994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5995 fi
5996
5997
5998 fi
5999 fi
6000 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6001 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6002 if test $ac_cv_header_stdc = yes; then
6003
6004 cat >>confdefs.h <<\_ACEOF
6005 #define STDC_HEADERS 1
6006 _ACEOF
6007
6008 fi
6009
6010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6021 inttypes.h stdint.h unistd.h
6022 do
6023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h. */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 $ac_includes_default
6036
6037 #include <$ac_header>
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (ac_try="$ac_compile"
6041 case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044 esac
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
6056 eval "$as_ac_Header=yes"
6057 else
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6060
6061 eval "$as_ac_Header=no"
6062 fi
6063
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 fi
6066 ac_res=`eval echo '${'$as_ac_Header'}'`
6067 { echo "$as_me:$LINENO: result: $ac_res" >&5
6068 echo "${ECHO_T}$ac_res" >&6; }
6069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6070 cat >>confdefs.h <<_ACEOF
6071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6072 _ACEOF
6073
6074 fi
6075
6076 done
6077
6078
6079
6080
6081
6082 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6083 do
6084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 fi
6091 ac_res=`eval echo '${'$as_ac_Header'}'`
6092 { echo "$as_me:$LINENO: result: $ac_res" >&5
6093 echo "${ECHO_T}$ac_res" >&6; }
6094 else
6095 # Is the header compilable?
6096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6098 cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h. */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 $ac_includes_default
6105 #include <$ac_header>
6106 _ACEOF
6107 rm -f conftest.$ac_objext
6108 if { (ac_try="$ac_compile"
6109 case "(($ac_try" in
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6112 esac
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_compile") 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && {
6121 test -z "$ac_c_werror_flag" ||
6122 test ! -s conftest.err
6123 } && test -s conftest.$ac_objext; then
6124 ac_header_compiler=yes
6125 else
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 ac_header_compiler=no
6130 fi
6131
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6134 echo "${ECHO_T}$ac_header_compiler" >&6; }
6135
6136 # Is the header present?
6137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145 #include <$ac_header>
6146 _ACEOF
6147 if { (ac_try="$ac_cpp conftest.$ac_ext"
6148 case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } >/dev/null && {
6160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 }; then
6163 ac_header_preproc=yes
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 ac_header_preproc=no
6169 fi
6170
6171 rm -f conftest.err conftest.$ac_ext
6172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6173 echo "${ECHO_T}$ac_header_preproc" >&6; }
6174
6175 # So? What about this header?
6176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6177 yes:no: )
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6182 ac_header_preproc=yes
6183 ;;
6184 no:yes:* )
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6197
6198 ;;
6199 esac
6200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 eval "$as_ac_Header=\$ac_header_preproc"
6206 fi
6207 ac_res=`eval echo '${'$as_ac_Header'}'`
6208 { echo "$as_me:$LINENO: result: $ac_res" >&5
6209 echo "${ECHO_T}$ac_res" >&6; }
6210
6211 fi
6212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6213 cat >>confdefs.h <<_ACEOF
6214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6215 _ACEOF
6216
6217 fi
6218
6219 done
6220
6221 # Emulation library used on NetBSD.
6222 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6223 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6224 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227 ac_check_lib_save_LIBS=$LIBS
6228 LIBS="-lossaudio $LIBS"
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235
6236 /* Override any GCC internal prototype to avoid an error.
6237 Use char because int might match the return type of a GCC
6238 builtin and then its argument prototype would still apply. */
6239 #ifdef __cplusplus
6240 extern "C"
6241 #endif
6242 char _oss_ioctl ();
6243 int
6244 main ()
6245 {
6246 return _oss_ioctl ();
6247 ;
6248 return 0;
6249 }
6250 _ACEOF
6251 rm -f conftest.$ac_objext conftest$ac_exeext
6252 if { (ac_try="$ac_link"
6253 case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256 esac
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_link") 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_c_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest$ac_exeext &&
6268 $as_test_x conftest$ac_exeext; then
6269 ac_cv_lib_ossaudio__oss_ioctl=yes
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6273
6274 ac_cv_lib_ossaudio__oss_ioctl=no
6275 fi
6276
6277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6278 conftest$ac_exeext conftest.$ac_ext
6279 LIBS=$ac_check_lib_save_LIBS
6280 fi
6281 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6282 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6283 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6284 LIBSOUND=-lossaudio
6285 else
6286 LIBSOUND=
6287 fi
6288
6289
6290
6291 ALSA_REQUIRED=1.0.0
6292 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6293 if test "X${with_pkg_config_prog}" != X; then
6294 PKG_CONFIG="${with_pkg_config_prog}"
6295 fi
6296
6297 succeeded=no
6298
6299 if test -z "$PKG_CONFIG"; then
6300 # Extract the first word of "pkg-config", so it can be a program name with args.
6301 set dummy pkg-config; ac_word=$2
6302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 case $PKG_CONFIG in
6308 [\\/]* | ?:[\\/]*)
6309 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6310 ;;
6311 *)
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6328 ;;
6329 esac
6330 fi
6331 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6332 if test -n "$PKG_CONFIG"; then
6333 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6334 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6335 else
6336 { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6338 fi
6339
6340
6341 fi
6342
6343 if test "$PKG_CONFIG" = "no" ; then
6344 HAVE_ALSA=no
6345 else
6346 PKG_CONFIG_MIN_VERSION=0.9.0
6347 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6348 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6349 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6350
6351 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6352 { echo "$as_me:$LINENO: result: yes" >&5
6353 echo "${ECHO_T}yes" >&6; }
6354 succeeded=yes
6355
6356 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6357 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6358 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6359 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6360 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6361
6362 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6363 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6364 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6365 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6366 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6367 else
6368 { echo "$as_me:$LINENO: result: no" >&5
6369 echo "${ECHO_T}no" >&6; }
6370 ALSA_CFLAGS=""
6371 ALSA_LIBS=""
6372 ## If we have a custom action on failure, don't print errors, but
6373 ## do set a variable so people can do so.
6374 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6375
6376 fi
6377
6378
6379
6380 else
6381 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6382 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6383 fi
6384 fi
6385
6386 if test $succeeded = yes; then
6387 HAVE_ALSA=yes
6388 else
6389 HAVE_ALSA=no
6390 fi
6391
6392 if test $HAVE_ALSA = yes; then
6393 SAVE_CFLAGS="$CFLAGS"
6394 SAVE_LDFLAGS="$LDFLAGS"
6395 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6396 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 #include <asoundlib.h>
6404 int
6405 main ()
6406 {
6407 snd_lib_error_set_handler (0);
6408 ;
6409 return 0;
6410 }
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (ac_try="$ac_compile"
6414 case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417 esac
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_compile") 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } && {
6426 test -z "$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 } && test -s conftest.$ac_objext; then
6429 emacs_alsa_normal=yes
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 emacs_alsa_normal=no
6435 fi
6436
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 if test "$emacs_alsa_normal" != yes; then
6439 cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h. */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 #include <alsa/asoundlib.h>
6446 int
6447 main ()
6448 {
6449 snd_lib_error_set_handler (0);
6450 ;
6451 return 0;
6452 }
6453 _ACEOF
6454 rm -f conftest.$ac_objext
6455 if { (ac_try="$ac_compile"
6456 case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459 esac
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_compile") 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && {
6468 test -z "$ac_c_werror_flag" ||
6469 test ! -s conftest.err
6470 } && test -s conftest.$ac_objext; then
6471 emacs_alsa_subdir=yes
6472 else
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476 emacs_alsa_subdir=no
6477 fi
6478
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 if test "$emacs_alsa_subdir" != yes; then
6481 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6482 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6483 { (exit 1); exit 1; }; }
6484 fi
6485 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6486 fi
6487
6488 CFLAGS="$SAVE_CFLAGS"
6489 LDFLAGS="$SAVE_LDFLAGS"
6490 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6491 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6492
6493 cat >>confdefs.h <<\_ACEOF
6494 #define HAVE_ALSA 1
6495 _ACEOF
6496
6497
6498 fi
6499
6500 fi
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6528 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6529 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6530 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6531 sys/utsname.h pwd.h
6532 do
6533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 fi
6540 ac_res=`eval echo '${'$as_ac_Header'}'`
6541 { echo "$as_me:$LINENO: result: $ac_res" >&5
6542 echo "${ECHO_T}$ac_res" >&6; }
6543 else
6544 # Is the header compilable?
6545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6547 cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h. */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 $ac_includes_default
6554 #include <$ac_header>
6555 _ACEOF
6556 rm -f conftest.$ac_objext
6557 if { (ac_try="$ac_compile"
6558 case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6573 ac_header_compiler=yes
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_header_compiler=no
6579 fi
6580
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6583 echo "${ECHO_T}$ac_header_compiler" >&6; }
6584
6585 # Is the header present?
6586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h. */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 #include <$ac_header>
6595 _ACEOF
6596 if { (ac_try="$ac_cpp conftest.$ac_ext"
6597 case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600 esac
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } >/dev/null && {
6609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 }; then
6612 ac_header_preproc=yes
6613 else
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6616
6617 ac_header_preproc=no
6618 fi
6619
6620 rm -f conftest.err conftest.$ac_ext
6621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6622 echo "${ECHO_T}$ac_header_preproc" >&6; }
6623
6624 # So? What about this header?
6625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6626 yes:no: )
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6631 ac_header_preproc=yes
6632 ;;
6633 no:yes:* )
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6646
6647 ;;
6648 esac
6649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 eval "$as_ac_Header=\$ac_header_preproc"
6655 fi
6656 ac_res=`eval echo '${'$as_ac_Header'}'`
6657 { echo "$as_me:$LINENO: result: $ac_res" >&5
6658 echo "${ECHO_T}$ac_res" >&6; }
6659
6660 fi
6661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6662 cat >>confdefs.h <<_ACEOF
6663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6664 _ACEOF
6665
6666 fi
6667
6668 done
6669
6670
6671 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6672 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h. */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #include <sys/personality.h>
6680 int
6681 main ()
6682 {
6683 personality (PER_LINUX32)
6684 ;
6685 return 0;
6686 }
6687 _ACEOF
6688 rm -f conftest.$ac_objext
6689 if { (ac_try="$ac_compile"
6690 case "(($ac_try" in
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 emacs_cv_personality_linux32=yes
6706 else
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710 emacs_cv_personality_linux32=no
6711 fi
6712
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6715 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6716
6717 if test $emacs_cv_personality_linux32 = yes; then
6718
6719 cat >>confdefs.h <<\_ACEOF
6720 #define HAVE_PERSONALITY_LINUX32 1
6721 _ACEOF
6722
6723 fi
6724
6725
6726 for ac_header in term.h
6727 do
6728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <$ac_header>
6741 _ACEOF
6742 if { (ac_try="$ac_cpp conftest.$ac_ext"
6743 case "(($ac_try" in
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6746 esac
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } >/dev/null && {
6755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6756 test ! -s conftest.err
6757 }; then
6758 eval "$as_ac_Header=yes"
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 eval "$as_ac_Header=no"
6764 fi
6765
6766 rm -f conftest.err conftest.$ac_ext
6767 fi
6768 ac_res=`eval echo '${'$as_ac_Header'}'`
6769 { echo "$as_me:$LINENO: result: $ac_res" >&5
6770 echo "${ECHO_T}$ac_res" >&6; }
6771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6772 cat >>confdefs.h <<_ACEOF
6773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6774 _ACEOF
6775
6776 fi
6777
6778 done
6779
6780 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6781 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6782 if test "${ac_cv_header_stdc+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 else
6785 cat >conftest.$ac_ext <<_ACEOF
6786 /* confdefs.h. */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 #include <stdlib.h>
6792 #include <stdarg.h>
6793 #include <string.h>
6794 #include <float.h>
6795
6796 int
6797 main ()
6798 {
6799
6800 ;
6801 return 0;
6802 }
6803 _ACEOF
6804 rm -f conftest.$ac_objext
6805 if { (ac_try="$ac_compile"
6806 case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809 esac
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_compile") 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } && {
6818 test -z "$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 } && test -s conftest.$ac_objext; then
6821 ac_cv_header_stdc=yes
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 ac_cv_header_stdc=no
6827 fi
6828
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830
6831 if test $ac_cv_header_stdc = yes; then
6832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6833 cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h. */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 #include <string.h>
6840
6841 _ACEOF
6842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843 $EGREP "memchr" >/dev/null 2>&1; then
6844 :
6845 else
6846 ac_cv_header_stdc=no
6847 fi
6848 rm -f conftest*
6849
6850 fi
6851
6852 if test $ac_cv_header_stdc = yes; then
6853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <stdlib.h>
6861
6862 _ACEOF
6863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864 $EGREP "free" >/dev/null 2>&1; then
6865 :
6866 else
6867 ac_cv_header_stdc=no
6868 fi
6869 rm -f conftest*
6870
6871 fi
6872
6873 if test $ac_cv_header_stdc = yes; then
6874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6875 if test "$cross_compiling" = yes; then
6876 :
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 #include <ctype.h>
6885 #include <stdlib.h>
6886 #if ((' ' & 0x0FF) == 0x020)
6887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6889 #else
6890 # define ISLOWER(c) \
6891 (('a' <= (c) && (c) <= 'i') \
6892 || ('j' <= (c) && (c) <= 'r') \
6893 || ('s' <= (c) && (c) <= 'z'))
6894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6895 #endif
6896
6897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6898 int
6899 main ()
6900 {
6901 int i;
6902 for (i = 0; i < 256; i++)
6903 if (XOR (islower (i), ISLOWER (i))
6904 || toupper (i) != TOUPPER (i))
6905 return 2;
6906 return 0;
6907 }
6908 _ACEOF
6909 rm -f conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6911 case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6914 esac
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_link") 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6920 { (case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923 esac
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_try") 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 :
6930 else
6931 echo "$as_me: program exited with status $ac_status" >&5
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 ( exit $ac_status )
6936 ac_cv_header_stdc=no
6937 fi
6938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6939 fi
6940
6941
6942 fi
6943 fi
6944 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6945 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6946 if test $ac_cv_header_stdc = yes; then
6947
6948 cat >>confdefs.h <<\_ACEOF
6949 #define STDC_HEADERS 1
6950 _ACEOF
6951
6952 fi
6953
6954 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6955 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6956 if test "${ac_cv_header_time+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 #include <sys/types.h>
6966 #include <sys/time.h>
6967 #include <time.h>
6968
6969 int
6970 main ()
6971 {
6972 if ((struct tm *) 0)
6973 return 0;
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (ac_try="$ac_compile"
6980 case "(($ac_try" in
6981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6983 esac
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6995 ac_cv_header_time=yes
6996 else
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
6999
7000 ac_cv_header_time=no
7001 fi
7002
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 fi
7005 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7006 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7007 if test $ac_cv_header_time = yes; then
7008
7009 cat >>confdefs.h <<\_ACEOF
7010 #define TIME_WITH_SYS_TIME 1
7011 _ACEOF
7012
7013 fi
7014
7015 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7016 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7017 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 $ac_includes_default
7027 int
7028 main ()
7029 {
7030 #ifndef sys_siglist
7031 (void) sys_siglist;
7032 #endif
7033
7034 ;
7035 return 0;
7036 }
7037 _ACEOF
7038 rm -f conftest.$ac_objext
7039 if { (ac_try="$ac_compile"
7040 case "(($ac_try" in
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7043 esac
7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045 (eval "$ac_compile") 2>conftest.er1
7046 ac_status=$?
7047 grep -v '^ *+' conftest.er1 >conftest.err
7048 rm -f conftest.er1
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && {
7052 test -z "$ac_c_werror_flag" ||
7053 test ! -s conftest.err
7054 } && test -s conftest.$ac_objext; then
7055 ac_cv_have_decl_sys_siglist=yes
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7059
7060 ac_cv_have_decl_sys_siglist=no
7061 fi
7062
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 fi
7065 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7066 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7067 if test $ac_cv_have_decl_sys_siglist = yes; then
7068
7069 cat >>confdefs.h <<_ACEOF
7070 #define HAVE_DECL_SYS_SIGLIST 1
7071 _ACEOF
7072
7073
7074 else
7075 cat >>confdefs.h <<_ACEOF
7076 #define HAVE_DECL_SYS_SIGLIST 0
7077 _ACEOF
7078
7079
7080 fi
7081
7082
7083 if test $ac_cv_have_decl_sys_siglist != yes; then
7084 # For Tru64, at least:
7085 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7086 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7087 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h. */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 $ac_includes_default
7097 int
7098 main ()
7099 {
7100 #ifndef __sys_siglist
7101 (void) __sys_siglist;
7102 #endif
7103
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7110 case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113 esac
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7125 ac_cv_have_decl___sys_siglist=yes
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_cv_have_decl___sys_siglist=no
7131 fi
7132
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 fi
7135 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7136 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7137 if test $ac_cv_have_decl___sys_siglist = yes; then
7138
7139 cat >>confdefs.h <<_ACEOF
7140 #define HAVE_DECL___SYS_SIGLIST 1
7141 _ACEOF
7142
7143
7144 else
7145 cat >>confdefs.h <<_ACEOF
7146 #define HAVE_DECL___SYS_SIGLIST 0
7147 _ACEOF
7148
7149
7150 fi
7151
7152
7153 if test $ac_cv_have_decl___sys_siglist = yes; then
7154
7155 cat >>confdefs.h <<\_ACEOF
7156 #define sys_siglist __sys_siglist
7157 _ACEOF
7158
7159 fi
7160 fi
7161 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7162 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7163 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #include <sys/types.h>
7173 #include <sys/wait.h>
7174 #ifndef WEXITSTATUS
7175 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7176 #endif
7177 #ifndef WIFEXITED
7178 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7179 #endif
7180
7181 int
7182 main ()
7183 {
7184 int s;
7185 wait (&s);
7186 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7187 ;
7188 return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7193 case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196 esac
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 ac_cv_header_sys_wait_h=yes
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7212
7213 ac_cv_header_sys_wait_h=no
7214 fi
7215
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 fi
7218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7219 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7220 if test $ac_cv_header_sys_wait_h = yes; then
7221
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_SYS_WAIT_H 1
7224 _ACEOF
7225
7226 fi
7227
7228
7229 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7230 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7231 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 #ifdef TIME_WITH_SYS_TIME
7241 #include <sys/time.h>
7242 #include <time.h>
7243 #else
7244 #ifdef HAVE_SYS_TIME_H
7245 #include <sys/time.h>
7246 #else
7247 #include <time.h>
7248 #endif
7249 #endif
7250 #ifdef HAVE_UTIME_H
7251 #include <utime.h>
7252 #endif
7253 int
7254 main ()
7255 {
7256 static struct utimbuf x; x.actime = x.modtime;
7257 ;
7258 return 0;
7259 }
7260 _ACEOF
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7263 case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.$ac_objext; then
7278 emacs_cv_struct_utimbuf=yes
7279 else
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7282
7283 emacs_cv_struct_utimbuf=no
7284 fi
7285
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 fi
7288 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7289 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7290 if test $emacs_cv_struct_utimbuf = yes; then
7291
7292 cat >>confdefs.h <<\_ACEOF
7293 #define HAVE_STRUCT_UTIMBUF 1
7294 _ACEOF
7295
7296 fi
7297
7298 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7299 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7300 if test "${ac_cv_type_signal+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 #include <sys/types.h>
7310 #include <signal.h>
7311
7312 int
7313 main ()
7314 {
7315 return *(signal (0, 0)) (0) == 1;
7316 ;
7317 return 0;
7318 }
7319 _ACEOF
7320 rm -f conftest.$ac_objext
7321 if { (ac_try="$ac_compile"
7322 case "(($ac_try" in
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7325 esac
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_compile") 2>conftest.er1
7328 ac_status=$?
7329 grep -v '^ *+' conftest.er1 >conftest.err
7330 rm -f conftest.er1
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } && {
7334 test -z "$ac_c_werror_flag" ||
7335 test ! -s conftest.err
7336 } && test -s conftest.$ac_objext; then
7337 ac_cv_type_signal=int
7338 else
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7341
7342 ac_cv_type_signal=void
7343 fi
7344
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 fi
7347 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7348 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7349
7350 cat >>confdefs.h <<_ACEOF
7351 #define RETSIGTYPE $ac_cv_type_signal
7352 _ACEOF
7353
7354
7355
7356 { echo "$as_me:$LINENO: checking for speed_t" >&5
7357 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7358 if test "${emacs_cv_speed_t+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361 cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h. */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 #include <termios.h>
7368 int
7369 main ()
7370 {
7371 speed_t x = 1;
7372 ;
7373 return 0;
7374 }
7375 _ACEOF
7376 rm -f conftest.$ac_objext
7377 if { (ac_try="$ac_compile"
7378 case "(($ac_try" in
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7381 esac
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 emacs_cv_speed_t=yes
7394 else
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 emacs_cv_speed_t=no
7399 fi
7400
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 fi
7403 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7404 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7405 if test $emacs_cv_speed_t = yes; then
7406
7407 cat >>confdefs.h <<\_ACEOF
7408 #define HAVE_SPEED_T 1
7409 _ACEOF
7410
7411 fi
7412
7413 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7414 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7415 if test "${emacs_cv_struct_timeval+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h. */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 #ifdef TIME_WITH_SYS_TIME
7425 #include <sys/time.h>
7426 #include <time.h>
7427 #else
7428 #ifdef HAVE_SYS_TIME_H
7429 #include <sys/time.h>
7430 #else
7431 #include <time.h>
7432 #endif
7433 #endif
7434 int
7435 main ()
7436 {
7437 static struct timeval x; x.tv_sec = x.tv_usec;
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (ac_try="$ac_compile"
7444 case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447 esac
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_compile") 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest.$ac_objext; then
7459 emacs_cv_struct_timeval=yes
7460 else
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7463
7464 emacs_cv_struct_timeval=no
7465 fi
7466
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 fi
7469 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7470 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7471 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7472 if test $emacs_cv_struct_timeval = yes; then
7473
7474 cat >>confdefs.h <<\_ACEOF
7475 #define HAVE_TIMEVAL 1
7476 _ACEOF
7477
7478 fi
7479
7480 { echo "$as_me:$LINENO: checking for struct exception" >&5
7481 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7482 if test "${emacs_cv_struct_exception+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h. */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 #include <math.h>
7492 int
7493 main ()
7494 {
7495 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7496 ;
7497 return 0;
7498 }
7499 _ACEOF
7500 rm -f conftest.$ac_objext
7501 if { (ac_try="$ac_compile"
7502 case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505 esac
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.$ac_objext; then
7517 emacs_cv_struct_exception=yes
7518 else
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7521
7522 emacs_cv_struct_exception=no
7523 fi
7524
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 fi
7527 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7528 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7529 HAVE_EXCEPTION=$emacs_cv_struct_exception
7530 if test $emacs_cv_struct_exception != yes; then
7531
7532 cat >>confdefs.h <<\_ACEOF
7533 #define NO_MATHERR 1
7534 _ACEOF
7535
7536 fi
7537
7538
7539 for ac_header in sys/socket.h
7540 do
7541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 fi
7548 ac_res=`eval echo '${'$as_ac_Header'}'`
7549 { echo "$as_me:$LINENO: result: $ac_res" >&5
7550 echo "${ECHO_T}$ac_res" >&6; }
7551 else
7552 # Is the header compilable?
7553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 #include <$ac_header>
7563 _ACEOF
7564 rm -f conftest.$ac_objext
7565 if { (ac_try="$ac_compile"
7566 case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7569 esac
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_compile") 2>conftest.er1
7572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && {
7578 test -z "$ac_c_werror_flag" ||
7579 test ! -s conftest.err
7580 } && test -s conftest.$ac_objext; then
7581 ac_header_compiler=yes
7582 else
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7585
7586 ac_header_compiler=no
7587 fi
7588
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7591 echo "${ECHO_T}$ac_header_compiler" >&6; }
7592
7593 # Is the header present?
7594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7596 cat >conftest.$ac_ext <<_ACEOF
7597 /* confdefs.h. */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 #include <$ac_header>
7603 _ACEOF
7604 if { (ac_try="$ac_cpp conftest.$ac_ext"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } >/dev/null && {
7617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 }; then
7620 ac_header_preproc=yes
7621 else
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7624
7625 ac_header_preproc=no
7626 fi
7627
7628 rm -f conftest.err conftest.$ac_ext
7629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7630 echo "${ECHO_T}$ac_header_preproc" >&6; }
7631
7632 # So? What about this header?
7633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7634 yes:no: )
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7639 ac_header_preproc=yes
7640 ;;
7641 no:yes:* )
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7654
7655 ;;
7656 esac
7657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662 eval "$as_ac_Header=\$ac_header_preproc"
7663 fi
7664 ac_res=`eval echo '${'$as_ac_Header'}'`
7665 { echo "$as_me:$LINENO: result: $ac_res" >&5
7666 echo "${ECHO_T}$ac_res" >&6; }
7667
7668 fi
7669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7670 cat >>confdefs.h <<_ACEOF
7671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7672 _ACEOF
7673
7674 fi
7675
7676 done
7677
7678
7679 for ac_header in net/if.h
7680 do
7681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687 cat >conftest.$ac_ext <<_ACEOF
7688 /* confdefs.h. */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693 $ac_includes_default
7694 #if HAVE_SYS_SOCKET_H
7695 #include <sys/socket.h>
7696 #endif
7697
7698 #include <$ac_header>
7699 _ACEOF
7700 rm -f conftest.$ac_objext
7701 if { (ac_try="$ac_compile"
7702 case "(($ac_try" in
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7705 esac
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_compile") 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
7717 eval "$as_ac_Header=yes"
7718 else
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7721
7722 eval "$as_ac_Header=no"
7723 fi
7724
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 fi
7727 ac_res=`eval echo '${'$as_ac_Header'}'`
7728 { echo "$as_me:$LINENO: result: $ac_res" >&5
7729 echo "${ECHO_T}$ac_res" >&6; }
7730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7731 cat >>confdefs.h <<_ACEOF
7732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7733 _ACEOF
7734
7735 fi
7736
7737 done
7738
7739
7740 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7741 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7742 if test "${ac_cv_struct_tm+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745 cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h. */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751 #include <sys/types.h>
7752 #include <time.h>
7753
7754 int
7755 main ()
7756 {
7757 struct tm tm;
7758 int *p = &tm.tm_sec;
7759 return !p;
7760 ;
7761 return 0;
7762 }
7763 _ACEOF
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7766 case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769 esac
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_compile") 2>conftest.er1
7772 ac_status=$?
7773 grep -v '^ *+' conftest.er1 >conftest.err
7774 rm -f conftest.er1
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest.$ac_objext; then
7781 ac_cv_struct_tm=time.h
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 ac_cv_struct_tm=sys/time.h
7787 fi
7788
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 fi
7791 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7792 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7793 if test $ac_cv_struct_tm = sys/time.h; then
7794
7795 cat >>confdefs.h <<\_ACEOF
7796 #define TM_IN_SYS_TIME 1
7797 _ACEOF
7798
7799 fi
7800
7801 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7802 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7803 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h. */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #include <sys/types.h>
7813 #include <$ac_cv_struct_tm>
7814
7815
7816 int
7817 main ()
7818 {
7819 static struct tm ac_aggr;
7820 if (ac_aggr.tm_zone)
7821 return 0;
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext
7827 if { (ac_try="$ac_compile"
7828 case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831 esac
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_compile") 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest.$ac_objext; then
7843 ac_cv_member_struct_tm_tm_zone=yes
7844 else
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <sys/types.h>
7855 #include <$ac_cv_struct_tm>
7856
7857
7858 int
7859 main ()
7860 {
7861 static struct tm ac_aggr;
7862 if (sizeof ac_aggr.tm_zone)
7863 return 0;
7864 ;
7865 return 0;
7866 }
7867 _ACEOF
7868 rm -f conftest.$ac_objext
7869 if { (ac_try="$ac_compile"
7870 case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_compile") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest.$ac_objext; then
7885 ac_cv_member_struct_tm_tm_zone=yes
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 ac_cv_member_struct_tm_tm_zone=no
7891 fi
7892
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 fi
7895
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897 fi
7898 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7899 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7900 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7901
7902 cat >>confdefs.h <<_ACEOF
7903 #define HAVE_STRUCT_TM_TM_ZONE 1
7904 _ACEOF
7905
7906
7907 fi
7908
7909 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7910
7911 cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_TM_ZONE 1
7913 _ACEOF
7914
7915 else
7916 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7917 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7918 if test "${ac_cv_have_decl_tzname+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 #include <time.h>
7928
7929 int
7930 main ()
7931 {
7932 #ifndef tzname
7933 (void) tzname;
7934 #endif
7935
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7942 case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.$ac_objext; then
7957 ac_cv_have_decl_tzname=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962 ac_cv_have_decl_tzname=no
7963 fi
7964
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 fi
7967 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7968 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7969 if test $ac_cv_have_decl_tzname = yes; then
7970
7971 cat >>confdefs.h <<_ACEOF
7972 #define HAVE_DECL_TZNAME 1
7973 _ACEOF
7974
7975
7976 else
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DECL_TZNAME 0
7979 _ACEOF
7980
7981
7982 fi
7983
7984
7985 { echo "$as_me:$LINENO: checking for tzname" >&5
7986 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7987 if test "${ac_cv_var_tzname+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990 cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h. */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 #include <time.h>
7997 #if !HAVE_DECL_TZNAME
7998 extern char *tzname[];
7999 #endif
8000
8001 int
8002 main ()
8003 {
8004 return tzname[0][0];
8005 ;
8006 return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (ac_try="$ac_link"
8011 case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_link") 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest$ac_exeext &&
8026 $as_test_x conftest$ac_exeext; then
8027 ac_cv_var_tzname=yes
8028 else
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8031
8032 ac_cv_var_tzname=no
8033 fi
8034
8035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8036 conftest$ac_exeext conftest.$ac_ext
8037 fi
8038 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8039 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8040 if test $ac_cv_var_tzname = yes; then
8041
8042 cat >>confdefs.h <<\_ACEOF
8043 #define HAVE_TZNAME 1
8044 _ACEOF
8045
8046 fi
8047 fi
8048
8049 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8050 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8051 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h. */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 #include <time.h>
8061
8062 int
8063 main ()
8064 {
8065 static struct tm ac_aggr;
8066 if (ac_aggr.tm_gmtoff)
8067 return 0;
8068 ;
8069 return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext
8073 if { (ac_try="$ac_compile"
8074 case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_compile") 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } && {
8086 test -z "$ac_c_werror_flag" ||
8087 test ! -s conftest.err
8088 } && test -s conftest.$ac_objext; then
8089 ac_cv_member_struct_tm_tm_gmtoff=yes
8090 else
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h. */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 #include <time.h>
8101
8102 int
8103 main ()
8104 {
8105 static struct tm ac_aggr;
8106 if (sizeof ac_aggr.tm_gmtoff)
8107 return 0;
8108 ;
8109 return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (ac_try="$ac_compile"
8114 case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8117 esac
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_compile") 2>conftest.er1
8120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest.$ac_objext; then
8129 ac_cv_member_struct_tm_tm_gmtoff=yes
8130 else
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134 ac_cv_member_struct_tm_tm_gmtoff=no
8135 fi
8136
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 fi
8139
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141 fi
8142 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8143 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8144 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8145
8146 cat >>confdefs.h <<\_ACEOF
8147 #define HAVE_TM_GMTOFF 1
8148 _ACEOF
8149
8150 fi
8151
8152 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8153 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8154 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157 cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h. */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 $ac_includes_default
8164 #if HAVE_SYS_SOCKET_H
8165 #include <sys/socket.h>
8166 #endif
8167 #if HAVE_NET_IF_H
8168 #include <net/if.h>
8169 #endif
8170
8171 int
8172 main ()
8173 {
8174 static struct ifreq ac_aggr;
8175 if (ac_aggr.ifr_flags)
8176 return 0;
8177 ;
8178 return 0;
8179 }
8180 _ACEOF
8181 rm -f conftest.$ac_objext
8182 if { (ac_try="$ac_compile"
8183 case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_c_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 ac_cv_member_struct_ifreq_ifr_flags=yes
8199 else
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 #if HAVE_SYS_SOCKET_H
8211 #include <sys/socket.h>
8212 #endif
8213 #if HAVE_NET_IF_H
8214 #include <net/if.h>
8215 #endif
8216
8217 int
8218 main ()
8219 {
8220 static struct ifreq ac_aggr;
8221 if (sizeof ac_aggr.ifr_flags)
8222 return 0;
8223 ;
8224 return 0;
8225 }
8226 _ACEOF
8227 rm -f conftest.$ac_objext
8228 if { (ac_try="$ac_compile"
8229 case "(($ac_try" in
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8232 esac
8233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234 (eval "$ac_compile") 2>conftest.er1
8235 ac_status=$?
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } && {
8241 test -z "$ac_c_werror_flag" ||
8242 test ! -s conftest.err
8243 } && test -s conftest.$ac_objext; then
8244 ac_cv_member_struct_ifreq_ifr_flags=yes
8245 else
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249 ac_cv_member_struct_ifreq_ifr_flags=no
8250 fi
8251
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 fi
8254
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 fi
8257 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8258 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8259 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8260
8261 cat >>confdefs.h <<_ACEOF
8262 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8263 _ACEOF
8264
8265
8266 fi
8267 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8268 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8269 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h. */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 $ac_includes_default
8279 #if HAVE_SYS_SOCKET_H
8280 #include <sys/socket.h>
8281 #endif
8282 #if HAVE_NET_IF_H
8283 #include <net/if.h>
8284 #endif
8285
8286 int
8287 main ()
8288 {
8289 static struct ifreq ac_aggr;
8290 if (ac_aggr.ifr_hwaddr)
8291 return 0;
8292 ;
8293 return 0;
8294 }
8295 _ACEOF
8296 rm -f conftest.$ac_objext
8297 if { (ac_try="$ac_compile"
8298 case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8301 esac
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_compile") 2>conftest.er1
8304 ac_status=$?
8305 grep -v '^ *+' conftest.er1 >conftest.err
8306 rm -f conftest.er1
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && {
8310 test -z "$ac_c_werror_flag" ||
8311 test ! -s conftest.err
8312 } && test -s conftest.$ac_objext; then
8313 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8314 else
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8317
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h. */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 $ac_includes_default
8325 #if HAVE_SYS_SOCKET_H
8326 #include <sys/socket.h>
8327 #endif
8328 #if HAVE_NET_IF_H
8329 #include <net/if.h>
8330 #endif
8331
8332 int
8333 main ()
8334 {
8335 static struct ifreq ac_aggr;
8336 if (sizeof ac_aggr.ifr_hwaddr)
8337 return 0;
8338 ;
8339 return 0;
8340 }
8341 _ACEOF
8342 rm -f conftest.$ac_objext
8343 if { (ac_try="$ac_compile"
8344 case "(($ac_try" in
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8347 esac
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_compile") 2>conftest.er1
8350 ac_status=$?
8351 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -f conftest.er1
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } && {
8356 test -z "$ac_c_werror_flag" ||
8357 test ! -s conftest.err
8358 } && test -s conftest.$ac_objext; then
8359 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8360 else
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8365 fi
8366
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 fi
8369
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 fi
8372 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8373 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8374 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8375
8376 cat >>confdefs.h <<_ACEOF
8377 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8378 _ACEOF
8379
8380
8381 fi
8382 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8383 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8384 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 #if HAVE_SYS_SOCKET_H
8395 #include <sys/socket.h>
8396 #endif
8397 #if HAVE_NET_IF_H
8398 #include <net/if.h>
8399 #endif
8400
8401 int
8402 main ()
8403 {
8404 static struct ifreq ac_aggr;
8405 if (ac_aggr.ifr_netmask)
8406 return 0;
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext
8412 if { (ac_try="$ac_compile"
8413 case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416 esac
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_compile") 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } && {
8425 test -z "$ac_c_werror_flag" ||
8426 test ! -s conftest.err
8427 } && test -s conftest.$ac_objext; then
8428 ac_cv_member_struct_ifreq_ifr_netmask=yes
8429 else
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8432
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h. */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 $ac_includes_default
8440 #if HAVE_SYS_SOCKET_H
8441 #include <sys/socket.h>
8442 #endif
8443 #if HAVE_NET_IF_H
8444 #include <net/if.h>
8445 #endif
8446
8447 int
8448 main ()
8449 {
8450 static struct ifreq ac_aggr;
8451 if (sizeof ac_aggr.ifr_netmask)
8452 return 0;
8453 ;
8454 return 0;
8455 }
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8459 case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compile") 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_c_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest.$ac_objext; then
8474 ac_cv_member_struct_ifreq_ifr_netmask=yes
8475 else
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479 ac_cv_member_struct_ifreq_ifr_netmask=no
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 fi
8484
8485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486 fi
8487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8488 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8489 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8490
8491 cat >>confdefs.h <<_ACEOF
8492 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8493 _ACEOF
8494
8495
8496 fi
8497 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8498 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8499 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 #if HAVE_SYS_SOCKET_H
8510 #include <sys/socket.h>
8511 #endif
8512 #if HAVE_NET_IF_H
8513 #include <net/if.h>
8514 #endif
8515
8516 int
8517 main ()
8518 {
8519 static struct ifreq ac_aggr;
8520 if (ac_aggr.ifr_broadaddr)
8521 return 0;
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8528 case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_c_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.$ac_objext; then
8543 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8544 else
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 $ac_includes_default
8555 #if HAVE_SYS_SOCKET_H
8556 #include <sys/socket.h>
8557 #endif
8558 #if HAVE_NET_IF_H
8559 #include <net/if.h>
8560 #endif
8561
8562 int
8563 main ()
8564 {
8565 static struct ifreq ac_aggr;
8566 if (sizeof ac_aggr.ifr_broadaddr)
8567 return 0;
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8574 case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.$ac_objext; then
8589 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8590 else
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8595 fi
8596
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 fi
8599
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 fi
8602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8603 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8604 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8605
8606 cat >>confdefs.h <<_ACEOF
8607 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8608 _ACEOF
8609
8610
8611 fi
8612 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8613 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8614 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617 cat >conftest.$ac_ext <<_ACEOF
8618 /* confdefs.h. */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8623 $ac_includes_default
8624 #if HAVE_SYS_SOCKET_H
8625 #include <sys/socket.h>
8626 #endif
8627 #if HAVE_NET_IF_H
8628 #include <net/if.h>
8629 #endif
8630
8631 int
8632 main ()
8633 {
8634 static struct ifreq ac_aggr;
8635 if (ac_aggr.ifr_addr)
8636 return 0;
8637 ;
8638 return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext
8642 if { (ac_try="$ac_compile"
8643 case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646 esac
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8658 ac_cv_member_struct_ifreq_ifr_addr=yes
8659 else
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8662
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h. */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 #if HAVE_SYS_SOCKET_H
8671 #include <sys/socket.h>
8672 #endif
8673 #if HAVE_NET_IF_H
8674 #include <net/if.h>
8675 #endif
8676
8677 int
8678 main ()
8679 {
8680 static struct ifreq ac_aggr;
8681 if (sizeof ac_aggr.ifr_addr)
8682 return 0;
8683 ;
8684 return 0;
8685 }
8686 _ACEOF
8687 rm -f conftest.$ac_objext
8688 if { (ac_try="$ac_compile"
8689 case "(($ac_try" in
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8692 esac
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694 (eval "$ac_compile") 2>conftest.er1
8695 ac_status=$?
8696 grep -v '^ *+' conftest.er1 >conftest.err
8697 rm -f conftest.er1
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } && {
8701 test -z "$ac_c_werror_flag" ||
8702 test ! -s conftest.err
8703 } && test -s conftest.$ac_objext; then
8704 ac_cv_member_struct_ifreq_ifr_addr=yes
8705 else
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709 ac_cv_member_struct_ifreq_ifr_addr=no
8710 fi
8711
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 fi
8714
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 fi
8717 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8718 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8719 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8720
8721 cat >>confdefs.h <<_ACEOF
8722 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8723 _ACEOF
8724
8725
8726 fi
8727
8728
8729
8730 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8731 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8732 if test "$ac_cv_prog_cc_c89" != no; then
8733 { echo "$as_me:$LINENO: result: yes" >&5
8734 echo "${ECHO_T}yes" >&6; }
8735
8736 cat >>confdefs.h <<\_ACEOF
8737 #define PROTOTYPES 1
8738 _ACEOF
8739
8740
8741 cat >>confdefs.h <<\_ACEOF
8742 #define __PROTOTYPES 1
8743 _ACEOF
8744
8745 else
8746 { echo "$as_me:$LINENO: result: no" >&5
8747 echo "${ECHO_T}no" >&6; }
8748 fi
8749
8750 { echo "$as_me:$LINENO: checking for working volatile" >&5
8751 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8752 if test "${ac_cv_c_volatile+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h. */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8761
8762 int
8763 main ()
8764 {
8765
8766 volatile int x;
8767 int * volatile y = (int *) 0;
8768 return !x && !y;
8769 ;
8770 return 0;
8771 }
8772 _ACEOF
8773 rm -f conftest.$ac_objext
8774 if { (ac_try="$ac_compile"
8775 case "(($ac_try" in
8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8778 esac
8779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780 (eval "$ac_compile") 2>conftest.er1
8781 ac_status=$?
8782 grep -v '^ *+' conftest.er1 >conftest.err
8783 rm -f conftest.er1
8784 cat conftest.err >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } && {
8787 test -z "$ac_c_werror_flag" ||
8788 test ! -s conftest.err
8789 } && test -s conftest.$ac_objext; then
8790 ac_cv_c_volatile=yes
8791 else
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 ac_cv_c_volatile=no
8796 fi
8797
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 fi
8800 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8801 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8802 if test $ac_cv_c_volatile = no; then
8803
8804 cat >>confdefs.h <<\_ACEOF
8805 #define volatile
8806 _ACEOF
8807
8808 fi
8809
8810 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8811 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8812 if test "${ac_cv_c_const+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815 cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h. */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821
8822 int
8823 main ()
8824 {
8825 /* FIXME: Include the comments suggested by Paul. */
8826 #ifndef __cplusplus
8827 /* Ultrix mips cc rejects this. */
8828 typedef int charset[2];
8829 const charset cs;
8830 /* SunOS 4.1.1 cc rejects this. */
8831 char const *const *pcpcc;
8832 char **ppc;
8833 /* NEC SVR4.0.2 mips cc rejects this. */
8834 struct point {int x, y;};
8835 static struct point const zero = {0,0};
8836 /* AIX XL C 1.02.0.0 rejects this.
8837 It does not let you subtract one const X* pointer from another in
8838 an arm of an if-expression whose if-part is not a constant
8839 expression */
8840 const char *g = "string";
8841 pcpcc = &g + (g ? g-g : 0);
8842 /* HPUX 7.0 cc rejects these. */
8843 ++pcpcc;
8844 ppc = (char**) pcpcc;
8845 pcpcc = (char const *const *) ppc;
8846 { /* SCO 3.2v4 cc rejects this. */
8847 char *t;
8848 char const *s = 0 ? (char *) 0 : (char const *) 0;
8849
8850 *t++ = 0;
8851 if (s) return 0;
8852 }
8853 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8854 int x[] = {25, 17};
8855 const int *foo = &x[0];
8856 ++foo;
8857 }
8858 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8859 typedef const int *iptr;
8860 iptr p = 0;
8861 ++p;
8862 }
8863 { /* AIX XL C 1.02.0.0 rejects this saying
8864 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8865 struct s { int j; const int *ap[3]; };
8866 struct s *b; b->j = 5;
8867 }
8868 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8869 const int foo = 10;
8870 if (!foo) return 0;
8871 }
8872 return !cs[0] && !zero.x;
8873 #endif
8874
8875 ;
8876 return 0;
8877 }
8878 _ACEOF
8879 rm -f conftest.$ac_objext
8880 if { (ac_try="$ac_compile"
8881 case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884 esac
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest.$ac_objext; then
8896 ac_cv_c_const=yes
8897 else
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.$ac_ext >&5
8900
8901 ac_cv_c_const=no
8902 fi
8903
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 fi
8906 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8907 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8908 if test $ac_cv_c_const = no; then
8909
8910 cat >>confdefs.h <<\_ACEOF
8911 #define const
8912 _ACEOF
8913
8914 fi
8915
8916 { echo "$as_me:$LINENO: checking for void * support" >&5
8917 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8918 if test "${emacs_cv_void_star+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 cat >conftest.$ac_ext <<_ACEOF
8922 /* confdefs.h. */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8927
8928 int
8929 main ()
8930 {
8931 void * foo;
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext
8937 if { (ac_try="$ac_compile"
8938 case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_c_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.$ac_objext; then
8953 emacs_cv_void_star=yes
8954 else
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 emacs_cv_void_star=no
8959 fi
8960
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 fi
8963 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8964 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8965 if test $emacs_cv_void_star = yes; then
8966 cat >>confdefs.h <<\_ACEOF
8967 #define POINTER_TYPE void
8968 _ACEOF
8969
8970 else
8971 cat >>confdefs.h <<\_ACEOF
8972 #define POINTER_TYPE char
8973 _ACEOF
8974
8975 fi
8976
8977
8978
8979
8980
8981 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8982 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8983 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8984 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 else
8987 cat >conftest.make <<\_ACEOF
8988 SHELL = /bin/sh
8989 all:
8990 @echo '@@@%%%=$(MAKE)=@@@%%%'
8991 _ACEOF
8992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8993 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8994 *@@@%%%=?*=@@@%%%*)
8995 eval ac_cv_prog_make_${ac_make}_set=yes;;
8996 *)
8997 eval ac_cv_prog_make_${ac_make}_set=no;;
8998 esac
8999 rm -f conftest.make
9000 fi
9001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9002 { echo "$as_me:$LINENO: result: yes" >&5
9003 echo "${ECHO_T}yes" >&6; }
9004 SET_MAKE=
9005 else
9006 { echo "$as_me:$LINENO: result: no" >&5
9007 echo "${ECHO_T}no" >&6; }
9008 SET_MAKE="MAKE=${MAKE-make}"
9009 fi
9010
9011
9012 { echo "$as_me:$LINENO: checking for long file names" >&5
9013 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9014 if test "${ac_cv_sys_long_file_names+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9017 ac_cv_sys_long_file_names=yes
9018 # Test for long file names in all the places we know might matter:
9019 # . the current directory, where building will happen
9020 # $prefix/lib where we will be installing things
9021 # $exec_prefix/lib likewise
9022 # $TMPDIR if set, where it might want to write temporary files
9023 # /tmp where it might want to write temporary files
9024 # /var/tmp likewise
9025 # /usr/tmp likewise
9026 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9027 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9028 # in the usual case where exec_prefix is '${prefix}'.
9029 case $ac_dir in #(
9030 . | /* | ?:[\\/]*) ;; #(
9031 *) continue;;
9032 esac
9033 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9034 ac_xdir=$ac_dir/cf$$
9035 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9036 ac_tf1=$ac_xdir/conftest9012345
9037 ac_tf2=$ac_xdir/conftest9012346
9038 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9039 ac_cv_sys_long_file_names=no
9040 rm -f -r "$ac_xdir" 2>/dev/null
9041 test $ac_cv_sys_long_file_names = no && break
9042 done
9043 fi
9044 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9045 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9046 if test $ac_cv_sys_long_file_names = yes; then
9047
9048 cat >>confdefs.h <<\_ACEOF
9049 #define HAVE_LONG_FILE_NAMES 1
9050 _ACEOF
9051
9052 fi
9053
9054
9055 #### Choose a window system.
9056
9057 { echo "$as_me:$LINENO: checking for X" >&5
9058 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9059
9060
9061 # Check whether --with-x was given.
9062 if test "${with_x+set}" = set; then
9063 withval=$with_x;
9064 fi
9065
9066 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9067 if test "x$with_x" = xno; then
9068 # The user explicitly disabled X.
9069 have_x=disabled
9070 else
9071 case $x_includes,$x_libraries in #(
9072 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9073 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9074 { (exit 1); exit 1; }; };; #(
9075 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078 # One or both of the vars are not set, and there is no cached value.
9079 ac_x_includes=no ac_x_libraries=no
9080 rm -f -r conftest.dir
9081 if mkdir conftest.dir; then
9082 cd conftest.dir
9083 cat >Imakefile <<'_ACEOF'
9084 incroot:
9085 @echo incroot='${INCROOT}'
9086 usrlibdir:
9087 @echo usrlibdir='${USRLIBDIR}'
9088 libdir:
9089 @echo libdir='${LIBDIR}'
9090 _ACEOF
9091 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9093 for ac_var in incroot usrlibdir libdir; do
9094 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9095 done
9096 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9097 for ac_extension in a so sl; do
9098 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9099 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9100 ac_im_usrlibdir=$ac_im_libdir; break
9101 fi
9102 done
9103 # Screen out bogus values from the imake configuration. They are
9104 # bogus both because they are the default anyway, and because
9105 # using them would break gcc on systems where it needs fixed includes.
9106 case $ac_im_incroot in
9107 /usr/include) ac_x_includes= ;;
9108 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9109 esac
9110 case $ac_im_usrlibdir in
9111 /usr/lib | /lib) ;;
9112 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9113 esac
9114 fi
9115 cd ..
9116 rm -f -r conftest.dir
9117 fi
9118
9119 # Standard set of common directories for X headers.
9120 # Check X11 before X11Rn because it is often a symlink to the current release.
9121 ac_x_header_dirs='
9122 /usr/X11/include
9123 /usr/X11R6/include
9124 /usr/X11R5/include
9125 /usr/X11R4/include
9126
9127 /usr/include/X11
9128 /usr/include/X11R6
9129 /usr/include/X11R5
9130 /usr/include/X11R4
9131
9132 /usr/local/X11/include
9133 /usr/local/X11R6/include
9134 /usr/local/X11R5/include
9135 /usr/local/X11R4/include
9136
9137 /usr/local/include/X11
9138 /usr/local/include/X11R6
9139 /usr/local/include/X11R5
9140 /usr/local/include/X11R4
9141
9142 /usr/X386/include
9143 /usr/x386/include
9144 /usr/XFree86/include/X11
9145
9146 /usr/include
9147 /usr/local/include
9148 /usr/unsupported/include
9149 /usr/athena/include
9150 /usr/local/x11r5/include
9151 /usr/lpp/Xamples/include
9152
9153 /usr/openwin/include
9154 /usr/openwin/share/include'
9155
9156 if test "$ac_x_includes" = no; then
9157 # Guess where to find include files, by looking for Xlib.h.
9158 # First, try using that file with no special directory specified.
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 #include <X11/Xlib.h>
9166 _ACEOF
9167 if { (ac_try="$ac_cpp conftest.$ac_ext"
9168 case "(($ac_try" in
9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170 *) ac_try_echo=$ac_try;;
9171 esac
9172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9174 ac_status=$?
9175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } >/dev/null && {
9180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9181 test ! -s conftest.err
9182 }; then
9183 # We can compile using X headers with no special include directory.
9184 ac_x_includes=
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189 for ac_dir in $ac_x_header_dirs; do
9190 if test -r "$ac_dir/X11/Xlib.h"; then
9191 ac_x_includes=$ac_dir
9192 break
9193 fi
9194 done
9195 fi
9196
9197 rm -f conftest.err conftest.$ac_ext
9198 fi # $ac_x_includes = no
9199
9200 if test "$ac_x_libraries" = no; then
9201 # Check for the libraries.
9202 # See if we find them without any special options.
9203 # Don't add to $LIBS permanently.
9204 ac_save_LIBS=$LIBS
9205 LIBS="-lX11 $LIBS"
9206 cat >conftest.$ac_ext <<_ACEOF
9207 /* confdefs.h. */
9208 _ACEOF
9209 cat confdefs.h >>conftest.$ac_ext
9210 cat >>conftest.$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 #include <X11/Xlib.h>
9213 int
9214 main ()
9215 {
9216 XrmInitialize ()
9217 ;
9218 return 0;
9219 }
9220 _ACEOF
9221 rm -f conftest.$ac_objext conftest$ac_exeext
9222 if { (ac_try="$ac_link"
9223 case "(($ac_try" in
9224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9226 esac
9227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228 (eval "$ac_link") 2>conftest.er1
9229 ac_status=$?
9230 grep -v '^ *+' conftest.er1 >conftest.err
9231 rm -f conftest.er1
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } && {
9235 test -z "$ac_c_werror_flag" ||
9236 test ! -s conftest.err
9237 } && test -s conftest$ac_exeext &&
9238 $as_test_x conftest$ac_exeext; then
9239 LIBS=$ac_save_LIBS
9240 # We can link X programs with no special library path.
9241 ac_x_libraries=
9242 else
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9245
9246 LIBS=$ac_save_LIBS
9247 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9248 do
9249 # Don't even attempt the hair of trying to link an X program!
9250 for ac_extension in a so sl; do
9251 if test -r "$ac_dir/libX11.$ac_extension"; then
9252 ac_x_libraries=$ac_dir
9253 break 2
9254 fi
9255 done
9256 done
9257 fi
9258
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260 conftest$ac_exeext conftest.$ac_ext
9261 fi # $ac_x_libraries = no
9262
9263 case $ac_x_includes,$ac_x_libraries in #(
9264 no,* | *,no | *\'*)
9265 # Didn't find X, or a directory has "'" in its name.
9266 ac_cv_have_x="have_x=no";; #(
9267 *)
9268 # Record where we found X for the cache.
9269 ac_cv_have_x="have_x=yes\
9270 ac_x_includes='$ac_x_includes'\
9271 ac_x_libraries='$ac_x_libraries'"
9272 esac
9273 fi
9274 ;; #(
9275 *) have_x=yes;;
9276 esac
9277 eval "$ac_cv_have_x"
9278 fi # $with_x != no
9279
9280 if test "$have_x" != yes; then
9281 { echo "$as_me:$LINENO: result: $have_x" >&5
9282 echo "${ECHO_T}$have_x" >&6; }
9283 no_x=yes
9284 else
9285 # If each of the values was on the command line, it overrides each guess.
9286 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9287 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9288 # Update the cache value to reflect the command line values.
9289 ac_cv_have_x="have_x=yes\
9290 ac_x_includes='$x_includes'\
9291 ac_x_libraries='$x_libraries'"
9292 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9293 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9294 fi
9295
9296 if test "$no_x" = yes; then
9297 window_system=none
9298 else
9299 window_system=x11
9300 fi
9301
9302 if test "${x_libraries}" != NONE; then
9303 if test -n "${x_libraries}"; then
9304 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9305 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9306 fi
9307 x_default_search_path=""
9308 x_search_path=${x_libraries}
9309 if test -z "${x_search_path}"; then
9310 x_search_path=/usr/lib
9311 fi
9312 for x_library in `echo ${x_search_path}: | \
9313 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9314 x_search_path="\
9315 ${x_library}/X11/%L/%T/%N%C%S:\
9316 ${x_library}/X11/%l/%T/%N%C%S:\
9317 ${x_library}/X11/%T/%N%C%S:\
9318 ${x_library}/X11/%L/%T/%N%S:\
9319 ${x_library}/X11/%l/%T/%N%S:\
9320 ${x_library}/X11/%T/%N%S"
9321 if test x"${x_default_search_path}" = x; then
9322 x_default_search_path=${x_search_path}
9323 else
9324 x_default_search_path="${x_search_path}:${x_default_search_path}"
9325 fi
9326 done
9327 fi
9328 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9329 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9330 fi
9331
9332 if test x"${x_includes}" = x; then
9333 bitmapdir=/usr/include/X11/bitmaps
9334 else
9335 # accumulate include directories that have X11 bitmap subdirectories
9336 bmd_acc="dummyval"
9337 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9338 if test -d "${bmd}/X11/bitmaps"; then
9339 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9340 fi
9341 if test -d "${bmd}/bitmaps"; then
9342 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9343 fi
9344 done
9345 if test ${bmd_acc} != "dummyval"; then
9346 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9347 fi
9348 fi
9349
9350 HAVE_CARBON=no
9351 if test "${with_carbon}" != no; then
9352 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9353 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9354 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9355 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 fi
9358 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9359 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9360 else
9361 # Is the header compilable?
9362 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9363 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9364 cat >conftest.$ac_ext <<_ACEOF
9365 /* confdefs.h. */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 $ac_includes_default
9371 #include <Carbon/Carbon.h>
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (ac_try="$ac_compile"
9375 case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378 esac
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_compile") 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest.$ac_objext; then
9390 ac_header_compiler=yes
9391 else
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9394
9395 ac_header_compiler=no
9396 fi
9397
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9400 echo "${ECHO_T}$ac_header_compiler" >&6; }
9401
9402 # Is the header present?
9403 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9404 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h. */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 #include <Carbon/Carbon.h>
9412 _ACEOF
9413 if { (ac_try="$ac_cpp conftest.$ac_ext"
9414 case "(($ac_try" in
9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9417 esac
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9420 ac_status=$?
9421 grep -v '^ *+' conftest.er1 >conftest.err
9422 rm -f conftest.er1
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } >/dev/null && {
9426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9427 test ! -s conftest.err
9428 }; then
9429 ac_header_preproc=yes
9430 else
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9433
9434 ac_header_preproc=no
9435 fi
9436
9437 rm -f conftest.err conftest.$ac_ext
9438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9439 echo "${ECHO_T}$ac_header_preproc" >&6; }
9440
9441 # So? What about this header?
9442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9443 yes:no: )
9444 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9445 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9447 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9448 ac_header_preproc=yes
9449 ;;
9450 no:yes:* )
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9454 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9456 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9458 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9460 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9462 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9463
9464 ;;
9465 esac
9466 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9467 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9468 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9472 fi
9473 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9474 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9475
9476 fi
9477 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9478 HAVE_CARBON=yes
9479 fi
9480
9481
9482 fi
9483 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9484 if test "${with_carbon+set}" != set \
9485 && test "${carbon_appdir_x+set}" != set; then
9486 for var in with_x with_x_toolkit with_gtk with_xim \
9487 with_xpm with_jpeg with_tiff with_gif with_png; do
9488 if eval test \"\${$var+set}\" = set; then
9489 HAVE_CARBON=no
9490 break
9491 fi
9492 done
9493 fi
9494 fi
9495 if test "${HAVE_CARBON}" = yes; then
9496 window_system=mac
9497 fi
9498
9499 case "${window_system}" in
9500 x11 )
9501 HAVE_X_WINDOWS=yes
9502 HAVE_X11=yes
9503 case "${with_x_toolkit}" in
9504 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9505 motif ) USE_X_TOOLKIT=MOTIF ;;
9506 gtk ) with_gtk=yes
9507 USE_X_TOOLKIT=none ;;
9508 no ) USE_X_TOOLKIT=none ;;
9509 * ) USE_X_TOOLKIT=maybe ;;
9510 esac
9511 ;;
9512 mac | none )
9513 HAVE_X_WINDOWS=no
9514 HAVE_X11=no
9515 USE_X_TOOLKIT=none
9516 ;;
9517 esac
9518
9519 ### If we're using X11, we should use the X menu package.
9520 HAVE_MENUS=no
9521 case ${HAVE_X11} in
9522 yes ) HAVE_MENUS=yes ;;
9523 esac
9524
9525 if test "${opsys}" = "hpux9"; then
9526 case "${x_libraries}" in
9527 *X11R4* )
9528 opsysfile="s/hpux9-x11r4.h"
9529 ;;
9530 esac
9531 fi
9532
9533 if test "${opsys}" = "hpux9shr"; then
9534 case "${x_libraries}" in
9535 *X11R4* )
9536 opsysfile="s/hpux9shxr4.h"
9537 ;;
9538 esac
9539 fi
9540
9541 ### Compute the unexec source name from the object name.
9542 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9543
9544 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9545 # Assume not, until told otherwise.
9546 GNU_MALLOC=yes
9547 doug_lea_malloc=yes
9548 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9549 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9550 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h. */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9561 #define malloc_get_state innocuous_malloc_get_state
9562
9563 /* System header to define __stub macros and hopefully few prototypes,
9564 which can conflict with char malloc_get_state (); below.
9565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9566 <limits.h> exists even on freestanding compilers. */
9567
9568 #ifdef __STDC__
9569 # include <limits.h>
9570 #else
9571 # include <assert.h>
9572 #endif
9573
9574 #undef malloc_get_state
9575
9576 /* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply. */
9579 #ifdef __cplusplus
9580 extern "C"
9581 #endif
9582 char malloc_get_state ();
9583 /* The GNU C library defines this for functions which it implements
9584 to always fail with ENOSYS. Some functions are actually named
9585 something starting with __ and the normal name is an alias. */
9586 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9587 choke me
9588 #endif
9589
9590 int
9591 main ()
9592 {
9593 return malloc_get_state ();
9594 ;
9595 return 0;
9596 }
9597 _ACEOF
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9600 case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest$ac_exeext &&
9615 $as_test_x conftest$ac_exeext; then
9616 ac_cv_func_malloc_get_state=yes
9617 else
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9620
9621 ac_cv_func_malloc_get_state=no
9622 fi
9623
9624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9625 conftest$ac_exeext conftest.$ac_ext
9626 fi
9627 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9628 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9629 if test $ac_cv_func_malloc_get_state = yes; then
9630 :
9631 else
9632 doug_lea_malloc=no
9633 fi
9634
9635 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9636 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9637 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h. */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9648 #define malloc_set_state innocuous_malloc_set_state
9649
9650 /* System header to define __stub macros and hopefully few prototypes,
9651 which can conflict with char malloc_set_state (); below.
9652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9653 <limits.h> exists even on freestanding compilers. */
9654
9655 #ifdef __STDC__
9656 # include <limits.h>
9657 #else
9658 # include <assert.h>
9659 #endif
9660
9661 #undef malloc_set_state
9662
9663 /* Override any GCC internal prototype to avoid an error.
9664 Use char because int might match the return type of a GCC
9665 builtin and then its argument prototype would still apply. */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 char malloc_set_state ();
9670 /* The GNU C library defines this for functions which it implements
9671 to always fail with ENOSYS. Some functions are actually named
9672 something starting with __ and the normal name is an alias. */
9673 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9674 choke me
9675 #endif
9676
9677 int
9678 main ()
9679 {
9680 return malloc_set_state ();
9681 ;
9682 return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (ac_try="$ac_link"
9687 case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_link") 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest$ac_exeext &&
9702 $as_test_x conftest$ac_exeext; then
9703 ac_cv_func_malloc_set_state=yes
9704 else
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708 ac_cv_func_malloc_set_state=no
9709 fi
9710
9711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712 conftest$ac_exeext conftest.$ac_ext
9713 fi
9714 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9715 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9716 if test $ac_cv_func_malloc_set_state = yes; then
9717 :
9718 else
9719 doug_lea_malloc=no
9720 fi
9721
9722 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9723 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9724 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727 cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h. */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9733 extern void (* __after_morecore_hook)();
9734 int
9735 main ()
9736 {
9737 __after_morecore_hook = 0
9738 ;
9739 return 0;
9740 }
9741 _ACEOF
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9744 case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747 esac
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest$ac_exeext &&
9759 $as_test_x conftest$ac_exeext; then
9760 emacs_cv_var___after_morecore_hook=yes
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9764
9765 emacs_cv_var___after_morecore_hook=no
9766 fi
9767
9768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9769 conftest$ac_exeext conftest.$ac_ext
9770 fi
9771 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9772 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9773 if test $emacs_cv_var___after_morecore_hook = no; then
9774 doug_lea_malloc=no
9775 fi
9776 if test "${system_malloc}" = "yes"; then
9777 GNU_MALLOC=no
9778 GNU_MALLOC_reason="
9779 (The GNU allocators don't work with this system configuration.)"
9780 fi
9781 if test "$doug_lea_malloc" = "yes" ; then
9782 if test "$GNU_MALLOC" = yes ; then
9783 GNU_MALLOC_reason="
9784 (Using Doug Lea's new malloc from the GNU C Library.)"
9785 fi
9786
9787 cat >>confdefs.h <<\_ACEOF
9788 #define DOUG_LEA_MALLOC 1
9789 _ACEOF
9790
9791 fi
9792
9793 if test x"${REL_ALLOC}" = x; then
9794 REL_ALLOC=${GNU_MALLOC}
9795 fi
9796
9797
9798
9799
9800 for ac_header in stdlib.h unistd.h
9801 do
9802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 fi
9809 ac_res=`eval echo '${'$as_ac_Header'}'`
9810 { echo "$as_me:$LINENO: result: $ac_res" >&5
9811 echo "${ECHO_T}$ac_res" >&6; }
9812 else
9813 # Is the header compilable?
9814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 $ac_includes_default
9823 #include <$ac_header>
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9827 case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 ac_header_compiler=yes
9843 else
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_header_compiler=no
9848 fi
9849
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9852 echo "${ECHO_T}$ac_header_compiler" >&6; }
9853
9854 # Is the header present?
9855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9857 cat >conftest.$ac_ext <<_ACEOF
9858 /* confdefs.h. */
9859 _ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863 #include <$ac_header>
9864 _ACEOF
9865 if { (ac_try="$ac_cpp conftest.$ac_ext"
9866 case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } >/dev/null && {
9878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9879 test ! -s conftest.err
9880 }; then
9881 ac_header_preproc=yes
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_header_preproc=no
9887 fi
9888
9889 rm -f conftest.err conftest.$ac_ext
9890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9891 echo "${ECHO_T}$ac_header_preproc" >&6; }
9892
9893 # So? What about this header?
9894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9895 yes:no: )
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9900 ac_header_preproc=yes
9901 ;;
9902 no:yes:* )
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9915
9916 ;;
9917 esac
9918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 eval "$as_ac_Header=\$ac_header_preproc"
9924 fi
9925 ac_res=`eval echo '${'$as_ac_Header'}'`
9926 { echo "$as_me:$LINENO: result: $ac_res" >&5
9927 echo "${ECHO_T}$ac_res" >&6; }
9928
9929 fi
9930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9931 cat >>confdefs.h <<_ACEOF
9932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9933 _ACEOF
9934
9935 fi
9936
9937 done
9938
9939
9940 for ac_func in getpagesize
9941 do
9942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 else
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h. */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9956 #define $ac_func innocuous_$ac_func
9957
9958 /* System header to define __stub macros and hopefully few prototypes,
9959 which can conflict with char $ac_func (); below.
9960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961 <limits.h> exists even on freestanding compilers. */
9962
9963 #ifdef __STDC__
9964 # include <limits.h>
9965 #else
9966 # include <assert.h>
9967 #endif
9968
9969 #undef $ac_func
9970
9971 /* Override any GCC internal prototype to avoid an error.
9972 Use char because int might match the return type of a GCC
9973 builtin and then its argument prototype would still apply. */
9974 #ifdef __cplusplus
9975 extern "C"
9976 #endif
9977 char $ac_func ();
9978 /* The GNU C library defines this for functions which it implements
9979 to always fail with ENOSYS. Some functions are actually named
9980 something starting with __ and the normal name is an alias. */
9981 #if defined __stub_$ac_func || defined __stub___$ac_func
9982 choke me
9983 #endif
9984
9985 int
9986 main ()
9987 {
9988 return $ac_func ();
9989 ;
9990 return 0;
9991 }
9992 _ACEOF
9993 rm -f conftest.$ac_objext conftest$ac_exeext
9994 if { (ac_try="$ac_link"
9995 case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_link") 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest$ac_exeext &&
10010 $as_test_x conftest$ac_exeext; then
10011 eval "$as_ac_var=yes"
10012 else
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016 eval "$as_ac_var=no"
10017 fi
10018
10019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10020 conftest$ac_exeext conftest.$ac_ext
10021 fi
10022 ac_res=`eval echo '${'$as_ac_var'}'`
10023 { echo "$as_me:$LINENO: result: $ac_res" >&5
10024 echo "${ECHO_T}$ac_res" >&6; }
10025 if test `eval echo '${'$as_ac_var'}'` = yes; then
10026 cat >>confdefs.h <<_ACEOF
10027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10028 _ACEOF
10029
10030 fi
10031 done
10032
10033 { echo "$as_me:$LINENO: checking for working mmap" >&5
10034 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10035 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038 if test "$cross_compiling" = yes; then
10039 ac_cv_func_mmap_fixed_mapped=no
10040 else
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h. */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 $ac_includes_default
10048 /* malloc might have been renamed as rpl_malloc. */
10049 #undef malloc
10050
10051 /* Thanks to Mike Haertel and Jim Avera for this test.
10052 Here is a matrix of mmap possibilities:
10053 mmap private not fixed
10054 mmap private fixed at somewhere currently unmapped
10055 mmap private fixed at somewhere already mapped
10056 mmap shared not fixed
10057 mmap shared fixed at somewhere currently unmapped
10058 mmap shared fixed at somewhere already mapped
10059 For private mappings, we should verify that changes cannot be read()
10060 back from the file, nor mmap's back from the file at a different
10061 address. (There have been systems where private was not correctly
10062 implemented like the infamous i386 svr4.0, and systems where the
10063 VM page cache was not coherent with the file system buffer cache
10064 like early versions of FreeBSD and possibly contemporary NetBSD.)
10065 For shared mappings, we should conversely verify that changes get
10066 propagated back to all the places they're supposed to be.
10067
10068 Grep wants private fixed already mapped.
10069 The main things grep needs to know about mmap are:
10070 * does it exist and is it safe to write into the mmap'd area
10071 * how to use it (BSD variants) */
10072
10073 #include <fcntl.h>
10074 #include <sys/mman.h>
10075
10076 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10077 char *malloc ();
10078 #endif
10079
10080 /* This mess was copied from the GNU getpagesize.h. */
10081 #ifndef HAVE_GETPAGESIZE
10082 /* Assume that all systems that can run configure have sys/param.h. */
10083 # ifndef HAVE_SYS_PARAM_H
10084 # define HAVE_SYS_PARAM_H 1
10085 # endif
10086
10087 # ifdef _SC_PAGESIZE
10088 # define getpagesize() sysconf(_SC_PAGESIZE)
10089 # else /* no _SC_PAGESIZE */
10090 # ifdef HAVE_SYS_PARAM_H
10091 # include <sys/param.h>
10092 # ifdef EXEC_PAGESIZE
10093 # define getpagesize() EXEC_PAGESIZE
10094 # else /* no EXEC_PAGESIZE */
10095 # ifdef NBPG
10096 # define getpagesize() NBPG * CLSIZE
10097 # ifndef CLSIZE
10098 # define CLSIZE 1
10099 # endif /* no CLSIZE */
10100 # else /* no NBPG */
10101 # ifdef NBPC
10102 # define getpagesize() NBPC
10103 # else /* no NBPC */
10104 # ifdef PAGESIZE
10105 # define getpagesize() PAGESIZE
10106 # endif /* PAGESIZE */
10107 # endif /* no NBPC */
10108 # endif /* no NBPG */
10109 # endif /* no EXEC_PAGESIZE */
10110 # else /* no HAVE_SYS_PARAM_H */
10111 # define getpagesize() 8192 /* punt totally */
10112 # endif /* no HAVE_SYS_PARAM_H */
10113 # endif /* no _SC_PAGESIZE */
10114
10115 #endif /* no HAVE_GETPAGESIZE */
10116
10117 int
10118 main ()
10119 {
10120 char *data, *data2, *data3;
10121 int i, pagesize;
10122 int fd;
10123
10124 pagesize = getpagesize ();
10125
10126 /* First, make a file with some known garbage in it. */
10127 data = (char *) malloc (pagesize);
10128 if (!data)
10129 return 1;
10130 for (i = 0; i < pagesize; ++i)
10131 *(data + i) = rand ();
10132 umask (0);
10133 fd = creat ("conftest.mmap", 0600);
10134 if (fd < 0)
10135 return 1;
10136 if (write (fd, data, pagesize) != pagesize)
10137 return 1;
10138 close (fd);
10139
10140 /* Next, try to mmap the file at a fixed address which already has
10141 something else allocated at it. If we can, also make sure that
10142 we see the same garbage. */
10143 fd = open ("conftest.mmap", O_RDWR);
10144 if (fd < 0)
10145 return 1;
10146 data2 = (char *) malloc (2 * pagesize);
10147 if (!data2)
10148 return 1;
10149 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10150 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10151 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10152 return 1;
10153 for (i = 0; i < pagesize; ++i)
10154 if (*(data + i) != *(data2 + i))
10155 return 1;
10156
10157 /* Finally, make sure that changes to the mapped area do not
10158 percolate back to the file as seen by read(). (This is a bug on
10159 some variants of i386 svr4.0.) */
10160 for (i = 0; i < pagesize; ++i)
10161 *(data2 + i) = *(data2 + i) + 1;
10162 data3 = (char *) malloc (pagesize);
10163 if (!data3)
10164 return 1;
10165 if (read (fd, data3, pagesize) != pagesize)
10166 return 1;
10167 for (i = 0; i < pagesize; ++i)
10168 if (*(data + i) != *(data3 + i))
10169 return 1;
10170 close (fd);
10171 return 0;
10172 }
10173 _ACEOF
10174 rm -f conftest$ac_exeext
10175 if { (ac_try="$ac_link"
10176 case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10179 esac
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_link") 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_func_mmap_fixed_mapped=yes
10195 else
10196 echo "$as_me: program exited with status $ac_status" >&5
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10199
10200 ( exit $ac_status )
10201 ac_cv_func_mmap_fixed_mapped=no
10202 fi
10203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10204 fi
10205
10206
10207 fi
10208 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10209 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10210 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10211
10212 cat >>confdefs.h <<\_ACEOF
10213 #define HAVE_MMAP 1
10214 _ACEOF
10215
10216 fi
10217 rm -f conftest.mmap
10218
10219 if test $use_mmap_for_buffers = yes; then
10220 REL_ALLOC=no
10221 fi
10222
10223 LIBS="$libsrc_libs $LIBS"
10224
10225
10226 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10227 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10228 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231 ac_check_lib_save_LIBS=$LIBS
10232 LIBS="-ldnet $LIBS"
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char dnet_ntoa ();
10247 int
10248 main ()
10249 {
10250 return dnet_ntoa ();
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260 esac
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_link") 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest$ac_exeext &&
10272 $as_test_x conftest$ac_exeext; then
10273 ac_cv_lib_dnet_dnet_ntoa=yes
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 ac_cv_lib_dnet_dnet_ntoa=no
10279 fi
10280
10281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10282 conftest$ac_exeext conftest.$ac_ext
10283 LIBS=$ac_check_lib_save_LIBS
10284 fi
10285 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10286 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10287 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10288 cat >>confdefs.h <<_ACEOF
10289 #define HAVE_LIBDNET 1
10290 _ACEOF
10291
10292 LIBS="-ldnet $LIBS"
10293
10294 fi
10295
10296
10297 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10298 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302 ac_check_lib_save_LIBS=$LIBS
10303 LIBS="-lXbsd $LIBS"
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h. */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310
10311
10312 int
10313 main ()
10314 {
10315 return main ();
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 rm -f conftest.$ac_objext conftest$ac_exeext
10321 if { (ac_try="$ac_link"
10322 case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325 esac
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_link") 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } && {
10334 test -z "$ac_c_werror_flag" ||
10335 test ! -s conftest.err
10336 } && test -s conftest$ac_exeext &&
10337 $as_test_x conftest$ac_exeext; then
10338 ac_cv_lib_Xbsd_main=yes
10339 else
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10342
10343 ac_cv_lib_Xbsd_main=no
10344 fi
10345
10346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347 conftest$ac_exeext conftest.$ac_ext
10348 LIBS=$ac_check_lib_save_LIBS
10349 fi
10350 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10351 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10352 if test $ac_cv_lib_Xbsd_main = yes; then
10353 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10354 fi
10355
10356
10357
10358 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10359 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10360 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363 ac_check_lib_save_LIBS=$LIBS
10364 LIBS="-lpthreads $LIBS"
10365 cat >conftest.$ac_ext <<_ACEOF
10366 /* confdefs.h. */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10371
10372 /* Override any GCC internal prototype to avoid an error.
10373 Use char because int might match the return type of a GCC
10374 builtin and then its argument prototype would still apply. */
10375 #ifdef __cplusplus
10376 extern "C"
10377 #endif
10378 char cma_open ();
10379 int
10380 main ()
10381 {
10382 return cma_open ();
10383 ;
10384 return 0;
10385 }
10386 _ACEOF
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (ac_try="$ac_link"
10389 case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_link") 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest$ac_exeext &&
10404 $as_test_x conftest$ac_exeext; then
10405 ac_cv_lib_pthreads_cma_open=yes
10406 else
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 ac_cv_lib_pthreads_cma_open=no
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LIBS=$ac_check_lib_save_LIBS
10416 fi
10417 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10418 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10419 if test $ac_cv_lib_pthreads_cma_open = yes; then
10420 cat >>confdefs.h <<_ACEOF
10421 #define HAVE_LIBPTHREADS 1
10422 _ACEOF
10423
10424 LIBS="-lpthreads $LIBS"
10425
10426 fi
10427
10428
10429 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10430 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10431 if test -d /usr/X386/include; then
10432 HAVE_XFREE386=yes
10433 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10434 else
10435 HAVE_XFREE386=no
10436 fi
10437 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10438 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10439
10440
10441 case ${host_os} in
10442 aix*)
10443 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10444 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10445 if test "${gdb_cv_bigtoc+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448
10449 case $GCC in
10450 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10451 *) gdb_cv_bigtoc=-bbigtoc ;;
10452 esac
10453
10454 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461
10462 int
10463 main ()
10464 {
10465 int i;
10466 ;
10467 return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext conftest$ac_exeext
10471 if { (ac_try="$ac_link"
10472 case "(($ac_try" in
10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10475 esac
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_link") 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest$ac_exeext &&
10487 $as_test_x conftest$ac_exeext; then
10488 :
10489 else
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 gdb_cv_bigtoc=
10494 fi
10495
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497 conftest$ac_exeext conftest.$ac_ext
10498
10499 fi
10500 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10501 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10502 ;;
10503 esac
10504
10505 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10506 # used for the tests that follow. We set them back to REAL_CFLAGS and
10507 # REAL_CPPFLAGS later on.
10508
10509 REAL_CPPFLAGS="$CPPFLAGS"
10510
10511 if test "${HAVE_X11}" = "yes"; then
10512 DEFS="$C_SWITCH_X_SITE $DEFS"
10513 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10514 LIBS="$LIBX $LIBS"
10515 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10516 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10517
10518 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10519 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10520 # but it's more convenient here to set LD_RUN_PATH
10521 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10522 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10523 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10524 export LD_RUN_PATH
10525 fi
10526
10527 if test "${opsys}" = "gnu-linux"; then
10528 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10529 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h. */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536
10537 int
10538 main ()
10539 {
10540 XOpenDisplay ("foo");
10541 ;
10542 return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest$ac_exeext &&
10562 $as_test_x conftest$ac_exeext; then
10563 xlinux_first_failure=no
10564 else
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 xlinux_first_failure=yes
10569 fi
10570
10571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10572 conftest$ac_exeext conftest.$ac_ext
10573 if test "${xlinux_first_failure}" = "yes"; then
10574 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10575 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10576 OLD_CPPFLAGS="$CPPFLAGS"
10577 OLD_LIBS="$LIBS"
10578 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10579 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10580 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10581 LIBS="$LIBS -b i486-linuxaout"
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588
10589 int
10590 main ()
10591 {
10592 XOpenDisplay ("foo");
10593 ;
10594 return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (ac_try="$ac_link"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_link") 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest$ac_exeext &&
10614 $as_test_x conftest$ac_exeext; then
10615 xlinux_second_failure=no
10616 else
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 xlinux_second_failure=yes
10621 fi
10622
10623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10624 conftest$ac_exeext conftest.$ac_ext
10625 if test "${xlinux_second_failure}" = "yes"; then
10626 # If we get the same failure with -b, there is no use adding -b.
10627 # So take it out. This plays safe.
10628 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10629 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10630 CPPFLAGS="$OLD_CPPFLAGS"
10631 LIBS="$OLD_LIBS"
10632 { echo "$as_me:$LINENO: result: no" >&5
10633 echo "${ECHO_T}no" >&6; }
10634 else
10635 { echo "$as_me:$LINENO: result: yes" >&5
10636 echo "${ECHO_T}yes" >&6; }
10637 fi
10638 else
10639 { echo "$as_me:$LINENO: result: no" >&5
10640 echo "${ECHO_T}no" >&6; }
10641 fi
10642 fi
10643
10644 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10645 # header files included from there.
10646 { echo "$as_me:$LINENO: checking for Xkb" >&5
10647 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <X11/Xlib.h>
10655 #include <X11/XKBlib.h>
10656 int
10657 main ()
10658 {
10659 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10660 ;
10661 return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (ac_try="$ac_link"
10666 case "(($ac_try" in
10667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668 *) ac_try_echo=$ac_try;;
10669 esac
10670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671 (eval "$ac_link") 2>conftest.er1
10672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && {
10678 test -z "$ac_c_werror_flag" ||
10679 test ! -s conftest.err
10680 } && test -s conftest$ac_exeext &&
10681 $as_test_x conftest$ac_exeext; then
10682 emacs_xkb=yes
10683 else
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 emacs_xkb=no
10688 fi
10689
10690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10691 conftest$ac_exeext conftest.$ac_ext
10692 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10693 echo "${ECHO_T}$emacs_xkb" >&6; }
10694 if test $emacs_xkb = yes; then
10695
10696 cat >>confdefs.h <<\_ACEOF
10697 #define HAVE_XKBGETKEYBOARD 1
10698 _ACEOF
10699
10700 fi
10701
10702
10703
10704
10705
10706 for ac_func in XrmSetDatabase XScreenResourceString \
10707 XScreenNumberOfScreen XSetWMProtocols
10708 do
10709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h. */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10723 #define $ac_func innocuous_$ac_func
10724
10725 /* System header to define __stub macros and hopefully few prototypes,
10726 which can conflict with char $ac_func (); below.
10727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10728 <limits.h> exists even on freestanding compilers. */
10729
10730 #ifdef __STDC__
10731 # include <limits.h>
10732 #else
10733 # include <assert.h>
10734 #endif
10735
10736 #undef $ac_func
10737
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 char $ac_func ();
10745 /* The GNU C library defines this for functions which it implements
10746 to always fail with ENOSYS. Some functions are actually named
10747 something starting with __ and the normal name is an alias. */
10748 #if defined __stub_$ac_func || defined __stub___$ac_func
10749 choke me
10750 #endif
10751
10752 int
10753 main ()
10754 {
10755 return $ac_func ();
10756 ;
10757 return 0;
10758 }
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest$ac_exeext &&
10777 $as_test_x conftest$ac_exeext; then
10778 eval "$as_ac_var=yes"
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 eval "$as_ac_var=no"
10784 fi
10785
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787 conftest$ac_exeext conftest.$ac_ext
10788 fi
10789 ac_res=`eval echo '${'$as_ac_var'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10792 if test `eval echo '${'$as_ac_var'}'` = yes; then
10793 cat >>confdefs.h <<_ACEOF
10794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10795 _ACEOF
10796
10797 fi
10798 done
10799
10800 fi
10801
10802 if test "${window_system}" = "x11"; then
10803 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10804 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10805 if test "${emacs_cv_x11_version_6+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <X11/Xlib.h>
10815 int
10816 main ()
10817 {
10818 #if XlibSpecificationRelease < 6
10819 fail;
10820 #endif
10821
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext &&
10843 $as_test_x conftest$ac_exeext; then
10844 emacs_cv_x11_version_6=yes
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 emacs_cv_x11_version_6=no
10850 fi
10851
10852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10853 conftest$ac_exeext conftest.$ac_ext
10854 fi
10855
10856 if test $emacs_cv_x11_version_6 = yes; then
10857 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10858 echo "${ECHO_T}6 or newer" >&6; }
10859
10860 cat >>confdefs.h <<\_ACEOF
10861 #define HAVE_X11R6 1
10862 _ACEOF
10863
10864 else
10865 { echo "$as_me:$LINENO: result: before 6" >&5
10866 echo "${ECHO_T}before 6" >&6; }
10867 fi
10868 fi
10869
10870 if test "${window_system}" = "x11"; then
10871 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10872 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10873 if test "${emacs_cv_x11_version_5+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <X11/Xlib.h>
10883 int
10884 main ()
10885 {
10886 #if XlibSpecificationRelease < 5
10887 fail;
10888 #endif
10889
10890 ;
10891 return 0;
10892 }
10893 _ACEOF
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (ac_try="$ac_link"
10896 case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_link") 2>conftest.er1
10902 ac_status=$?
10903 grep -v '^ *+' conftest.er1 >conftest.err
10904 rm -f conftest.er1
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } && {
10908 test -z "$ac_c_werror_flag" ||
10909 test ! -s conftest.err
10910 } && test -s conftest$ac_exeext &&
10911 $as_test_x conftest$ac_exeext; then
10912 emacs_cv_x11_version_5=yes
10913 else
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10916
10917 emacs_cv_x11_version_5=no
10918 fi
10919
10920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10921 conftest$ac_exeext conftest.$ac_ext
10922 fi
10923
10924 if test $emacs_cv_x11_version_5 = yes; then
10925 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10926 echo "${ECHO_T}5 or newer" >&6; }
10927 HAVE_X11R5=yes
10928
10929 cat >>confdefs.h <<\_ACEOF
10930 #define HAVE_X11R5 1
10931 _ACEOF
10932
10933 else
10934 HAVE_X11R5=no
10935 { echo "$as_me:$LINENO: result: before 5" >&5
10936 echo "${ECHO_T}before 5" >&6; }
10937 fi
10938 fi
10939
10940 HAVE_GTK=no
10941 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10942 USE_X_TOOLKIT=none
10943 fi
10944 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10945 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10946 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10947 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10948 { (exit 1); exit 1; }; };
10949 fi
10950 GLIB_REQUIRED=2.4
10951 GTK_REQUIRED=2.4
10952 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10953
10954 if test "X${with_pkg_config_prog}" != X; then
10955 PKG_CONFIG="${with_pkg_config_prog}"
10956 fi
10957
10958 succeeded=no
10959
10960 if test -z "$PKG_CONFIG"; then
10961 # Extract the first word of "pkg-config", so it can be a program name with args.
10962 set dummy pkg-config; ac_word=$2
10963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10965 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968 case $PKG_CONFIG in
10969 [\\/]* | ?:[\\/]*)
10970 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10971 ;;
10972 *)
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10975 do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10980 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10983 fi
10984 done
10985 done
10986 IFS=$as_save_IFS
10987
10988 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10989 ;;
10990 esac
10991 fi
10992 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10993 if test -n "$PKG_CONFIG"; then
10994 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10995 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10996 else
10997 { echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6; }
10999 fi
11000
11001
11002 fi
11003
11004 if test "$PKG_CONFIG" = "no" ; then
11005 { { echo "$as_me:$LINENO: error:
11006 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
11007 echo "$as_me: error:
11008 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
11009 { (exit 1); exit 1; }; }
11010 else
11011 PKG_CONFIG_MIN_VERSION=0.9.0
11012 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11013 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11014 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11015
11016 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11017 { echo "$as_me:$LINENO: result: yes" >&5
11018 echo "${ECHO_T}yes" >&6; }
11019 succeeded=yes
11020
11021 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11022 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11023 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
11024 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11025 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11026
11027 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11028 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11029 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
11030 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11031 echo "${ECHO_T}$GTK_LIBS" >&6; }
11032 else
11033 { echo "$as_me:$LINENO: result: no" >&5
11034 echo "${ECHO_T}no" >&6; }
11035 GTK_CFLAGS=""
11036 GTK_LIBS=""
11037 ## If we have a custom action on failure, don't print errors, but
11038 ## do set a variable so people can do so.
11039 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11040 echo $GTK_PKG_ERRORS
11041 fi
11042
11043
11044
11045 else
11046 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11047 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11048 fi
11049 fi
11050
11051 if test $succeeded = yes; then
11052 :
11053 else
11054 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11055 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11056 { (exit 1); exit 1; }; }
11057 fi
11058
11059
11060
11061 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11062 CFLAGS="$CFLAGS $GTK_CFLAGS"
11063 LIBS="$GTK_LIBS $LIBS"
11064 GTK_COMPILES=no
11065
11066 for ac_func in gtk_main
11067 do
11068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082 #define $ac_func innocuous_$ac_func
11083
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11088
11089 #ifdef __STDC__
11090 # include <limits.h>
11091 #else
11092 # include <assert.h>
11093 #endif
11094
11095 #undef $ac_func
11096
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11100 #ifdef __cplusplus
11101 extern "C"
11102 #endif
11103 char $ac_func ();
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined __stub_$ac_func || defined __stub___$ac_func
11108 choke me
11109 #endif
11110
11111 int
11112 main ()
11113 {
11114 return $ac_func ();
11115 ;
11116 return 0;
11117 }
11118 _ACEOF
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest$ac_exeext &&
11136 $as_test_x conftest$ac_exeext; then
11137 eval "$as_ac_var=yes"
11138 else
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142 eval "$as_ac_var=no"
11143 fi
11144
11145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11146 conftest$ac_exeext conftest.$ac_ext
11147 fi
11148 ac_res=`eval echo '${'$as_ac_var'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150 echo "${ECHO_T}$ac_res" >&6; }
11151 if test `eval echo '${'$as_ac_var'}'` = yes; then
11152 cat >>confdefs.h <<_ACEOF
11153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11154 _ACEOF
11155 GTK_COMPILES=yes
11156 fi
11157 done
11158
11159 if test "${GTK_COMPILES}" != "yes"; then
11160 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11161 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11162 { (exit 1); exit 1; }; };
11163 fi
11164
11165 HAVE_GTK=yes
11166
11167 cat >>confdefs.h <<\_ACEOF
11168 #define HAVE_GTK 1
11169 _ACEOF
11170
11171 USE_X_TOOLKIT=none
11172
11173 if test "$with_toolkit_scroll_bars" != no; then
11174 with_toolkit_scroll_bars=yes
11175 fi
11176
11177 HAVE_GTK_MULTIDISPLAY=no
11178
11179 for ac_func in gdk_display_open
11180 do
11181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11184 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 else
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11195 #define $ac_func innocuous_$ac_func
11196
11197 /* System header to define __stub macros and hopefully few prototypes,
11198 which can conflict with char $ac_func (); below.
11199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11200 <limits.h> exists even on freestanding compilers. */
11201
11202 #ifdef __STDC__
11203 # include <limits.h>
11204 #else
11205 # include <assert.h>
11206 #endif
11207
11208 #undef $ac_func
11209
11210 /* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11213 #ifdef __cplusplus
11214 extern "C"
11215 #endif
11216 char $ac_func ();
11217 /* The GNU C library defines this for functions which it implements
11218 to always fail with ENOSYS. Some functions are actually named
11219 something starting with __ and the normal name is an alias. */
11220 #if defined __stub_$ac_func || defined __stub___$ac_func
11221 choke me
11222 #endif
11223
11224 int
11225 main ()
11226 {
11227 return $ac_func ();
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 rm -f conftest.$ac_objext conftest$ac_exeext
11233 if { (ac_try="$ac_link"
11234 case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11237 esac
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_link") 2>conftest.er1
11240 ac_status=$?
11241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && {
11246 test -z "$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 } && test -s conftest$ac_exeext &&
11249 $as_test_x conftest$ac_exeext; then
11250 eval "$as_ac_var=yes"
11251 else
11252 echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11254
11255 eval "$as_ac_var=no"
11256 fi
11257
11258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11259 conftest$ac_exeext conftest.$ac_ext
11260 fi
11261 ac_res=`eval echo '${'$as_ac_var'}'`
11262 { echo "$as_me:$LINENO: result: $ac_res" >&5
11263 echo "${ECHO_T}$ac_res" >&6; }
11264 if test `eval echo '${'$as_ac_var'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11267 _ACEOF
11268 HAVE_GTK_MULTIDISPLAY=yes
11269 fi
11270 done
11271
11272 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11273
11274 cat >>confdefs.h <<\_ACEOF
11275 #define HAVE_GTK_MULTIDISPLAY 1
11276 _ACEOF
11277
11278 fi
11279 HAVE_GTK_FILE_SELECTION=no
11280
11281 for ac_func in gtk_file_selection_new
11282 do
11283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289 cat >conftest.$ac_ext <<_ACEOF
11290 /* confdefs.h. */
11291 _ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11297 #define $ac_func innocuous_$ac_func
11298
11299 /* System header to define __stub macros and hopefully few prototypes,
11300 which can conflict with char $ac_func (); below.
11301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11302 <limits.h> exists even on freestanding compilers. */
11303
11304 #ifdef __STDC__
11305 # include <limits.h>
11306 #else
11307 # include <assert.h>
11308 #endif
11309
11310 #undef $ac_func
11311
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11315 #ifdef __cplusplus
11316 extern "C"
11317 #endif
11318 char $ac_func ();
11319 /* The GNU C library defines this for functions which it implements
11320 to always fail with ENOSYS. Some functions are actually named
11321 something starting with __ and the normal name is an alias. */
11322 #if defined __stub_$ac_func || defined __stub___$ac_func
11323 choke me
11324 #endif
11325
11326 int
11327 main ()
11328 {
11329 return $ac_func ();
11330 ;
11331 return 0;
11332 }
11333 _ACEOF
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (ac_try="$ac_link"
11336 case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_link") 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest$ac_exeext &&
11351 $as_test_x conftest$ac_exeext; then
11352 eval "$as_ac_var=yes"
11353 else
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357 eval "$as_ac_var=no"
11358 fi
11359
11360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11361 conftest$ac_exeext conftest.$ac_ext
11362 fi
11363 ac_res=`eval echo '${'$as_ac_var'}'`
11364 { echo "$as_me:$LINENO: result: $ac_res" >&5
11365 echo "${ECHO_T}$ac_res" >&6; }
11366 if test `eval echo '${'$as_ac_var'}'` = yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11369 _ACEOF
11370 HAVE_GTK_FILE_SELECTION=yes
11371 fi
11372 done
11373
11374
11375 HAVE_GTK_FILE_CHOOSER=no
11376
11377 for ac_func in gtk_file_chooser_dialog_new
11378 do
11379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11393 #define $ac_func innocuous_$ac_func
11394
11395 /* System header to define __stub macros and hopefully few prototypes,
11396 which can conflict with char $ac_func (); below.
11397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11398 <limits.h> exists even on freestanding compilers. */
11399
11400 #ifdef __STDC__
11401 # include <limits.h>
11402 #else
11403 # include <assert.h>
11404 #endif
11405
11406 #undef $ac_func
11407
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char $ac_func ();
11415 /* The GNU C library defines this for functions which it implements
11416 to always fail with ENOSYS. Some functions are actually named
11417 something starting with __ and the normal name is an alias. */
11418 #if defined __stub_$ac_func || defined __stub___$ac_func
11419 choke me
11420 #endif
11421
11422 int
11423 main ()
11424 {
11425 return $ac_func ();
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (ac_try="$ac_link"
11432 case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435 esac
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_link") 2>conftest.er1
11438 ac_status=$?
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest$ac_exeext &&
11447 $as_test_x conftest$ac_exeext; then
11448 eval "$as_ac_var=yes"
11449 else
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 eval "$as_ac_var=no"
11454 fi
11455
11456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11457 conftest$ac_exeext conftest.$ac_ext
11458 fi
11459 ac_res=`eval echo '${'$as_ac_var'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11462 if test `eval echo '${'$as_ac_var'}'` = yes; then
11463 cat >>confdefs.h <<_ACEOF
11464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11465 _ACEOF
11466 HAVE_GTK_FILE_CHOOSER=yes
11467 fi
11468 done
11469
11470
11471 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11472 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11473
11474 cat >>confdefs.h <<\_ACEOF
11475 #define HAVE_GTK_FILE_BOTH 1
11476 _ACEOF
11477
11478 fi
11479
11480 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11481 HAVE_GTK_AND_PTHREAD=no
11482
11483 for ac_header in pthread.h
11484 do
11485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 fi
11492 ac_res=`eval echo '${'$as_ac_Header'}'`
11493 { echo "$as_me:$LINENO: result: $ac_res" >&5
11494 echo "${ECHO_T}$ac_res" >&6; }
11495 else
11496 # Is the header compilable?
11497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h. */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 #include <$ac_header>
11507 _ACEOF
11508 rm -f conftest.$ac_objext
11509 if { (ac_try="$ac_compile"
11510 case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11513 esac
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_compile") 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest.$ac_objext; then
11525 ac_header_compiler=yes
11526 else
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11529
11530 ac_header_compiler=no
11531 fi
11532
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11535 echo "${ECHO_T}$ac_header_compiler" >&6; }
11536
11537 # Is the header present?
11538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #include <$ac_header>
11547 _ACEOF
11548 if { (ac_try="$ac_cpp conftest.$ac_ext"
11549 case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11552 esac
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11555 ac_status=$?
11556 grep -v '^ *+' conftest.er1 >conftest.err
11557 rm -f conftest.er1
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } >/dev/null && {
11561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11562 test ! -s conftest.err
11563 }; then
11564 ac_header_preproc=yes
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569 ac_header_preproc=no
11570 fi
11571
11572 rm -f conftest.err conftest.$ac_ext
11573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11574 echo "${ECHO_T}$ac_header_preproc" >&6; }
11575
11576 # So? What about this header?
11577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11578 yes:no: )
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11583 ac_header_preproc=yes
11584 ;;
11585 no:yes:* )
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11598
11599 ;;
11600 esac
11601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 else
11606 eval "$as_ac_Header=\$ac_header_preproc"
11607 fi
11608 ac_res=`eval echo '${'$as_ac_Header'}'`
11609 { echo "$as_me:$LINENO: result: $ac_res" >&5
11610 echo "${ECHO_T}$ac_res" >&6; }
11611
11612 fi
11613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11614 cat >>confdefs.h <<_ACEOF
11615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11616 _ACEOF
11617
11618 fi
11619
11620 done
11621
11622 if test "$ac_cv_header_pthread_h"; then
11623 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11624 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11625 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628 ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-lpthread $LIBS"
11630 cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h. */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636
11637 /* Override any GCC internal prototype to avoid an error.
11638 Use char because int might match the return type of a GCC
11639 builtin and then its argument prototype would still apply. */
11640 #ifdef __cplusplus
11641 extern "C"
11642 #endif
11643 char pthread_self ();
11644 int
11645 main ()
11646 {
11647 return pthread_self ();
11648 ;
11649 return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (ac_try="$ac_link"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_link") 2>conftest.er1
11660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest$ac_exeext &&
11669 $as_test_x conftest$ac_exeext; then
11670 ac_cv_lib_pthread_pthread_self=yes
11671 else
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11674
11675 ac_cv_lib_pthread_pthread_self=no
11676 fi
11677
11678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11679 conftest$ac_exeext conftest.$ac_ext
11680 LIBS=$ac_check_lib_save_LIBS
11681 fi
11682 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11683 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11684 if test $ac_cv_lib_pthread_pthread_self = yes; then
11685 HAVE_GTK_AND_PTHREAD=yes
11686 fi
11687
11688 fi
11689 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11690 GTK_LIBS="$GTK_LIBS -lpthread"
11691
11692 cat >>confdefs.h <<\_ACEOF
11693 #define HAVE_GTK_AND_PTHREAD 1
11694 _ACEOF
11695
11696 fi
11697 fi
11698 fi
11699
11700 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11701 if test x"${HAVE_X11R5}" = xyes; then
11702 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11703 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11704 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11706 else
11707 cat >conftest.$ac_ext <<_ACEOF
11708 /* confdefs.h. */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11713
11714 #include <X11/Intrinsic.h>
11715 #include <X11/Xaw/Simple.h>
11716 int
11717 main ()
11718 {
11719
11720 ;
11721 return 0;
11722 }
11723 _ACEOF
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (ac_try="$ac_link"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11729 esac
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_link") 2>conftest.er1
11732 ac_status=$?
11733 grep -v '^ *+' conftest.er1 >conftest.err
11734 rm -f conftest.er1
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } && {
11738 test -z "$ac_c_werror_flag" ||
11739 test ! -s conftest.err
11740 } && test -s conftest$ac_exeext &&
11741 $as_test_x conftest$ac_exeext; then
11742 emacs_cv_x11_version_5_with_xaw=yes
11743 else
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747 emacs_cv_x11_version_5_with_xaw=no
11748 fi
11749
11750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11751 conftest$ac_exeext conftest.$ac_ext
11752 fi
11753
11754 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11755 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11756 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11757 USE_X_TOOLKIT=LUCID
11758 else
11759 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11760 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11761 USE_X_TOOLKIT=none
11762 fi
11763 else
11764 USE_X_TOOLKIT=none
11765 fi
11766 fi
11767
11768 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11769
11770 if test "${USE_X_TOOLKIT}" != "none"; then
11771 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11772 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11773 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 else
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 #include <X11/Intrinsic.h>
11783 int
11784 main ()
11785 {
11786 #if XtSpecificationRelease < 6
11787 fail;
11788 #endif
11789
11790 ;
11791 return 0;
11792 }
11793 _ACEOF
11794 rm -f conftest.$ac_objext conftest$ac_exeext
11795 if { (ac_try="$ac_link"
11796 case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11799 esac
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_link") 2>conftest.er1
11802 ac_status=$?
11803 grep -v '^ *+' conftest.er1 >conftest.err
11804 rm -f conftest.er1
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } && {
11808 test -z "$ac_c_werror_flag" ||
11809 test ! -s conftest.err
11810 } && test -s conftest$ac_exeext &&
11811 $as_test_x conftest$ac_exeext; then
11812 emacs_cv_x11_toolkit_version_6=yes
11813 else
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11816
11817 emacs_cv_x11_toolkit_version_6=no
11818 fi
11819
11820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11821 conftest$ac_exeext conftest.$ac_ext
11822 fi
11823
11824 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11825 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11826 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11827 echo "${ECHO_T}6 or newer" >&6; }
11828
11829 cat >>confdefs.h <<\_ACEOF
11830 #define HAVE_X11XTR6 1
11831 _ACEOF
11832
11833 else
11834 { echo "$as_me:$LINENO: result: before 6" >&5
11835 echo "${ECHO_T}before 6" >&6; }
11836 fi
11837
11838 OLDLIBS="$LIBS"
11839 if test x$HAVE_X11XTR6 = xyes; then
11840 LIBS="-lXt -lSM -lICE $LIBS"
11841 else
11842 LIBS="-lXt $LIBS"
11843 fi
11844
11845 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11846 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11847 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850 ac_check_lib_save_LIBS=$LIBS
11851 LIBS="-lXmu $LIBS"
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h. */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858
11859 /* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 char XmuConvertStandardSelection ();
11866 int
11867 main ()
11868 {
11869 return XmuConvertStandardSelection ();
11870 ;
11871 return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (ac_try="$ac_link"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_link") 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } && {
11888 test -z "$ac_c_werror_flag" ||
11889 test ! -s conftest.err
11890 } && test -s conftest$ac_exeext &&
11891 $as_test_x conftest$ac_exeext; then
11892 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11893 else
11894 echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11896
11897 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11898 fi
11899
11900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11901 conftest$ac_exeext conftest.$ac_ext
11902 LIBS=$ac_check_lib_save_LIBS
11903 fi
11904 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11905 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11906 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11907 cat >>confdefs.h <<_ACEOF
11908 #define HAVE_LIBXMU 1
11909 _ACEOF
11910
11911 LIBS="-lXmu $LIBS"
11912
11913 fi
11914
11915 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11916 fi
11917
11918 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11919 if test "${HAVE_X11}" = "yes"; then
11920 if test "${USE_X_TOOLKIT}" != "none"; then
11921
11922 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11923 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11924 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 else
11927 ac_check_lib_save_LIBS=$LIBS
11928 LIBS="-lXext $LIBS"
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 char XShapeQueryExtension ();
11943 int
11944 main ()
11945 {
11946 return XShapeQueryExtension ();
11947 ;
11948 return 0;
11949 }
11950 _ACEOF
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (ac_try="$ac_link"
11953 case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956 esac
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_link") 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest$ac_exeext &&
11968 $as_test_x conftest$ac_exeext; then
11969 ac_cv_lib_Xext_XShapeQueryExtension=yes
11970 else
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11973
11974 ac_cv_lib_Xext_XShapeQueryExtension=no
11975 fi
11976
11977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11978 conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11980 fi
11981 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11982 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11983 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11984 cat >>confdefs.h <<_ACEOF
11985 #define HAVE_LIBXEXT 1
11986 _ACEOF
11987
11988 LIBS="-lXext $LIBS"
11989
11990 fi
11991
11992 fi
11993 fi
11994
11995 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11996 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11997 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11998 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 #include <Xm/Xm.h>
12008 int
12009 main ()
12010 {
12011 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12012 int x = 5;
12013 #else
12014 Motif version prior to 2.1.
12015 #endif
12016 ;
12017 return 0;
12018 }
12019 _ACEOF
12020 rm -f conftest.$ac_objext
12021 if { (ac_try="$ac_compile"
12022 case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025 esac
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_compile") 2>conftest.er1
12028 ac_status=$?
12029 grep -v '^ *+' conftest.er1 >conftest.err
12030 rm -f conftest.er1
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } && {
12034 test -z "$ac_c_werror_flag" ||
12035 test ! -s conftest.err
12036 } && test -s conftest.$ac_objext; then
12037 emacs_cv_motif_version_2_1=yes
12038 else
12039 echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12041
12042 emacs_cv_motif_version_2_1=no
12043 fi
12044
12045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 fi
12047 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12048 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12049 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12050 if test $emacs_cv_motif_version_2_1 = yes; then
12051 HAVE_LIBXP=no
12052
12053 cat >>confdefs.h <<\_ACEOF
12054 #define HAVE_MOTIF_2_1 1
12055 _ACEOF
12056
12057 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12058 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12059 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062 ac_check_lib_save_LIBS=$LIBS
12063 LIBS="-lXp $LIBS"
12064 cat >conftest.$ac_ext <<_ACEOF
12065 /* confdefs.h. */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12074 #ifdef __cplusplus
12075 extern "C"
12076 #endif
12077 char XpCreateContext ();
12078 int
12079 main ()
12080 {
12081 return XpCreateContext ();
12082 ;
12083 return 0;
12084 }
12085 _ACEOF
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (ac_try="$ac_link"
12088 case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091 esac
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_link") 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } && {
12100 test -z "$ac_c_werror_flag" ||
12101 test ! -s conftest.err
12102 } && test -s conftest$ac_exeext &&
12103 $as_test_x conftest$ac_exeext; then
12104 ac_cv_lib_Xp_XpCreateContext=yes
12105 else
12106 echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109 ac_cv_lib_Xp_XpCreateContext=no
12110 fi
12111
12112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12113 conftest$ac_exeext conftest.$ac_ext
12114 LIBS=$ac_check_lib_save_LIBS
12115 fi
12116 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12117 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12118 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12119 HAVE_LIBXP=yes
12120 fi
12121
12122 if test ${HAVE_LIBXP} = yes; then
12123
12124 cat >>confdefs.h <<\_ACEOF
12125 #define HAVE_LIBXP 1
12126 _ACEOF
12127
12128 fi
12129 else
12130 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12131 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12132 if test "${emacs_cv_lesstif+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135 # We put this in CFLAGS temporarily to precede other -I options
12136 # that might be in CFLAGS temporarily.
12137 # We put this in CPPFLAGS where it precedes the other -I options.
12138 OLD_CPPFLAGS=$CPPFLAGS
12139 OLD_CFLAGS=$CFLAGS
12140 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12141 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h. */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12148 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12149 int
12150 main ()
12151 {
12152 int x = 5;
12153 ;
12154 return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext
12158 if { (ac_try="$ac_compile"
12159 case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12162 esac
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164 (eval "$ac_compile") 2>conftest.er1
12165 ac_status=$?
12166 grep -v '^ *+' conftest.er1 >conftest.err
12167 rm -f conftest.er1
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } && {
12171 test -z "$ac_c_werror_flag" ||
12172 test ! -s conftest.err
12173 } && test -s conftest.$ac_objext; then
12174 emacs_cv_lesstif=yes
12175 else
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 emacs_cv_lesstif=no
12180 fi
12181
12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183 fi
12184 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12185 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12186 if test $emacs_cv_lesstif = yes; then
12187 # Make sure this -I option remains in CPPFLAGS after it is set
12188 # back to REAL_CPPFLAGS.
12189 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12190 # have those other -I options anyway. Ultimately, having this
12191 # directory ultimately in CPPFLAGS will be enough.
12192 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12193 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12194 else
12195 CFLAGS=$OLD_CFLAGS
12196 CPPFLAGS=$OLD_CPPFLAGS
12197 fi
12198 fi
12199 fi
12200
12201 ### Is -lXaw3d available?
12202 HAVE_XAW3D=no
12203 if test "${HAVE_X11}" = "yes"; then
12204 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12205 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12206 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12207 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 #include <X11/Xaw3d/Scrollbar.h>
12217 _ACEOF
12218 if { (ac_try="$ac_cpp conftest.$ac_ext"
12219 case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } >/dev/null && {
12231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 }; then
12234 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12235 else
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12240 fi
12241
12242 rm -f conftest.err conftest.$ac_ext
12243 fi
12244 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12245 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12246 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12247 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12248 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12249 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252 ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-lXaw3d $LIBS"
12254 cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h. */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char XawScrollbarSetThumb ();
12268 int
12269 main ()
12270 {
12271 return XawScrollbarSetThumb ();
12272 ;
12273 return 0;
12274 }
12275 _ACEOF
12276 rm -f conftest.$ac_objext conftest$ac_exeext
12277 if { (ac_try="$ac_link"
12278 case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_c_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest$ac_exeext &&
12293 $as_test_x conftest$ac_exeext; then
12294 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12295 else
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12300 fi
12301
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303 conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12305 fi
12306 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12307 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12308 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12309 HAVE_XAW3D=yes
12310 fi
12311
12312 fi
12313
12314
12315 if test "${HAVE_XAW3D}" = "yes"; then
12316
12317 cat >>confdefs.h <<\_ACEOF
12318 #define HAVE_XAW3D 1
12319 _ACEOF
12320
12321 fi
12322 fi
12323 fi
12324
12325
12326
12327 USE_TOOLKIT_SCROLL_BARS=no
12328 if test "${with_toolkit_scroll_bars}" != "no"; then
12329 if test "${USE_X_TOOLKIT}" != "none"; then
12330 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12331 cat >>confdefs.h <<\_ACEOF
12332 #define USE_TOOLKIT_SCROLL_BARS 1
12333 _ACEOF
12334
12335 HAVE_XAW3D=no
12336 USE_TOOLKIT_SCROLL_BARS=yes
12337 elif test "${HAVE_XAW3D}" = "yes"; then
12338 cat >>confdefs.h <<\_ACEOF
12339 #define USE_TOOLKIT_SCROLL_BARS 1
12340 _ACEOF
12341
12342 USE_TOOLKIT_SCROLL_BARS=yes
12343 fi
12344 elif test "${HAVE_GTK}" = "yes"; then
12345 cat >>confdefs.h <<\_ACEOF
12346 #define USE_TOOLKIT_SCROLL_BARS 1
12347 _ACEOF
12348
12349 USE_TOOLKIT_SCROLL_BARS=yes
12350 elif test "${HAVE_CARBON}" = "yes"; then
12351 cat >>confdefs.h <<\_ACEOF
12352 #define USE_TOOLKIT_SCROLL_BARS 1
12353 _ACEOF
12354
12355 USE_TOOLKIT_SCROLL_BARS=yes
12356 fi
12357 fi
12358
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h. */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365
12366 #include <X11/Xlib.h>
12367 #include <X11/Xresource.h>
12368 int
12369 main ()
12370 {
12371 XIMProc callback;
12372 ;
12373 return 0;
12374 }
12375 _ACEOF
12376 rm -f conftest.$ac_objext
12377 if { (ac_try="$ac_compile"
12378 case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12381 esac
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_compile") 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } && {
12390 test -z "$ac_c_werror_flag" ||
12391 test ! -s conftest.err
12392 } && test -s conftest.$ac_objext; then
12393 HAVE_XIM=yes
12394
12395 cat >>confdefs.h <<\_ACEOF
12396 #define HAVE_XIM 1
12397 _ACEOF
12398
12399 else
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 HAVE_XIM=no
12404 fi
12405
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407
12408
12409 if test "${with_xim}" != "no"; then
12410
12411 cat >>confdefs.h <<\_ACEOF
12412 #define USE_XIM 1
12413 _ACEOF
12414
12415 fi
12416
12417
12418 if test "${HAVE_XIM}" != "no"; then
12419 late_CFLAGS=$CFLAGS
12420 if test "$GCC" = yes; then
12421 CFLAGS="$CFLAGS --pedantic-errors"
12422 fi
12423 cat >conftest.$ac_ext <<_ACEOF
12424 /* confdefs.h. */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429
12430 #include <X11/Xlib.h>
12431 #include <X11/Xresource.h>
12432 int
12433 main ()
12434 {
12435 Display *display;
12436 XrmDatabase db;
12437 char *res_name;
12438 char *res_class;
12439 XIMProc callback;
12440 XPointer *client_data;
12441 #ifndef __GNUC__
12442 /* If we're not using GCC, it's probably not XFree86, and this is
12443 probably right, but we can't use something like --pedantic-errors. */
12444 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12445 char*, XIMProc, XPointer*);
12446 #endif
12447 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12448 client_data);
12449 ;
12450 return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext
12454 if { (ac_try="$ac_compile"
12455 case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12458 esac
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_compile") 2>conftest.er1
12461 ac_status=$?
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest.$ac_objext; then
12470 emacs_cv_arg6_star=yes
12471 else
12472 echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12474
12475
12476 fi
12477
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479
12480 if test "$emacs_cv_arg6_star" = yes; then
12481 cat >>confdefs.h <<\_ACEOF
12482 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12483 _ACEOF
12484
12485 else
12486 cat >>confdefs.h <<\_ACEOF
12487 #define XRegisterIMInstantiateCallback_arg6 XPointer
12488 _ACEOF
12489
12490 fi
12491 CFLAGS=$late_CFLAGS
12492 fi
12493
12494 ### For font-backend
12495 if test "${USE_FONT_BACKEND}" = "yes"; then
12496
12497
12498 cat >>confdefs.h <<\_ACEOF
12499 #define USE_FONT_BACKEND 1
12500 _ACEOF
12501
12502
12503 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12504 HAVE_XFT=maybe
12505 if test "${HAVE_X11}" = "yes"; then
12506 if test "x${with_freetype}" = "xno"; then
12507 with_xft="no";
12508 fi
12509 if test "x${with_xft}" != "xno"; then
12510
12511 if test "X${with_pkg_config_prog}" != X; then
12512 PKG_CONFIG="${with_pkg_config_prog}"
12513 fi
12514
12515
12516 succeeded=no
12517
12518 if test -z "$PKG_CONFIG"; then
12519 # Extract the first word of "pkg-config", so it can be a program name with args.
12520 set dummy pkg-config; ac_word=$2
12521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12523 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 else
12526 case $PKG_CONFIG in
12527 [\\/]* | ?:[\\/]*)
12528 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12529 ;;
12530 *)
12531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532 for as_dir in $PATH
12533 do
12534 IFS=$as_save_IFS
12535 test -z "$as_dir" && as_dir=.
12536 for ac_exec_ext in '' $ac_executable_extensions; do
12537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12538 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12540 break 2
12541 fi
12542 done
12543 done
12544 IFS=$as_save_IFS
12545
12546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12547 ;;
12548 esac
12549 fi
12550 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12551 if test -n "$PKG_CONFIG"; then
12552 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12553 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12554 else
12555 { echo "$as_me:$LINENO: result: no" >&5
12556 echo "${ECHO_T}no" >&6; }
12557 fi
12558
12559
12560 fi
12561
12562 if test "$PKG_CONFIG" = "no" ; then
12563 HAVE_XFT=no
12564 else
12565 PKG_CONFIG_MIN_VERSION=0.9.0
12566 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12567 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12568 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12569
12570 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12571 { echo "$as_me:$LINENO: result: yes" >&5
12572 echo "${ECHO_T}yes" >&6; }
12573 succeeded=yes
12574
12575 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12576 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12577 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
12578 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12579 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12580
12581 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12582 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12583 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"`
12584 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12585 echo "${ECHO_T}$XFT_LIBS" >&6; }
12586 else
12587 { echo "$as_me:$LINENO: result: no" >&5
12588 echo "${ECHO_T}no" >&6; }
12589 XFT_CFLAGS=""
12590 XFT_LIBS=""
12591 ## If we have a custom action on failure, don't print errors, but
12592 ## do set a variable so people can do so.
12593 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12594
12595 fi
12596
12597
12598
12599 else
12600 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12601 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12602 fi
12603 fi
12604
12605 if test $succeeded = yes; then
12606 :
12607 else
12608 HAVE_XFT=no
12609 fi
12610
12611 if test "$HAVE_XFT" != no; then
12612 OLD_CPPFLAGS="$CPPFLAGS"
12613 OLD_CFLAGS="$CFLAGS"
12614 OLD_LIBS="$LIBS"
12615 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12616 CFLAGS="$CFLAGS $XFT_CFLAGS"
12617 LIBS="$XFT_LIBS $LIBS"
12618 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12619 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12620 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12621 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 fi
12624 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12625 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12626 else
12627 # Is the header compilable?
12628 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12629 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12630 cat >conftest.$ac_ext <<_ACEOF
12631 /* confdefs.h. */
12632 _ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 $ac_includes_default
12637 #include <X11/Xft/Xft.h>
12638 _ACEOF
12639 rm -f conftest.$ac_objext
12640 if { (ac_try="$ac_compile"
12641 case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12644 esac
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_compile") 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest.$ac_objext; then
12656 ac_header_compiler=yes
12657 else
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12660
12661 ac_header_compiler=no
12662 fi
12663
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12666 echo "${ECHO_T}$ac_header_compiler" >&6; }
12667
12668 # Is the header present?
12669 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12670 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12671 cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 #include <X11/Xft/Xft.h>
12678 _ACEOF
12679 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
12692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 }; then
12695 ac_header_preproc=yes
12696 else
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 ac_header_preproc=no
12701 fi
12702
12703 rm -f conftest.err conftest.$ac_ext
12704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12705 echo "${ECHO_T}$ac_header_preproc" >&6; }
12706
12707 # So? What about this header?
12708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12709 yes:no: )
12710 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12711 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12712 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12713 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12714 ac_header_preproc=yes
12715 ;;
12716 no:yes:* )
12717 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12718 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12719 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12720 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12722 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12724 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12725 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12726 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12727 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12728 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12729
12730 ;;
12731 esac
12732 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12733 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12734 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12738 fi
12739 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12740 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12741
12742 fi
12743 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12744 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12745 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12746 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-lXft $XFT_LIBS $LIBS"
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h. */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12761 #ifdef __cplusplus
12762 extern "C"
12763 #endif
12764 char XftFontOpen ();
12765 int
12766 main ()
12767 {
12768 return XftFontOpen ();
12769 ;
12770 return 0;
12771 }
12772 _ACEOF
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (ac_try="$ac_link"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_link") 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest$ac_exeext &&
12790 $as_test_x conftest$ac_exeext; then
12791 ac_cv_lib_Xft_XftFontOpen=yes
12792 else
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12795
12796 ac_cv_lib_Xft_XftFontOpen=no
12797 fi
12798
12799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12800 conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12802 fi
12803 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12804 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12805 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12806 HAVE_XFT=yes
12807 fi
12808
12809 fi
12810
12811
12812
12813 if test "${HAVE_XFT}" = "yes"; then
12814
12815 cat >>confdefs.h <<\_ACEOF
12816 #define HAVE_XFT 1
12817 _ACEOF
12818
12819
12820 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12821 else
12822 CFLAGS="$OLD_CPPFLAGS"
12823 CFLAGS="$OLD_CFLAGS"
12824 LIBS="$OLD_LIBS"
12825 fi
12826 fi
12827 fi
12828 fi
12829
12830 HAVE_FREETYPE=no
12831 ### Use -lfreetype if available, unless `--with-freetype=no'.
12832 if test "${HAVE_XFT}" = "yes"; then
12833 HAVE_FREETYPE=yes
12834 elif test "x${with_freetype}" != "xno"; then
12835 if test "X${with_pkg_config_prog}" != X; then
12836 PKG_CONFIG="${with_pkg_config_prog}"
12837 fi
12838
12839
12840 succeeded=no
12841
12842 if test -z "$PKG_CONFIG"; then
12843 # Extract the first word of "pkg-config", so it can be a program name with args.
12844 set dummy pkg-config; ac_word=$2
12845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850 case $PKG_CONFIG in
12851 [\\/]* | ?:[\\/]*)
12852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12853 ;;
12854 *)
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12857 do
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 break 2
12865 fi
12866 done
12867 done
12868 IFS=$as_save_IFS
12869
12870 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12871 ;;
12872 esac
12873 fi
12874 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12875 if test -n "$PKG_CONFIG"; then
12876 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12877 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12878 else
12879 { echo "$as_me:$LINENO: result: no" >&5
12880 echo "${ECHO_T}no" >&6; }
12881 fi
12882
12883
12884 fi
12885
12886 if test "$PKG_CONFIG" = "no" ; then
12887 HAVE_FREETYPE=no
12888 else
12889 PKG_CONFIG_MIN_VERSION=0.9.0
12890 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12891 { echo "$as_me:$LINENO: checking for freetype2" >&5
12892 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12893
12894 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12895 { echo "$as_me:$LINENO: result: yes" >&5
12896 echo "${ECHO_T}yes" >&6; }
12897 succeeded=yes
12898
12899 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12900 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12901 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12902 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12903 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12904
12905 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12906 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12907 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12908 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12909 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12910 else
12911 { echo "$as_me:$LINENO: result: no" >&5
12912 echo "${ECHO_T}no" >&6; }
12913 FREETYPE_CFLAGS=""
12914 FREETYPE_LIBS=""
12915 ## If we have a custom action on failure, don't print errors, but
12916 ## do set a variable so people can do so.
12917 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12918
12919 fi
12920
12921
12922
12923 else
12924 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12925 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12926 fi
12927 fi
12928
12929 if test $succeeded = yes; then
12930 HAVE_FREETYPE=yes
12931 else
12932 HAVE_FREETYPE=no
12933 fi
12934
12935 if test "${HAVE_FREETYPE}" = "yes"; then
12936
12937 succeeded=no
12938
12939 if test -z "$PKG_CONFIG"; then
12940 # Extract the first word of "pkg-config", so it can be a program name with args.
12941 set dummy pkg-config; ac_word=$2
12942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12944 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947 case $PKG_CONFIG in
12948 [\\/]* | ?:[\\/]*)
12949 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12950 ;;
12951 *)
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12954 do
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12959 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 break 2
12962 fi
12963 done
12964 done
12965 IFS=$as_save_IFS
12966
12967 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12968 ;;
12969 esac
12970 fi
12971 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12972 if test -n "$PKG_CONFIG"; then
12973 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12974 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12975 else
12976 { echo "$as_me:$LINENO: result: no" >&5
12977 echo "${ECHO_T}no" >&6; }
12978 fi
12979
12980
12981 fi
12982
12983 if test "$PKG_CONFIG" = "no" ; then
12984 HAVE_FC=no
12985 else
12986 PKG_CONFIG_MIN_VERSION=0.9.0
12987 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12988 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12989 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12990
12991 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12992 { echo "$as_me:$LINENO: result: yes" >&5
12993 echo "${ECHO_T}yes" >&6; }
12994 succeeded=yes
12995
12996 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12997 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12998 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"`
12999 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13000 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13001
13002 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13003 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13004 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"`
13005 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13006 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13007 else
13008 { echo "$as_me:$LINENO: result: no" >&5
13009 echo "${ECHO_T}no" >&6; }
13010 FONTCONFIG_CFLAGS=""
13011 FONTCONFIG_LIBS=""
13012 ## If we have a custom action on failure, don't print errors, but
13013 ## do set a variable so people can do so.
13014 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13015
13016 fi
13017
13018
13019
13020 else
13021 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13022 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13023 fi
13024 fi
13025
13026 if test $succeeded = yes; then
13027 HAVE_FC=yes
13028 else
13029 HAVE_FC=no
13030 fi
13031
13032 if test "${HAVE_FC}" = "no"; then
13033 HAVE_FREETYPE=no
13034 fi
13035 fi
13036 fi
13037 if test "${HAVE_FREETYPE}" = "yes"; then
13038
13039 cat >>confdefs.h <<\_ACEOF
13040 #define HAVE_FREETYPE 1
13041 _ACEOF
13042
13043 # Extract the first word of "libotf-config", so it can be a program name with args.
13044 set dummy libotf-config; ac_word=$2
13045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13047 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050 if test -n "$HAVE_LIBOTF"; then
13051 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13052 else
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13055 do
13056 IFS=$as_save_IFS
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_prog_HAVE_LIBOTF="yes"
13061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13062 break 2
13063 fi
13064 done
13065 done
13066 IFS=$as_save_IFS
13067
13068 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13069 fi
13070 fi
13071 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13072 if test -n "$HAVE_LIBOTF"; then
13073 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13074 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13075 else
13076 { echo "$as_me:$LINENO: result: no" >&5
13077 echo "${ECHO_T}no" >&6; }
13078 fi
13079
13080
13081 if test "${HAVE_LIBOTF}" = "yes"; then
13082
13083 cat >>confdefs.h <<\_ACEOF
13084 #define HAVE_LIBOTF 1
13085 _ACEOF
13086
13087 LIBOTF_CFLAGS=`libotf-config --cflags`
13088 LIBOTF_LIBS=`libotf-config --libs`
13089 fi
13090 fi
13091
13092
13093
13094
13095
13096
13097
13098 fi
13099
13100 ### Use -lXpm if available, unless `--with-xpm=no'.
13101 HAVE_XPM=no
13102 if test "${HAVE_X11}" = "yes"; then
13103 if test "${with_xpm}" != "no"; then
13104 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13105 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13106 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13107 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 fi
13110 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13111 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13112 else
13113 # Is the header compilable?
13114 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13115 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13116 cat >conftest.$ac_ext <<_ACEOF
13117 /* confdefs.h. */
13118 _ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 $ac_includes_default
13123 #include <X11/xpm.h>
13124 _ACEOF
13125 rm -f conftest.$ac_objext
13126 if { (ac_try="$ac_compile"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_compile") 2>conftest.er1
13133 ac_status=$?
13134 grep -v '^ *+' conftest.er1 >conftest.err
13135 rm -f conftest.er1
13136 cat conftest.err >&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } && {
13139 test -z "$ac_c_werror_flag" ||
13140 test ! -s conftest.err
13141 } && test -s conftest.$ac_objext; then
13142 ac_header_compiler=yes
13143 else
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147 ac_header_compiler=no
13148 fi
13149
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13152 echo "${ECHO_T}$ac_header_compiler" >&6; }
13153
13154 # Is the header present?
13155 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13156 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13157 cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h. */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 #include <X11/xpm.h>
13164 _ACEOF
13165 if { (ac_try="$ac_cpp conftest.$ac_ext"
13166 case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13169 esac
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } >/dev/null && {
13178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13179 test ! -s conftest.err
13180 }; then
13181 ac_header_preproc=yes
13182 else
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13185
13186 ac_header_preproc=no
13187 fi
13188
13189 rm -f conftest.err conftest.$ac_ext
13190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13191 echo "${ECHO_T}$ac_header_preproc" >&6; }
13192
13193 # So? What about this header?
13194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13195 yes:no: )
13196 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13197 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13199 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13200 ac_header_preproc=yes
13201 ;;
13202 no:yes:* )
13203 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13204 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13205 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13206 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13207 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13208 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13209 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13210 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13212 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13214 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13215
13216 ;;
13217 esac
13218 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13219 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13220 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 else
13223 ac_cv_header_X11_xpm_h=$ac_header_preproc
13224 fi
13225 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13226 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13227
13228 fi
13229 if test $ac_cv_header_X11_xpm_h = yes; then
13230 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13231 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13232 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235 ac_check_lib_save_LIBS=$LIBS
13236 LIBS="-lXpm -lX11 $LIBS"
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h. */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13243
13244 /* Override any GCC internal prototype to avoid an error.
13245 Use char because int might match the return type of a GCC
13246 builtin and then its argument prototype would still apply. */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 char XpmReadFileToPixmap ();
13251 int
13252 main ()
13253 {
13254 return XpmReadFileToPixmap ();
13255 ;
13256 return 0;
13257 }
13258 _ACEOF
13259 rm -f conftest.$ac_objext conftest$ac_exeext
13260 if { (ac_try="$ac_link"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_link") 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest$ac_exeext &&
13276 $as_test_x conftest$ac_exeext; then
13277 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13278 else
13279 echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13281
13282 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13283 fi
13284
13285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13288 fi
13289 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13290 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13291 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13292 HAVE_XPM=yes
13293 fi
13294
13295 fi
13296
13297
13298 if test "${HAVE_XPM}" = "yes"; then
13299 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13300 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13301 cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h. */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 #include "X11/xpm.h"
13308 #ifndef XpmReturnAllocPixels
13309 no_return_alloc_pixels
13310 #endif
13311
13312 _ACEOF
13313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13314 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13315 HAVE_XPM=no
13316 else
13317 HAVE_XPM=yes
13318 fi
13319 rm -f conftest*
13320
13321
13322 if test "${HAVE_XPM}" = "yes"; then
13323 { echo "$as_me:$LINENO: result: yes" >&5
13324 echo "${ECHO_T}yes" >&6; }
13325 else
13326 { echo "$as_me:$LINENO: result: no" >&5
13327 echo "${ECHO_T}no" >&6; }
13328 fi
13329 fi
13330 fi
13331
13332 if test "${HAVE_XPM}" = "yes"; then
13333
13334 cat >>confdefs.h <<\_ACEOF
13335 #define HAVE_XPM 1
13336 _ACEOF
13337
13338 fi
13339 fi
13340
13341 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13342 HAVE_JPEG=no
13343 if test "${HAVE_X11}" = "yes"; then
13344 if test "${with_jpeg}" != "no"; then
13345 if test "${ac_cv_header_jerror_h+set}" = set; then
13346 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13347 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13348 if test "${ac_cv_header_jerror_h+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 fi
13351 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13352 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13353 else
13354 # Is the header compilable?
13355 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13356 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363 $ac_includes_default
13364 #include <jerror.h>
13365 _ACEOF
13366 rm -f conftest.$ac_objext
13367 if { (ac_try="$ac_compile"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_compile") 2>conftest.er1
13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } && {
13380 test -z "$ac_c_werror_flag" ||
13381 test ! -s conftest.err
13382 } && test -s conftest.$ac_objext; then
13383 ac_header_compiler=yes
13384 else
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13387
13388 ac_header_compiler=no
13389 fi
13390
13391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13393 echo "${ECHO_T}$ac_header_compiler" >&6; }
13394
13395 # Is the header present?
13396 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13397 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13398 cat >conftest.$ac_ext <<_ACEOF
13399 /* confdefs.h. */
13400 _ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13404 #include <jerror.h>
13405 _ACEOF
13406 if { (ac_try="$ac_cpp conftest.$ac_ext"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13413 ac_status=$?
13414 grep -v '^ *+' conftest.er1 >conftest.err
13415 rm -f conftest.er1
13416 cat conftest.err >&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); } >/dev/null && {
13419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13420 test ! -s conftest.err
13421 }; then
13422 ac_header_preproc=yes
13423 else
13424 echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13426
13427 ac_header_preproc=no
13428 fi
13429
13430 rm -f conftest.err conftest.$ac_ext
13431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13432 echo "${ECHO_T}$ac_header_preproc" >&6; }
13433
13434 # So? What about this header?
13435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13436 yes:no: )
13437 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13438 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13440 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13441 ac_header_preproc=yes
13442 ;;
13443 no:yes:* )
13444 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13445 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13447 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13449 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13451 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13453 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13454 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13455 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13456
13457 ;;
13458 esac
13459 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13460 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13461 if test "${ac_cv_header_jerror_h+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464 ac_cv_header_jerror_h=$ac_header_preproc
13465 fi
13466 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13467 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13468
13469 fi
13470 if test $ac_cv_header_jerror_h = yes; then
13471 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13472 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13473 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476 ac_check_lib_save_LIBS=$LIBS
13477 LIBS="-ljpeg $LIBS"
13478 cat >conftest.$ac_ext <<_ACEOF
13479 /* confdefs.h. */
13480 _ACEOF
13481 cat confdefs.h >>conftest.$ac_ext
13482 cat >>conftest.$ac_ext <<_ACEOF
13483 /* end confdefs.h. */
13484
13485 /* Override any GCC internal prototype to avoid an error.
13486 Use char because int might match the return type of a GCC
13487 builtin and then its argument prototype would still apply. */
13488 #ifdef __cplusplus
13489 extern "C"
13490 #endif
13491 char jpeg_destroy_compress ();
13492 int
13493 main ()
13494 {
13495 return jpeg_destroy_compress ();
13496 ;
13497 return 0;
13498 }
13499 _ACEOF
13500 rm -f conftest.$ac_objext conftest$ac_exeext
13501 if { (ac_try="$ac_link"
13502 case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13505 esac
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_link") 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && {
13514 test -z "$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 } && test -s conftest$ac_exeext &&
13517 $as_test_x conftest$ac_exeext; then
13518 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13519 else
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13522
13523 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13524 fi
13525
13526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13527 conftest$ac_exeext conftest.$ac_ext
13528 LIBS=$ac_check_lib_save_LIBS
13529 fi
13530 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13531 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13532 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13533 HAVE_JPEG=yes
13534 fi
13535
13536 fi
13537
13538
13539 fi
13540
13541
13542 if test "${HAVE_JPEG}" = "yes"; then
13543 cat >>confdefs.h <<\_ACEOF
13544 #define HAVE_JPEG 1
13545 _ACEOF
13546
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h. */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 #include <jpeglib.h>
13554 version=JPEG_LIB_VERSION
13555
13556 _ACEOF
13557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13558 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13559 cat >>confdefs.h <<\_ACEOF
13560 #define HAVE_JPEG 1
13561 _ACEOF
13562
13563 else
13564 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13565 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13566 HAVE_JPEG=no
13567 fi
13568 rm -f conftest*
13569
13570 fi
13571 fi
13572
13573 ### Use -lpng if available, unless `--with-png=no'.
13574 HAVE_PNG=no
13575 if test "${HAVE_X11}" = "yes"; then
13576 if test "${with_png}" != "no"; then
13577 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13578 # in /usr/include/libpng.
13579
13580
13581 for ac_header in png.h libpng/png.h
13582 do
13583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 fi
13590 ac_res=`eval echo '${'$as_ac_Header'}'`
13591 { echo "$as_me:$LINENO: result: $ac_res" >&5
13592 echo "${ECHO_T}$ac_res" >&6; }
13593 else
13594 # Is the header compilable?
13595 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h. */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 $ac_includes_default
13604 #include <$ac_header>
13605 _ACEOF
13606 rm -f conftest.$ac_objext
13607 if { (ac_try="$ac_compile"
13608 case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13611 esac
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_compile") 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } && {
13620 test -z "$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13622 } && test -s conftest.$ac_objext; then
13623 ac_header_compiler=yes
13624 else
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 ac_header_compiler=no
13629 fi
13630
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13633 echo "${ECHO_T}$ac_header_compiler" >&6; }
13634
13635 # Is the header present?
13636 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13638 cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h. */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 #include <$ac_header>
13645 _ACEOF
13646 if { (ac_try="$ac_cpp conftest.$ac_ext"
13647 case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13650 esac
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13653 ac_status=$?
13654 grep -v '^ *+' conftest.er1 >conftest.err
13655 rm -f conftest.er1
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } >/dev/null && {
13659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13660 test ! -s conftest.err
13661 }; then
13662 ac_header_preproc=yes
13663 else
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13666
13667 ac_header_preproc=no
13668 fi
13669
13670 rm -f conftest.err conftest.$ac_ext
13671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13672 echo "${ECHO_T}$ac_header_preproc" >&6; }
13673
13674 # So? What about this header?
13675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13676 yes:no: )
13677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13681 ac_header_preproc=yes
13682 ;;
13683 no:yes:* )
13684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13696
13697 ;;
13698 esac
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 else
13704 eval "$as_ac_Header=\$ac_header_preproc"
13705 fi
13706 ac_res=`eval echo '${'$as_ac_Header'}'`
13707 { echo "$as_me:$LINENO: result: $ac_res" >&5
13708 echo "${ECHO_T}$ac_res" >&6; }
13709
13710 fi
13711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13712 cat >>confdefs.h <<_ACEOF
13713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13714 _ACEOF
13715
13716 fi
13717
13718 done
13719
13720 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13721 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13722 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13723 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726 ac_check_lib_save_LIBS=$LIBS
13727 LIBS="-lpng -lz -lm $LIBS"
13728 cat >conftest.$ac_ext <<_ACEOF
13729 /* confdefs.h. */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13734
13735 /* Override any GCC internal prototype to avoid an error.
13736 Use char because int might match the return type of a GCC
13737 builtin and then its argument prototype would still apply. */
13738 #ifdef __cplusplus
13739 extern "C"
13740 #endif
13741 char png_get_channels ();
13742 int
13743 main ()
13744 {
13745 return png_get_channels ();
13746 ;
13747 return 0;
13748 }
13749 _ACEOF
13750 rm -f conftest.$ac_objext conftest$ac_exeext
13751 if { (ac_try="$ac_link"
13752 case "(($ac_try" in
13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754 *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757 (eval "$ac_link") 2>conftest.er1
13758 ac_status=$?
13759 grep -v '^ *+' conftest.er1 >conftest.err
13760 rm -f conftest.er1
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } && {
13764 test -z "$ac_c_werror_flag" ||
13765 test ! -s conftest.err
13766 } && test -s conftest$ac_exeext &&
13767 $as_test_x conftest$ac_exeext; then
13768 ac_cv_lib_png_png_get_channels=yes
13769 else
13770 echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13772
13773 ac_cv_lib_png_png_get_channels=no
13774 fi
13775
13776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13777 conftest$ac_exeext conftest.$ac_ext
13778 LIBS=$ac_check_lib_save_LIBS
13779 fi
13780 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13781 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13782 if test $ac_cv_lib_png_png_get_channels = yes; then
13783 HAVE_PNG=yes
13784 fi
13785
13786 fi
13787 fi
13788
13789 if test "${HAVE_PNG}" = "yes"; then
13790
13791 cat >>confdefs.h <<\_ACEOF
13792 #define HAVE_PNG 1
13793 _ACEOF
13794
13795 fi
13796 fi
13797
13798 ### Use -ltiff if available, unless `--with-tiff=no'.
13799 HAVE_TIFF=no
13800 if test "${HAVE_X11}" = "yes"; then
13801 if test "${with_tiff}" != "no"; then
13802 if test "${ac_cv_header_tiffio_h+set}" = set; then
13803 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13804 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13805 if test "${ac_cv_header_tiffio_h+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 fi
13808 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13809 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13810 else
13811 # Is the header compilable?
13812 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13813 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13814 cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h. */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820 $ac_includes_default
13821 #include <tiffio.h>
13822 _ACEOF
13823 rm -f conftest.$ac_objext
13824 if { (ac_try="$ac_compile"
13825 case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828 esac
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_compile") 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } && {
13837 test -z "$ac_c_werror_flag" ||
13838 test ! -s conftest.err
13839 } && test -s conftest.$ac_objext; then
13840 ac_header_compiler=yes
13841 else
13842 echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13844
13845 ac_header_compiler=no
13846 fi
13847
13848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13850 echo "${ECHO_T}$ac_header_compiler" >&6; }
13851
13852 # Is the header present?
13853 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13854 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13855 cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h. */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861 #include <tiffio.h>
13862 _ACEOF
13863 if { (ac_try="$ac_cpp conftest.$ac_ext"
13864 case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13867 esac
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13870 ac_status=$?
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } >/dev/null && {
13876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13877 test ! -s conftest.err
13878 }; then
13879 ac_header_preproc=yes
13880 else
13881 echo "$as_me: failed program was:" >&5
13882 sed 's/^/| /' conftest.$ac_ext >&5
13883
13884 ac_header_preproc=no
13885 fi
13886
13887 rm -f conftest.err conftest.$ac_ext
13888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13889 echo "${ECHO_T}$ac_header_preproc" >&6; }
13890
13891 # So? What about this header?
13892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13893 yes:no: )
13894 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13895 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13897 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13898 ac_header_preproc=yes
13899 ;;
13900 no:yes:* )
13901 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13902 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13903 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13904 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13905 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13906 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13907 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13908 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13910 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13911 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13912 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13913
13914 ;;
13915 esac
13916 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13917 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13918 if test "${ac_cv_header_tiffio_h+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921 ac_cv_header_tiffio_h=$ac_header_preproc
13922 fi
13923 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13924 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13925
13926 fi
13927 if test $ac_cv_header_tiffio_h = yes; then
13928 tifflibs="-lz -lm"
13929 # At least one tiff package requires the jpeg library.
13930 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13931 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13932 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13933 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936 ac_check_lib_save_LIBS=$LIBS
13937 LIBS="-ltiff $tifflibs $LIBS"
13938 cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h. */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944
13945 /* Override any GCC internal prototype to avoid an error.
13946 Use char because int might match the return type of a GCC
13947 builtin and then its argument prototype would still apply. */
13948 #ifdef __cplusplus
13949 extern "C"
13950 #endif
13951 char TIFFGetVersion ();
13952 int
13953 main ()
13954 {
13955 return TIFFGetVersion ();
13956 ;
13957 return 0;
13958 }
13959 _ACEOF
13960 rm -f conftest.$ac_objext conftest$ac_exeext
13961 if { (ac_try="$ac_link"
13962 case "(($ac_try" in
13963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964 *) ac_try_echo=$ac_try;;
13965 esac
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967 (eval "$ac_link") 2>conftest.er1
13968 ac_status=$?
13969 grep -v '^ *+' conftest.er1 >conftest.err
13970 rm -f conftest.er1
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } && {
13974 test -z "$ac_c_werror_flag" ||
13975 test ! -s conftest.err
13976 } && test -s conftest$ac_exeext &&
13977 $as_test_x conftest$ac_exeext; then
13978 ac_cv_lib_tiff_TIFFGetVersion=yes
13979 else
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983 ac_cv_lib_tiff_TIFFGetVersion=no
13984 fi
13985
13986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13987 conftest$ac_exeext conftest.$ac_ext
13988 LIBS=$ac_check_lib_save_LIBS
13989 fi
13990 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13991 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13992 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13993 HAVE_TIFF=yes
13994 fi
13995
13996 fi
13997
13998
13999 fi
14000
14001 if test "${HAVE_TIFF}" = "yes"; then
14002
14003 cat >>confdefs.h <<\_ACEOF
14004 #define HAVE_TIFF 1
14005 _ACEOF
14006
14007 fi
14008 fi
14009
14010 ### Use -lgif if available, unless `--with-gif=no'.
14011 HAVE_GIF=no
14012 if test "${HAVE_X11}" = "yes"; then
14013 if test "${with_gif}" != "no"; then
14014 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14015 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14016 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14017 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 fi
14020 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14021 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14022 else
14023 # Is the header compilable?
14024 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14025 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14026 cat >conftest.$ac_ext <<_ACEOF
14027 /* confdefs.h. */
14028 _ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h. */
14032 $ac_includes_default
14033 #include <gif_lib.h>
14034 _ACEOF
14035 rm -f conftest.$ac_objext
14036 if { (ac_try="$ac_compile"
14037 case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040 esac
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
14043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } && {
14049 test -z "$ac_c_werror_flag" ||
14050 test ! -s conftest.err
14051 } && test -s conftest.$ac_objext; then
14052 ac_header_compiler=yes
14053 else
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14056
14057 ac_header_compiler=no
14058 fi
14059
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14062 echo "${ECHO_T}$ac_header_compiler" >&6; }
14063
14064 # Is the header present?
14065 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14066 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14067 cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h. */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 #include <gif_lib.h>
14074 _ACEOF
14075 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
14088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14089 test ! -s conftest.err
14090 }; then
14091 ac_header_preproc=yes
14092 else
14093 echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14095
14096 ac_header_preproc=no
14097 fi
14098
14099 rm -f conftest.err conftest.$ac_ext
14100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14101 echo "${ECHO_T}$ac_header_preproc" >&6; }
14102
14103 # So? What about this header?
14104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14105 yes:no: )
14106 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14107 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14109 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14110 ac_header_preproc=yes
14111 ;;
14112 no:yes:* )
14113 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14114 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14116 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14118 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14120 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14122 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14124 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14125
14126 ;;
14127 esac
14128 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14129 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14130 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 ac_cv_header_gif_lib_h=$ac_header_preproc
14134 fi
14135 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14136 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14137
14138 fi
14139 if test $ac_cv_header_gif_lib_h = yes; then
14140 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14141 # Earlier versions can crash Emacs.
14142 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14143 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14144 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147 ac_check_lib_save_LIBS=$LIBS
14148 LIBS="-lungif $LIBS"
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155
14156 /* Override any GCC internal prototype to avoid an error.
14157 Use char because int might match the return type of a GCC
14158 builtin and then its argument prototype would still apply. */
14159 #ifdef __cplusplus
14160 extern "C"
14161 #endif
14162 char EGifPutExtensionLast ();
14163 int
14164 main ()
14165 {
14166 return EGifPutExtensionLast ();
14167 ;
14168 return 0;
14169 }
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (ac_try="$ac_link"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_link") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest$ac_exeext &&
14188 $as_test_x conftest$ac_exeext; then
14189 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14190 else
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14193
14194 ac_cv_lib_ungif_EGifPutExtensionLast=no
14195 fi
14196
14197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14200 fi
14201 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14202 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14203 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14204 HAVE_GIF=yes
14205 fi
14206
14207 fi
14208
14209
14210 fi
14211
14212 if test "${HAVE_GIF}" = "yes"; then
14213
14214 cat >>confdefs.h <<\_ACEOF
14215 #define HAVE_GIF 1
14216 _ACEOF
14217
14218 fi
14219 fi
14220
14221 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14222 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14223 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14224 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 fi
14227 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14228 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14229 else
14230 # Is the header compilable?
14231 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14232 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 $ac_includes_default
14240 #include <malloc/malloc.h>
14241 _ACEOF
14242 rm -f conftest.$ac_objext
14243 if { (ac_try="$ac_compile"
14244 case "(($ac_try" in
14245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14247 esac
14248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14249 (eval "$ac_compile") 2>conftest.er1
14250 ac_status=$?
14251 grep -v '^ *+' conftest.er1 >conftest.err
14252 rm -f conftest.er1
14253 cat conftest.err >&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } && {
14256 test -z "$ac_c_werror_flag" ||
14257 test ! -s conftest.err
14258 } && test -s conftest.$ac_objext; then
14259 ac_header_compiler=yes
14260 else
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14263
14264 ac_header_compiler=no
14265 fi
14266
14267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14269 echo "${ECHO_T}$ac_header_compiler" >&6; }
14270
14271 # Is the header present?
14272 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14273 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14274 cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h. */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 #include <malloc/malloc.h>
14281 _ACEOF
14282 if { (ac_try="$ac_cpp conftest.$ac_ext"
14283 case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14286 esac
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } >/dev/null && {
14295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 }; then
14298 ac_header_preproc=yes
14299 else
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303 ac_header_preproc=no
14304 fi
14305
14306 rm -f conftest.err conftest.$ac_ext
14307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14308 echo "${ECHO_T}$ac_header_preproc" >&6; }
14309
14310 # So? What about this header?
14311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14312 yes:no: )
14313 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14314 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14316 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14317 ac_header_preproc=yes
14318 ;;
14319 no:yes:* )
14320 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14321 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14323 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14325 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14327 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14329 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14331 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14332
14333 ;;
14334 esac
14335 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14336 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14337 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14341 fi
14342 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14343 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14344
14345 fi
14346 if test $ac_cv_header_malloc_malloc_h = yes; then
14347
14348 cat >>confdefs.h <<\_ACEOF
14349 #define HAVE_MALLOC_MALLOC_H 1
14350 _ACEOF
14351
14352 fi
14353
14354
14355
14356 ### Use Mac OS X Carbon API to implement GUI.
14357 if test "${HAVE_CARBON}" = "yes"; then
14358
14359 cat >>confdefs.h <<\_ACEOF
14360 #define HAVE_CARBON 1
14361 _ACEOF
14362
14363 ## Specify the install directory
14364 carbon_appdir=
14365 if test "${carbon_appdir_x}" != ""; then
14366 case ${carbon_appdir_x} in
14367 y | ye | yes) carbon_appdir=/Applications ;;
14368 * ) carbon_appdir=${carbon_appdir_x} ;;
14369 esac
14370 fi
14371 # We also have mouse menus.
14372 HAVE_MENUS=yes
14373 fi
14374
14375 ### Use session management (-lSM -lICE) if available
14376 HAVE_X_SM=no
14377 if test "${HAVE_X11}" = "yes"; then
14378 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14379 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14380 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14381 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 fi
14384 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14385 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14386 else
14387 # Is the header compilable?
14388 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14389 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14390 cat >conftest.$ac_ext <<_ACEOF
14391 /* confdefs.h. */
14392 _ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 $ac_includes_default
14397 #include <X11/SM/SMlib.h>
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (ac_try="$ac_compile"
14401 case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14404 esac
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_compile") 2>conftest.er1
14407 ac_status=$?
14408 grep -v '^ *+' conftest.er1 >conftest.err
14409 rm -f conftest.er1
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } && {
14413 test -z "$ac_c_werror_flag" ||
14414 test ! -s conftest.err
14415 } && test -s conftest.$ac_objext; then
14416 ac_header_compiler=yes
14417 else
14418 echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14420
14421 ac_header_compiler=no
14422 fi
14423
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14426 echo "${ECHO_T}$ac_header_compiler" >&6; }
14427
14428 # Is the header present?
14429 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14430 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14431 cat >conftest.$ac_ext <<_ACEOF
14432 /* confdefs.h. */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 #include <X11/SM/SMlib.h>
14438 _ACEOF
14439 if { (ac_try="$ac_cpp conftest.$ac_ext"
14440 case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14443 esac
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14446 ac_status=$?
14447 grep -v '^ *+' conftest.er1 >conftest.err
14448 rm -f conftest.er1
14449 cat conftest.err >&5
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); } >/dev/null && {
14452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14453 test ! -s conftest.err
14454 }; then
14455 ac_header_preproc=yes
14456 else
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460 ac_header_preproc=no
14461 fi
14462
14463 rm -f conftest.err conftest.$ac_ext
14464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14465 echo "${ECHO_T}$ac_header_preproc" >&6; }
14466
14467 # So? What about this header?
14468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14469 yes:no: )
14470 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14471 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14473 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14474 ac_header_preproc=yes
14475 ;;
14476 no:yes:* )
14477 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14478 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14479 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14480 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14482 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14483 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14484 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14486 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14488 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14489
14490 ;;
14491 esac
14492 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14493 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14494 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 else
14497 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14498 fi
14499 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14500 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14501
14502 fi
14503 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14504 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14505 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14506 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509 ac_check_lib_save_LIBS=$LIBS
14510 LIBS="-lSM -lICE $LIBS"
14511 cat >conftest.$ac_ext <<_ACEOF
14512 /* confdefs.h. */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517
14518 /* Override any GCC internal prototype to avoid an error.
14519 Use char because int might match the return type of a GCC
14520 builtin and then its argument prototype would still apply. */
14521 #ifdef __cplusplus
14522 extern "C"
14523 #endif
14524 char SmcOpenConnection ();
14525 int
14526 main ()
14527 {
14528 return SmcOpenConnection ();
14529 ;
14530 return 0;
14531 }
14532 _ACEOF
14533 rm -f conftest.$ac_objext conftest$ac_exeext
14534 if { (ac_try="$ac_link"
14535 case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_link") 2>conftest.er1
14541 ac_status=$?
14542 grep -v '^ *+' conftest.er1 >conftest.err
14543 rm -f conftest.er1
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } && {
14547 test -z "$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14549 } && test -s conftest$ac_exeext &&
14550 $as_test_x conftest$ac_exeext; then
14551 ac_cv_lib_SM_SmcOpenConnection=yes
14552 else
14553 echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556 ac_cv_lib_SM_SmcOpenConnection=no
14557 fi
14558
14559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14560 conftest$ac_exeext conftest.$ac_ext
14561 LIBS=$ac_check_lib_save_LIBS
14562 fi
14563 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14564 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14565 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14566 HAVE_X_SM=yes
14567 fi
14568
14569 fi
14570
14571
14572
14573 if test "${HAVE_X_SM}" = "yes"; then
14574
14575 cat >>confdefs.h <<\_ACEOF
14576 #define HAVE_X_SM 1
14577 _ACEOF
14578
14579 case "$LIBS" in
14580 *-lSM*) ;;
14581 *) LIBS="-lSM -lICE $LIBS" ;;
14582 esac
14583 fi
14584 fi
14585
14586 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14587 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14588 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14589 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592 cat >conftest.$ac_ext <<_ACEOF
14593 /* confdefs.h. */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h. */
14598 #include <netdb.h>
14599 int
14600 main ()
14601 {
14602 return h_errno;
14603 ;
14604 return 0;
14605 }
14606 _ACEOF
14607 rm -f conftest.$ac_objext conftest$ac_exeext
14608 if { (ac_try="$ac_link"
14609 case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_link") 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } && {
14621 test -z "$ac_c_werror_flag" ||
14622 test ! -s conftest.err
14623 } && test -s conftest$ac_exeext &&
14624 $as_test_x conftest$ac_exeext; then
14625 emacs_cv_netdb_declares_h_errno=yes
14626 else
14627 echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14629
14630 emacs_cv_netdb_declares_h_errno=no
14631 fi
14632
14633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14634 conftest$ac_exeext conftest.$ac_ext
14635 fi
14636 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14637 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14638 if test $emacs_cv_netdb_declares_h_errno = yes; then
14639
14640 cat >>confdefs.h <<\_ACEOF
14641 #define HAVE_H_ERRNO 1
14642 _ACEOF
14643
14644 fi
14645
14646 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14647 # for constant arguments. Useless!
14648 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14649 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14650 if test "${ac_cv_working_alloca_h+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653 cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h. */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 #include <alloca.h>
14660 int
14661 main ()
14662 {
14663 char *p = (char *) alloca (2 * sizeof (int));
14664 if (p) return 0;
14665 ;
14666 return 0;
14667 }
14668 _ACEOF
14669 rm -f conftest.$ac_objext conftest$ac_exeext
14670 if { (ac_try="$ac_link"
14671 case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674 esac
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_link") 2>conftest.er1
14677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } && {
14683 test -z "$ac_c_werror_flag" ||
14684 test ! -s conftest.err
14685 } && test -s conftest$ac_exeext &&
14686 $as_test_x conftest$ac_exeext; then
14687 ac_cv_working_alloca_h=yes
14688 else
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 ac_cv_working_alloca_h=no
14693 fi
14694
14695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14696 conftest$ac_exeext conftest.$ac_ext
14697 fi
14698 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14699 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14700 if test $ac_cv_working_alloca_h = yes; then
14701
14702 cat >>confdefs.h <<\_ACEOF
14703 #define HAVE_ALLOCA_H 1
14704 _ACEOF
14705
14706 fi
14707
14708 { echo "$as_me:$LINENO: checking for alloca" >&5
14709 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14710 if test "${ac_cv_func_alloca_works+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713 cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h. */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719 #ifdef __GNUC__
14720 # define alloca __builtin_alloca
14721 #else
14722 # ifdef _MSC_VER
14723 # include <malloc.h>
14724 # define alloca _alloca
14725 # else
14726 # ifdef HAVE_ALLOCA_H
14727 # include <alloca.h>
14728 # else
14729 # ifdef _AIX
14730 #pragma alloca
14731 # else
14732 # ifndef alloca /* predefined by HP cc +Olibcalls */
14733 char *alloca ();
14734 # endif
14735 # endif
14736 # endif
14737 # endif
14738 #endif
14739
14740 int
14741 main ()
14742 {
14743 char *p = (char *) alloca (1);
14744 if (p) return 0;
14745 ;
14746 return 0;
14747 }
14748 _ACEOF
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (ac_try="$ac_link"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest$ac_exeext &&
14766 $as_test_x conftest$ac_exeext; then
14767 ac_cv_func_alloca_works=yes
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 ac_cv_func_alloca_works=no
14773 fi
14774
14775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14776 conftest$ac_exeext conftest.$ac_ext
14777 fi
14778 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14779 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14780
14781 if test $ac_cv_func_alloca_works = yes; then
14782
14783 cat >>confdefs.h <<\_ACEOF
14784 #define HAVE_ALLOCA 1
14785 _ACEOF
14786
14787 else
14788 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14789 # that cause trouble. Some versions do not even contain alloca or
14790 # contain a buggy version. If you still want to use their alloca,
14791 # use ar to extract alloca.o from them instead of compiling alloca.c.
14792
14793 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14794
14795 cat >>confdefs.h <<\_ACEOF
14796 #define C_ALLOCA 1
14797 _ACEOF
14798
14799
14800 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14801 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14802 if test "${ac_cv_os_cray+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805 cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h. */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 #if defined CRAY && ! defined CRAY2
14812 webecray
14813 #else
14814 wenotbecray
14815 #endif
14816
14817 _ACEOF
14818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14819 $EGREP "webecray" >/dev/null 2>&1; then
14820 ac_cv_os_cray=yes
14821 else
14822 ac_cv_os_cray=no
14823 fi
14824 rm -f conftest*
14825
14826 fi
14827 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14828 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14829 if test $ac_cv_os_cray = yes; then
14830 for ac_func in _getb67 GETB67 getb67; do
14831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837 cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h. */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14845 #define $ac_func innocuous_$ac_func
14846
14847 /* System header to define __stub macros and hopefully few prototypes,
14848 which can conflict with char $ac_func (); below.
14849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14850 <limits.h> exists even on freestanding compilers. */
14851
14852 #ifdef __STDC__
14853 # include <limits.h>
14854 #else
14855 # include <assert.h>
14856 #endif
14857
14858 #undef $ac_func
14859
14860 /* Override any GCC internal prototype to avoid an error.
14861 Use char because int might match the return type of a GCC
14862 builtin and then its argument prototype would still apply. */
14863 #ifdef __cplusplus
14864 extern "C"
14865 #endif
14866 char $ac_func ();
14867 /* The GNU C library defines this for functions which it implements
14868 to always fail with ENOSYS. Some functions are actually named
14869 something starting with __ and the normal name is an alias. */
14870 #if defined __stub_$ac_func || defined __stub___$ac_func
14871 choke me
14872 #endif
14873
14874 int
14875 main ()
14876 {
14877 return $ac_func ();
14878 ;
14879 return 0;
14880 }
14881 _ACEOF
14882 rm -f conftest.$ac_objext conftest$ac_exeext
14883 if { (ac_try="$ac_link"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_link") 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } && {
14896 test -z "$ac_c_werror_flag" ||
14897 test ! -s conftest.err
14898 } && test -s conftest$ac_exeext &&
14899 $as_test_x conftest$ac_exeext; then
14900 eval "$as_ac_var=yes"
14901 else
14902 echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14904
14905 eval "$as_ac_var=no"
14906 fi
14907
14908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14909 conftest$ac_exeext conftest.$ac_ext
14910 fi
14911 ac_res=`eval echo '${'$as_ac_var'}'`
14912 { echo "$as_me:$LINENO: result: $ac_res" >&5
14913 echo "${ECHO_T}$ac_res" >&6; }
14914 if test `eval echo '${'$as_ac_var'}'` = yes; then
14915
14916 cat >>confdefs.h <<_ACEOF
14917 #define CRAY_STACKSEG_END $ac_func
14918 _ACEOF
14919
14920 break
14921 fi
14922
14923 done
14924 fi
14925
14926 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14927 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14928 if test "${ac_cv_c_stack_direction+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931 if test "$cross_compiling" = yes; then
14932 ac_cv_c_stack_direction=0
14933 else
14934 cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 $ac_includes_default
14941 int
14942 find_stack_direction ()
14943 {
14944 static char *addr = 0;
14945 auto char dummy;
14946 if (addr == 0)
14947 {
14948 addr = &dummy;
14949 return find_stack_direction ();
14950 }
14951 else
14952 return (&dummy > addr) ? 1 : -1;
14953 }
14954
14955 int
14956 main ()
14957 {
14958 return find_stack_direction () < 0;
14959 }
14960 _ACEOF
14961 rm -f conftest$ac_exeext
14962 if { (ac_try="$ac_link"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_link") 2>&5
14969 ac_status=$?
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14972 { (case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_try") 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14981 ac_cv_c_stack_direction=1
14982 else
14983 echo "$as_me: program exited with status $ac_status" >&5
14984 echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14986
14987 ( exit $ac_status )
14988 ac_cv_c_stack_direction=-1
14989 fi
14990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14991 fi
14992
14993
14994 fi
14995 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14996 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14997
14998 cat >>confdefs.h <<_ACEOF
14999 #define STACK_DIRECTION $ac_cv_c_stack_direction
15000 _ACEOF
15001
15002
15003 fi
15004
15005
15006 # fmod, logb, and frexp are found in -lm on most systems.
15007 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15008
15009 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15010 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15011 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 else
15014 ac_check_lib_save_LIBS=$LIBS
15015 LIBS="-lm $LIBS"
15016 cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h. */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022
15023 /* Override any GCC internal prototype to avoid an error.
15024 Use char because int might match the return type of a GCC
15025 builtin and then its argument prototype would still apply. */
15026 #ifdef __cplusplus
15027 extern "C"
15028 #endif
15029 char sqrt ();
15030 int
15031 main ()
15032 {
15033 return sqrt ();
15034 ;
15035 return 0;
15036 }
15037 _ACEOF
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (ac_try="$ac_link"
15040 case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043 esac
15044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_link") 2>conftest.er1
15046 ac_status=$?
15047 grep -v '^ *+' conftest.er1 >conftest.err
15048 rm -f conftest.er1
15049 cat conftest.err >&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } && {
15052 test -z "$ac_c_werror_flag" ||
15053 test ! -s conftest.err
15054 } && test -s conftest$ac_exeext &&
15055 $as_test_x conftest$ac_exeext; then
15056 ac_cv_lib_m_sqrt=yes
15057 else
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15060
15061 ac_cv_lib_m_sqrt=no
15062 fi
15063
15064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15065 conftest$ac_exeext conftest.$ac_ext
15066 LIBS=$ac_check_lib_save_LIBS
15067 fi
15068 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15069 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15070 if test $ac_cv_lib_m_sqrt = yes; then
15071 cat >>confdefs.h <<_ACEOF
15072 #define HAVE_LIBM 1
15073 _ACEOF
15074
15075 LIBS="-lm $LIBS"
15076
15077 fi
15078
15079
15080 # Check for mail-locking functions in a "mail" library. Probably this should
15081 # have the same check as for liblockfile below.
15082
15083 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15084 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15085 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 else
15088 ac_check_lib_save_LIBS=$LIBS
15089 LIBS="-lmail $LIBS"
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h. */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15096
15097 /* Override any GCC internal prototype to avoid an error.
15098 Use char because int might match the return type of a GCC
15099 builtin and then its argument prototype would still apply. */
15100 #ifdef __cplusplus
15101 extern "C"
15102 #endif
15103 char maillock ();
15104 int
15105 main ()
15106 {
15107 return maillock ();
15108 ;
15109 return 0;
15110 }
15111 _ACEOF
15112 rm -f conftest.$ac_objext conftest$ac_exeext
15113 if { (ac_try="$ac_link"
15114 case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117 esac
15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_link") 2>conftest.er1
15120 ac_status=$?
15121 grep -v '^ *+' conftest.er1 >conftest.err
15122 rm -f conftest.er1
15123 cat conftest.err >&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } && {
15126 test -z "$ac_c_werror_flag" ||
15127 test ! -s conftest.err
15128 } && test -s conftest$ac_exeext &&
15129 $as_test_x conftest$ac_exeext; then
15130 ac_cv_lib_mail_maillock=yes
15131 else
15132 echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15134
15135 ac_cv_lib_mail_maillock=no
15136 fi
15137
15138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15139 conftest$ac_exeext conftest.$ac_ext
15140 LIBS=$ac_check_lib_save_LIBS
15141 fi
15142 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15143 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15144 if test $ac_cv_lib_mail_maillock = yes; then
15145 cat >>confdefs.h <<_ACEOF
15146 #define HAVE_LIBMAIL 1
15147 _ACEOF
15148
15149 LIBS="-lmail $LIBS"
15150
15151 fi
15152
15153
15154 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15155 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15156 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 else
15159 ac_check_lib_save_LIBS=$LIBS
15160 LIBS="-llockfile $LIBS"
15161 cat >conftest.$ac_ext <<_ACEOF
15162 /* confdefs.h. */
15163 _ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15167
15168 /* Override any GCC internal prototype to avoid an error.
15169 Use char because int might match the return type of a GCC
15170 builtin and then its argument prototype would still apply. */
15171 #ifdef __cplusplus
15172 extern "C"
15173 #endif
15174 char maillock ();
15175 int
15176 main ()
15177 {
15178 return maillock ();
15179 ;
15180 return 0;
15181 }
15182 _ACEOF
15183 rm -f conftest.$ac_objext conftest$ac_exeext
15184 if { (ac_try="$ac_link"
15185 case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15188 esac
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_link") 2>conftest.er1
15191 ac_status=$?
15192 grep -v '^ *+' conftest.er1 >conftest.err
15193 rm -f conftest.er1
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } && {
15197 test -z "$ac_c_werror_flag" ||
15198 test ! -s conftest.err
15199 } && test -s conftest$ac_exeext &&
15200 $as_test_x conftest$ac_exeext; then
15201 ac_cv_lib_lockfile_maillock=yes
15202 else
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206 ac_cv_lib_lockfile_maillock=no
15207 fi
15208
15209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15210 conftest$ac_exeext conftest.$ac_ext
15211 LIBS=$ac_check_lib_save_LIBS
15212 fi
15213 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15214 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15215 if test $ac_cv_lib_lockfile_maillock = yes; then
15216 cat >>confdefs.h <<_ACEOF
15217 #define HAVE_LIBLOCKFILE 1
15218 _ACEOF
15219
15220 LIBS="-llockfile $LIBS"
15221
15222 fi
15223
15224 # If we have the shared liblockfile, assume we must use it for mail
15225 # locking (e.g. Debian). If we couldn't link against liblockfile
15226 # (no liblockfile.a installed), ensure that we don't need to.
15227 if test "$ac_cv_lib_lockfile_maillock" = no; then
15228 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15229 set dummy liblockfile.so; ac_word=$2
15230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15232 if test "${ac_cv_prog_liblockfile+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235 if test -n "$liblockfile"; then
15236 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15237 else
15238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15239 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15240 for as_dir in $as_dummy
15241 do
15242 IFS=$as_save_IFS
15243 test -z "$as_dir" && as_dir=.
15244 for ac_exec_ext in '' $ac_executable_extensions; do
15245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15246 ac_cv_prog_liblockfile="yes"
15247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15248 break 2
15249 fi
15250 done
15251 done
15252 IFS=$as_save_IFS
15253
15254 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15255 fi
15256 fi
15257 liblockfile=$ac_cv_prog_liblockfile
15258 if test -n "$liblockfile"; then
15259 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15260 echo "${ECHO_T}$liblockfile" >&6; }
15261 else
15262 { echo "$as_me:$LINENO: result: no" >&5
15263 echo "${ECHO_T}no" >&6; }
15264 fi
15265
15266
15267 if test $ac_cv_prog_liblockfile = yes; then
15268 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15269 This probably means that movemail could lose mail.
15270 There may be a \`development' package to install containing liblockfile." >&5
15271 echo "$as_me: error: Shared liblockfile found but can't link against it.
15272 This probably means that movemail could lose mail.
15273 There may be a \`development' package to install containing liblockfile." >&2;}
15274 { (exit 1); exit 1; }; }
15275 else :
15276 fi
15277 fi
15278
15279 for ac_func in touchlock
15280 do
15281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15295 #define $ac_func innocuous_$ac_func
15296
15297 /* System header to define __stub macros and hopefully few prototypes,
15298 which can conflict with char $ac_func (); below.
15299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15300 <limits.h> exists even on freestanding compilers. */
15301
15302 #ifdef __STDC__
15303 # include <limits.h>
15304 #else
15305 # include <assert.h>
15306 #endif
15307
15308 #undef $ac_func
15309
15310 /* Override any GCC internal prototype to avoid an error.
15311 Use char because int might match the return type of a GCC
15312 builtin and then its argument prototype would still apply. */
15313 #ifdef __cplusplus
15314 extern "C"
15315 #endif
15316 char $ac_func ();
15317 /* The GNU C library defines this for functions which it implements
15318 to always fail with ENOSYS. Some functions are actually named
15319 something starting with __ and the normal name is an alias. */
15320 #if defined __stub_$ac_func || defined __stub___$ac_func
15321 choke me
15322 #endif
15323
15324 int
15325 main ()
15326 {
15327 return $ac_func ();
15328 ;
15329 return 0;
15330 }
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (ac_try="$ac_link"
15334 case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_link") 2>conftest.er1
15340 ac_status=$?
15341 grep -v '^ *+' conftest.er1 >conftest.err
15342 rm -f conftest.er1
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
15348 } && test -s conftest$ac_exeext &&
15349 $as_test_x conftest$ac_exeext; then
15350 eval "$as_ac_var=yes"
15351 else
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.$ac_ext >&5
15354
15355 eval "$as_ac_var=no"
15356 fi
15357
15358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15359 conftest$ac_exeext conftest.$ac_ext
15360 fi
15361 ac_res=`eval echo '${'$as_ac_var'}'`
15362 { echo "$as_me:$LINENO: result: $ac_res" >&5
15363 echo "${ECHO_T}$ac_res" >&6; }
15364 if test `eval echo '${'$as_ac_var'}'` = yes; then
15365 cat >>confdefs.h <<_ACEOF
15366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15367 _ACEOF
15368
15369 fi
15370 done
15371
15372
15373 for ac_header in maillock.h
15374 do
15375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 fi
15382 ac_res=`eval echo '${'$as_ac_Header'}'`
15383 { echo "$as_me:$LINENO: result: $ac_res" >&5
15384 echo "${ECHO_T}$ac_res" >&6; }
15385 else
15386 # Is the header compilable?
15387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15389 cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h. */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 $ac_includes_default
15396 #include <$ac_header>
15397 _ACEOF
15398 rm -f conftest.$ac_objext
15399 if { (ac_try="$ac_compile"
15400 case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_compile") 2>conftest.er1
15406 ac_status=$?
15407 grep -v '^ *+' conftest.er1 >conftest.err
15408 rm -f conftest.er1
15409 cat conftest.err >&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } && {
15412 test -z "$ac_c_werror_flag" ||
15413 test ! -s conftest.err
15414 } && test -s conftest.$ac_objext; then
15415 ac_header_compiler=yes
15416 else
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15419
15420 ac_header_compiler=no
15421 fi
15422
15423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15425 echo "${ECHO_T}$ac_header_compiler" >&6; }
15426
15427 # Is the header present?
15428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15430 cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h. */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15436 #include <$ac_header>
15437 _ACEOF
15438 if { (ac_try="$ac_cpp conftest.$ac_ext"
15439 case "(($ac_try" in
15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15441 *) ac_try_echo=$ac_try;;
15442 esac
15443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15445 ac_status=$?
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } >/dev/null && {
15451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15452 test ! -s conftest.err
15453 }; then
15454 ac_header_preproc=yes
15455 else
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459 ac_header_preproc=no
15460 fi
15461
15462 rm -f conftest.err conftest.$ac_ext
15463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15464 echo "${ECHO_T}$ac_header_preproc" >&6; }
15465
15466 # So? What about this header?
15467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15468 yes:no: )
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15473 ac_header_preproc=yes
15474 ;;
15475 no:yes:* )
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15488
15489 ;;
15490 esac
15491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 else
15496 eval "$as_ac_Header=\$ac_header_preproc"
15497 fi
15498 ac_res=`eval echo '${'$as_ac_Header'}'`
15499 { echo "$as_me:$LINENO: result: $ac_res" >&5
15500 echo "${ECHO_T}$ac_res" >&6; }
15501
15502 fi
15503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15504 cat >>confdefs.h <<_ACEOF
15505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15506 _ACEOF
15507
15508 fi
15509
15510 done
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582 for ac_func in gethostname getdomainname dup2 \
15583 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15584 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15585 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15586 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15587 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15588 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15589 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15590 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15591 do
15592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 else
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h. */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15606 #define $ac_func innocuous_$ac_func
15607
15608 /* System header to define __stub macros and hopefully few prototypes,
15609 which can conflict with char $ac_func (); below.
15610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15611 <limits.h> exists even on freestanding compilers. */
15612
15613 #ifdef __STDC__
15614 # include <limits.h>
15615 #else
15616 # include <assert.h>
15617 #endif
15618
15619 #undef $ac_func
15620
15621 /* Override any GCC internal prototype to avoid an error.
15622 Use char because int might match the return type of a GCC
15623 builtin and then its argument prototype would still apply. */
15624 #ifdef __cplusplus
15625 extern "C"
15626 #endif
15627 char $ac_func ();
15628 /* The GNU C library defines this for functions which it implements
15629 to always fail with ENOSYS. Some functions are actually named
15630 something starting with __ and the normal name is an alias. */
15631 #if defined __stub_$ac_func || defined __stub___$ac_func
15632 choke me
15633 #endif
15634
15635 int
15636 main ()
15637 {
15638 return $ac_func ();
15639 ;
15640 return 0;
15641 }
15642 _ACEOF
15643 rm -f conftest.$ac_objext conftest$ac_exeext
15644 if { (ac_try="$ac_link"
15645 case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15648 esac
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_link") 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest$ac_exeext &&
15660 $as_test_x conftest$ac_exeext; then
15661 eval "$as_ac_var=yes"
15662 else
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666 eval "$as_ac_var=no"
15667 fi
15668
15669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15670 conftest$ac_exeext conftest.$ac_ext
15671 fi
15672 ac_res=`eval echo '${'$as_ac_var'}'`
15673 { echo "$as_me:$LINENO: result: $ac_res" >&5
15674 echo "${ECHO_T}$ac_res" >&6; }
15675 if test `eval echo '${'$as_ac_var'}'` = yes; then
15676 cat >>confdefs.h <<_ACEOF
15677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15678 _ACEOF
15679
15680 fi
15681 done
15682
15683
15684
15685 for ac_header in sys/un.h
15686 do
15687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 fi
15694 ac_res=`eval echo '${'$as_ac_Header'}'`
15695 { echo "$as_me:$LINENO: result: $ac_res" >&5
15696 echo "${ECHO_T}$ac_res" >&6; }
15697 else
15698 # Is the header compilable?
15699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15701 cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h. */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15707 $ac_includes_default
15708 #include <$ac_header>
15709 _ACEOF
15710 rm -f conftest.$ac_objext
15711 if { (ac_try="$ac_compile"
15712 case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15715 esac
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_compile") 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } && {
15724 test -z "$ac_c_werror_flag" ||
15725 test ! -s conftest.err
15726 } && test -s conftest.$ac_objext; then
15727 ac_header_compiler=yes
15728 else
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15731
15732 ac_header_compiler=no
15733 fi
15734
15735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15737 echo "${ECHO_T}$ac_header_compiler" >&6; }
15738
15739 # Is the header present?
15740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15742 cat >conftest.$ac_ext <<_ACEOF
15743 /* confdefs.h. */
15744 _ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15748 #include <$ac_header>
15749 _ACEOF
15750 if { (ac_try="$ac_cpp conftest.$ac_ext"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15754 esac
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } >/dev/null && {
15763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 }; then
15766 ac_header_preproc=yes
15767 else
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15770
15771 ac_header_preproc=no
15772 fi
15773
15774 rm -f conftest.err conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15776 echo "${ECHO_T}$ac_header_preproc" >&6; }
15777
15778 # So? What about this header?
15779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15780 yes:no: )
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15785 ac_header_preproc=yes
15786 ;;
15787 no:yes:* )
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15800
15801 ;;
15802 esac
15803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 else
15808 eval "$as_ac_Header=\$ac_header_preproc"
15809 fi
15810 ac_res=`eval echo '${'$as_ac_Header'}'`
15811 { echo "$as_me:$LINENO: result: $ac_res" >&5
15812 echo "${ECHO_T}$ac_res" >&6; }
15813
15814 fi
15815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15816 cat >>confdefs.h <<_ACEOF
15817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15818 _ACEOF
15819
15820 fi
15821
15822 done
15823
15824
15825
15826
15827
15828
15829 for ac_header in $ac_header_list
15830 do
15831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 fi
15838 ac_res=`eval echo '${'$as_ac_Header'}'`
15839 { echo "$as_me:$LINENO: result: $ac_res" >&5
15840 echo "${ECHO_T}$ac_res" >&6; }
15841 else
15842 # Is the header compilable?
15843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15845 cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h. */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 $ac_includes_default
15852 #include <$ac_header>
15853 _ACEOF
15854 rm -f conftest.$ac_objext
15855 if { (ac_try="$ac_compile"
15856 case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_compile") 2>conftest.er1
15862 ac_status=$?
15863 grep -v '^ *+' conftest.er1 >conftest.err
15864 rm -f conftest.er1
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } && {
15868 test -z "$ac_c_werror_flag" ||
15869 test ! -s conftest.err
15870 } && test -s conftest.$ac_objext; then
15871 ac_header_compiler=yes
15872 else
15873 echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15875
15876 ac_header_compiler=no
15877 fi
15878
15879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15881 echo "${ECHO_T}$ac_header_compiler" >&6; }
15882
15883 # Is the header present?
15884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15886 cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h. */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 #include <$ac_header>
15893 _ACEOF
15894 if { (ac_try="$ac_cpp conftest.$ac_ext"
15895 case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15898 esac
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15901 ac_status=$?
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } >/dev/null && {
15907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15908 test ! -s conftest.err
15909 }; then
15910 ac_header_preproc=yes
15911 else
15912 echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15914
15915 ac_header_preproc=no
15916 fi
15917
15918 rm -f conftest.err conftest.$ac_ext
15919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15920 echo "${ECHO_T}$ac_header_preproc" >&6; }
15921
15922 # So? What about this header?
15923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15924 yes:no: )
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15929 ac_header_preproc=yes
15930 ;;
15931 no:yes:* )
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15944
15945 ;;
15946 esac
15947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952 eval "$as_ac_Header=\$ac_header_preproc"
15953 fi
15954 ac_res=`eval echo '${'$as_ac_Header'}'`
15955 { echo "$as_me:$LINENO: result: $ac_res" >&5
15956 echo "${ECHO_T}$ac_res" >&6; }
15957
15958 fi
15959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15960 cat >>confdefs.h <<_ACEOF
15961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15962 _ACEOF
15963
15964 fi
15965
15966 done
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976 for ac_func in $ac_func_list
15977 do
15978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 else
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15992 #define $ac_func innocuous_$ac_func
15993
15994 /* System header to define __stub macros and hopefully few prototypes,
15995 which can conflict with char $ac_func (); below.
15996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15997 <limits.h> exists even on freestanding compilers. */
15998
15999 #ifdef __STDC__
16000 # include <limits.h>
16001 #else
16002 # include <assert.h>
16003 #endif
16004
16005 #undef $ac_func
16006
16007 /* Override any GCC internal prototype to avoid an error.
16008 Use char because int might match the return type of a GCC
16009 builtin and then its argument prototype would still apply. */
16010 #ifdef __cplusplus
16011 extern "C"
16012 #endif
16013 char $ac_func ();
16014 /* The GNU C library defines this for functions which it implements
16015 to always fail with ENOSYS. Some functions are actually named
16016 something starting with __ and the normal name is an alias. */
16017 #if defined __stub_$ac_func || defined __stub___$ac_func
16018 choke me
16019 #endif
16020
16021 int
16022 main ()
16023 {
16024 return $ac_func ();
16025 ;
16026 return 0;
16027 }
16028 _ACEOF
16029 rm -f conftest.$ac_objext conftest$ac_exeext
16030 if { (ac_try="$ac_link"
16031 case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16034 esac
16035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_link") 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest$ac_exeext &&
16046 $as_test_x conftest$ac_exeext; then
16047 eval "$as_ac_var=yes"
16048 else
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16051
16052 eval "$as_ac_var=no"
16053 fi
16054
16055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16056 conftest$ac_exeext conftest.$ac_ext
16057 fi
16058 ac_res=`eval echo '${'$as_ac_var'}'`
16059 { echo "$as_me:$LINENO: result: $ac_res" >&5
16060 echo "${ECHO_T}$ac_res" >&6; }
16061 if test `eval echo '${'$as_ac_var'}'` = yes; then
16062 cat >>confdefs.h <<_ACEOF
16063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16064 _ACEOF
16065
16066 fi
16067 done
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085 { echo "$as_me:$LINENO: checking for working mktime" >&5
16086 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16087 if test "${ac_cv_func_working_mktime+set}" = set; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 else
16090 if test "$cross_compiling" = yes; then
16091 ac_cv_func_working_mktime=no
16092 else
16093 cat >conftest.$ac_ext <<_ACEOF
16094 /* confdefs.h. */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 /* Test program from Paul Eggert and Tony Leneis. */
16100 #ifdef TIME_WITH_SYS_TIME
16101 # include <sys/time.h>
16102 # include <time.h>
16103 #else
16104 # ifdef HAVE_SYS_TIME_H
16105 # include <sys/time.h>
16106 # else
16107 # include <time.h>
16108 # endif
16109 #endif
16110
16111 #include <stdlib.h>
16112
16113 #ifdef HAVE_UNISTD_H
16114 # include <unistd.h>
16115 #endif
16116
16117 #ifndef HAVE_ALARM
16118 # define alarm(X) /* empty */
16119 #endif
16120
16121 /* Work around redefinition to rpl_putenv by other config tests. */
16122 #undef putenv
16123
16124 static time_t time_t_max;
16125 static time_t time_t_min;
16126
16127 /* Values we'll use to set the TZ environment variable. */
16128 static char *tz_strings[] = {
16129 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16130 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16131 };
16132 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16133
16134 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16135 Based on a problem report from Andreas Jaeger. */
16136 static int
16137 spring_forward_gap ()
16138 {
16139 /* glibc (up to about 1998-10-07) failed this test. */
16140 struct tm tm;
16141
16142 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16143 instead of "TZ=America/Vancouver" in order to detect the bug even
16144 on systems that don't support the Olson extension, or don't have the
16145 full zoneinfo tables installed. */
16146 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16147
16148 tm.tm_year = 98;
16149 tm.tm_mon = 3;
16150 tm.tm_mday = 5;
16151 tm.tm_hour = 2;
16152 tm.tm_min = 0;
16153 tm.tm_sec = 0;
16154 tm.tm_isdst = -1;
16155 return mktime (&tm) != (time_t) -1;
16156 }
16157
16158 static int
16159 mktime_test1 (now)
16160 time_t now;
16161 {
16162 struct tm *lt;
16163 return ! (lt = localtime (&now)) || mktime (lt) == now;
16164 }
16165
16166 static int
16167 mktime_test (now)
16168 time_t now;
16169 {
16170 return (mktime_test1 (now)
16171 && mktime_test1 ((time_t) (time_t_max - now))
16172 && mktime_test1 ((time_t) (time_t_min + now)));
16173 }
16174
16175 static int
16176 irix_6_4_bug ()
16177 {
16178 /* Based on code from Ariel Faigon. */
16179 struct tm tm;
16180 tm.tm_year = 96;
16181 tm.tm_mon = 3;
16182 tm.tm_mday = 0;
16183 tm.tm_hour = 0;
16184 tm.tm_min = 0;
16185 tm.tm_sec = 0;
16186 tm.tm_isdst = -1;
16187 mktime (&tm);
16188 return tm.tm_mon == 2 && tm.tm_mday == 31;
16189 }
16190
16191 static int
16192 bigtime_test (j)
16193 int j;
16194 {
16195 struct tm tm;
16196 time_t now;
16197 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16198 now = mktime (&tm);
16199 if (now != (time_t) -1)
16200 {
16201 struct tm *lt = localtime (&now);
16202 if (! (lt
16203 && lt->tm_year == tm.tm_year
16204 && lt->tm_mon == tm.tm_mon
16205 && lt->tm_mday == tm.tm_mday
16206 && lt->tm_hour == tm.tm_hour
16207 && lt->tm_min == tm.tm_min
16208 && lt->tm_sec == tm.tm_sec
16209 && lt->tm_yday == tm.tm_yday
16210 && lt->tm_wday == tm.tm_wday
16211 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16212 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16213 return 0;
16214 }
16215 return 1;
16216 }
16217
16218 static int
16219 year_2050_test ()
16220 {
16221 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16222 ignoring leap seconds. */
16223 unsigned long int answer = 2527315200UL;
16224
16225 struct tm tm;
16226 time_t t;
16227 tm.tm_year = 2050 - 1900;
16228 tm.tm_mon = 2 - 1;
16229 tm.tm_mday = 1;
16230 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16231 tm.tm_isdst = -1;
16232
16233 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16234 instead of "TZ=America/Vancouver" in order to detect the bug even
16235 on systems that don't support the Olson extension, or don't have the
16236 full zoneinfo tables installed. */
16237 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16238
16239 t = mktime (&tm);
16240
16241 /* Check that the result is either a failure, or close enough
16242 to the correct answer that we can assume the discrepancy is
16243 due to leap seconds. */
16244 return (t == (time_t) -1
16245 || (0 < t && answer - 120 <= t && t <= answer + 120));
16246 }
16247
16248 int
16249 main ()
16250 {
16251 time_t t, delta;
16252 int i, j;
16253
16254 /* This test makes some buggy mktime implementations loop.
16255 Give up after 60 seconds; a mktime slower than that
16256 isn't worth using anyway. */
16257 alarm (60);
16258
16259 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16260 continue;
16261 time_t_max--;
16262 if ((time_t) -1 < 0)
16263 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16264 continue;
16265 delta = time_t_max / 997; /* a suitable prime number */
16266 for (i = 0; i < N_STRINGS; i++)
16267 {
16268 if (tz_strings[i])
16269 putenv (tz_strings[i]);
16270
16271 for (t = 0; t <= time_t_max - delta; t += delta)
16272 if (! mktime_test (t))
16273 return 1;
16274 if (! (mktime_test ((time_t) 1)
16275 && mktime_test ((time_t) (60 * 60))
16276 && mktime_test ((time_t) (60 * 60 * 24))))
16277 return 1;
16278
16279 for (j = 1; 0 < j; j *= 2)
16280 if (! bigtime_test (j))
16281 return 1;
16282 if (! bigtime_test (j - 1))
16283 return 1;
16284 }
16285 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16286 }
16287 _ACEOF
16288 rm -f conftest$ac_exeext
16289 if { (ac_try="$ac_link"
16290 case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16293 esac
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_link") 2>&5
16296 ac_status=$?
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16299 { (case "(($ac_try" in
16300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301 *) ac_try_echo=$ac_try;;
16302 esac
16303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16304 (eval "$ac_try") 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }; }; then
16308 ac_cv_func_working_mktime=yes
16309 else
16310 echo "$as_me: program exited with status $ac_status" >&5
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314 ( exit $ac_status )
16315 ac_cv_func_working_mktime=no
16316 fi
16317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16318 fi
16319
16320
16321 fi
16322 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16323 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16324 if test $ac_cv_func_working_mktime = no; then
16325 case " $LIBOBJS " in
16326 *" mktime.$ac_objext "* ) ;;
16327 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16328 ;;
16329 esac
16330
16331 fi
16332
16333 if test "$ac_cv_func_working_mktime" = no; then
16334
16335 cat >>confdefs.h <<\_ACEOF
16336 #define BROKEN_MKTIME 1
16337 _ACEOF
16338
16339 fi
16340
16341 ac_have_func=no # yes means we've found a way to get the load average.
16342
16343 # Make sure getloadavg.c is where it belongs, at configure-time.
16344 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16345 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16346 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16347 { (exit 1); exit 1; }; }
16348
16349 ac_save_LIBS=$LIBS
16350
16351 # Check for getloadavg, but be sure not to touch the cache variable.
16352 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16353 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16354 if test "${ac_cv_func_getloadavg+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357 cat >conftest.$ac_ext <<_ACEOF
16358 /* confdefs.h. */
16359 _ACEOF
16360 cat confdefs.h >>conftest.$ac_ext
16361 cat >>conftest.$ac_ext <<_ACEOF
16362 /* end confdefs.h. */
16363 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16365 #define getloadavg innocuous_getloadavg
16366
16367 /* System header to define __stub macros and hopefully few prototypes,
16368 which can conflict with char getloadavg (); below.
16369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16370 <limits.h> exists even on freestanding compilers. */
16371
16372 #ifdef __STDC__
16373 # include <limits.h>
16374 #else
16375 # include <assert.h>
16376 #endif
16377
16378 #undef getloadavg
16379
16380 /* Override any GCC internal prototype to avoid an error.
16381 Use char because int might match the return type of a GCC
16382 builtin and then its argument prototype would still apply. */
16383 #ifdef __cplusplus
16384 extern "C"
16385 #endif
16386 char getloadavg ();
16387 /* The GNU C library defines this for functions which it implements
16388 to always fail with ENOSYS. Some functions are actually named
16389 something starting with __ and the normal name is an alias. */
16390 #if defined __stub_getloadavg || defined __stub___getloadavg
16391 choke me
16392 #endif
16393
16394 int
16395 main ()
16396 {
16397 return getloadavg ();
16398 ;
16399 return 0;
16400 }
16401 _ACEOF
16402 rm -f conftest.$ac_objext conftest$ac_exeext
16403 if { (ac_try="$ac_link"
16404 case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16407 esac
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_link") 2>conftest.er1
16410 ac_status=$?
16411 grep -v '^ *+' conftest.er1 >conftest.err
16412 rm -f conftest.er1
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } && {
16416 test -z "$ac_c_werror_flag" ||
16417 test ! -s conftest.err
16418 } && test -s conftest$ac_exeext &&
16419 $as_test_x conftest$ac_exeext; then
16420 ac_cv_func_getloadavg=yes
16421 else
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16424
16425 ac_cv_func_getloadavg=no
16426 fi
16427
16428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16429 conftest$ac_exeext conftest.$ac_ext
16430 fi
16431 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16432 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16433 if test $ac_cv_func_getloadavg = yes; then
16434 exit 0
16435 else
16436 exit 1
16437 fi
16438 ) && ac_have_func=yes
16439
16440 # On HPUX9, an unprivileged user can get load averages through this function.
16441
16442 for ac_func in pstat_getdynamic
16443 do
16444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450 cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h. */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16458 #define $ac_func innocuous_$ac_func
16459
16460 /* System header to define __stub macros and hopefully few prototypes,
16461 which can conflict with char $ac_func (); below.
16462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16463 <limits.h> exists even on freestanding compilers. */
16464
16465 #ifdef __STDC__
16466 # include <limits.h>
16467 #else
16468 # include <assert.h>
16469 #endif
16470
16471 #undef $ac_func
16472
16473 /* Override any GCC internal prototype to avoid an error.
16474 Use char because int might match the return type of a GCC
16475 builtin and then its argument prototype would still apply. */
16476 #ifdef __cplusplus
16477 extern "C"
16478 #endif
16479 char $ac_func ();
16480 /* The GNU C library defines this for functions which it implements
16481 to always fail with ENOSYS. Some functions are actually named
16482 something starting with __ and the normal name is an alias. */
16483 #if defined __stub_$ac_func || defined __stub___$ac_func
16484 choke me
16485 #endif
16486
16487 int
16488 main ()
16489 {
16490 return $ac_func ();
16491 ;
16492 return 0;
16493 }
16494 _ACEOF
16495 rm -f conftest.$ac_objext conftest$ac_exeext
16496 if { (ac_try="$ac_link"
16497 case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16500 esac
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_link") 2>conftest.er1
16503 ac_status=$?
16504 grep -v '^ *+' conftest.er1 >conftest.err
16505 rm -f conftest.er1
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } && {
16509 test -z "$ac_c_werror_flag" ||
16510 test ! -s conftest.err
16511 } && test -s conftest$ac_exeext &&
16512 $as_test_x conftest$ac_exeext; then
16513 eval "$as_ac_var=yes"
16514 else
16515 echo "$as_me: failed program was:" >&5
16516 sed 's/^/| /' conftest.$ac_ext >&5
16517
16518 eval "$as_ac_var=no"
16519 fi
16520
16521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16522 conftest$ac_exeext conftest.$ac_ext
16523 fi
16524 ac_res=`eval echo '${'$as_ac_var'}'`
16525 { echo "$as_me:$LINENO: result: $ac_res" >&5
16526 echo "${ECHO_T}$ac_res" >&6; }
16527 if test `eval echo '${'$as_ac_var'}'` = yes; then
16528 cat >>confdefs.h <<_ACEOF
16529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16530 _ACEOF
16531
16532 fi
16533 done
16534
16535
16536 # Solaris has libkstat which does not require root.
16537
16538 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16539 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16540 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 else
16543 ac_check_lib_save_LIBS=$LIBS
16544 LIBS="-lkstat $LIBS"
16545 cat >conftest.$ac_ext <<_ACEOF
16546 /* confdefs.h. */
16547 _ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16551
16552 /* Override any GCC internal prototype to avoid an error.
16553 Use char because int might match the return type of a GCC
16554 builtin and then its argument prototype would still apply. */
16555 #ifdef __cplusplus
16556 extern "C"
16557 #endif
16558 char kstat_open ();
16559 int
16560 main ()
16561 {
16562 return kstat_open ();
16563 ;
16564 return 0;
16565 }
16566 _ACEOF
16567 rm -f conftest.$ac_objext conftest$ac_exeext
16568 if { (ac_try="$ac_link"
16569 case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_link") 2>conftest.er1
16575 ac_status=$?
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } && {
16581 test -z "$ac_c_werror_flag" ||
16582 test ! -s conftest.err
16583 } && test -s conftest$ac_exeext &&
16584 $as_test_x conftest$ac_exeext; then
16585 ac_cv_lib_kstat_kstat_open=yes
16586 else
16587 echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16589
16590 ac_cv_lib_kstat_kstat_open=no
16591 fi
16592
16593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16594 conftest$ac_exeext conftest.$ac_ext
16595 LIBS=$ac_check_lib_save_LIBS
16596 fi
16597 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16598 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16599 if test $ac_cv_lib_kstat_kstat_open = yes; then
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_LIBKSTAT 1
16602 _ACEOF
16603
16604 LIBS="-lkstat $LIBS"
16605
16606 fi
16607
16608 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16609
16610 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16611 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16612 # to get the right answer into the cache.
16613 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16614 if test $ac_have_func = no; then
16615 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16616 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16617 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620 ac_check_lib_save_LIBS=$LIBS
16621 LIBS="-lelf $LIBS"
16622 cat >conftest.$ac_ext <<_ACEOF
16623 /* confdefs.h. */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628
16629 /* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
16631 builtin and then its argument prototype would still apply. */
16632 #ifdef __cplusplus
16633 extern "C"
16634 #endif
16635 char elf_begin ();
16636 int
16637 main ()
16638 {
16639 return elf_begin ();
16640 ;
16641 return 0;
16642 }
16643 _ACEOF
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (ac_try="$ac_link"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_link") 2>conftest.er1
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest$ac_exeext &&
16661 $as_test_x conftest$ac_exeext; then
16662 ac_cv_lib_elf_elf_begin=yes
16663 else
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 ac_cv_lib_elf_elf_begin=no
16668 fi
16669
16670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16671 conftest$ac_exeext conftest.$ac_ext
16672 LIBS=$ac_check_lib_save_LIBS
16673 fi
16674 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16675 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16676 if test $ac_cv_lib_elf_elf_begin = yes; then
16677 LIBS="-lelf $LIBS"
16678 fi
16679
16680 fi
16681 if test $ac_have_func = no; then
16682 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16683 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16684 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687 ac_check_lib_save_LIBS=$LIBS
16688 LIBS="-lkvm $LIBS"
16689 cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h. */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695
16696 /* Override any GCC internal prototype to avoid an error.
16697 Use char because int might match the return type of a GCC
16698 builtin and then its argument prototype would still apply. */
16699 #ifdef __cplusplus
16700 extern "C"
16701 #endif
16702 char kvm_open ();
16703 int
16704 main ()
16705 {
16706 return kvm_open ();
16707 ;
16708 return 0;
16709 }
16710 _ACEOF
16711 rm -f conftest.$ac_objext conftest$ac_exeext
16712 if { (ac_try="$ac_link"
16713 case "(($ac_try" in
16714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715 *) ac_try_echo=$ac_try;;
16716 esac
16717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16718 (eval "$ac_link") 2>conftest.er1
16719 ac_status=$?
16720 grep -v '^ *+' conftest.er1 >conftest.err
16721 rm -f conftest.er1
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } && {
16725 test -z "$ac_c_werror_flag" ||
16726 test ! -s conftest.err
16727 } && test -s conftest$ac_exeext &&
16728 $as_test_x conftest$ac_exeext; then
16729 ac_cv_lib_kvm_kvm_open=yes
16730 else
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734 ac_cv_lib_kvm_kvm_open=no
16735 fi
16736
16737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16738 conftest$ac_exeext conftest.$ac_ext
16739 LIBS=$ac_check_lib_save_LIBS
16740 fi
16741 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16742 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16743 if test $ac_cv_lib_kvm_kvm_open = yes; then
16744 LIBS="-lkvm $LIBS"
16745 fi
16746
16747 # Check for the 4.4BSD definition of getloadavg.
16748 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16749 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16750 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753 ac_check_lib_save_LIBS=$LIBS
16754 LIBS="-lutil $LIBS"
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h. */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761
16762 /* Override any GCC internal prototype to avoid an error.
16763 Use char because int might match the return type of a GCC
16764 builtin and then its argument prototype would still apply. */
16765 #ifdef __cplusplus
16766 extern "C"
16767 #endif
16768 char getloadavg ();
16769 int
16770 main ()
16771 {
16772 return getloadavg ();
16773 ;
16774 return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (ac_try="$ac_link"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_link") 2>conftest.er1
16785 ac_status=$?
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } && {
16791 test -z "$ac_c_werror_flag" ||
16792 test ! -s conftest.err
16793 } && test -s conftest$ac_exeext &&
16794 $as_test_x conftest$ac_exeext; then
16795 ac_cv_lib_util_getloadavg=yes
16796 else
16797 echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16799
16800 ac_cv_lib_util_getloadavg=no
16801 fi
16802
16803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16804 conftest$ac_exeext conftest.$ac_ext
16805 LIBS=$ac_check_lib_save_LIBS
16806 fi
16807 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16808 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16809 if test $ac_cv_lib_util_getloadavg = yes; then
16810 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16811 fi
16812
16813 fi
16814
16815 if test $ac_have_func = no; then
16816 # There is a commonly available library for RS/6000 AIX.
16817 # Since it is not a standard part of AIX, it might be installed locally.
16818 ac_getloadavg_LIBS=$LIBS
16819 LIBS="-L/usr/local/lib $LIBS"
16820 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16821 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16822 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825 ac_check_lib_save_LIBS=$LIBS
16826 LIBS="-lgetloadavg $LIBS"
16827 cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h. */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833
16834 /* Override any GCC internal prototype to avoid an error.
16835 Use char because int might match the return type of a GCC
16836 builtin and then its argument prototype would still apply. */
16837 #ifdef __cplusplus
16838 extern "C"
16839 #endif
16840 char getloadavg ();
16841 int
16842 main ()
16843 {
16844 return getloadavg ();
16845 ;
16846 return 0;
16847 }
16848 _ACEOF
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (ac_try="$ac_link"
16851 case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_link") 2>conftest.er1
16857 ac_status=$?
16858 grep -v '^ *+' conftest.er1 >conftest.err
16859 rm -f conftest.er1
16860 cat conftest.err >&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } && {
16863 test -z "$ac_c_werror_flag" ||
16864 test ! -s conftest.err
16865 } && test -s conftest$ac_exeext &&
16866 $as_test_x conftest$ac_exeext; then
16867 ac_cv_lib_getloadavg_getloadavg=yes
16868 else
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16871
16872 ac_cv_lib_getloadavg_getloadavg=no
16873 fi
16874
16875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16876 conftest$ac_exeext conftest.$ac_ext
16877 LIBS=$ac_check_lib_save_LIBS
16878 fi
16879 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16880 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16881 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16882 LIBS="-lgetloadavg $LIBS"
16883 else
16884 LIBS=$ac_getloadavg_LIBS
16885 fi
16886
16887 fi
16888
16889 # Make sure it is really in the library, if we think we found it,
16890 # otherwise set up the replacement function.
16891
16892 for ac_func in getloadavg
16893 do
16894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h. */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16908 #define $ac_func innocuous_$ac_func
16909
16910 /* System header to define __stub macros and hopefully few prototypes,
16911 which can conflict with char $ac_func (); below.
16912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16913 <limits.h> exists even on freestanding compilers. */
16914
16915 #ifdef __STDC__
16916 # include <limits.h>
16917 #else
16918 # include <assert.h>
16919 #endif
16920
16921 #undef $ac_func
16922
16923 /* Override any GCC internal prototype to avoid an error.
16924 Use char because int might match the return type of a GCC
16925 builtin and then its argument prototype would still apply. */
16926 #ifdef __cplusplus
16927 extern "C"
16928 #endif
16929 char $ac_func ();
16930 /* The GNU C library defines this for functions which it implements
16931 to always fail with ENOSYS. Some functions are actually named
16932 something starting with __ and the normal name is an alias. */
16933 #if defined __stub_$ac_func || defined __stub___$ac_func
16934 choke me
16935 #endif
16936
16937 int
16938 main ()
16939 {
16940 return $ac_func ();
16941 ;
16942 return 0;
16943 }
16944 _ACEOF
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (ac_try="$ac_link"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_link") 2>conftest.er1
16953 ac_status=$?
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest$ac_exeext &&
16962 $as_test_x conftest$ac_exeext; then
16963 eval "$as_ac_var=yes"
16964 else
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16967
16968 eval "$as_ac_var=no"
16969 fi
16970
16971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16972 conftest$ac_exeext conftest.$ac_ext
16973 fi
16974 ac_res=`eval echo '${'$as_ac_var'}'`
16975 { echo "$as_me:$LINENO: result: $ac_res" >&5
16976 echo "${ECHO_T}$ac_res" >&6; }
16977 if test `eval echo '${'$as_ac_var'}'` = yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16980 _ACEOF
16981
16982 else
16983 case " $LIBOBJS " in
16984 *" getloadavg.$ac_objext "* ) ;;
16985 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16986 ;;
16987 esac
16988
16989
16990 cat >>confdefs.h <<\_ACEOF
16991 #define C_GETLOADAVG 1
16992 _ACEOF
16993
16994 # Figure out what our getloadavg.c needs.
16995 ac_have_func=no
16996 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16997 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16998 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16999 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 fi
17002 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17003 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17004 else
17005 # Is the header compilable?
17006 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17007 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17008 cat >conftest.$ac_ext <<_ACEOF
17009 /* confdefs.h. */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 $ac_includes_default
17015 #include <sys/dg_sys_info.h>
17016 _ACEOF
17017 rm -f conftest.$ac_objext
17018 if { (ac_try="$ac_compile"
17019 case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17022 esac
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_compile") 2>conftest.er1
17025 ac_status=$?
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } && {
17031 test -z "$ac_c_werror_flag" ||
17032 test ! -s conftest.err
17033 } && test -s conftest.$ac_objext; then
17034 ac_header_compiler=yes
17035 else
17036 echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17038
17039 ac_header_compiler=no
17040 fi
17041
17042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17044 echo "${ECHO_T}$ac_header_compiler" >&6; }
17045
17046 # Is the header present?
17047 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17048 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17049 cat >conftest.$ac_ext <<_ACEOF
17050 /* confdefs.h. */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 #include <sys/dg_sys_info.h>
17056 _ACEOF
17057 if { (ac_try="$ac_cpp conftest.$ac_ext"
17058 case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17064 ac_status=$?
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } >/dev/null && {
17070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17071 test ! -s conftest.err
17072 }; then
17073 ac_header_preproc=yes
17074 else
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 ac_header_preproc=no
17079 fi
17080
17081 rm -f conftest.err conftest.$ac_ext
17082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17083 echo "${ECHO_T}$ac_header_preproc" >&6; }
17084
17085 # So? What about this header?
17086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17087 yes:no: )
17088 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17089 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17090 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17091 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17092 ac_header_preproc=yes
17093 ;;
17094 no:yes:* )
17095 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17096 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17098 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17099 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17100 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17101 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17102 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17103 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17104 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17105 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17106 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17107
17108 ;;
17109 esac
17110 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17111 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17112 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 else
17115 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17116 fi
17117 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17118 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17119
17120 fi
17121 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17122 ac_have_func=yes
17123
17124 cat >>confdefs.h <<\_ACEOF
17125 #define DGUX 1
17126 _ACEOF
17127
17128
17129 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17130 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17131 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134 ac_check_lib_save_LIBS=$LIBS
17135 LIBS="-ldgc $LIBS"
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h. */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142
17143 /* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17146 #ifdef __cplusplus
17147 extern "C"
17148 #endif
17149 char dg_sys_info ();
17150 int
17151 main ()
17152 {
17153 return dg_sys_info ();
17154 ;
17155 return 0;
17156 }
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } && {
17172 test -z "$ac_c_werror_flag" ||
17173 test ! -s conftest.err
17174 } && test -s conftest$ac_exeext &&
17175 $as_test_x conftest$ac_exeext; then
17176 ac_cv_lib_dgc_dg_sys_info=yes
17177 else
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17180
17181 ac_cv_lib_dgc_dg_sys_info=no
17182 fi
17183
17184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17185 conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17187 fi
17188 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17189 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17190 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17191 cat >>confdefs.h <<_ACEOF
17192 #define HAVE_LIBDGC 1
17193 _ACEOF
17194
17195 LIBS="-ldgc $LIBS"
17196
17197 fi
17198
17199 fi
17200
17201
17202
17203 if test "${ac_cv_header_locale_h+set}" = set; then
17204 { echo "$as_me:$LINENO: checking for locale.h" >&5
17205 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17206 if test "${ac_cv_header_locale_h+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 fi
17209 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17210 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17211 else
17212 # Is the header compilable?
17213 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17214 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17215 cat >conftest.$ac_ext <<_ACEOF
17216 /* confdefs.h. */
17217 _ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17221 $ac_includes_default
17222 #include <locale.h>
17223 _ACEOF
17224 rm -f conftest.$ac_objext
17225 if { (ac_try="$ac_compile"
17226 case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_compile") 2>conftest.er1
17232 ac_status=$?
17233 grep -v '^ *+' conftest.er1 >conftest.err
17234 rm -f conftest.er1
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } && {
17238 test -z "$ac_c_werror_flag" ||
17239 test ! -s conftest.err
17240 } && test -s conftest.$ac_objext; then
17241 ac_header_compiler=yes
17242 else
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246 ac_header_compiler=no
17247 fi
17248
17249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17251 echo "${ECHO_T}$ac_header_compiler" >&6; }
17252
17253 # Is the header present?
17254 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17255 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17256 cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h. */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17262 #include <locale.h>
17263 _ACEOF
17264 if { (ac_try="$ac_cpp conftest.$ac_ext"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } >/dev/null && {
17277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 }; then
17280 ac_header_preproc=yes
17281 else
17282 echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17284
17285 ac_header_preproc=no
17286 fi
17287
17288 rm -f conftest.err conftest.$ac_ext
17289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17290 echo "${ECHO_T}$ac_header_preproc" >&6; }
17291
17292 # So? What about this header?
17293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17294 yes:no: )
17295 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17296 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17297 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17298 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17299 ac_header_preproc=yes
17300 ;;
17301 no:yes:* )
17302 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17303 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17304 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17305 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17306 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17307 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17309 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17310 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17311 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17313 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17314
17315 ;;
17316 esac
17317 { echo "$as_me:$LINENO: checking for locale.h" >&5
17318 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17319 if test "${ac_cv_header_locale_h+set}" = set; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17321 else
17322 ac_cv_header_locale_h=$ac_header_preproc
17323 fi
17324 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17325 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17326
17327 fi
17328
17329
17330
17331 for ac_func in setlocale
17332 do
17333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339 cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h. */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17347 #define $ac_func innocuous_$ac_func
17348
17349 /* System header to define __stub macros and hopefully few prototypes,
17350 which can conflict with char $ac_func (); below.
17351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352 <limits.h> exists even on freestanding compilers. */
17353
17354 #ifdef __STDC__
17355 # include <limits.h>
17356 #else
17357 # include <assert.h>
17358 #endif
17359
17360 #undef $ac_func
17361
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char $ac_func ();
17369 /* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372 #if defined __stub_$ac_func || defined __stub___$ac_func
17373 choke me
17374 #endif
17375
17376 int
17377 main ()
17378 {
17379 return $ac_func ();
17380 ;
17381 return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext conftest$ac_exeext
17385 if { (ac_try="$ac_link"
17386 case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17389 esac
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_link") 2>conftest.er1
17392 ac_status=$?
17393 grep -v '^ *+' conftest.er1 >conftest.err
17394 rm -f conftest.er1
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } && {
17398 test -z "$ac_c_werror_flag" ||
17399 test ! -s conftest.err
17400 } && test -s conftest$ac_exeext &&
17401 $as_test_x conftest$ac_exeext; then
17402 eval "$as_ac_var=yes"
17403 else
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17406
17407 eval "$as_ac_var=no"
17408 fi
17409
17410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17411 conftest$ac_exeext conftest.$ac_ext
17412 fi
17413 ac_res=`eval echo '${'$as_ac_var'}'`
17414 { echo "$as_me:$LINENO: result: $ac_res" >&5
17415 echo "${ECHO_T}$ac_res" >&6; }
17416 if test `eval echo '${'$as_ac_var'}'` = yes; then
17417 cat >>confdefs.h <<_ACEOF
17418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17419 _ACEOF
17420
17421 fi
17422 done
17423
17424
17425 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17426 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17427 # Irix 4.0.5F has the header but not the library.
17428 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17429 ac_have_func=yes
17430
17431 cat >>confdefs.h <<\_ACEOF
17432 #define SVR4 1
17433 _ACEOF
17434
17435 fi
17436
17437 if test $ac_have_func = no; then
17438 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17439 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17440 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17441 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 fi
17444 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17445 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17446 else
17447 # Is the header compilable?
17448 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17449 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17450 cat >conftest.$ac_ext <<_ACEOF
17451 /* confdefs.h. */
17452 _ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h. */
17456 $ac_includes_default
17457 #include <inq_stats/cpustats.h>
17458 _ACEOF
17459 rm -f conftest.$ac_objext
17460 if { (ac_try="$ac_compile"
17461 case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17464 esac
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_compile") 2>conftest.er1
17467 ac_status=$?
17468 grep -v '^ *+' conftest.er1 >conftest.err
17469 rm -f conftest.er1
17470 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && {
17473 test -z "$ac_c_werror_flag" ||
17474 test ! -s conftest.err
17475 } && test -s conftest.$ac_objext; then
17476 ac_header_compiler=yes
17477 else
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17480
17481 ac_header_compiler=no
17482 fi
17483
17484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17486 echo "${ECHO_T}$ac_header_compiler" >&6; }
17487
17488 # Is the header present?
17489 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17490 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17491 cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h. */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 #include <inq_stats/cpustats.h>
17498 _ACEOF
17499 if { (ac_try="$ac_cpp conftest.$ac_ext"
17500 case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17506 ac_status=$?
17507 grep -v '^ *+' conftest.er1 >conftest.err
17508 rm -f conftest.er1
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } >/dev/null && {
17512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17513 test ! -s conftest.err
17514 }; then
17515 ac_header_preproc=yes
17516 else
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17519
17520 ac_header_preproc=no
17521 fi
17522
17523 rm -f conftest.err conftest.$ac_ext
17524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17525 echo "${ECHO_T}$ac_header_preproc" >&6; }
17526
17527 # So? What about this header?
17528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17529 yes:no: )
17530 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17531 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17532 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17533 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17534 ac_header_preproc=yes
17535 ;;
17536 no:yes:* )
17537 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17538 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17539 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17540 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17541 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17542 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17543 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17544 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17545 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17546 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17547 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17548 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17549
17550 ;;
17551 esac
17552 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17553 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17554 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 else
17557 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17558 fi
17559 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17560 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17561
17562 fi
17563 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17564 ac_have_func=yes
17565
17566 cat >>confdefs.h <<\_ACEOF
17567 #define UMAX 1
17568 _ACEOF
17569
17570
17571 cat >>confdefs.h <<\_ACEOF
17572 #define UMAX4_3 1
17573 _ACEOF
17574
17575 fi
17576
17577
17578 fi
17579
17580 if test $ac_have_func = no; then
17581 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17582 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17583 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17584 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 fi
17587 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17588 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17589 else
17590 # Is the header compilable?
17591 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17592 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17593 cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h. */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 $ac_includes_default
17600 #include <sys/cpustats.h>
17601 _ACEOF
17602 rm -f conftest.$ac_objext
17603 if { (ac_try="$ac_compile"
17604 case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_compile") 2>conftest.er1
17610 ac_status=$?
17611 grep -v '^ *+' conftest.er1 >conftest.err
17612 rm -f conftest.er1
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } && {
17616 test -z "$ac_c_werror_flag" ||
17617 test ! -s conftest.err
17618 } && test -s conftest.$ac_objext; then
17619 ac_header_compiler=yes
17620 else
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17623
17624 ac_header_compiler=no
17625 fi
17626
17627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17629 echo "${ECHO_T}$ac_header_compiler" >&6; }
17630
17631 # Is the header present?
17632 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17633 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17634 cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h. */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 #include <sys/cpustats.h>
17641 _ACEOF
17642 if { (ac_try="$ac_cpp conftest.$ac_ext"
17643 case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17646 esac
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17649 ac_status=$?
17650 grep -v '^ *+' conftest.er1 >conftest.err
17651 rm -f conftest.er1
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } >/dev/null && {
17655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17656 test ! -s conftest.err
17657 }; then
17658 ac_header_preproc=yes
17659 else
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663 ac_header_preproc=no
17664 fi
17665
17666 rm -f conftest.err conftest.$ac_ext
17667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17668 echo "${ECHO_T}$ac_header_preproc" >&6; }
17669
17670 # So? What about this header?
17671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17672 yes:no: )
17673 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17674 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17675 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17676 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17677 ac_header_preproc=yes
17678 ;;
17679 no:yes:* )
17680 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17681 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17682 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17683 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17684 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17685 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17686 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17687 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17688 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17689 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17690 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17691 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17692
17693 ;;
17694 esac
17695 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17696 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17697 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 else
17700 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17701 fi
17702 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17703 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17704
17705 fi
17706 if test $ac_cv_header_sys_cpustats_h = yes; then
17707 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17708 #define UMAX 1
17709 _ACEOF
17710
17711 fi
17712
17713
17714 fi
17715
17716 if test $ac_have_func = no; then
17717
17718 for ac_header in mach/mach.h
17719 do
17720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 fi
17727 ac_res=`eval echo '${'$as_ac_Header'}'`
17728 { echo "$as_me:$LINENO: result: $ac_res" >&5
17729 echo "${ECHO_T}$ac_res" >&6; }
17730 else
17731 # Is the header compilable?
17732 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17734 cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h. */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 $ac_includes_default
17741 #include <$ac_header>
17742 _ACEOF
17743 rm -f conftest.$ac_objext
17744 if { (ac_try="$ac_compile"
17745 case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17748 esac
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_compile") 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } && {
17757 test -z "$ac_c_werror_flag" ||
17758 test ! -s conftest.err
17759 } && test -s conftest.$ac_objext; then
17760 ac_header_compiler=yes
17761 else
17762 echo "$as_me: failed program was:" >&5
17763 sed 's/^/| /' conftest.$ac_ext >&5
17764
17765 ac_header_compiler=no
17766 fi
17767
17768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17770 echo "${ECHO_T}$ac_header_compiler" >&6; }
17771
17772 # Is the header present?
17773 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17775 cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h. */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781 #include <$ac_header>
17782 _ACEOF
17783 if { (ac_try="$ac_cpp conftest.$ac_ext"
17784 case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17787 esac
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17790 ac_status=$?
17791 grep -v '^ *+' conftest.er1 >conftest.err
17792 rm -f conftest.er1
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } >/dev/null && {
17796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17798 }; then
17799 ac_header_preproc=yes
17800 else
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804 ac_header_preproc=no
17805 fi
17806
17807 rm -f conftest.err conftest.$ac_ext
17808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17809 echo "${ECHO_T}$ac_header_preproc" >&6; }
17810
17811 # So? What about this header?
17812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17813 yes:no: )
17814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17818 ac_header_preproc=yes
17819 ;;
17820 no:yes:* )
17821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17833
17834 ;;
17835 esac
17836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 else
17841 eval "$as_ac_Header=\$ac_header_preproc"
17842 fi
17843 ac_res=`eval echo '${'$as_ac_Header'}'`
17844 { echo "$as_me:$LINENO: result: $ac_res" >&5
17845 echo "${ECHO_T}$ac_res" >&6; }
17846
17847 fi
17848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17851 _ACEOF
17852
17853 fi
17854
17855 done
17856
17857 fi
17858
17859
17860 for ac_header in nlist.h
17861 do
17862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 fi
17869 ac_res=`eval echo '${'$as_ac_Header'}'`
17870 { echo "$as_me:$LINENO: result: $ac_res" >&5
17871 echo "${ECHO_T}$ac_res" >&6; }
17872 else
17873 # Is the header compilable?
17874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17876 cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h. */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 $ac_includes_default
17883 #include <$ac_header>
17884 _ACEOF
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest.$ac_objext; then
17902 ac_header_compiler=yes
17903 else
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907 ac_header_compiler=no
17908 fi
17909
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17912 echo "${ECHO_T}$ac_header_compiler" >&6; }
17913
17914 # Is the header present?
17915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17917 cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h. */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 #include <$ac_header>
17924 _ACEOF
17925 if { (ac_try="$ac_cpp conftest.$ac_ext"
17926 case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } >/dev/null && {
17938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17939 test ! -s conftest.err
17940 }; then
17941 ac_header_preproc=yes
17942 else
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 ac_header_preproc=no
17947 fi
17948
17949 rm -f conftest.err conftest.$ac_ext
17950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17951 echo "${ECHO_T}$ac_header_preproc" >&6; }
17952
17953 # So? What about this header?
17954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17955 yes:no: )
17956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17960 ac_header_preproc=yes
17961 ;;
17962 no:yes:* )
17963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17970 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17975
17976 ;;
17977 esac
17978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983 eval "$as_ac_Header=\$ac_header_preproc"
17984 fi
17985 ac_res=`eval echo '${'$as_ac_Header'}'`
17986 { echo "$as_me:$LINENO: result: $ac_res" >&5
17987 echo "${ECHO_T}$ac_res" >&6; }
17988
17989 fi
17990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17991 cat >>confdefs.h <<_ACEOF
17992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17993 _ACEOF
17994 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17995 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17996 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17997 echo $ECHO_N "(cached) $ECHO_C" >&6
17998 else
17999 cat >conftest.$ac_ext <<_ACEOF
18000 /* confdefs.h. */
18001 _ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18005 #include <nlist.h>
18006
18007 int
18008 main ()
18009 {
18010 static struct nlist ac_aggr;
18011 if (ac_aggr.n_un.n_name)
18012 return 0;
18013 ;
18014 return 0;
18015 }
18016 _ACEOF
18017 rm -f conftest.$ac_objext
18018 if { (ac_try="$ac_compile"
18019 case "(($ac_try" in
18020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021 *) ac_try_echo=$ac_try;;
18022 esac
18023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024 (eval "$ac_compile") 2>conftest.er1
18025 ac_status=$?
18026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } && {
18031 test -z "$ac_c_werror_flag" ||
18032 test ! -s conftest.err
18033 } && test -s conftest.$ac_objext; then
18034 ac_cv_member_struct_nlist_n_un_n_name=yes
18035 else
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18038
18039 cat >conftest.$ac_ext <<_ACEOF
18040 /* confdefs.h. */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18045 #include <nlist.h>
18046
18047 int
18048 main ()
18049 {
18050 static struct nlist ac_aggr;
18051 if (sizeof ac_aggr.n_un.n_name)
18052 return 0;
18053 ;
18054 return 0;
18055 }
18056 _ACEOF
18057 rm -f conftest.$ac_objext
18058 if { (ac_try="$ac_compile"
18059 case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18062 esac
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_compile") 2>conftest.er1
18065 ac_status=$?
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } && {
18071 test -z "$ac_c_werror_flag" ||
18072 test ! -s conftest.err
18073 } && test -s conftest.$ac_objext; then
18074 ac_cv_member_struct_nlist_n_un_n_name=yes
18075 else
18076 echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18078
18079 ac_cv_member_struct_nlist_n_un_n_name=no
18080 fi
18081
18082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18083 fi
18084
18085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18086 fi
18087 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18088 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18089 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18090
18091 cat >>confdefs.h <<_ACEOF
18092 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18093 _ACEOF
18094
18095
18096 cat >>confdefs.h <<\_ACEOF
18097 #define NLIST_NAME_UNION 1
18098 _ACEOF
18099
18100 fi
18101
18102
18103 fi
18104
18105 done
18106
18107 fi
18108 done
18109
18110
18111 # Some definitions of getloadavg require that the program be installed setgid.
18112 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18113 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18114 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117 cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h. */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18124 #ifdef LDAV_PRIVILEGED
18125 Yowza Am I SETGID yet
18126 #endif
18127 _ACEOF
18128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18129 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18130 ac_cv_func_getloadavg_setgid=yes
18131 else
18132 ac_cv_func_getloadavg_setgid=no
18133 fi
18134 rm -f conftest*
18135
18136 fi
18137 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18138 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18139 if test $ac_cv_func_getloadavg_setgid = yes; then
18140 NEED_SETGID=true
18141
18142 cat >>confdefs.h <<\_ACEOF
18143 #define GETLOADAVG_PRIVILEGED 1
18144 _ACEOF
18145
18146 else
18147 NEED_SETGID=false
18148 fi
18149
18150 if test $ac_cv_func_getloadavg_setgid = yes; then
18151 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18152 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18153 if test "${ac_cv_group_kmem+set}" = set; then
18154 echo $ECHO_N "(cached) $ECHO_C" >&6
18155 else
18156 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18157 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18158 # If we got an error (system does not support symlinks), try without -L.
18159 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18160 ac_cv_group_kmem=`echo $ac_ls_output \
18161 | sed -ne 's/[ ][ ]*/ /g;
18162 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18163 / /s/.* //;p;'`
18164
18165 fi
18166 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18167 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18168 KMEM_GROUP=$ac_cv_group_kmem
18169 fi
18170 if test "x$ac_save_LIBS" = x; then
18171 GETLOADAVG_LIBS=$LIBS
18172 else
18173 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18174 fi
18175 LIBS=$ac_save_LIBS
18176
18177
18178
18179 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18180 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18181 if test "${ac_cv_sys_largefile_source+set}" = set; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184 while :; do
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h. */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 #include <stdio.h>
18192 int
18193 main ()
18194 {
18195 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18196 ;
18197 return 0;
18198 }
18199 _ACEOF
18200 rm -f conftest.$ac_objext conftest$ac_exeext
18201 if { (ac_try="$ac_link"
18202 case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18205 esac
18206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_link") 2>conftest.er1
18208 ac_status=$?
18209 grep -v '^ *+' conftest.er1 >conftest.err
18210 rm -f conftest.er1
18211 cat conftest.err >&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } && {
18214 test -z "$ac_c_werror_flag" ||
18215 test ! -s conftest.err
18216 } && test -s conftest$ac_exeext &&
18217 $as_test_x conftest$ac_exeext; then
18218 ac_cv_sys_largefile_source=no; break
18219 else
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18222
18223
18224 fi
18225
18226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18227 conftest$ac_exeext conftest.$ac_ext
18228 cat >conftest.$ac_ext <<_ACEOF
18229 /* confdefs.h. */
18230 _ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18234 #define _LARGEFILE_SOURCE 1
18235 #include <stdio.h>
18236 int
18237 main ()
18238 {
18239 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18240 ;
18241 return 0;
18242 }
18243 _ACEOF
18244 rm -f conftest.$ac_objext conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249 esac
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>conftest.er1
18252 ac_status=$?
18253 grep -v '^ *+' conftest.er1 >conftest.err
18254 rm -f conftest.er1
18255 cat conftest.err >&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } && {
18258 test -z "$ac_c_werror_flag" ||
18259 test ! -s conftest.err
18260 } && test -s conftest$ac_exeext &&
18261 $as_test_x conftest$ac_exeext; then
18262 ac_cv_sys_largefile_source=1; break
18263 else
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267
18268 fi
18269
18270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18271 conftest$ac_exeext conftest.$ac_ext
18272 ac_cv_sys_largefile_source=unknown
18273 break
18274 done
18275 fi
18276 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18277 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18278 case $ac_cv_sys_largefile_source in #(
18279 no | unknown) ;;
18280 *)
18281 cat >>confdefs.h <<_ACEOF
18282 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18283 _ACEOF
18284 ;;
18285 esac
18286 rm -f conftest*
18287
18288 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18289 # in glibc 2.1.3, but that breaks too many other things.
18290 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18291 if test $ac_cv_sys_largefile_source != unknown; then
18292
18293 cat >>confdefs.h <<\_ACEOF
18294 #define HAVE_FSEEKO 1
18295 _ACEOF
18296
18297 fi
18298
18299
18300 # Configure getopt.
18301 # getopt.m4 serial 10
18302
18303 # The getopt module assume you want GNU getopt, with getopt_long etc,
18304 # rather than vanilla POSIX getopt. This means your your code should
18305 # always include <getopt.h> for the getopt prototypes.
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317 # Prerequisites of lib/getopt*.
18318
18319
18320
18321
18322 GETOPT_H=
18323
18324 for ac_header in getopt.h
18325 do
18326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18331 echo $ECHO_N "(cached) $ECHO_C" >&6
18332 fi
18333 ac_res=`eval echo '${'$as_ac_Header'}'`
18334 { echo "$as_me:$LINENO: result: $ac_res" >&5
18335 echo "${ECHO_T}$ac_res" >&6; }
18336 else
18337 # Is the header compilable?
18338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18340 cat >conftest.$ac_ext <<_ACEOF
18341 /* confdefs.h. */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18346 $ac_includes_default
18347 #include <$ac_header>
18348 _ACEOF
18349 rm -f conftest.$ac_objext
18350 if { (ac_try="$ac_compile"
18351 case "(($ac_try" in
18352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353 *) ac_try_echo=$ac_try;;
18354 esac
18355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18356 (eval "$ac_compile") 2>conftest.er1
18357 ac_status=$?
18358 grep -v '^ *+' conftest.er1 >conftest.err
18359 rm -f conftest.er1
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } && {
18363 test -z "$ac_c_werror_flag" ||
18364 test ! -s conftest.err
18365 } && test -s conftest.$ac_objext; then
18366 ac_header_compiler=yes
18367 else
18368 echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18370
18371 ac_header_compiler=no
18372 fi
18373
18374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18376 echo "${ECHO_T}$ac_header_compiler" >&6; }
18377
18378 # Is the header present?
18379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18381 cat >conftest.$ac_ext <<_ACEOF
18382 /* confdefs.h. */
18383 _ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18387 #include <$ac_header>
18388 _ACEOF
18389 if { (ac_try="$ac_cpp conftest.$ac_ext"
18390 case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18393 esac
18394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18396 ac_status=$?
18397 grep -v '^ *+' conftest.er1 >conftest.err
18398 rm -f conftest.er1
18399 cat conftest.err >&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } >/dev/null && {
18402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18404 }; then
18405 ac_header_preproc=yes
18406 else
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410 ac_header_preproc=no
18411 fi
18412
18413 rm -f conftest.err conftest.$ac_ext
18414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18415 echo "${ECHO_T}$ac_header_preproc" >&6; }
18416
18417 # So? What about this header?
18418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18419 yes:no: )
18420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18424 ac_header_preproc=yes
18425 ;;
18426 no:yes:* )
18427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18439
18440 ;;
18441 esac
18442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18445 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 else
18447 eval "$as_ac_Header=\$ac_header_preproc"
18448 fi
18449 ac_res=`eval echo '${'$as_ac_Header'}'`
18450 { echo "$as_me:$LINENO: result: $ac_res" >&5
18451 echo "${ECHO_T}$ac_res" >&6; }
18452
18453 fi
18454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18455 cat >>confdefs.h <<_ACEOF
18456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18457 _ACEOF
18458
18459 else
18460 GETOPT_H=getopt.h
18461 fi
18462
18463 done
18464
18465 if test -z "$GETOPT_H"; then
18466
18467 for ac_func in getopt_long_only
18468 do
18469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475 cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h. */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18483 #define $ac_func innocuous_$ac_func
18484
18485 /* System header to define __stub macros and hopefully few prototypes,
18486 which can conflict with char $ac_func (); below.
18487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18488 <limits.h> exists even on freestanding compilers. */
18489
18490 #ifdef __STDC__
18491 # include <limits.h>
18492 #else
18493 # include <assert.h>
18494 #endif
18495
18496 #undef $ac_func
18497
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18501 #ifdef __cplusplus
18502 extern "C"
18503 #endif
18504 char $ac_func ();
18505 /* The GNU C library defines this for functions which it implements
18506 to always fail with ENOSYS. Some functions are actually named
18507 something starting with __ and the normal name is an alias. */
18508 #if defined __stub_$ac_func || defined __stub___$ac_func
18509 choke me
18510 #endif
18511
18512 int
18513 main ()
18514 {
18515 return $ac_func ();
18516 ;
18517 return 0;
18518 }
18519 _ACEOF
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (ac_try="$ac_link"
18522 case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18525 esac
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_link") 2>conftest.er1
18528 ac_status=$?
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } && {
18534 test -z "$ac_c_werror_flag" ||
18535 test ! -s conftest.err
18536 } && test -s conftest$ac_exeext &&
18537 $as_test_x conftest$ac_exeext; then
18538 eval "$as_ac_var=yes"
18539 else
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543 eval "$as_ac_var=no"
18544 fi
18545
18546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18547 conftest$ac_exeext conftest.$ac_ext
18548 fi
18549 ac_res=`eval echo '${'$as_ac_var'}'`
18550 { echo "$as_me:$LINENO: result: $ac_res" >&5
18551 echo "${ECHO_T}$ac_res" >&6; }
18552 if test `eval echo '${'$as_ac_var'}'` = yes; then
18553 cat >>confdefs.h <<_ACEOF
18554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18555 _ACEOF
18556
18557 else
18558 GETOPT_H=getopt.h
18559 fi
18560 done
18561
18562 fi
18563
18564 if test -z "$GETOPT_H"; then
18565 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18566 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18567 if test "${ac_cv_have_decl_optreset+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 else
18570 cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h. */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18576 #include <getopt.h>
18577
18578 int
18579 main ()
18580 {
18581 #ifndef optreset
18582 (void) optreset;
18583 #endif
18584
18585 ;
18586 return 0;
18587 }
18588 _ACEOF
18589 rm -f conftest.$ac_objext
18590 if { (ac_try="$ac_compile"
18591 case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18594 esac
18595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596 (eval "$ac_compile") 2>conftest.er1
18597 ac_status=$?
18598 grep -v '^ *+' conftest.er1 >conftest.err
18599 rm -f conftest.er1
18600 cat conftest.err >&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } && {
18603 test -z "$ac_c_werror_flag" ||
18604 test ! -s conftest.err
18605 } && test -s conftest.$ac_objext; then
18606 ac_cv_have_decl_optreset=yes
18607 else
18608 echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18610
18611 ac_cv_have_decl_optreset=no
18612 fi
18613
18614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18615 fi
18616 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18617 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18618 if test $ac_cv_have_decl_optreset = yes; then
18619 GETOPT_H=getopt.h
18620 fi
18621
18622 fi
18623
18624 if test -z "$GETOPT_H"; then
18625 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18626 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18627 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 else
18630 if test "$cross_compiling" = yes; then
18631 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18632 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18633 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18635 else
18636 cat >conftest.$ac_ext <<_ACEOF
18637 /* confdefs.h. */
18638 _ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642 #include <getopt.h>
18643
18644 int
18645 main ()
18646 {
18647 #ifndef getopt_clip
18648 (void) getopt_clip;
18649 #endif
18650
18651 ;
18652 return 0;
18653 }
18654 _ACEOF
18655 rm -f conftest.$ac_objext
18656 if { (ac_try="$ac_compile"
18657 case "(($ac_try" in
18658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659 *) ac_try_echo=$ac_try;;
18660 esac
18661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662 (eval "$ac_compile") 2>conftest.er1
18663 ac_status=$?
18664 grep -v '^ *+' conftest.er1 >conftest.err
18665 rm -f conftest.er1
18666 cat conftest.err >&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } && {
18669 test -z "$ac_c_werror_flag" ||
18670 test ! -s conftest.err
18671 } && test -s conftest.$ac_objext; then
18672 ac_cv_have_decl_getopt_clip=yes
18673 else
18674 echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18676
18677 ac_cv_have_decl_getopt_clip=no
18678 fi
18679
18680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18681 fi
18682 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18683 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18684 if test $ac_cv_have_decl_getopt_clip = yes; then
18685 gl_cv_func_gnu_getopt=no
18686 else
18687 gl_cv_func_gnu_getopt=yes
18688 fi
18689
18690 else
18691 cat >conftest.$ac_ext <<_ACEOF
18692 /* confdefs.h. */
18693 _ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 #include <getopt.h>
18698 int
18699 main ()
18700 {
18701
18702 char *myargv[3];
18703 myargv[0] = "conftest";
18704 myargv[1] = "-+";
18705 myargv[2] = 0;
18706 return getopt (2, myargv, "+a") != '?';
18707
18708 ;
18709 return 0;
18710 }
18711 _ACEOF
18712 rm -f conftest$ac_exeext
18713 if { (ac_try="$ac_link"
18714 case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18717 esac
18718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_link") 2>&5
18720 ac_status=$?
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18723 { (case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18726 esac
18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728 (eval "$ac_try") 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 gl_cv_func_gnu_getopt=yes
18733 else
18734 echo "$as_me: program exited with status $ac_status" >&5
18735 echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18737
18738 ( exit $ac_status )
18739 gl_cv_func_gnu_getopt=no
18740 fi
18741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18742 fi
18743
18744
18745 fi
18746 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18747 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18748 if test "$gl_cv_func_gnu_getopt" = "no"; then
18749 GETOPT_H=getopt.h
18750 fi
18751 fi
18752
18753
18754
18755 if test -n "$GETOPT_H"; then
18756
18757
18758 GETOPT_H=getopt.h
18759
18760 cat >>confdefs.h <<\_ACEOF
18761 #define __GETOPT_PREFIX rpl_
18762 _ACEOF
18763
18764
18765
18766 :
18767 GETOPTOBJS='getopt.o getopt1.o'
18768
18769 fi
18770
18771
18772
18773
18774 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18775 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18776 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18777 echo $ECHO_N "(cached) $ECHO_C" >&6
18778 else
18779 # Use it with a single arg.
18780 cat >conftest.$ac_ext <<_ACEOF
18781 /* confdefs.h. */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18786 $ac_includes_default
18787 int
18788 main ()
18789 {
18790 getpgrp (0);
18791 ;
18792 return 0;
18793 }
18794 _ACEOF
18795 rm -f conftest.$ac_objext
18796 if { (ac_try="$ac_compile"
18797 case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_compile") 2>conftest.er1
18803 ac_status=$?
18804 grep -v '^ *+' conftest.er1 >conftest.err
18805 rm -f conftest.er1
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } && {
18809 test -z "$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 } && test -s conftest.$ac_objext; then
18812 ac_cv_func_getpgrp_void=no
18813 else
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817 ac_cv_func_getpgrp_void=yes
18818 fi
18819
18820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18821
18822 fi
18823 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18824 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18825 if test $ac_cv_func_getpgrp_void = yes; then
18826
18827 cat >>confdefs.h <<\_ACEOF
18828 #define GETPGRP_VOID 1
18829 _ACEOF
18830
18831 fi
18832
18833
18834
18835 for ac_func in strftime
18836 do
18837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843 cat >conftest.$ac_ext <<_ACEOF
18844 /* confdefs.h. */
18845 _ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18851 #define $ac_func innocuous_$ac_func
18852
18853 /* System header to define __stub macros and hopefully few prototypes,
18854 which can conflict with char $ac_func (); below.
18855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18856 <limits.h> exists even on freestanding compilers. */
18857
18858 #ifdef __STDC__
18859 # include <limits.h>
18860 #else
18861 # include <assert.h>
18862 #endif
18863
18864 #undef $ac_func
18865
18866 /* Override any GCC internal prototype to avoid an error.
18867 Use char because int might match the return type of a GCC
18868 builtin and then its argument prototype would still apply. */
18869 #ifdef __cplusplus
18870 extern "C"
18871 #endif
18872 char $ac_func ();
18873 /* The GNU C library defines this for functions which it implements
18874 to always fail with ENOSYS. Some functions are actually named
18875 something starting with __ and the normal name is an alias. */
18876 #if defined __stub_$ac_func || defined __stub___$ac_func
18877 choke me
18878 #endif
18879
18880 int
18881 main ()
18882 {
18883 return $ac_func ();
18884 ;
18885 return 0;
18886 }
18887 _ACEOF
18888 rm -f conftest.$ac_objext conftest$ac_exeext
18889 if { (ac_try="$ac_link"
18890 case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_link") 2>conftest.er1
18896 ac_status=$?
18897 grep -v '^ *+' conftest.er1 >conftest.err
18898 rm -f conftest.er1
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } && {
18902 test -z "$ac_c_werror_flag" ||
18903 test ! -s conftest.err
18904 } && test -s conftest$ac_exeext &&
18905 $as_test_x conftest$ac_exeext; then
18906 eval "$as_ac_var=yes"
18907 else
18908 echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18910
18911 eval "$as_ac_var=no"
18912 fi
18913
18914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18915 conftest$ac_exeext conftest.$ac_ext
18916 fi
18917 ac_res=`eval echo '${'$as_ac_var'}'`
18918 { echo "$as_me:$LINENO: result: $ac_res" >&5
18919 echo "${ECHO_T}$ac_res" >&6; }
18920 if test `eval echo '${'$as_ac_var'}'` = yes; then
18921 cat >>confdefs.h <<_ACEOF
18922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18923 _ACEOF
18924
18925 else
18926 # strftime is in -lintl on SCO UNIX.
18927 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18928 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18929 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 else
18932 ac_check_lib_save_LIBS=$LIBS
18933 LIBS="-lintl $LIBS"
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h. */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940
18941 /* Override any GCC internal prototype to avoid an error.
18942 Use char because int might match the return type of a GCC
18943 builtin and then its argument prototype would still apply. */
18944 #ifdef __cplusplus
18945 extern "C"
18946 #endif
18947 char strftime ();
18948 int
18949 main ()
18950 {
18951 return strftime ();
18952 ;
18953 return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (ac_try="$ac_link"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_link") 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && {
18970 test -z "$ac_c_werror_flag" ||
18971 test ! -s conftest.err
18972 } && test -s conftest$ac_exeext &&
18973 $as_test_x conftest$ac_exeext; then
18974 ac_cv_lib_intl_strftime=yes
18975 else
18976 echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 ac_cv_lib_intl_strftime=no
18980 fi
18981
18982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18983 conftest$ac_exeext conftest.$ac_ext
18984 LIBS=$ac_check_lib_save_LIBS
18985 fi
18986 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18987 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18988 if test $ac_cv_lib_intl_strftime = yes; then
18989 cat >>confdefs.h <<\_ACEOF
18990 #define HAVE_STRFTIME 1
18991 _ACEOF
18992
18993 LIBS="-lintl $LIBS"
18994 fi
18995
18996 fi
18997 done
18998
18999
19000 # UNIX98 PTYs.
19001
19002 for ac_func in grantpt
19003 do
19004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19009 else
19010 cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h. */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19018 #define $ac_func innocuous_$ac_func
19019
19020 /* System header to define __stub macros and hopefully few prototypes,
19021 which can conflict with char $ac_func (); below.
19022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19023 <limits.h> exists even on freestanding compilers. */
19024
19025 #ifdef __STDC__
19026 # include <limits.h>
19027 #else
19028 # include <assert.h>
19029 #endif
19030
19031 #undef $ac_func
19032
19033 /* Override any GCC internal prototype to avoid an error.
19034 Use char because int might match the return type of a GCC
19035 builtin and then its argument prototype would still apply. */
19036 #ifdef __cplusplus
19037 extern "C"
19038 #endif
19039 char $ac_func ();
19040 /* The GNU C library defines this for functions which it implements
19041 to always fail with ENOSYS. Some functions are actually named
19042 something starting with __ and the normal name is an alias. */
19043 #if defined __stub_$ac_func || defined __stub___$ac_func
19044 choke me
19045 #endif
19046
19047 int
19048 main ()
19049 {
19050 return $ac_func ();
19051 ;
19052 return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_link") 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest$ac_exeext &&
19072 $as_test_x conftest$ac_exeext; then
19073 eval "$as_ac_var=yes"
19074 else
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078 eval "$as_ac_var=no"
19079 fi
19080
19081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19082 conftest$ac_exeext conftest.$ac_ext
19083 fi
19084 ac_res=`eval echo '${'$as_ac_var'}'`
19085 { echo "$as_me:$LINENO: result: $ac_res" >&5
19086 echo "${ECHO_T}$ac_res" >&6; }
19087 if test `eval echo '${'$as_ac_var'}'` = yes; then
19088 cat >>confdefs.h <<_ACEOF
19089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19090 _ACEOF
19091
19092 fi
19093 done
19094
19095
19096 # PTY-related GNU extensions.
19097
19098 for ac_func in getpt
19099 do
19100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19105 else
19106 cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h. */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h. */
19112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19114 #define $ac_func innocuous_$ac_func
19115
19116 /* System header to define __stub macros and hopefully few prototypes,
19117 which can conflict with char $ac_func (); below.
19118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19119 <limits.h> exists even on freestanding compilers. */
19120
19121 #ifdef __STDC__
19122 # include <limits.h>
19123 #else
19124 # include <assert.h>
19125 #endif
19126
19127 #undef $ac_func
19128
19129 /* Override any GCC internal prototype to avoid an error.
19130 Use char because int might match the return type of a GCC
19131 builtin and then its argument prototype would still apply. */
19132 #ifdef __cplusplus
19133 extern "C"
19134 #endif
19135 char $ac_func ();
19136 /* The GNU C library defines this for functions which it implements
19137 to always fail with ENOSYS. Some functions are actually named
19138 something starting with __ and the normal name is an alias. */
19139 #if defined __stub_$ac_func || defined __stub___$ac_func
19140 choke me
19141 #endif
19142
19143 int
19144 main ()
19145 {
19146 return $ac_func ();
19147 ;
19148 return 0;
19149 }
19150 _ACEOF
19151 rm -f conftest.$ac_objext conftest$ac_exeext
19152 if { (ac_try="$ac_link"
19153 case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19156 esac
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_link") 2>conftest.er1
19159 ac_status=$?
19160 grep -v '^ *+' conftest.er1 >conftest.err
19161 rm -f conftest.er1
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } && {
19165 test -z "$ac_c_werror_flag" ||
19166 test ! -s conftest.err
19167 } && test -s conftest$ac_exeext &&
19168 $as_test_x conftest$ac_exeext; then
19169 eval "$as_ac_var=yes"
19170 else
19171 echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174 eval "$as_ac_var=no"
19175 fi
19176
19177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19178 conftest$ac_exeext conftest.$ac_ext
19179 fi
19180 ac_res=`eval echo '${'$as_ac_var'}'`
19181 { echo "$as_me:$LINENO: result: $ac_res" >&5
19182 echo "${ECHO_T}$ac_res" >&6; }
19183 if test `eval echo '${'$as_ac_var'}'` = yes; then
19184 cat >>confdefs.h <<_ACEOF
19185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19186 _ACEOF
19187
19188 fi
19189 done
19190
19191
19192 # Check this now, so that we will NOT find the above functions in ncurses.
19193 # That is because we have not set up to link ncurses in lib-src.
19194 # It's better to believe a function is not available
19195 # than to expect to find it in ncurses.
19196
19197 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19198 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19199 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19201 else
19202 ac_check_lib_save_LIBS=$LIBS
19203 LIBS="-lncurses $LIBS"
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h. */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210
19211 /* Override any GCC internal prototype to avoid an error.
19212 Use char because int might match the return type of a GCC
19213 builtin and then its argument prototype would still apply. */
19214 #ifdef __cplusplus
19215 extern "C"
19216 #endif
19217 char tparm ();
19218 int
19219 main ()
19220 {
19221 return tparm ();
19222 ;
19223 return 0;
19224 }
19225 _ACEOF
19226 rm -f conftest.$ac_objext conftest$ac_exeext
19227 if { (ac_try="$ac_link"
19228 case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19231 esac
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_link") 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest$ac_exeext &&
19243 $as_test_x conftest$ac_exeext; then
19244 ac_cv_lib_ncurses_tparm=yes
19245 else
19246 echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19248
19249 ac_cv_lib_ncurses_tparm=no
19250 fi
19251
19252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19253 conftest$ac_exeext conftest.$ac_ext
19254 LIBS=$ac_check_lib_save_LIBS
19255 fi
19256 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19257 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19258 if test $ac_cv_lib_ncurses_tparm = yes; then
19259 cat >>confdefs.h <<_ACEOF
19260 #define HAVE_LIBNCURSES 1
19261 _ACEOF
19262
19263 LIBS="-lncurses $LIBS"
19264
19265 fi
19266
19267
19268 # Do we need the Hesiod library to provide the support routines?
19269 if test "$with_hesiod" = yes ; then
19270 # Don't set $LIBS here -- see comments above.
19271 resolv=no
19272 { echo "$as_me:$LINENO: checking for res_send" >&5
19273 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19274 if test "${ac_cv_func_res_send+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 else
19277 cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h. */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19283 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19285 #define res_send innocuous_res_send
19286
19287 /* System header to define __stub macros and hopefully few prototypes,
19288 which can conflict with char res_send (); below.
19289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19290 <limits.h> exists even on freestanding compilers. */
19291
19292 #ifdef __STDC__
19293 # include <limits.h>
19294 #else
19295 # include <assert.h>
19296 #endif
19297
19298 #undef res_send
19299
19300 /* Override any GCC internal prototype to avoid an error.
19301 Use char because int might match the return type of a GCC
19302 builtin and then its argument prototype would still apply. */
19303 #ifdef __cplusplus
19304 extern "C"
19305 #endif
19306 char res_send ();
19307 /* The GNU C library defines this for functions which it implements
19308 to always fail with ENOSYS. Some functions are actually named
19309 something starting with __ and the normal name is an alias. */
19310 #if defined __stub_res_send || defined __stub___res_send
19311 choke me
19312 #endif
19313
19314 int
19315 main ()
19316 {
19317 return res_send ();
19318 ;
19319 return 0;
19320 }
19321 _ACEOF
19322 rm -f conftest.$ac_objext conftest$ac_exeext
19323 if { (ac_try="$ac_link"
19324 case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19327 esac
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_link") 2>conftest.er1
19330 ac_status=$?
19331 grep -v '^ *+' conftest.er1 >conftest.err
19332 rm -f conftest.er1
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } && {
19336 test -z "$ac_c_werror_flag" ||
19337 test ! -s conftest.err
19338 } && test -s conftest$ac_exeext &&
19339 $as_test_x conftest$ac_exeext; then
19340 ac_cv_func_res_send=yes
19341 else
19342 echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345 ac_cv_func_res_send=no
19346 fi
19347
19348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19349 conftest$ac_exeext conftest.$ac_ext
19350 fi
19351 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19352 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19353 if test $ac_cv_func_res_send = yes; then
19354 :
19355 else
19356 { echo "$as_me:$LINENO: checking for __res_send" >&5
19357 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19358 if test "${ac_cv_func___res_send+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361 cat >conftest.$ac_ext <<_ACEOF
19362 /* confdefs.h. */
19363 _ACEOF
19364 cat confdefs.h >>conftest.$ac_ext
19365 cat >>conftest.$ac_ext <<_ACEOF
19366 /* end confdefs.h. */
19367 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19369 #define __res_send innocuous___res_send
19370
19371 /* System header to define __stub macros and hopefully few prototypes,
19372 which can conflict with char __res_send (); below.
19373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19374 <limits.h> exists even on freestanding compilers. */
19375
19376 #ifdef __STDC__
19377 # include <limits.h>
19378 #else
19379 # include <assert.h>
19380 #endif
19381
19382 #undef __res_send
19383
19384 /* Override any GCC internal prototype to avoid an error.
19385 Use char because int might match the return type of a GCC
19386 builtin and then its argument prototype would still apply. */
19387 #ifdef __cplusplus
19388 extern "C"
19389 #endif
19390 char __res_send ();
19391 /* The GNU C library defines this for functions which it implements
19392 to always fail with ENOSYS. Some functions are actually named
19393 something starting with __ and the normal name is an alias. */
19394 #if defined __stub___res_send || defined __stub_____res_send
19395 choke me
19396 #endif
19397
19398 int
19399 main ()
19400 {
19401 return __res_send ();
19402 ;
19403 return 0;
19404 }
19405 _ACEOF
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (ac_try="$ac_link"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19411 esac
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_link") 2>conftest.er1
19414 ac_status=$?
19415 grep -v '^ *+' conftest.er1 >conftest.err
19416 rm -f conftest.er1
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } && {
19420 test -z "$ac_c_werror_flag" ||
19421 test ! -s conftest.err
19422 } && test -s conftest$ac_exeext &&
19423 $as_test_x conftest$ac_exeext; then
19424 ac_cv_func___res_send=yes
19425 else
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19428
19429 ac_cv_func___res_send=no
19430 fi
19431
19432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19433 conftest$ac_exeext conftest.$ac_ext
19434 fi
19435 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19436 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19437 if test $ac_cv_func___res_send = yes; then
19438 :
19439 else
19440 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19441 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19442 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445 ac_check_lib_save_LIBS=$LIBS
19446 LIBS="-lresolv $LIBS"
19447 cat >conftest.$ac_ext <<_ACEOF
19448 /* confdefs.h. */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
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 res_send ();
19461 int
19462 main ()
19463 {
19464 return res_send ();
19465 ;
19466 return 0;
19467 }
19468 _ACEOF
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (ac_try="$ac_link"
19471 case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_link") 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } && {
19483 test -z "$ac_c_werror_flag" ||
19484 test ! -s conftest.err
19485 } && test -s conftest$ac_exeext &&
19486 $as_test_x conftest$ac_exeext; then
19487 ac_cv_lib_resolv_res_send=yes
19488 else
19489 echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19491
19492 ac_cv_lib_resolv_res_send=no
19493 fi
19494
19495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19496 conftest$ac_exeext conftest.$ac_ext
19497 LIBS=$ac_check_lib_save_LIBS
19498 fi
19499 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19500 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19501 if test $ac_cv_lib_resolv_res_send = yes; then
19502 resolv=yes
19503 else
19504 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19505 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19506 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19507 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 else
19509 ac_check_lib_save_LIBS=$LIBS
19510 LIBS="-lresolv $LIBS"
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h. */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19517
19518 /* Override any GCC internal prototype to avoid an error.
19519 Use char because int might match the return type of a GCC
19520 builtin and then its argument prototype would still apply. */
19521 #ifdef __cplusplus
19522 extern "C"
19523 #endif
19524 char __res_send ();
19525 int
19526 main ()
19527 {
19528 return __res_send ();
19529 ;
19530 return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (ac_try="$ac_link"
19535 case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_link") 2>conftest.er1
19541 ac_status=$?
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } && {
19547 test -z "$ac_c_werror_flag" ||
19548 test ! -s conftest.err
19549 } && test -s conftest$ac_exeext &&
19550 $as_test_x conftest$ac_exeext; then
19551 ac_cv_lib_resolv___res_send=yes
19552 else
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19555
19556 ac_cv_lib_resolv___res_send=no
19557 fi
19558
19559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19560 conftest$ac_exeext conftest.$ac_ext
19561 LIBS=$ac_check_lib_save_LIBS
19562 fi
19563 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19564 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19565 if test $ac_cv_lib_resolv___res_send = yes; then
19566 resolv=yes
19567 fi
19568
19569 fi
19570
19571 fi
19572
19573 fi
19574
19575 if test "$resolv" = yes ; then
19576 RESOLVLIB=-lresolv
19577
19578 cat >>confdefs.h <<\_ACEOF
19579 #define HAVE_LIBRESOLV 1
19580 _ACEOF
19581
19582 else
19583 RESOLVLIB=
19584 fi
19585 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19586 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19587 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19589 else
19590 cat >conftest.$ac_ext <<_ACEOF
19591 /* confdefs.h. */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19598 #define hes_getmailhost innocuous_hes_getmailhost
19599
19600 /* System header to define __stub macros and hopefully few prototypes,
19601 which can conflict with char hes_getmailhost (); below.
19602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19603 <limits.h> exists even on freestanding compilers. */
19604
19605 #ifdef __STDC__
19606 # include <limits.h>
19607 #else
19608 # include <assert.h>
19609 #endif
19610
19611 #undef hes_getmailhost
19612
19613 /* Override any GCC internal prototype to avoid an error.
19614 Use char because int might match the return type of a GCC
19615 builtin and then its argument prototype would still apply. */
19616 #ifdef __cplusplus
19617 extern "C"
19618 #endif
19619 char hes_getmailhost ();
19620 /* The GNU C library defines this for functions which it implements
19621 to always fail with ENOSYS. Some functions are actually named
19622 something starting with __ and the normal name is an alias. */
19623 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19624 choke me
19625 #endif
19626
19627 int
19628 main ()
19629 {
19630 return hes_getmailhost ();
19631 ;
19632 return 0;
19633 }
19634 _ACEOF
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (ac_try="$ac_link"
19637 case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19640 esac
19641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_link") 2>conftest.er1
19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest$ac_exeext &&
19652 $as_test_x conftest$ac_exeext; then
19653 ac_cv_func_hes_getmailhost=yes
19654 else
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19657
19658 ac_cv_func_hes_getmailhost=no
19659 fi
19660
19661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19662 conftest$ac_exeext conftest.$ac_ext
19663 fi
19664 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19665 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19666 if test $ac_cv_func_hes_getmailhost = yes; then
19667 :
19668 else
19669 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19670 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19671 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 else
19674 ac_check_lib_save_LIBS=$LIBS
19675 LIBS="-lhesiod $RESOLVLIB $LIBS"
19676 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h. */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682
19683 /* Override any GCC internal prototype to avoid an error.
19684 Use char because int might match the return type of a GCC
19685 builtin and then its argument prototype would still apply. */
19686 #ifdef __cplusplus
19687 extern "C"
19688 #endif
19689 char hes_getmailhost ();
19690 int
19691 main ()
19692 {
19693 return hes_getmailhost ();
19694 ;
19695 return 0;
19696 }
19697 _ACEOF
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (ac_try="$ac_link"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703 esac
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_link") 2>conftest.er1
19706 ac_status=$?
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } && {
19712 test -z "$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 } && test -s conftest$ac_exeext &&
19715 $as_test_x conftest$ac_exeext; then
19716 ac_cv_lib_hesiod_hes_getmailhost=yes
19717 else
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19720
19721 ac_cv_lib_hesiod_hes_getmailhost=no
19722 fi
19723
19724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19725 conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19727 fi
19728 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19729 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19730 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19731
19732 cat >>confdefs.h <<\_ACEOF
19733 #define HAVE_LIBHESIOD 1
19734 _ACEOF
19735
19736 else
19737 :
19738 fi
19739
19740 fi
19741
19742 fi
19743
19744 # These tell us which Kerberos-related libraries to use.
19745 if test "${with_kerberos+set}" = set; then
19746
19747 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19748 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19749 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752 ac_check_lib_save_LIBS=$LIBS
19753 LIBS="-lcom_err $LIBS"
19754 cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h. */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19760
19761 /* Override any GCC internal prototype to avoid an error.
19762 Use char because int might match the return type of a GCC
19763 builtin and then its argument prototype would still apply. */
19764 #ifdef __cplusplus
19765 extern "C"
19766 #endif
19767 char com_err ();
19768 int
19769 main ()
19770 {
19771 return com_err ();
19772 ;
19773 return 0;
19774 }
19775 _ACEOF
19776 rm -f conftest.$ac_objext conftest$ac_exeext
19777 if { (ac_try="$ac_link"
19778 case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_link") 2>conftest.er1
19784 ac_status=$?
19785 grep -v '^ *+' conftest.er1 >conftest.err
19786 rm -f conftest.er1
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } && {
19790 test -z "$ac_c_werror_flag" ||
19791 test ! -s conftest.err
19792 } && test -s conftest$ac_exeext &&
19793 $as_test_x conftest$ac_exeext; then
19794 ac_cv_lib_com_err_com_err=yes
19795 else
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799 ac_cv_lib_com_err_com_err=no
19800 fi
19801
19802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19803 conftest$ac_exeext conftest.$ac_ext
19804 LIBS=$ac_check_lib_save_LIBS
19805 fi
19806 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19807 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19808 if test $ac_cv_lib_com_err_com_err = yes; then
19809 cat >>confdefs.h <<_ACEOF
19810 #define HAVE_LIBCOM_ERR 1
19811 _ACEOF
19812
19813 LIBS="-lcom_err $LIBS"
19814
19815 fi
19816
19817
19818 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19819 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19820 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19822 else
19823 ac_check_lib_save_LIBS=$LIBS
19824 LIBS="-lk5crypto $LIBS"
19825 cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h. */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831
19832 /* Override any GCC internal prototype to avoid an error.
19833 Use char because int might match the return type of a GCC
19834 builtin and then its argument prototype would still apply. */
19835 #ifdef __cplusplus
19836 extern "C"
19837 #endif
19838 char mit_des_cbc_encrypt ();
19839 int
19840 main ()
19841 {
19842 return mit_des_cbc_encrypt ();
19843 ;
19844 return 0;
19845 }
19846 _ACEOF
19847 rm -f conftest.$ac_objext conftest$ac_exeext
19848 if { (ac_try="$ac_link"
19849 case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19852 esac
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_link") 2>conftest.er1
19855 ac_status=$?
19856 grep -v '^ *+' conftest.er1 >conftest.err
19857 rm -f conftest.er1
19858 cat conftest.err >&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } && {
19861 test -z "$ac_c_werror_flag" ||
19862 test ! -s conftest.err
19863 } && test -s conftest$ac_exeext &&
19864 $as_test_x conftest$ac_exeext; then
19865 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19866 else
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19869
19870 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19871 fi
19872
19873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19874 conftest$ac_exeext conftest.$ac_ext
19875 LIBS=$ac_check_lib_save_LIBS
19876 fi
19877 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19878 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19879 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19880 cat >>confdefs.h <<_ACEOF
19881 #define HAVE_LIBK5CRYPTO 1
19882 _ACEOF
19883
19884 LIBS="-lk5crypto $LIBS"
19885
19886 fi
19887
19888
19889 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19890 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19891 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19893 else
19894 ac_check_lib_save_LIBS=$LIBS
19895 LIBS="-lcrypto $LIBS"
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h. */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902
19903 /* Override any GCC internal prototype to avoid an error.
19904 Use char because int might match the return type of a GCC
19905 builtin and then its argument prototype would still apply. */
19906 #ifdef __cplusplus
19907 extern "C"
19908 #endif
19909 char mit_des_cbc_encrypt ();
19910 int
19911 main ()
19912 {
19913 return mit_des_cbc_encrypt ();
19914 ;
19915 return 0;
19916 }
19917 _ACEOF
19918 rm -f conftest.$ac_objext conftest$ac_exeext
19919 if { (ac_try="$ac_link"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19923 esac
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_link") 2>conftest.er1
19926 ac_status=$?
19927 grep -v '^ *+' conftest.er1 >conftest.err
19928 rm -f conftest.er1
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } && {
19932 test -z "$ac_c_werror_flag" ||
19933 test ! -s conftest.err
19934 } && test -s conftest$ac_exeext &&
19935 $as_test_x conftest$ac_exeext; then
19936 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19937 else
19938 echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19942 fi
19943
19944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19945 conftest$ac_exeext conftest.$ac_ext
19946 LIBS=$ac_check_lib_save_LIBS
19947 fi
19948 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19949 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19950 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19951 cat >>confdefs.h <<_ACEOF
19952 #define HAVE_LIBCRYPTO 1
19953 _ACEOF
19954
19955 LIBS="-lcrypto $LIBS"
19956
19957 fi
19958
19959
19960 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19961 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19962 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965 ac_check_lib_save_LIBS=$LIBS
19966 LIBS="-lkrb5 $LIBS"
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h. */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973
19974 /* Override any GCC internal prototype to avoid an error.
19975 Use char because int might match the return type of a GCC
19976 builtin and then its argument prototype would still apply. */
19977 #ifdef __cplusplus
19978 extern "C"
19979 #endif
19980 char krb5_init_context ();
19981 int
19982 main ()
19983 {
19984 return krb5_init_context ();
19985 ;
19986 return 0;
19987 }
19988 _ACEOF
19989 rm -f conftest.$ac_objext conftest$ac_exeext
19990 if { (ac_try="$ac_link"
19991 case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19994 esac
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_link") 2>conftest.er1
19997 ac_status=$?
19998 grep -v '^ *+' conftest.er1 >conftest.err
19999 rm -f conftest.er1
20000 cat conftest.err >&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } && {
20003 test -z "$ac_c_werror_flag" ||
20004 test ! -s conftest.err
20005 } && test -s conftest$ac_exeext &&
20006 $as_test_x conftest$ac_exeext; then
20007 ac_cv_lib_krb5_krb5_init_context=yes
20008 else
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012 ac_cv_lib_krb5_krb5_init_context=no
20013 fi
20014
20015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20016 conftest$ac_exeext conftest.$ac_ext
20017 LIBS=$ac_check_lib_save_LIBS
20018 fi
20019 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20020 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20021 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20022 cat >>confdefs.h <<_ACEOF
20023 #define HAVE_LIBKRB5 1
20024 _ACEOF
20025
20026 LIBS="-lkrb5 $LIBS"
20027
20028 fi
20029
20030 if test "${with_kerberos5+set}" != set; then
20031
20032 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20033 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20034 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20036 else
20037 ac_check_lib_save_LIBS=$LIBS
20038 LIBS="-ldes425 $LIBS"
20039 cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h. */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045
20046 /* Override any GCC internal prototype to avoid an error.
20047 Use char because int might match the return type of a GCC
20048 builtin and then its argument prototype would still apply. */
20049 #ifdef __cplusplus
20050 extern "C"
20051 #endif
20052 char des_cbc_encrypt ();
20053 int
20054 main ()
20055 {
20056 return des_cbc_encrypt ();
20057 ;
20058 return 0;
20059 }
20060 _ACEOF
20061 rm -f conftest.$ac_objext conftest$ac_exeext
20062 if { (ac_try="$ac_link"
20063 case "(($ac_try" in
20064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065 *) ac_try_echo=$ac_try;;
20066 esac
20067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068 (eval "$ac_link") 2>conftest.er1
20069 ac_status=$?
20070 grep -v '^ *+' conftest.er1 >conftest.err
20071 rm -f conftest.er1
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } && {
20075 test -z "$ac_c_werror_flag" ||
20076 test ! -s conftest.err
20077 } && test -s conftest$ac_exeext &&
20078 $as_test_x conftest$ac_exeext; then
20079 ac_cv_lib_des425_des_cbc_encrypt=yes
20080 else
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20083
20084 ac_cv_lib_des425_des_cbc_encrypt=no
20085 fi
20086
20087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20088 conftest$ac_exeext conftest.$ac_ext
20089 LIBS=$ac_check_lib_save_LIBS
20090 fi
20091 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20092 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20093 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20094 cat >>confdefs.h <<_ACEOF
20095 #define HAVE_LIBDES425 1
20096 _ACEOF
20097
20098 LIBS="-ldes425 $LIBS"
20099
20100 else
20101
20102 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20103 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20104 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 else
20107 ac_check_lib_save_LIBS=$LIBS
20108 LIBS="-ldes $LIBS"
20109 cat >conftest.$ac_ext <<_ACEOF
20110 /* confdefs.h. */
20111 _ACEOF
20112 cat confdefs.h >>conftest.$ac_ext
20113 cat >>conftest.$ac_ext <<_ACEOF
20114 /* end confdefs.h. */
20115
20116 /* Override any GCC internal prototype to avoid an error.
20117 Use char because int might match the return type of a GCC
20118 builtin and then its argument prototype would still apply. */
20119 #ifdef __cplusplus
20120 extern "C"
20121 #endif
20122 char des_cbc_encrypt ();
20123 int
20124 main ()
20125 {
20126 return des_cbc_encrypt ();
20127 ;
20128 return 0;
20129 }
20130 _ACEOF
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (ac_try="$ac_link"
20133 case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20136 esac
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_link") 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } && {
20145 test -z "$ac_c_werror_flag" ||
20146 test ! -s conftest.err
20147 } && test -s conftest$ac_exeext &&
20148 $as_test_x conftest$ac_exeext; then
20149 ac_cv_lib_des_des_cbc_encrypt=yes
20150 else
20151 echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154 ac_cv_lib_des_des_cbc_encrypt=no
20155 fi
20156
20157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20158 conftest$ac_exeext conftest.$ac_ext
20159 LIBS=$ac_check_lib_save_LIBS
20160 fi
20161 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20162 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20163 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20164 cat >>confdefs.h <<_ACEOF
20165 #define HAVE_LIBDES 1
20166 _ACEOF
20167
20168 LIBS="-ldes $LIBS"
20169
20170 fi
20171
20172 fi
20173
20174
20175 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20176 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20177 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20178 echo $ECHO_N "(cached) $ECHO_C" >&6
20179 else
20180 ac_check_lib_save_LIBS=$LIBS
20181 LIBS="-lkrb4 $LIBS"
20182 cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h. */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20188
20189 /* Override any GCC internal prototype to avoid an error.
20190 Use char because int might match the return type of a GCC
20191 builtin and then its argument prototype would still apply. */
20192 #ifdef __cplusplus
20193 extern "C"
20194 #endif
20195 char krb_get_cred ();
20196 int
20197 main ()
20198 {
20199 return krb_get_cred ();
20200 ;
20201 return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20209 esac
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_link") 2>conftest.er1
20212 ac_status=$?
20213 grep -v '^ *+' conftest.er1 >conftest.err
20214 rm -f conftest.er1
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } && {
20218 test -z "$ac_c_werror_flag" ||
20219 test ! -s conftest.err
20220 } && test -s conftest$ac_exeext &&
20221 $as_test_x conftest$ac_exeext; then
20222 ac_cv_lib_krb4_krb_get_cred=yes
20223 else
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227 ac_cv_lib_krb4_krb_get_cred=no
20228 fi
20229
20230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20231 conftest$ac_exeext conftest.$ac_ext
20232 LIBS=$ac_check_lib_save_LIBS
20233 fi
20234 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20235 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20236 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20237 cat >>confdefs.h <<_ACEOF
20238 #define HAVE_LIBKRB4 1
20239 _ACEOF
20240
20241 LIBS="-lkrb4 $LIBS"
20242
20243 else
20244
20245 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20246 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20247 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250 ac_check_lib_save_LIBS=$LIBS
20251 LIBS="-lkrb $LIBS"
20252 cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h. */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258
20259 /* Override any GCC internal prototype to avoid an error.
20260 Use char because int might match the return type of a GCC
20261 builtin and then its argument prototype would still apply. */
20262 #ifdef __cplusplus
20263 extern "C"
20264 #endif
20265 char krb_get_cred ();
20266 int
20267 main ()
20268 {
20269 return krb_get_cred ();
20270 ;
20271 return 0;
20272 }
20273 _ACEOF
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_link") 2>conftest.er1
20282 ac_status=$?
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest$ac_exeext &&
20291 $as_test_x conftest$ac_exeext; then
20292 ac_cv_lib_krb_krb_get_cred=yes
20293 else
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20296
20297 ac_cv_lib_krb_krb_get_cred=no
20298 fi
20299
20300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20301 conftest$ac_exeext conftest.$ac_ext
20302 LIBS=$ac_check_lib_save_LIBS
20303 fi
20304 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20305 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20306 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20307 cat >>confdefs.h <<_ACEOF
20308 #define HAVE_LIBKRB 1
20309 _ACEOF
20310
20311 LIBS="-lkrb $LIBS"
20312
20313 fi
20314
20315 fi
20316
20317 fi
20318
20319 if test "${with_kerberos5+set}" = set; then
20320
20321 for ac_header in krb5.h
20322 do
20323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
20329 fi
20330 ac_res=`eval echo '${'$as_ac_Header'}'`
20331 { echo "$as_me:$LINENO: result: $ac_res" >&5
20332 echo "${ECHO_T}$ac_res" >&6; }
20333 else
20334 # Is the header compilable?
20335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20337 cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h. */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 $ac_includes_default
20344 #include <$ac_header>
20345 _ACEOF
20346 rm -f conftest.$ac_objext
20347 if { (ac_try="$ac_compile"
20348 case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20351 esac
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_compile") 2>conftest.er1
20354 ac_status=$?
20355 grep -v '^ *+' conftest.er1 >conftest.err
20356 rm -f conftest.er1
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } && {
20360 test -z "$ac_c_werror_flag" ||
20361 test ! -s conftest.err
20362 } && test -s conftest.$ac_objext; then
20363 ac_header_compiler=yes
20364 else
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368 ac_header_compiler=no
20369 fi
20370
20371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20373 echo "${ECHO_T}$ac_header_compiler" >&6; }
20374
20375 # Is the header present?
20376 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20378 cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h. */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20384 #include <$ac_header>
20385 _ACEOF
20386 if { (ac_try="$ac_cpp conftest.$ac_ext"
20387 case "(($ac_try" in
20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389 *) ac_try_echo=$ac_try;;
20390 esac
20391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20393 ac_status=$?
20394 grep -v '^ *+' conftest.er1 >conftest.err
20395 rm -f conftest.er1
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } >/dev/null && {
20399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20400 test ! -s conftest.err
20401 }; then
20402 ac_header_preproc=yes
20403 else
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20406
20407 ac_header_preproc=no
20408 fi
20409
20410 rm -f conftest.err conftest.$ac_ext
20411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20412 echo "${ECHO_T}$ac_header_preproc" >&6; }
20413
20414 # So? What about this header?
20415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20416 yes:no: )
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20421 ac_header_preproc=yes
20422 ;;
20423 no:yes:* )
20424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20436
20437 ;;
20438 esac
20439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 else
20444 eval "$as_ac_Header=\$ac_header_preproc"
20445 fi
20446 ac_res=`eval echo '${'$as_ac_Header'}'`
20447 { echo "$as_me:$LINENO: result: $ac_res" >&5
20448 echo "${ECHO_T}$ac_res" >&6; }
20449
20450 fi
20451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20452 cat >>confdefs.h <<_ACEOF
20453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20454 _ACEOF
20455
20456 fi
20457
20458 done
20459
20460 else
20461
20462 for ac_header in des.h
20463 do
20464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 fi
20471 ac_res=`eval echo '${'$as_ac_Header'}'`
20472 { echo "$as_me:$LINENO: result: $ac_res" >&5
20473 echo "${ECHO_T}$ac_res" >&6; }
20474 else
20475 # Is the header compilable?
20476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20478 cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h. */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h. */
20484 $ac_includes_default
20485 #include <$ac_header>
20486 _ACEOF
20487 rm -f conftest.$ac_objext
20488 if { (ac_try="$ac_compile"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_compile") 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest.$ac_objext; then
20504 ac_header_compiler=yes
20505 else
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20508
20509 ac_header_compiler=no
20510 fi
20511
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20514 echo "${ECHO_T}$ac_header_compiler" >&6; }
20515
20516 # Is the header present?
20517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20519 cat >conftest.$ac_ext <<_ACEOF
20520 /* confdefs.h. */
20521 _ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h. */
20525 #include <$ac_header>
20526 _ACEOF
20527 if { (ac_try="$ac_cpp conftest.$ac_ext"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20531 esac
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20534 ac_status=$?
20535 grep -v '^ *+' conftest.er1 >conftest.err
20536 rm -f conftest.er1
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } >/dev/null && {
20540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20542 }; then
20543 ac_header_preproc=yes
20544 else
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 ac_header_preproc=no
20549 fi
20550
20551 rm -f conftest.err conftest.$ac_ext
20552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20553 echo "${ECHO_T}$ac_header_preproc" >&6; }
20554
20555 # So? What about this header?
20556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20557 yes:no: )
20558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20562 ac_header_preproc=yes
20563 ;;
20564 no:yes:* )
20565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20577
20578 ;;
20579 esac
20580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 else
20585 eval "$as_ac_Header=\$ac_header_preproc"
20586 fi
20587 ac_res=`eval echo '${'$as_ac_Header'}'`
20588 { echo "$as_me:$LINENO: result: $ac_res" >&5
20589 echo "${ECHO_T}$ac_res" >&6; }
20590
20591 fi
20592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20593 cat >>confdefs.h <<_ACEOF
20594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20595 _ACEOF
20596
20597 else
20598
20599 for ac_header in kerberosIV/des.h
20600 do
20601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 fi
20608 ac_res=`eval echo '${'$as_ac_Header'}'`
20609 { echo "$as_me:$LINENO: result: $ac_res" >&5
20610 echo "${ECHO_T}$ac_res" >&6; }
20611 else
20612 # Is the header compilable?
20613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h. */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 $ac_includes_default
20622 #include <$ac_header>
20623 _ACEOF
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_compile") 2>conftest.er1
20632 ac_status=$?
20633 grep -v '^ *+' conftest.er1 >conftest.err
20634 rm -f conftest.er1
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } && {
20638 test -z "$ac_c_werror_flag" ||
20639 test ! -s conftest.err
20640 } && test -s conftest.$ac_objext; then
20641 ac_header_compiler=yes
20642 else
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646 ac_header_compiler=no
20647 fi
20648
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20651 echo "${ECHO_T}$ac_header_compiler" >&6; }
20652
20653 # Is the header present?
20654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20656 cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h. */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 #include <$ac_header>
20663 _ACEOF
20664 if { (ac_try="$ac_cpp conftest.$ac_ext"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20671 ac_status=$?
20672 grep -v '^ *+' conftest.er1 >conftest.err
20673 rm -f conftest.er1
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } >/dev/null && {
20677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20679 }; then
20680 ac_header_preproc=yes
20681 else
20682 echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20684
20685 ac_header_preproc=no
20686 fi
20687
20688 rm -f conftest.err conftest.$ac_ext
20689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20690 echo "${ECHO_T}$ac_header_preproc" >&6; }
20691
20692 # So? What about this header?
20693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20694 yes:no: )
20695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20699 ac_header_preproc=yes
20700 ;;
20701 no:yes:* )
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20714
20715 ;;
20716 esac
20717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 else
20722 eval "$as_ac_Header=\$ac_header_preproc"
20723 fi
20724 ac_res=`eval echo '${'$as_ac_Header'}'`
20725 { echo "$as_me:$LINENO: result: $ac_res" >&5
20726 echo "${ECHO_T}$ac_res" >&6; }
20727
20728 fi
20729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20730 cat >>confdefs.h <<_ACEOF
20731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20732 _ACEOF
20733
20734 else
20735
20736 for ac_header in kerberos/des.h
20737 do
20738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 fi
20745 ac_res=`eval echo '${'$as_ac_Header'}'`
20746 { echo "$as_me:$LINENO: result: $ac_res" >&5
20747 echo "${ECHO_T}$ac_res" >&6; }
20748 else
20749 # Is the header compilable?
20750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h. */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758 $ac_includes_default
20759 #include <$ac_header>
20760 _ACEOF
20761 rm -f conftest.$ac_objext
20762 if { (ac_try="$ac_compile"
20763 case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20766 esac
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_compile") 2>conftest.er1
20769 ac_status=$?
20770 grep -v '^ *+' conftest.er1 >conftest.err
20771 rm -f conftest.er1
20772 cat conftest.err >&5
20773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } && {
20775 test -z "$ac_c_werror_flag" ||
20776 test ! -s conftest.err
20777 } && test -s conftest.$ac_objext; then
20778 ac_header_compiler=yes
20779 else
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783 ac_header_compiler=no
20784 fi
20785
20786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20788 echo "${ECHO_T}$ac_header_compiler" >&6; }
20789
20790 # Is the header present?
20791 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20793 cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h. */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 #include <$ac_header>
20800 _ACEOF
20801 if { (ac_try="$ac_cpp conftest.$ac_ext"
20802 case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20805 esac
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20808 ac_status=$?
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } >/dev/null && {
20814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20815 test ! -s conftest.err
20816 }; then
20817 ac_header_preproc=yes
20818 else
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20821
20822 ac_header_preproc=no
20823 fi
20824
20825 rm -f conftest.err conftest.$ac_ext
20826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20827 echo "${ECHO_T}$ac_header_preproc" >&6; }
20828
20829 # So? What about this header?
20830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20831 yes:no: )
20832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20836 ac_header_preproc=yes
20837 ;;
20838 no:yes:* )
20839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20851
20852 ;;
20853 esac
20854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20858 else
20859 eval "$as_ac_Header=\$ac_header_preproc"
20860 fi
20861 ac_res=`eval echo '${'$as_ac_Header'}'`
20862 { echo "$as_me:$LINENO: result: $ac_res" >&5
20863 echo "${ECHO_T}$ac_res" >&6; }
20864
20865 fi
20866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20867 cat >>confdefs.h <<_ACEOF
20868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20869 _ACEOF
20870
20871 fi
20872
20873 done
20874
20875 fi
20876
20877 done
20878
20879 fi
20880
20881 done
20882
20883
20884 for ac_header in krb.h
20885 do
20886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 fi
20893 ac_res=`eval echo '${'$as_ac_Header'}'`
20894 { echo "$as_me:$LINENO: result: $ac_res" >&5
20895 echo "${ECHO_T}$ac_res" >&6; }
20896 else
20897 # Is the header compilable?
20898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20900 cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h. */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 $ac_includes_default
20907 #include <$ac_header>
20908 _ACEOF
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20914 esac
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest.$ac_objext; then
20926 ac_header_compiler=yes
20927 else
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20930
20931 ac_header_compiler=no
20932 fi
20933
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20936 echo "${ECHO_T}$ac_header_compiler" >&6; }
20937
20938 # Is the header present?
20939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20941 cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h. */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20947 #include <$ac_header>
20948 _ACEOF
20949 if { (ac_try="$ac_cpp conftest.$ac_ext"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20953 esac
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20956 ac_status=$?
20957 grep -v '^ *+' conftest.er1 >conftest.err
20958 rm -f conftest.er1
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } >/dev/null && {
20962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20963 test ! -s conftest.err
20964 }; then
20965 ac_header_preproc=yes
20966 else
20967 echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20969
20970 ac_header_preproc=no
20971 fi
20972
20973 rm -f conftest.err conftest.$ac_ext
20974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20975 echo "${ECHO_T}$ac_header_preproc" >&6; }
20976
20977 # So? What about this header?
20978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20979 yes:no: )
20980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20984 ac_header_preproc=yes
20985 ;;
20986 no:yes:* )
20987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20999
21000 ;;
21001 esac
21002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21005 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 else
21007 eval "$as_ac_Header=\$ac_header_preproc"
21008 fi
21009 ac_res=`eval echo '${'$as_ac_Header'}'`
21010 { echo "$as_me:$LINENO: result: $ac_res" >&5
21011 echo "${ECHO_T}$ac_res" >&6; }
21012
21013 fi
21014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21015 cat >>confdefs.h <<_ACEOF
21016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21017 _ACEOF
21018
21019 else
21020
21021 for ac_header in kerberosIV/krb.h
21022 do
21023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21029 fi
21030 ac_res=`eval echo '${'$as_ac_Header'}'`
21031 { echo "$as_me:$LINENO: result: $ac_res" >&5
21032 echo "${ECHO_T}$ac_res" >&6; }
21033 else
21034 # Is the header compilable?
21035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21037 cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h. */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 $ac_includes_default
21044 #include <$ac_header>
21045 _ACEOF
21046 rm -f conftest.$ac_objext
21047 if { (ac_try="$ac_compile"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_compile") 2>conftest.er1
21054 ac_status=$?
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest.$ac_objext; then
21063 ac_header_compiler=yes
21064 else
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21067
21068 ac_header_compiler=no
21069 fi
21070
21071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21073 echo "${ECHO_T}$ac_header_compiler" >&6; }
21074
21075 # Is the header present?
21076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h. */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084 #include <$ac_header>
21085 _ACEOF
21086 if { (ac_try="$ac_cpp conftest.$ac_ext"
21087 case "(($ac_try" in
21088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089 *) ac_try_echo=$ac_try;;
21090 esac
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21093 ac_status=$?
21094 grep -v '^ *+' conftest.er1 >conftest.err
21095 rm -f conftest.er1
21096 cat conftest.err >&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } >/dev/null && {
21099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21100 test ! -s conftest.err
21101 }; then
21102 ac_header_preproc=yes
21103 else
21104 echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21106
21107 ac_header_preproc=no
21108 fi
21109
21110 rm -f conftest.err conftest.$ac_ext
21111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21112 echo "${ECHO_T}$ac_header_preproc" >&6; }
21113
21114 # So? What about this header?
21115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21116 yes:no: )
21117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21121 ac_header_preproc=yes
21122 ;;
21123 no:yes:* )
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21136
21137 ;;
21138 esac
21139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 else
21144 eval "$as_ac_Header=\$ac_header_preproc"
21145 fi
21146 ac_res=`eval echo '${'$as_ac_Header'}'`
21147 { echo "$as_me:$LINENO: result: $ac_res" >&5
21148 echo "${ECHO_T}$ac_res" >&6; }
21149
21150 fi
21151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21152 cat >>confdefs.h <<_ACEOF
21153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21154 _ACEOF
21155
21156 else
21157
21158 for ac_header in kerberos/krb.h
21159 do
21160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 fi
21167 ac_res=`eval echo '${'$as_ac_Header'}'`
21168 { echo "$as_me:$LINENO: result: $ac_res" >&5
21169 echo "${ECHO_T}$ac_res" >&6; }
21170 else
21171 # Is the header compilable?
21172 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21174 cat >conftest.$ac_ext <<_ACEOF
21175 /* confdefs.h. */
21176 _ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180 $ac_includes_default
21181 #include <$ac_header>
21182 _ACEOF
21183 rm -f conftest.$ac_objext
21184 if { (ac_try="$ac_compile"
21185 case "(($ac_try" in
21186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187 *) ac_try_echo=$ac_try;;
21188 esac
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_compile") 2>conftest.er1
21191 ac_status=$?
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } && {
21197 test -z "$ac_c_werror_flag" ||
21198 test ! -s conftest.err
21199 } && test -s conftest.$ac_objext; then
21200 ac_header_compiler=yes
21201 else
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21204
21205 ac_header_compiler=no
21206 fi
21207
21208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21210 echo "${ECHO_T}$ac_header_compiler" >&6; }
21211
21212 # Is the header present?
21213 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21215 cat >conftest.$ac_ext <<_ACEOF
21216 /* confdefs.h. */
21217 _ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21221 #include <$ac_header>
21222 _ACEOF
21223 if { (ac_try="$ac_cpp conftest.$ac_ext"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21227 esac
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } >/dev/null && {
21236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 }; then
21239 ac_header_preproc=yes
21240 else
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21243
21244 ac_header_preproc=no
21245 fi
21246
21247 rm -f conftest.err conftest.$ac_ext
21248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21249 echo "${ECHO_T}$ac_header_preproc" >&6; }
21250
21251 # So? What about this header?
21252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21253 yes:no: )
21254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21258 ac_header_preproc=yes
21259 ;;
21260 no:yes:* )
21261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21273
21274 ;;
21275 esac
21276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 else
21281 eval "$as_ac_Header=\$ac_header_preproc"
21282 fi
21283 ac_res=`eval echo '${'$as_ac_Header'}'`
21284 { echo "$as_me:$LINENO: result: $ac_res" >&5
21285 echo "${ECHO_T}$ac_res" >&6; }
21286
21287 fi
21288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21289 cat >>confdefs.h <<_ACEOF
21290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21291 _ACEOF
21292
21293 fi
21294
21295 done
21296
21297 fi
21298
21299 done
21300
21301 fi
21302
21303 done
21304
21305 fi
21306
21307 for ac_header in com_err.h
21308 do
21309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21315 fi
21316 ac_res=`eval echo '${'$as_ac_Header'}'`
21317 { echo "$as_me:$LINENO: result: $ac_res" >&5
21318 echo "${ECHO_T}$ac_res" >&6; }
21319 else
21320 # Is the header compilable?
21321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21323 cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h. */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21329 $ac_includes_default
21330 #include <$ac_header>
21331 _ACEOF
21332 rm -f conftest.$ac_objext
21333 if { (ac_try="$ac_compile"
21334 case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21337 esac
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339 (eval "$ac_compile") 2>conftest.er1
21340 ac_status=$?
21341 grep -v '^ *+' conftest.er1 >conftest.err
21342 rm -f conftest.er1
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } && {
21346 test -z "$ac_c_werror_flag" ||
21347 test ! -s conftest.err
21348 } && test -s conftest.$ac_objext; then
21349 ac_header_compiler=yes
21350 else
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 ac_header_compiler=no
21355 fi
21356
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21359 echo "${ECHO_T}$ac_header_compiler" >&6; }
21360
21361 # Is the header present?
21362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21364 cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h. */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 #include <$ac_header>
21371 _ACEOF
21372 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21386 test ! -s conftest.err
21387 }; then
21388 ac_header_preproc=yes
21389 else
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393 ac_header_preproc=no
21394 fi
21395
21396 rm -f conftest.err conftest.$ac_ext
21397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21398 echo "${ECHO_T}$ac_header_preproc" >&6; }
21399
21400 # So? What about this header?
21401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21402 yes:no: )
21403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21407 ac_header_preproc=yes
21408 ;;
21409 no:yes:* )
21410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21422
21423 ;;
21424 esac
21425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21428 echo $ECHO_N "(cached) $ECHO_C" >&6
21429 else
21430 eval "$as_ac_Header=\$ac_header_preproc"
21431 fi
21432 ac_res=`eval echo '${'$as_ac_Header'}'`
21433 { echo "$as_me:$LINENO: result: $ac_res" >&5
21434 echo "${ECHO_T}$ac_res" >&6; }
21435
21436 fi
21437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21438 cat >>confdefs.h <<_ACEOF
21439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21440 _ACEOF
21441
21442 fi
21443
21444 done
21445
21446 fi
21447
21448 # Solaris requires -lintl if you want strerror (which calls dgettext)
21449 # to return localized messages.
21450
21451 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21452 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21453 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 else
21456 ac_check_lib_save_LIBS=$LIBS
21457 LIBS="-lintl $LIBS"
21458 cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h. */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21464
21465 /* Override any GCC internal prototype to avoid an error.
21466 Use char because int might match the return type of a GCC
21467 builtin and then its argument prototype would still apply. */
21468 #ifdef __cplusplus
21469 extern "C"
21470 #endif
21471 char dgettext ();
21472 int
21473 main ()
21474 {
21475 return dgettext ();
21476 ;
21477 return 0;
21478 }
21479 _ACEOF
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (ac_try="$ac_link"
21482 case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21485 esac
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_link") 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && {
21494 test -z "$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21496 } && test -s conftest$ac_exeext &&
21497 $as_test_x conftest$ac_exeext; then
21498 ac_cv_lib_intl_dgettext=yes
21499 else
21500 echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21502
21503 ac_cv_lib_intl_dgettext=no
21504 fi
21505
21506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21507 conftest$ac_exeext conftest.$ac_ext
21508 LIBS=$ac_check_lib_save_LIBS
21509 fi
21510 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21511 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21512 if test $ac_cv_lib_intl_dgettext = yes; then
21513 cat >>confdefs.h <<_ACEOF
21514 #define HAVE_LIBINTL 1
21515 _ACEOF
21516
21517 LIBS="-lintl $LIBS"
21518
21519 fi
21520
21521
21522 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21523 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21524 if test "${emacs_cv_localtime_cache+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 else
21527 if test x$ac_cv_func_tzset = xyes; then
21528 if test "$cross_compiling" = yes; then
21529 # If we have tzset, assume the worst when cross-compiling.
21530 emacs_cv_localtime_cache=yes
21531 else
21532 cat >conftest.$ac_ext <<_ACEOF
21533 /* confdefs.h. */
21534 _ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h. */
21538 #include <time.h>
21539 extern char **environ;
21540 unset_TZ ()
21541 {
21542 char **from, **to;
21543 for (to = from = environ; (*to = *from); from++)
21544 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21545 to++;
21546 }
21547 char TZ_GMT0[] = "TZ=GMT0";
21548 char TZ_PST8[] = "TZ=PST8";
21549 main()
21550 {
21551 time_t now = time ((time_t *) 0);
21552 int hour_GMT0, hour_unset;
21553 if (putenv (TZ_GMT0) != 0)
21554 exit (1);
21555 hour_GMT0 = localtime (&now)->tm_hour;
21556 unset_TZ ();
21557 hour_unset = localtime (&now)->tm_hour;
21558 if (putenv (TZ_PST8) != 0)
21559 exit (1);
21560 if (localtime (&now)->tm_hour == hour_GMT0)
21561 exit (1);
21562 unset_TZ ();
21563 if (localtime (&now)->tm_hour != hour_unset)
21564 exit (1);
21565 exit (0);
21566 }
21567 _ACEOF
21568 rm -f conftest$ac_exeext
21569 if { (ac_try="$ac_link"
21570 case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21573 esac
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_link") 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21579 { (case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_try") 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
21588 emacs_cv_localtime_cache=no
21589 else
21590 echo "$as_me: program exited with status $ac_status" >&5
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21593
21594 ( exit $ac_status )
21595 emacs_cv_localtime_cache=yes
21596 fi
21597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21598 fi
21599
21600
21601 else
21602 # If we lack tzset, report that localtime does not cache TZ,
21603 # since we can't invalidate the cache if we don't have tzset.
21604 emacs_cv_localtime_cache=no
21605 fi
21606 fi
21607 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21608 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21609 if test $emacs_cv_localtime_cache = yes; then
21610
21611 cat >>confdefs.h <<\_ACEOF
21612 #define LOCALTIME_CACHE 1
21613 _ACEOF
21614
21615 fi
21616
21617 if test "x$HAVE_TIMEVAL" = xyes; then
21618
21619 for ac_func in gettimeofday
21620 do
21621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21622 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21626 else
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h. */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21635 #define $ac_func innocuous_$ac_func
21636
21637 /* System header to define __stub macros and hopefully few prototypes,
21638 which can conflict with char $ac_func (); below.
21639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21640 <limits.h> exists even on freestanding compilers. */
21641
21642 #ifdef __STDC__
21643 # include <limits.h>
21644 #else
21645 # include <assert.h>
21646 #endif
21647
21648 #undef $ac_func
21649
21650 /* Override any GCC internal prototype to avoid an error.
21651 Use char because int might match the return type of a GCC
21652 builtin and then its argument prototype would still apply. */
21653 #ifdef __cplusplus
21654 extern "C"
21655 #endif
21656 char $ac_func ();
21657 /* The GNU C library defines this for functions which it implements
21658 to always fail with ENOSYS. Some functions are actually named
21659 something starting with __ and the normal name is an alias. */
21660 #if defined __stub_$ac_func || defined __stub___$ac_func
21661 choke me
21662 #endif
21663
21664 int
21665 main ()
21666 {
21667 return $ac_func ();
21668 ;
21669 return 0;
21670 }
21671 _ACEOF
21672 rm -f conftest.$ac_objext conftest$ac_exeext
21673 if { (ac_try="$ac_link"
21674 case "(($ac_try" in
21675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679 (eval "$ac_link") 2>conftest.er1
21680 ac_status=$?
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && {
21686 test -z "$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 } && test -s conftest$ac_exeext &&
21689 $as_test_x conftest$ac_exeext; then
21690 eval "$as_ac_var=yes"
21691 else
21692 echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21694
21695 eval "$as_ac_var=no"
21696 fi
21697
21698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21699 conftest$ac_exeext conftest.$ac_ext
21700 fi
21701 ac_res=`eval echo '${'$as_ac_var'}'`
21702 { echo "$as_me:$LINENO: result: $ac_res" >&5
21703 echo "${ECHO_T}$ac_res" >&6; }
21704 if test `eval echo '${'$as_ac_var'}'` = yes; then
21705 cat >>confdefs.h <<_ACEOF
21706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21707 _ACEOF
21708
21709 fi
21710 done
21711
21712 if test $ac_cv_func_gettimeofday = yes; then
21713 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21714 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21715 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 else
21718 cat >conftest.$ac_ext <<_ACEOF
21719 /* confdefs.h. */
21720 _ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h. */
21724
21725 #ifdef TIME_WITH_SYS_TIME
21726 #include <sys/time.h>
21727 #include <time.h>
21728 #else
21729 #ifdef HAVE_SYS_TIME_H
21730 #include <sys/time.h>
21731 #else
21732 #include <time.h>
21733 #endif
21734 #endif
21735 int
21736 main ()
21737 {
21738 struct timeval time;
21739 gettimeofday (&time, 0);
21740 ;
21741 return 0;
21742 }
21743 _ACEOF
21744 rm -f conftest.$ac_objext
21745 if { (ac_try="$ac_compile"
21746 case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21749 esac
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_compile") 2>conftest.er1
21752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } && {
21758 test -z "$ac_c_werror_flag" ||
21759 test ! -s conftest.err
21760 } && test -s conftest.$ac_objext; then
21761 emacs_cv_gettimeofday_two_arguments=yes
21762 else
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21765
21766 emacs_cv_gettimeofday_two_arguments=no
21767 fi
21768
21769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 fi
21771 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21772 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21773 if test $emacs_cv_gettimeofday_two_arguments = no; then
21774
21775 cat >>confdefs.h <<\_ACEOF
21776 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21777 _ACEOF
21778
21779 fi
21780 fi
21781 fi
21782
21783 ok_so_far=yes
21784 { echo "$as_me:$LINENO: checking for socket" >&5
21785 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21786 if test "${ac_cv_func_socket+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789 cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h. */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21797 #define socket innocuous_socket
21798
21799 /* System header to define __stub macros and hopefully few prototypes,
21800 which can conflict with char socket (); below.
21801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21802 <limits.h> exists even on freestanding compilers. */
21803
21804 #ifdef __STDC__
21805 # include <limits.h>
21806 #else
21807 # include <assert.h>
21808 #endif
21809
21810 #undef socket
21811
21812 /* Override any GCC internal prototype to avoid an error.
21813 Use char because int might match the return type of a GCC
21814 builtin and then its argument prototype would still apply. */
21815 #ifdef __cplusplus
21816 extern "C"
21817 #endif
21818 char socket ();
21819 /* The GNU C library defines this for functions which it implements
21820 to always fail with ENOSYS. Some functions are actually named
21821 something starting with __ and the normal name is an alias. */
21822 #if defined __stub_socket || defined __stub___socket
21823 choke me
21824 #endif
21825
21826 int
21827 main ()
21828 {
21829 return socket ();
21830 ;
21831 return 0;
21832 }
21833 _ACEOF
21834 rm -f conftest.$ac_objext conftest$ac_exeext
21835 if { (ac_try="$ac_link"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21839 esac
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_link") 2>conftest.er1
21842 ac_status=$?
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest$ac_exeext &&
21851 $as_test_x conftest$ac_exeext; then
21852 ac_cv_func_socket=yes
21853 else
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21856
21857 ac_cv_func_socket=no
21858 fi
21859
21860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21861 conftest$ac_exeext conftest.$ac_ext
21862 fi
21863 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21864 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21865 if test $ac_cv_func_socket = yes; then
21866 :
21867 else
21868 ok_so_far=no
21869 fi
21870
21871 if test $ok_so_far = yes; then
21872 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21873 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21874 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21875 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21876 echo $ECHO_N "(cached) $ECHO_C" >&6
21877 fi
21878 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21879 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21880 else
21881 # Is the header compilable?
21882 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21883 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21884 cat >conftest.$ac_ext <<_ACEOF
21885 /* confdefs.h. */
21886 _ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21890 $ac_includes_default
21891 #include <netinet/in.h>
21892 _ACEOF
21893 rm -f conftest.$ac_objext
21894 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21901 ac_status=$?
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } && {
21907 test -z "$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 } && test -s conftest.$ac_objext; then
21910 ac_header_compiler=yes
21911 else
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21914
21915 ac_header_compiler=no
21916 fi
21917
21918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21920 echo "${ECHO_T}$ac_header_compiler" >&6; }
21921
21922 # Is the header present?
21923 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21924 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21925 cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h. */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 #include <netinet/in.h>
21932 _ACEOF
21933 if { (ac_try="$ac_cpp conftest.$ac_ext"
21934 case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21937 esac
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21940 ac_status=$?
21941 grep -v '^ *+' conftest.er1 >conftest.err
21942 rm -f conftest.er1
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } >/dev/null && {
21946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21947 test ! -s conftest.err
21948 }; then
21949 ac_header_preproc=yes
21950 else
21951 echo "$as_me: failed program was:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21953
21954 ac_header_preproc=no
21955 fi
21956
21957 rm -f conftest.err conftest.$ac_ext
21958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21959 echo "${ECHO_T}$ac_header_preproc" >&6; }
21960
21961 # So? What about this header?
21962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21963 yes:no: )
21964 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21965 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21967 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21968 ac_header_preproc=yes
21969 ;;
21970 no:yes:* )
21971 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21972 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21973 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21974 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21975 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21976 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21977 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21978 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21979 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21980 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21982 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21983
21984 ;;
21985 esac
21986 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21987 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21988 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 else
21991 ac_cv_header_netinet_in_h=$ac_header_preproc
21992 fi
21993 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21994 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21995
21996 fi
21997 if test $ac_cv_header_netinet_in_h = yes; then
21998 :
21999 else
22000 ok_so_far=no
22001 fi
22002
22003
22004 fi
22005 if test $ok_so_far = yes; then
22006 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22007 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22008 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22009 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22010 echo $ECHO_N "(cached) $ECHO_C" >&6
22011 fi
22012 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22013 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22014 else
22015 # Is the header compilable?
22016 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22017 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22018 cat >conftest.$ac_ext <<_ACEOF
22019 /* confdefs.h. */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024 $ac_includes_default
22025 #include <arpa/inet.h>
22026 _ACEOF
22027 rm -f conftest.$ac_objext
22028 if { (ac_try="$ac_compile"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22032 esac
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_compile") 2>conftest.er1
22035 ac_status=$?
22036 grep -v '^ *+' conftest.er1 >conftest.err
22037 rm -f conftest.er1
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } && {
22041 test -z "$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22043 } && test -s conftest.$ac_objext; then
22044 ac_header_compiler=yes
22045 else
22046 echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22048
22049 ac_header_compiler=no
22050 fi
22051
22052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22054 echo "${ECHO_T}$ac_header_compiler" >&6; }
22055
22056 # Is the header present?
22057 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22058 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h. */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 #include <arpa/inet.h>
22066 _ACEOF
22067 if { (ac_try="$ac_cpp conftest.$ac_ext"
22068 case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22071 esac
22072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22074 ac_status=$?
22075 grep -v '^ *+' conftest.er1 >conftest.err
22076 rm -f conftest.er1
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } >/dev/null && {
22080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22081 test ! -s conftest.err
22082 }; then
22083 ac_header_preproc=yes
22084 else
22085 echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22087
22088 ac_header_preproc=no
22089 fi
22090
22091 rm -f conftest.err conftest.$ac_ext
22092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22093 echo "${ECHO_T}$ac_header_preproc" >&6; }
22094
22095 # So? What about this header?
22096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22097 yes:no: )
22098 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22099 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22101 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22102 ac_header_preproc=yes
22103 ;;
22104 no:yes:* )
22105 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22106 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22107 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22108 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22109 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22110 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22111 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22112 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22113 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22114 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22115 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22116 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22117
22118 ;;
22119 esac
22120 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22121 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22122 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22123 echo $ECHO_N "(cached) $ECHO_C" >&6
22124 else
22125 ac_cv_header_arpa_inet_h=$ac_header_preproc
22126 fi
22127 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22128 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22129
22130 fi
22131 if test $ac_cv_header_arpa_inet_h = yes; then
22132 :
22133 else
22134 ok_so_far=no
22135 fi
22136
22137
22138 fi
22139 if test $ok_so_far = yes; then
22140
22141 cat >>confdefs.h <<\_ACEOF
22142 #define HAVE_INET_SOCKETS 1
22143 _ACEOF
22144
22145 fi
22146
22147
22148 for ac_header in sys/ioctl.h
22149 do
22150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22155 echo $ECHO_N "(cached) $ECHO_C" >&6
22156 fi
22157 ac_res=`eval echo '${'$as_ac_Header'}'`
22158 { echo "$as_me:$LINENO: result: $ac_res" >&5
22159 echo "${ECHO_T}$ac_res" >&6; }
22160 else
22161 # Is the header compilable?
22162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22164 cat >conftest.$ac_ext <<_ACEOF
22165 /* confdefs.h. */
22166 _ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h. */
22170 $ac_includes_default
22171 #include <$ac_header>
22172 _ACEOF
22173 rm -f conftest.$ac_objext
22174 if { (ac_try="$ac_compile"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_compile") 2>conftest.er1
22181 ac_status=$?
22182 grep -v '^ *+' conftest.er1 >conftest.err
22183 rm -f conftest.er1
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } && {
22187 test -z "$ac_c_werror_flag" ||
22188 test ! -s conftest.err
22189 } && test -s conftest.$ac_objext; then
22190 ac_header_compiler=yes
22191 else
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22194
22195 ac_header_compiler=no
22196 fi
22197
22198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22200 echo "${ECHO_T}$ac_header_compiler" >&6; }
22201
22202 # Is the header present?
22203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22205 cat >conftest.$ac_ext <<_ACEOF
22206 /* confdefs.h. */
22207 _ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22211 #include <$ac_header>
22212 _ACEOF
22213 if { (ac_try="$ac_cpp conftest.$ac_ext"
22214 case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22217 esac
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22220 ac_status=$?
22221 grep -v '^ *+' conftest.er1 >conftest.err
22222 rm -f conftest.er1
22223 cat conftest.err >&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } >/dev/null && {
22226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22227 test ! -s conftest.err
22228 }; then
22229 ac_header_preproc=yes
22230 else
22231 echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22233
22234 ac_header_preproc=no
22235 fi
22236
22237 rm -f conftest.err conftest.$ac_ext
22238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22239 echo "${ECHO_T}$ac_header_preproc" >&6; }
22240
22241 # So? What about this header?
22242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22243 yes:no: )
22244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22248 ac_header_preproc=yes
22249 ;;
22250 no:yes:* )
22251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22263
22264 ;;
22265 esac
22266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22269 echo $ECHO_N "(cached) $ECHO_C" >&6
22270 else
22271 eval "$as_ac_Header=\$ac_header_preproc"
22272 fi
22273 ac_res=`eval echo '${'$as_ac_Header'}'`
22274 { echo "$as_me:$LINENO: result: $ac_res" >&5
22275 echo "${ECHO_T}$ac_res" >&6; }
22276
22277 fi
22278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22279 cat >>confdefs.h <<_ACEOF
22280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22281 _ACEOF
22282
22283 fi
22284
22285 done
22286
22287
22288 if test -f /usr/lpp/X11/bin/smt.exp; then
22289
22290 cat >>confdefs.h <<\_ACEOF
22291 #define HAVE_AIX_SMT_EXP 1
22292 _ACEOF
22293
22294 fi
22295
22296 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22297 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22298 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22299 { echo "$as_me:$LINENO: result: yes" >&5
22300 echo "${ECHO_T}yes" >&6; }
22301
22302 cat >>confdefs.h <<\_ACEOF
22303 #define HAVE_DEV_PTMX 1
22304 _ACEOF
22305
22306 else
22307 { echo "$as_me:$LINENO: result: no" >&5
22308 echo "${ECHO_T}no" >&6; }
22309 fi
22310
22311 { echo "$as_me:$LINENO: checking for pid_t" >&5
22312 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22313 if test "${ac_cv_type_pid_t+set}" = set; then
22314 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 else
22316 cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h. */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22322 $ac_includes_default
22323 typedef pid_t ac__type_new_;
22324 int
22325 main ()
22326 {
22327 if ((ac__type_new_ *) 0)
22328 return 0;
22329 if (sizeof (ac__type_new_))
22330 return 0;
22331 ;
22332 return 0;
22333 }
22334 _ACEOF
22335 rm -f conftest.$ac_objext
22336 if { (ac_try="$ac_compile"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22340 esac
22341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_compile") 2>conftest.er1
22343 ac_status=$?
22344 grep -v '^ *+' conftest.er1 >conftest.err
22345 rm -f conftest.er1
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest.$ac_objext; then
22352 ac_cv_type_pid_t=yes
22353 else
22354 echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22356
22357 ac_cv_type_pid_t=no
22358 fi
22359
22360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 fi
22362 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22363 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22364 if test $ac_cv_type_pid_t = yes; then
22365 :
22366 else
22367
22368 cat >>confdefs.h <<_ACEOF
22369 #define pid_t int
22370 _ACEOF
22371
22372 fi
22373
22374
22375 for ac_header in vfork.h
22376 do
22377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22383 fi
22384 ac_res=`eval echo '${'$as_ac_Header'}'`
22385 { echo "$as_me:$LINENO: result: $ac_res" >&5
22386 echo "${ECHO_T}$ac_res" >&6; }
22387 else
22388 # Is the header compilable?
22389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22391 cat >conftest.$ac_ext <<_ACEOF
22392 /* confdefs.h. */
22393 _ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22397 $ac_includes_default
22398 #include <$ac_header>
22399 _ACEOF
22400 rm -f conftest.$ac_objext
22401 if { (ac_try="$ac_compile"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22405 esac
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_compile") 2>conftest.er1
22408 ac_status=$?
22409 grep -v '^ *+' conftest.er1 >conftest.err
22410 rm -f conftest.er1
22411 cat conftest.err >&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } && {
22414 test -z "$ac_c_werror_flag" ||
22415 test ! -s conftest.err
22416 } && test -s conftest.$ac_objext; then
22417 ac_header_compiler=yes
22418 else
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422 ac_header_compiler=no
22423 fi
22424
22425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22427 echo "${ECHO_T}$ac_header_compiler" >&6; }
22428
22429 # Is the header present?
22430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22432 cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h. */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h. */
22438 #include <$ac_header>
22439 _ACEOF
22440 if { (ac_try="$ac_cpp conftest.$ac_ext"
22441 case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22444 esac
22445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22447 ac_status=$?
22448 grep -v '^ *+' conftest.er1 >conftest.err
22449 rm -f conftest.er1
22450 cat conftest.err >&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); } >/dev/null && {
22453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22454 test ! -s conftest.err
22455 }; then
22456 ac_header_preproc=yes
22457 else
22458 echo "$as_me: failed program was:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22460
22461 ac_header_preproc=no
22462 fi
22463
22464 rm -f conftest.err conftest.$ac_ext
22465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22466 echo "${ECHO_T}$ac_header_preproc" >&6; }
22467
22468 # So? What about this header?
22469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22470 yes:no: )
22471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22475 ac_header_preproc=yes
22476 ;;
22477 no:yes:* )
22478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22490
22491 ;;
22492 esac
22493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22497 else
22498 eval "$as_ac_Header=\$ac_header_preproc"
22499 fi
22500 ac_res=`eval echo '${'$as_ac_Header'}'`
22501 { echo "$as_me:$LINENO: result: $ac_res" >&5
22502 echo "${ECHO_T}$ac_res" >&6; }
22503
22504 fi
22505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22506 cat >>confdefs.h <<_ACEOF
22507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22508 _ACEOF
22509
22510 fi
22511
22512 done
22513
22514
22515
22516 for ac_func in fork vfork
22517 do
22518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22522 echo $ECHO_N "(cached) $ECHO_C" >&6
22523 else
22524 cat >conftest.$ac_ext <<_ACEOF
22525 /* confdefs.h. */
22526 _ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22532 #define $ac_func innocuous_$ac_func
22533
22534 /* System header to define __stub macros and hopefully few prototypes,
22535 which can conflict with char $ac_func (); below.
22536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22537 <limits.h> exists even on freestanding compilers. */
22538
22539 #ifdef __STDC__
22540 # include <limits.h>
22541 #else
22542 # include <assert.h>
22543 #endif
22544
22545 #undef $ac_func
22546
22547 /* Override any GCC internal prototype to avoid an error.
22548 Use char because int might match the return type of a GCC
22549 builtin and then its argument prototype would still apply. */
22550 #ifdef __cplusplus
22551 extern "C"
22552 #endif
22553 char $ac_func ();
22554 /* The GNU C library defines this for functions which it implements
22555 to always fail with ENOSYS. Some functions are actually named
22556 something starting with __ and the normal name is an alias. */
22557 #if defined __stub_$ac_func || defined __stub___$ac_func
22558 choke me
22559 #endif
22560
22561 int
22562 main ()
22563 {
22564 return $ac_func ();
22565 ;
22566 return 0;
22567 }
22568 _ACEOF
22569 rm -f conftest.$ac_objext conftest$ac_exeext
22570 if { (ac_try="$ac_link"
22571 case "(($ac_try" in
22572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573 *) ac_try_echo=$ac_try;;
22574 esac
22575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22576 (eval "$ac_link") 2>conftest.er1
22577 ac_status=$?
22578 grep -v '^ *+' conftest.er1 >conftest.err
22579 rm -f conftest.er1
22580 cat conftest.err >&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); } && {
22583 test -z "$ac_c_werror_flag" ||
22584 test ! -s conftest.err
22585 } && test -s conftest$ac_exeext &&
22586 $as_test_x conftest$ac_exeext; then
22587 eval "$as_ac_var=yes"
22588 else
22589 echo "$as_me: failed program was:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22591
22592 eval "$as_ac_var=no"
22593 fi
22594
22595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22596 conftest$ac_exeext conftest.$ac_ext
22597 fi
22598 ac_res=`eval echo '${'$as_ac_var'}'`
22599 { echo "$as_me:$LINENO: result: $ac_res" >&5
22600 echo "${ECHO_T}$ac_res" >&6; }
22601 if test `eval echo '${'$as_ac_var'}'` = yes; then
22602 cat >>confdefs.h <<_ACEOF
22603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22604 _ACEOF
22605
22606 fi
22607 done
22608
22609 if test "x$ac_cv_func_fork" = xyes; then
22610 { echo "$as_me:$LINENO: checking for working fork" >&5
22611 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22612 if test "${ac_cv_func_fork_works+set}" = set; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
22614 else
22615 if test "$cross_compiling" = yes; then
22616 ac_cv_func_fork_works=cross
22617 else
22618 cat >conftest.$ac_ext <<_ACEOF
22619 /* confdefs.h. */
22620 _ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624 $ac_includes_default
22625 int
22626 main ()
22627 {
22628
22629 /* By Ruediger Kuhlmann. */
22630 return fork () < 0;
22631
22632 ;
22633 return 0;
22634 }
22635 _ACEOF
22636 rm -f conftest$ac_exeext
22637 if { (ac_try="$ac_link"
22638 case "(($ac_try" in
22639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640 *) ac_try_echo=$ac_try;;
22641 esac
22642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22643 (eval "$ac_link") 2>&5
22644 ac_status=$?
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22647 { (case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22650 esac
22651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22652 (eval "$ac_try") 2>&5
22653 ac_status=$?
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); }; }; then
22656 ac_cv_func_fork_works=yes
22657 else
22658 echo "$as_me: program exited with status $ac_status" >&5
22659 echo "$as_me: failed program was:" >&5
22660 sed 's/^/| /' conftest.$ac_ext >&5
22661
22662 ( exit $ac_status )
22663 ac_cv_func_fork_works=no
22664 fi
22665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22666 fi
22667
22668
22669 fi
22670 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22671 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22672
22673 else
22674 ac_cv_func_fork_works=$ac_cv_func_fork
22675 fi
22676 if test "x$ac_cv_func_fork_works" = xcross; then
22677 case $host in
22678 *-*-amigaos* | *-*-msdosdjgpp*)
22679 # Override, as these systems have only a dummy fork() stub
22680 ac_cv_func_fork_works=no
22681 ;;
22682 *)
22683 ac_cv_func_fork_works=yes
22684 ;;
22685 esac
22686 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22687 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22688 fi
22689 ac_cv_func_vfork_works=$ac_cv_func_vfork
22690 if test "x$ac_cv_func_vfork" = xyes; then
22691 { echo "$as_me:$LINENO: checking for working vfork" >&5
22692 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22693 if test "${ac_cv_func_vfork_works+set}" = set; then
22694 echo $ECHO_N "(cached) $ECHO_C" >&6
22695 else
22696 if test "$cross_compiling" = yes; then
22697 ac_cv_func_vfork_works=cross
22698 else
22699 cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h. */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22705 /* Thanks to Paul Eggert for this test. */
22706 $ac_includes_default
22707 #include <sys/wait.h>
22708 #ifdef HAVE_VFORK_H
22709 # include <vfork.h>
22710 #endif
22711 /* On some sparc systems, changes by the child to local and incoming
22712 argument registers are propagated back to the parent. The compiler
22713 is told about this with #include <vfork.h>, but some compilers
22714 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22715 static variable whose address is put into a register that is
22716 clobbered by the vfork. */
22717 static void
22718 #ifdef __cplusplus
22719 sparc_address_test (int arg)
22720 # else
22721 sparc_address_test (arg) int arg;
22722 #endif
22723 {
22724 static pid_t child;
22725 if (!child) {
22726 child = vfork ();
22727 if (child < 0) {
22728 perror ("vfork");
22729 _exit(2);
22730 }
22731 if (!child) {
22732 arg = getpid();
22733 write(-1, "", 0);
22734 _exit (arg);
22735 }
22736 }
22737 }
22738
22739 int
22740 main ()
22741 {
22742 pid_t parent = getpid ();
22743 pid_t child;
22744
22745 sparc_address_test (0);
22746
22747 child = vfork ();
22748
22749 if (child == 0) {
22750 /* Here is another test for sparc vfork register problems. This
22751 test uses lots of local variables, at least as many local
22752 variables as main has allocated so far including compiler
22753 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22754 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22755 reuse the register of parent for one of the local variables,
22756 since it will think that parent can't possibly be used any more
22757 in this routine. Assigning to the local variable will thus
22758 munge parent in the parent process. */
22759 pid_t
22760 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22761 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22762 /* Convince the compiler that p..p7 are live; otherwise, it might
22763 use the same hardware register for all 8 local variables. */
22764 if (p != p1 || p != p2 || p != p3 || p != p4
22765 || p != p5 || p != p6 || p != p7)
22766 _exit(1);
22767
22768 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22769 from child file descriptors. If the child closes a descriptor
22770 before it execs or exits, this munges the parent's descriptor
22771 as well. Test for this by closing stdout in the child. */
22772 _exit(close(fileno(stdout)) != 0);
22773 } else {
22774 int status;
22775 struct stat st;
22776
22777 while (wait(&status) != child)
22778 ;
22779 return (
22780 /* Was there some problem with vforking? */
22781 child < 0
22782
22783 /* Did the child fail? (This shouldn't happen.) */
22784 || status
22785
22786 /* Did the vfork/compiler bug occur? */
22787 || parent != getpid()
22788
22789 /* Did the file descriptor bug occur? */
22790 || fstat(fileno(stdout), &st) != 0
22791 );
22792 }
22793 }
22794 _ACEOF
22795 rm -f conftest$ac_exeext
22796 if { (ac_try="$ac_link"
22797 case "(($ac_try" in
22798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22799 *) ac_try_echo=$ac_try;;
22800 esac
22801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22802 (eval "$ac_link") 2>&5
22803 ac_status=$?
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22806 { (case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22809 esac
22810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_try") 2>&5
22812 ac_status=$?
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); }; }; then
22815 ac_cv_func_vfork_works=yes
22816 else
22817 echo "$as_me: program exited with status $ac_status" >&5
22818 echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22820
22821 ( exit $ac_status )
22822 ac_cv_func_vfork_works=no
22823 fi
22824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22825 fi
22826
22827
22828 fi
22829 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22830 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22831
22832 fi;
22833 if test "x$ac_cv_func_fork_works" = xcross; then
22834 ac_cv_func_vfork_works=$ac_cv_func_vfork
22835 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22836 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22837 fi
22838
22839 if test "x$ac_cv_func_vfork_works" = xyes; then
22840
22841 cat >>confdefs.h <<\_ACEOF
22842 #define HAVE_WORKING_VFORK 1
22843 _ACEOF
22844
22845 else
22846
22847 cat >>confdefs.h <<\_ACEOF
22848 #define vfork fork
22849 _ACEOF
22850
22851 fi
22852 if test "x$ac_cv_func_fork_works" = xyes; then
22853
22854 cat >>confdefs.h <<\_ACEOF
22855 #define HAVE_WORKING_FORK 1
22856 _ACEOF
22857
22858 fi
22859
22860
22861 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22862 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22863 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22864 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 else
22866 cat >conftest.$ac_ext <<_ACEOF
22867 /* confdefs.h. */
22868 _ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22872 #include <langinfo.h>
22873 int
22874 main ()
22875 {
22876 char* cs = nl_langinfo(CODESET);
22877 ;
22878 return 0;
22879 }
22880 _ACEOF
22881 rm -f conftest.$ac_objext conftest$ac_exeext
22882 if { (ac_try="$ac_link"
22883 case "(($ac_try" in
22884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22886 esac
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_link") 2>conftest.er1
22889 ac_status=$?
22890 grep -v '^ *+' conftest.er1 >conftest.err
22891 rm -f conftest.er1
22892 cat conftest.err >&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } && {
22895 test -z "$ac_c_werror_flag" ||
22896 test ! -s conftest.err
22897 } && test -s conftest$ac_exeext &&
22898 $as_test_x conftest$ac_exeext; then
22899 emacs_cv_langinfo_codeset=yes
22900 else
22901 echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22903
22904 emacs_cv_langinfo_codeset=no
22905 fi
22906
22907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22908 conftest$ac_exeext conftest.$ac_ext
22909
22910 fi
22911 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22912 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22913 if test $emacs_cv_langinfo_codeset = yes; then
22914
22915 cat >>confdefs.h <<\_ACEOF
22916 #define HAVE_LANGINFO_CODESET 1
22917 _ACEOF
22918
22919 fi
22920
22921 { echo "$as_me:$LINENO: checking for size_t" >&5
22922 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22923 if test "${ac_cv_type_size_t+set}" = set; then
22924 echo $ECHO_N "(cached) $ECHO_C" >&6
22925 else
22926 cat >conftest.$ac_ext <<_ACEOF
22927 /* confdefs.h. */
22928 _ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 $ac_includes_default
22933 typedef size_t ac__type_new_;
22934 int
22935 main ()
22936 {
22937 if ((ac__type_new_ *) 0)
22938 return 0;
22939 if (sizeof (ac__type_new_))
22940 return 0;
22941 ;
22942 return 0;
22943 }
22944 _ACEOF
22945 rm -f conftest.$ac_objext
22946 if { (ac_try="$ac_compile"
22947 case "(($ac_try" in
22948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22949 *) ac_try_echo=$ac_try;;
22950 esac
22951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22952 (eval "$ac_compile") 2>conftest.er1
22953 ac_status=$?
22954 grep -v '^ *+' conftest.er1 >conftest.err
22955 rm -f conftest.er1
22956 cat conftest.err >&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } && {
22959 test -z "$ac_c_werror_flag" ||
22960 test ! -s conftest.err
22961 } && test -s conftest.$ac_objext; then
22962 ac_cv_type_size_t=yes
22963 else
22964 echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22966
22967 ac_cv_type_size_t=no
22968 fi
22969
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 fi
22972 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22973 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22974 if test $ac_cv_type_size_t = yes; then
22975
22976 cat >>confdefs.h <<_ACEOF
22977 #define HAVE_SIZE_T 1
22978 _ACEOF
22979
22980
22981 fi
22982
22983
22984 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22985 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22986 if test "${ac_cv_type_mbstate_t+set}" = set; then
22987 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 else
22989 cat >conftest.$ac_ext <<_ACEOF
22990 /* confdefs.h. */
22991 _ACEOF
22992 cat confdefs.h >>conftest.$ac_ext
22993 cat >>conftest.$ac_ext <<_ACEOF
22994 /* end confdefs.h. */
22995 $ac_includes_default
22996 # include <wchar.h>
22997 int
22998 main ()
22999 {
23000 mbstate_t x; return sizeof x;
23001 ;
23002 return 0;
23003 }
23004 _ACEOF
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012 (eval "$ac_compile") 2>conftest.er1
23013 ac_status=$?
23014 grep -v '^ *+' conftest.er1 >conftest.err
23015 rm -f conftest.er1
23016 cat conftest.err >&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } && {
23019 test -z "$ac_c_werror_flag" ||
23020 test ! -s conftest.err
23021 } && test -s conftest.$ac_objext; then
23022 ac_cv_type_mbstate_t=yes
23023 else
23024 echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23026
23027 ac_cv_type_mbstate_t=no
23028 fi
23029
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 fi
23032 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23033 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23034 if test $ac_cv_type_mbstate_t = yes; then
23035
23036 cat >>confdefs.h <<\_ACEOF
23037 #define HAVE_MBSTATE_T 1
23038 _ACEOF
23039
23040 else
23041
23042 cat >>confdefs.h <<\_ACEOF
23043 #define mbstate_t int
23044 _ACEOF
23045
23046 fi
23047
23048 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23049 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23050 if test "${emacs_cv_c_restrict+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23052 else
23053 cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h. */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 void fred (int *restrict x);
23060 int
23061 main ()
23062 {
23063
23064 ;
23065 return 0;
23066 }
23067 _ACEOF
23068 rm -f conftest.$ac_objext
23069 if { (ac_try="$ac_compile"
23070 case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23073 esac
23074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075 (eval "$ac_compile") 2>conftest.er1
23076 ac_status=$?
23077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } && {
23082 test -z "$ac_c_werror_flag" ||
23083 test ! -s conftest.err
23084 } && test -s conftest.$ac_objext; then
23085 emacs_cv_c_restrict=yes
23086 else
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23089
23090 cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h. */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 void fred (int *__restrict x);
23097 int
23098 main ()
23099 {
23100
23101 ;
23102 return 0;
23103 }
23104 _ACEOF
23105 rm -f conftest.$ac_objext
23106 if { (ac_try="$ac_compile"
23107 case "(($ac_try" in
23108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23109 *) ac_try_echo=$ac_try;;
23110 esac
23111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23112 (eval "$ac_compile") 2>conftest.er1
23113 ac_status=$?
23114 grep -v '^ *+' conftest.er1 >conftest.err
23115 rm -f conftest.er1
23116 cat conftest.err >&5
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } && {
23119 test -z "$ac_c_werror_flag" ||
23120 test ! -s conftest.err
23121 } && test -s conftest.$ac_objext; then
23122 emacs_cv_c_restrict=__restrict
23123 else
23124 echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23126
23127 emacs_cv_c_restrict=no
23128 fi
23129
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 fi
23132
23133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134 fi
23135 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23136 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23137 case "$emacs_cv_c_restrict" in
23138 yes) emacs_restrict=restrict;;
23139 no) emacs_restrict="";;
23140 *) emacs_restrict="$emacs_cv_c_restrict";;
23141 esac
23142 if test "$emacs_restrict" != __restrict; then
23143
23144 cat >>confdefs.h <<_ACEOF
23145 #define __restrict $emacs_restrict
23146 _ACEOF
23147
23148 fi
23149
23150 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23151 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23152 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23154 else
23155 cat >conftest.$ac_ext <<_ACEOF
23156 /* confdefs.h. */
23157 _ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h. */
23161 void fred (int x[__restrict]);
23162 int
23163 main ()
23164 {
23165
23166 ;
23167 return 0;
23168 }
23169 _ACEOF
23170 rm -f conftest.$ac_objext
23171 if { (ac_try="$ac_compile"
23172 case "(($ac_try" in
23173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23174 *) ac_try_echo=$ac_try;;
23175 esac
23176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23177 (eval "$ac_compile") 2>conftest.er1
23178 ac_status=$?
23179 grep -v '^ *+' conftest.er1 >conftest.err
23180 rm -f conftest.er1
23181 cat conftest.err >&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } && {
23184 test -z "$ac_c_werror_flag" ||
23185 test ! -s conftest.err
23186 } && test -s conftest.$ac_objext; then
23187 emacs_cv_c_restrict_arr=yes
23188 else
23189 echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23191
23192 emacs_cv_c_restrict_arr=no
23193 fi
23194
23195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23196 fi
23197 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23198 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23199 if test "$emacs_cv_c_restrict_arr" = yes; then
23200
23201 cat >>confdefs.h <<\_ACEOF
23202 #define __restrict_arr __restrict
23203 _ACEOF
23204
23205 fi
23206
23207
23208
23209 # Set up the CFLAGS for real compilation, so we can substitute it.
23210 CFLAGS="$REAL_CFLAGS"
23211 CPPFLAGS="$REAL_CPPFLAGS"
23212
23213 #### Find out which version of Emacs this is.
23214 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23215 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23216 if test x"${version}" = x; then
23217 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23218 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23219 { (exit 1); exit 1; }; }
23220 fi
23221
23222 ### Specify what sort of things we'll be editing into Makefile and config.h.
23223 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259 cat >>confdefs.h <<_ACEOF
23260 #define EMACS_CONFIGURATION "${canonical}"
23261 _ACEOF
23262
23263
23264 cat >>confdefs.h <<_ACEOF
23265 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23266 _ACEOF
23267
23268
23269 cat >>confdefs.h <<_ACEOF
23270 #define config_machfile "${machfile}"
23271 _ACEOF
23272
23273
23274 cat >>confdefs.h <<_ACEOF
23275 #define config_opsysfile "${opsysfile}"
23276 _ACEOF
23277
23278
23279 cat >>confdefs.h <<_ACEOF
23280 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23281 _ACEOF
23282
23283
23284 cat >>confdefs.h <<_ACEOF
23285 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23286 _ACEOF
23287
23288
23289 cat >>confdefs.h <<_ACEOF
23290 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23291 _ACEOF
23292
23293
23294 cat >>confdefs.h <<_ACEOF
23295 #define UNEXEC_SRC ${UNEXEC_SRC}
23296 _ACEOF
23297
23298
23299 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23300
23301 cat >>confdefs.h <<\_ACEOF
23302 #define HAVE_X_WINDOWS 1
23303 _ACEOF
23304
23305 fi
23306 if test "${USE_X_TOOLKIT}" != "none" ; then
23307
23308 cat >>confdefs.h <<\_ACEOF
23309 #define USE_X_TOOLKIT 1
23310 _ACEOF
23311
23312 fi
23313 if test "${HAVE_X11}" = "yes" ; then
23314
23315 cat >>confdefs.h <<\_ACEOF
23316 #define HAVE_X11 1
23317 _ACEOF
23318
23319 fi
23320 if test "${HAVE_XFREE386}" = "yes" ; then
23321
23322 cat >>confdefs.h <<\_ACEOF
23323 #define HAVE_XFREE386 1
23324 _ACEOF
23325
23326 fi
23327 if test "${HAVE_MENUS}" = "yes" ; then
23328
23329 cat >>confdefs.h <<\_ACEOF
23330 #define HAVE_MENUS 1
23331 _ACEOF
23332
23333 fi
23334 if test "${GNU_MALLOC}" = "yes" ; then
23335
23336 cat >>confdefs.h <<\_ACEOF
23337 #define GNU_MALLOC 1
23338 _ACEOF
23339
23340 fi
23341 if test "${REL_ALLOC}" = "yes" ; then
23342
23343 cat >>confdefs.h <<\_ACEOF
23344 #define REL_ALLOC 1
23345 _ACEOF
23346
23347 fi
23348
23349
23350
23351
23352
23353 #### Report on what we decided to do.
23354 #### Report GTK as a toolkit, even if it doesn't use Xt.
23355 #### It makes printing result more understandable as using GTK sets
23356 #### toolkit_scroll_bars to yes by default.
23357 if test "${HAVE_GTK}" = "yes"; then
23358 USE_X_TOOLKIT=GTK
23359 fi
23360
23361 echo "
23362 Configured for \`${canonical}'.
23363
23364 Where should the build process find the source code? ${srcdir}
23365 What operating system and machine description files should Emacs use?
23366 \`${opsysfile}' and \`${machfile}'
23367 What compiler should emacs be built with? ${CC} ${CFLAGS}
23368 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23369 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23370 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23371 What window system should Emacs use? ${window_system}
23372 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23373
23374 if test -n "${x_includes}"; then
23375 echo " Where do we find X Windows header files? ${x_includes}"
23376 else
23377 echo " Where do we find X Windows header files? Standard dirs"
23378 fi
23379 if test -n "${x_libraries}"; then
23380 echo " Where do we find X Windows libraries? ${x_libraries}"
23381 else
23382 echo " Where do we find X Windows libraries? Standard dirs"
23383 fi
23384
23385 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23386 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23387 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23388 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23389 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23390 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23391 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23392 echo
23393
23394 if test $USE_XASSERTS = yes; then
23395 echo " Compiling with asserts turned on."
23396 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23397 echo
23398 fi
23399
23400
23401
23402 # Remove any trailing slashes in these variables.
23403 test "${prefix}" != NONE &&
23404 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23405 test "${exec_prefix}" != NONE &&
23406 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23407
23408 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23409 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23410 ## from Makefile.c can correctly provide the arg `-traditional' to the
23411 ## C preprocessor.
23412
23413 cat >conftest.$ac_ext <<_ACEOF
23414 /* confdefs.h. */
23415 _ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h. */
23419 yes..yes
23420 _ACEOF
23421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23422 $EGREP "yes..yes" >/dev/null 2>&1; then
23423 CPP_NEED_TRADITIONAL=no
23424 else
23425 CPP_NEED_TRADITIONAL=yes
23426 fi
23427 rm -f conftest*
23428
23429
23430 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"
23431
23432 ac_config_commands="$ac_config_commands default"
23433
23434 cat >confcache <<\_ACEOF
23435 # This file is a shell script that caches the results of configure
23436 # tests run on this system so they can be shared between configure
23437 # scripts and configure runs, see configure's option --config-cache.
23438 # It is not useful on other systems. If it contains results you don't
23439 # want to keep, you may remove or edit it.
23440 #
23441 # config.status only pays attention to the cache file if you give it
23442 # the --recheck option to rerun configure.
23443 #
23444 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23445 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23446 # following values.
23447
23448 _ACEOF
23449
23450 # The following way of writing the cache mishandles newlines in values,
23451 # but we know of no workaround that is simple, portable, and efficient.
23452 # So, we kill variables containing newlines.
23453 # Ultrix sh set writes to stderr and can't be redirected directly,
23454 # and sets the high bit in the cache file unless we assign to the vars.
23455 (
23456 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23457 eval ac_val=\$$ac_var
23458 case $ac_val in #(
23459 *${as_nl}*)
23460 case $ac_var in #(
23461 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23462 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23463 esac
23464 case $ac_var in #(
23465 _ | IFS | as_nl) ;; #(
23466 *) $as_unset $ac_var ;;
23467 esac ;;
23468 esac
23469 done
23470
23471 (set) 2>&1 |
23472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23473 *${as_nl}ac_space=\ *)
23474 # `set' does not quote correctly, so add quotes (double-quote
23475 # substitution turns \\\\ into \\, and sed turns \\ into \).
23476 sed -n \
23477 "s/'/'\\\\''/g;
23478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23479 ;; #(
23480 *)
23481 # `set' quotes correctly as required by POSIX, so do not add quotes.
23482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23483 ;;
23484 esac |
23485 sort
23486 ) |
23487 sed '
23488 /^ac_cv_env_/b end
23489 t clear
23490 :clear
23491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23492 t end
23493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23494 :end' >>confcache
23495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23496 if test -w "$cache_file"; then
23497 test "x$cache_file" != "x/dev/null" &&
23498 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23499 echo "$as_me: updating cache $cache_file" >&6;}
23500 cat confcache >$cache_file
23501 else
23502 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23503 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23504 fi
23505 fi
23506 rm -f confcache
23507
23508 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23509 # Let make expand exec_prefix.
23510 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23511
23512 DEFS=-DHAVE_CONFIG_H
23513
23514 ac_libobjs=
23515 ac_ltlibobjs=
23516 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23517 # 1. Remove the extension, and $U if already installed.
23518 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23519 ac_i=`echo "$ac_i" | sed "$ac_script"`
23520 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23521 # will be set to the directory where LIBOBJS objects are built.
23522 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23523 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23524 done
23525 LIBOBJS=$ac_libobjs
23526
23527 LTLIBOBJS=$ac_ltlibobjs
23528
23529
23530
23531 : ${CONFIG_STATUS=./config.status}
23532 ac_clean_files_save=$ac_clean_files
23533 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23534 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23535 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23536 cat >$CONFIG_STATUS <<_ACEOF
23537 #! $SHELL
23538 # Generated by $as_me.
23539 # Run this file to recreate the current configuration.
23540 # Compiler output produced by configure, useful for debugging
23541 # configure, is in config.log if it exists.
23542
23543 debug=false
23544 ac_cs_recheck=false
23545 ac_cs_silent=false
23546 SHELL=\${CONFIG_SHELL-$SHELL}
23547 _ACEOF
23548
23549 cat >>$CONFIG_STATUS <<\_ACEOF
23550 ## --------------------- ##
23551 ## M4sh Initialization. ##
23552 ## --------------------- ##
23553
23554 # Be more Bourne compatible
23555 DUALCASE=1; export DUALCASE # for MKS sh
23556 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23557 emulate sh
23558 NULLCMD=:
23559 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23560 # is contrary to our usage. Disable this feature.
23561 alias -g '${1+"$@"}'='"$@"'
23562 setopt NO_GLOB_SUBST
23563 else
23564 case `(set -o) 2>/dev/null` in
23565 *posix*) set -o posix ;;
23566 esac
23567
23568 fi
23569
23570
23571
23572
23573 # PATH needs CR
23574 # Avoid depending upon Character Ranges.
23575 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23576 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23577 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23578 as_cr_digits='0123456789'
23579 as_cr_alnum=$as_cr_Letters$as_cr_digits
23580
23581 # The user is always right.
23582 if test "${PATH_SEPARATOR+set}" != set; then
23583 echo "#! /bin/sh" >conf$$.sh
23584 echo "exit 0" >>conf$$.sh
23585 chmod +x conf$$.sh
23586 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23587 PATH_SEPARATOR=';'
23588 else
23589 PATH_SEPARATOR=:
23590 fi
23591 rm -f conf$$.sh
23592 fi
23593
23594 # Support unset when possible.
23595 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23596 as_unset=unset
23597 else
23598 as_unset=false
23599 fi
23600
23601
23602 # IFS
23603 # We need space, tab and new line, in precisely that order. Quoting is
23604 # there to prevent editors from complaining about space-tab.
23605 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23606 # splitting by setting IFS to empty value.)
23607 as_nl='
23608 '
23609 IFS=" "" $as_nl"
23610
23611 # Find who we are. Look in the path if we contain no directory separator.
23612 case $0 in
23613 *[\\/]* ) as_myself=$0 ;;
23614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23615 for as_dir in $PATH
23616 do
23617 IFS=$as_save_IFS
23618 test -z "$as_dir" && as_dir=.
23619 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23620 done
23621 IFS=$as_save_IFS
23622
23623 ;;
23624 esac
23625 # We did not find ourselves, most probably we were run as `sh COMMAND'
23626 # in which case we are not to be found in the path.
23627 if test "x$as_myself" = x; then
23628 as_myself=$0
23629 fi
23630 if test ! -f "$as_myself"; then
23631 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23632 { (exit 1); exit 1; }
23633 fi
23634
23635 # Work around bugs in pre-3.0 UWIN ksh.
23636 for as_var in ENV MAIL MAILPATH
23637 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23638 done
23639 PS1='$ '
23640 PS2='> '
23641 PS4='+ '
23642
23643 # NLS nuisances.
23644 for as_var in \
23645 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23646 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23647 LC_TELEPHONE LC_TIME
23648 do
23649 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23650 eval $as_var=C; export $as_var
23651 else
23652 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23653 fi
23654 done
23655
23656 # Required to use basename.
23657 if expr a : '\(a\)' >/dev/null 2>&1 &&
23658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23659 as_expr=expr
23660 else
23661 as_expr=false
23662 fi
23663
23664 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23665 as_basename=basename
23666 else
23667 as_basename=false
23668 fi
23669
23670
23671 # Name of the executable.
23672 as_me=`$as_basename -- "$0" ||
23673 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23674 X"$0" : 'X\(//\)$' \| \
23675 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23676 echo X/"$0" |
23677 sed '/^.*\/\([^/][^/]*\)\/*$/{
23678 s//\1/
23679 q
23680 }
23681 /^X\/\(\/\/\)$/{
23682 s//\1/
23683 q
23684 }
23685 /^X\/\(\/\).*/{
23686 s//\1/
23687 q
23688 }
23689 s/.*/./; q'`
23690
23691 # CDPATH.
23692 $as_unset CDPATH
23693
23694
23695
23696 as_lineno_1=$LINENO
23697 as_lineno_2=$LINENO
23698 test "x$as_lineno_1" != "x$as_lineno_2" &&
23699 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23700
23701 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23702 # uniformly replaced by the line number. The first 'sed' inserts a
23703 # line-number line after each line using $LINENO; the second 'sed'
23704 # does the real work. The second script uses 'N' to pair each
23705 # line-number line with the line containing $LINENO, and appends
23706 # trailing '-' during substitution so that $LINENO is not a special
23707 # case at line end.
23708 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23709 # scripts with optimization help from Paolo Bonzini. Blame Lee
23710 # E. McMahon (1931-1989) for sed's syntax. :-)
23711 sed -n '
23712 p
23713 /[$]LINENO/=
23714 ' <$as_myself |
23715 sed '
23716 s/[$]LINENO.*/&-/
23717 t lineno
23718 b
23719 :lineno
23720 N
23721 :loop
23722 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23723 t loop
23724 s/-\n.*//
23725 ' >$as_me.lineno &&
23726 chmod +x "$as_me.lineno" ||
23727 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23728 { (exit 1); exit 1; }; }
23729
23730 # Don't try to exec as it changes $[0], causing all sort of problems
23731 # (the dirname of $[0] is not the place where we might find the
23732 # original and so on. Autoconf is especially sensitive to this).
23733 . "./$as_me.lineno"
23734 # Exit status is that of the last command.
23735 exit
23736 }
23737
23738
23739 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23740 as_dirname=dirname
23741 else
23742 as_dirname=false
23743 fi
23744
23745 ECHO_C= ECHO_N= ECHO_T=
23746 case `echo -n x` in
23747 -n*)
23748 case `echo 'x\c'` in
23749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23750 *) ECHO_C='\c';;
23751 esac;;
23752 *)
23753 ECHO_N='-n';;
23754 esac
23755
23756 if expr a : '\(a\)' >/dev/null 2>&1 &&
23757 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23758 as_expr=expr
23759 else
23760 as_expr=false
23761 fi
23762
23763 rm -f conf$$ conf$$.exe conf$$.file
23764 if test -d conf$$.dir; then
23765 rm -f conf$$.dir/conf$$.file
23766 else
23767 rm -f conf$$.dir
23768 mkdir conf$$.dir
23769 fi
23770 echo >conf$$.file
23771 if ln -s conf$$.file conf$$ 2>/dev/null; then
23772 as_ln_s='ln -s'
23773 # ... but there are two gotchas:
23774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23776 # In both cases, we have to default to `cp -p'.
23777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23778 as_ln_s='cp -p'
23779 elif ln conf$$.file conf$$ 2>/dev/null; then
23780 as_ln_s=ln
23781 else
23782 as_ln_s='cp -p'
23783 fi
23784 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23785 rmdir conf$$.dir 2>/dev/null
23786
23787 if mkdir -p . 2>/dev/null; then
23788 as_mkdir_p=:
23789 else
23790 test -d ./-p && rmdir ./-p
23791 as_mkdir_p=false
23792 fi
23793
23794 if test -x / >/dev/null 2>&1; then
23795 as_test_x='test -x'
23796 else
23797 if ls -dL / >/dev/null 2>&1; then
23798 as_ls_L_option=L
23799 else
23800 as_ls_L_option=
23801 fi
23802 as_test_x='
23803 eval sh -c '\''
23804 if test -d "$1"; then
23805 test -d "$1/.";
23806 else
23807 case $1 in
23808 -*)set "./$1";;
23809 esac;
23810 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23811 ???[sx]*):;;*)false;;esac;fi
23812 '\'' sh
23813 '
23814 fi
23815 as_executable_p=$as_test_x
23816
23817 # Sed expression to map a string onto a valid CPP name.
23818 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23819
23820 # Sed expression to map a string onto a valid variable name.
23821 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23822
23823
23824 exec 6>&1
23825
23826 # Save the log message, to keep $[0] and so on meaningful, and to
23827 # report actual input values of CONFIG_FILES etc. instead of their
23828 # values after options handling.
23829 ac_log="
23830 This file was extended by $as_me, which was
23831 generated by GNU Autoconf 2.61. Invocation command line was
23832
23833 CONFIG_FILES = $CONFIG_FILES
23834 CONFIG_HEADERS = $CONFIG_HEADERS
23835 CONFIG_LINKS = $CONFIG_LINKS
23836 CONFIG_COMMANDS = $CONFIG_COMMANDS
23837 $ $0 $@
23838
23839 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23840 "
23841
23842 _ACEOF
23843
23844 cat >>$CONFIG_STATUS <<_ACEOF
23845 # Files that config.status was made for.
23846 config_files="$ac_config_files"
23847 config_headers="$ac_config_headers"
23848 config_commands="$ac_config_commands"
23849
23850 _ACEOF
23851
23852 cat >>$CONFIG_STATUS <<\_ACEOF
23853 ac_cs_usage="\
23854 \`$as_me' instantiates files from templates according to the
23855 current configuration.
23856
23857 Usage: $0 [OPTIONS] [FILE]...
23858
23859 -h, --help print this help, then exit
23860 -V, --version print version number and configuration settings, then exit
23861 -q, --quiet do not print progress messages
23862 -d, --debug don't remove temporary files
23863 --recheck update $as_me by reconfiguring in the same conditions
23864 --file=FILE[:TEMPLATE]
23865 instantiate the configuration file FILE
23866 --header=FILE[:TEMPLATE]
23867 instantiate the configuration header FILE
23868
23869 Configuration files:
23870 $config_files
23871
23872 Configuration headers:
23873 $config_headers
23874
23875 Configuration commands:
23876 $config_commands
23877
23878 Report bugs to <bug-autoconf@gnu.org>."
23879
23880 _ACEOF
23881 cat >>$CONFIG_STATUS <<_ACEOF
23882 ac_cs_version="\\
23883 config.status
23884 configured by $0, generated by GNU Autoconf 2.61,
23885 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23886
23887 Copyright (C) 2006 Free Software Foundation, Inc.
23888 This config.status script is free software; the Free Software Foundation
23889 gives unlimited permission to copy, distribute and modify it."
23890
23891 ac_pwd='$ac_pwd'
23892 srcdir='$srcdir'
23893 INSTALL='$INSTALL'
23894 _ACEOF
23895
23896 cat >>$CONFIG_STATUS <<\_ACEOF
23897 # If no file are specified by the user, then we need to provide default
23898 # value. By we need to know if files were specified by the user.
23899 ac_need_defaults=:
23900 while test $# != 0
23901 do
23902 case $1 in
23903 --*=*)
23904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23905 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23906 ac_shift=:
23907 ;;
23908 *)
23909 ac_option=$1
23910 ac_optarg=$2
23911 ac_shift=shift
23912 ;;
23913 esac
23914
23915 case $ac_option in
23916 # Handling of the options.
23917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23918 ac_cs_recheck=: ;;
23919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23920 echo "$ac_cs_version"; exit ;;
23921 --debug | --debu | --deb | --de | --d | -d )
23922 debug=: ;;
23923 --file | --fil | --fi | --f )
23924 $ac_shift
23925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23926 ac_need_defaults=false;;
23927 --header | --heade | --head | --hea )
23928 $ac_shift
23929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23930 ac_need_defaults=false;;
23931 --he | --h)
23932 # Conflict between --help and --header
23933 { echo "$as_me: error: ambiguous option: $1
23934 Try \`$0 --help' for more information." >&2
23935 { (exit 1); exit 1; }; };;
23936 --help | --hel | -h )
23937 echo "$ac_cs_usage"; exit ;;
23938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23940 ac_cs_silent=: ;;
23941
23942 # This is an error.
23943 -*) { echo "$as_me: error: unrecognized option: $1
23944 Try \`$0 --help' for more information." >&2
23945 { (exit 1); exit 1; }; } ;;
23946
23947 *) ac_config_targets="$ac_config_targets $1"
23948 ac_need_defaults=false ;;
23949
23950 esac
23951 shift
23952 done
23953
23954 ac_configure_extra_args=
23955
23956 if $ac_cs_silent; then
23957 exec 6>/dev/null
23958 ac_configure_extra_args="$ac_configure_extra_args --silent"
23959 fi
23960
23961 _ACEOF
23962 cat >>$CONFIG_STATUS <<_ACEOF
23963 if \$ac_cs_recheck; then
23964 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23965 CONFIG_SHELL=$SHELL
23966 export CONFIG_SHELL
23967 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23968 fi
23969
23970 _ACEOF
23971 cat >>$CONFIG_STATUS <<\_ACEOF
23972 exec 5>>config.log
23973 {
23974 echo
23975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23976 ## Running $as_me. ##
23977 _ASBOX
23978 echo "$ac_log"
23979 } >&5
23980
23981 _ACEOF
23982 cat >>$CONFIG_STATUS <<_ACEOF
23983 #
23984 # INIT-COMMANDS
23985 #
23986 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23987
23988 _ACEOF
23989
23990 cat >>$CONFIG_STATUS <<\_ACEOF
23991
23992 # Handling of arguments.
23993 for ac_config_target in $ac_config_targets
23994 do
23995 case $ac_config_target in
23996 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23997 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23998 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23999 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24000 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24001 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24002 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24003 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24004 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24005 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24006 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24007 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24008
24009 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24010 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24011 { (exit 1); exit 1; }; };;
24012 esac
24013 done
24014
24015
24016 # If the user did not use the arguments to specify the items to instantiate,
24017 # then the envvar interface is used. Set only those that are not.
24018 # We use the long form for the default assignment because of an extremely
24019 # bizarre bug on SunOS 4.1.3.
24020 if $ac_need_defaults; then
24021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24023 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24024 fi
24025
24026 # Have a temporary directory for convenience. Make it in the build tree
24027 # simply because there is no reason against having it here, and in addition,
24028 # creating and moving files from /tmp can sometimes cause problems.
24029 # Hook for its removal unless debugging.
24030 # Note that there is a small window in which the directory will not be cleaned:
24031 # after its creation but before its name has been assigned to `$tmp'.
24032 $debug ||
24033 {
24034 tmp=
24035 trap 'exit_status=$?
24036 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24037 ' 0
24038 trap '{ (exit 1); exit 1; }' 1 2 13 15
24039 }
24040 # Create a (secure) tmp directory for tmp files.
24041
24042 {
24043 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24044 test -n "$tmp" && test -d "$tmp"
24045 } ||
24046 {
24047 tmp=./conf$$-$RANDOM
24048 (umask 077 && mkdir "$tmp")
24049 } ||
24050 {
24051 echo "$me: cannot create a temporary directory in ." >&2
24052 { (exit 1); exit 1; }
24053 }
24054
24055 #
24056 # Set up the sed scripts for CONFIG_FILES section.
24057 #
24058
24059 # No need to generate the scripts if there are no CONFIG_FILES.
24060 # This happens for instance when ./config.status config.h
24061 if test -n "$CONFIG_FILES"; then
24062
24063 _ACEOF
24064
24065
24066
24067 ac_delim='%!_!# '
24068 for ac_last_try in false false false false false :; do
24069 cat >conf$$subs.sed <<_ACEOF
24070 SHELL!$SHELL$ac_delim
24071 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24072 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24073 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24074 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24075 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24076 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24077 exec_prefix!$exec_prefix$ac_delim
24078 prefix!$prefix$ac_delim
24079 program_transform_name!$program_transform_name$ac_delim
24080 bindir!$bindir$ac_delim
24081 sbindir!$sbindir$ac_delim
24082 libexecdir!$libexecdir$ac_delim
24083 datarootdir!$datarootdir$ac_delim
24084 datadir!$datadir$ac_delim
24085 sysconfdir!$sysconfdir$ac_delim
24086 sharedstatedir!$sharedstatedir$ac_delim
24087 localstatedir!$localstatedir$ac_delim
24088 includedir!$includedir$ac_delim
24089 oldincludedir!$oldincludedir$ac_delim
24090 docdir!$docdir$ac_delim
24091 infodir!$infodir$ac_delim
24092 htmldir!$htmldir$ac_delim
24093 dvidir!$dvidir$ac_delim
24094 pdfdir!$pdfdir$ac_delim
24095 psdir!$psdir$ac_delim
24096 libdir!$libdir$ac_delim
24097 localedir!$localedir$ac_delim
24098 mandir!$mandir$ac_delim
24099 DEFS!$DEFS$ac_delim
24100 ECHO_C!$ECHO_C$ac_delim
24101 ECHO_N!$ECHO_N$ac_delim
24102 ECHO_T!$ECHO_T$ac_delim
24103 LIBS!$LIBS$ac_delim
24104 build_alias!$build_alias$ac_delim
24105 host_alias!$host_alias$ac_delim
24106 target_alias!$target_alias$ac_delim
24107 MAINT!$MAINT$ac_delim
24108 build!$build$ac_delim
24109 build_cpu!$build_cpu$ac_delim
24110 build_vendor!$build_vendor$ac_delim
24111 build_os!$build_os$ac_delim
24112 host!$host$ac_delim
24113 host_cpu!$host_cpu$ac_delim
24114 host_vendor!$host_vendor$ac_delim
24115 host_os!$host_os$ac_delim
24116 CC!$CC$ac_delim
24117 CFLAGS!$CFLAGS$ac_delim
24118 LDFLAGS!$LDFLAGS$ac_delim
24119 CPPFLAGS!$CPPFLAGS$ac_delim
24120 ac_ct_CC!$ac_ct_CC$ac_delim
24121 EXEEXT!$EXEEXT$ac_delim
24122 OBJEXT!$OBJEXT$ac_delim
24123 CPP!$CPP$ac_delim
24124 GREP!$GREP$ac_delim
24125 EGREP!$EGREP$ac_delim
24126 LN_S!$LN_S$ac_delim
24127 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24128 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24129 INSTALL_DATA!$INSTALL_DATA$ac_delim
24130 RANLIB!$RANLIB$ac_delim
24131 INSTALL_INFO!$INSTALL_INFO$ac_delim
24132 GZIP_PROG!$GZIP_PROG$ac_delim
24133 LIBSOUND!$LIBSOUND$ac_delim
24134 PKG_CONFIG!$PKG_CONFIG$ac_delim
24135 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24136 ALSA_LIBS!$ALSA_LIBS$ac_delim
24137 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24138 SET_MAKE!$SET_MAKE$ac_delim
24139 XMKMF!$XMKMF$ac_delim
24140 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24141 GTK_LIBS!$GTK_LIBS$ac_delim
24142 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24143 XFT_LIBS!$XFT_LIBS$ac_delim
24144 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24145 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24146 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24147 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24148 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24149 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24150 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24151 ALLOCA!$ALLOCA$ac_delim
24152 liblockfile!$liblockfile$ac_delim
24153 LIBOBJS!$LIBOBJS$ac_delim
24154 NEED_SETGID!$NEED_SETGID$ac_delim
24155 KMEM_GROUP!$KMEM_GROUP$ac_delim
24156 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24157 GETOPT_H!$GETOPT_H$ac_delim
24158 GETOPTOBJS!$GETOPTOBJS$ac_delim
24159 version!$version$ac_delim
24160 configuration!$configuration$ac_delim
24161 canonical!$canonical$ac_delim
24162 srcdir!$srcdir$ac_delim
24163 lispdir!$lispdir$ac_delim
24164 locallisppath!$locallisppath$ac_delim
24165 lisppath!$lisppath$ac_delim
24166 x_default_search_path!$x_default_search_path$ac_delim
24167 _ACEOF
24168
24169 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24170 break
24171 elif $ac_last_try; then
24172 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24174 { (exit 1); exit 1; }; }
24175 else
24176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24177 fi
24178 done
24179
24180 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24181 if test -n "$ac_eof"; then
24182 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24183 ac_eof=`expr $ac_eof + 1`
24184 fi
24185
24186 cat >>$CONFIG_STATUS <<_ACEOF
24187 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24189 _ACEOF
24190 sed '
24191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24192 s/^/s,@/; s/!/@,|#_!!_#|/
24193 :n
24194 t n
24195 s/'"$ac_delim"'$/,g/; t
24196 s/$/\\/; p
24197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24198 ' >>$CONFIG_STATUS <conf$$subs.sed
24199 rm -f conf$$subs.sed
24200 cat >>$CONFIG_STATUS <<_ACEOF
24201 CEOF$ac_eof
24202 _ACEOF
24203
24204
24205 ac_delim='%!_!# '
24206 for ac_last_try in false false false false false :; do
24207 cat >conf$$subs.sed <<_ACEOF
24208 etcdir!$etcdir$ac_delim
24209 archlibdir!$archlibdir$ac_delim
24210 bitmapdir!$bitmapdir$ac_delim
24211 gamedir!$gamedir$ac_delim
24212 gameuser!$gameuser$ac_delim
24213 c_switch_system!$c_switch_system$ac_delim
24214 c_switch_machine!$c_switch_machine$ac_delim
24215 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24216 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24217 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24218 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24219 machfile!$machfile$ac_delim
24220 opsysfile!$opsysfile$ac_delim
24221 carbon_appdir!$carbon_appdir$ac_delim
24222 LTLIBOBJS!$LTLIBOBJS$ac_delim
24223 _ACEOF
24224
24225 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24226 break
24227 elif $ac_last_try; then
24228 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24229 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24230 { (exit 1); exit 1; }; }
24231 else
24232 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24233 fi
24234 done
24235
24236 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24237 if test -n "$ac_eof"; then
24238 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24239 ac_eof=`expr $ac_eof + 1`
24240 fi
24241
24242 cat >>$CONFIG_STATUS <<_ACEOF
24243 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24245 _ACEOF
24246 sed '
24247 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24248 s/^/s,@/; s/!/@,|#_!!_#|/
24249 :n
24250 t n
24251 s/'"$ac_delim"'$/,g/; t
24252 s/$/\\/; p
24253 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24254 ' >>$CONFIG_STATUS <conf$$subs.sed
24255 rm -f conf$$subs.sed
24256 cat >>$CONFIG_STATUS <<_ACEOF
24257 :end
24258 s/|#_!!_#|//g
24259 CEOF$ac_eof
24260 _ACEOF
24261
24262
24263 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24264 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24265 # trailing colons and then remove the whole line if VPATH becomes empty
24266 # (actually we leave an empty line to preserve line numbers).
24267 if test "x$srcdir" = x.; then
24268 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24269 s/:*\$(srcdir):*/:/
24270 s/:*\${srcdir}:*/:/
24271 s/:*@srcdir@:*/:/
24272 s/^\([^=]*=[ ]*\):*/\1/
24273 s/:*$//
24274 s/^[^=]*=[ ]*$//
24275 }'
24276 fi
24277
24278 cat >>$CONFIG_STATUS <<\_ACEOF
24279 fi # test -n "$CONFIG_FILES"
24280
24281
24282 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24283 do
24284 case $ac_tag in
24285 :[FHLC]) ac_mode=$ac_tag; continue;;
24286 esac
24287 case $ac_mode$ac_tag in
24288 :[FHL]*:*);;
24289 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24290 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24291 { (exit 1); exit 1; }; };;
24292 :[FH]-) ac_tag=-:-;;
24293 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24294 esac
24295 ac_save_IFS=$IFS
24296 IFS=:
24297 set x $ac_tag
24298 IFS=$ac_save_IFS
24299 shift
24300 ac_file=$1
24301 shift
24302
24303 case $ac_mode in
24304 :L) ac_source=$1;;
24305 :[FH])
24306 ac_file_inputs=
24307 for ac_f
24308 do
24309 case $ac_f in
24310 -) ac_f="$tmp/stdin";;
24311 *) # Look for the file first in the build tree, then in the source tree
24312 # (if the path is not absolute). The absolute path cannot be DOS-style,
24313 # because $ac_f cannot contain `:'.
24314 test -f "$ac_f" ||
24315 case $ac_f in
24316 [\\/$]*) false;;
24317 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24318 esac ||
24319 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24320 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24321 { (exit 1); exit 1; }; };;
24322 esac
24323 ac_file_inputs="$ac_file_inputs $ac_f"
24324 done
24325
24326 # Let's still pretend it is `configure' which instantiates (i.e., don't
24327 # use $as_me), people would be surprised to read:
24328 # /* config.h. Generated by config.status. */
24329 configure_input="Generated from "`IFS=:
24330 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24331 if test x"$ac_file" != x-; then
24332 configure_input="$ac_file. $configure_input"
24333 { echo "$as_me:$LINENO: creating $ac_file" >&5
24334 echo "$as_me: creating $ac_file" >&6;}
24335 fi
24336
24337 case $ac_tag in
24338 *:-:* | *:-) cat >"$tmp/stdin";;
24339 esac
24340 ;;
24341 esac
24342
24343 ac_dir=`$as_dirname -- "$ac_file" ||
24344 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24345 X"$ac_file" : 'X\(//\)[^/]' \| \
24346 X"$ac_file" : 'X\(//\)$' \| \
24347 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24348 echo X"$ac_file" |
24349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24350 s//\1/
24351 q
24352 }
24353 /^X\(\/\/\)[^/].*/{
24354 s//\1/
24355 q
24356 }
24357 /^X\(\/\/\)$/{
24358 s//\1/
24359 q
24360 }
24361 /^X\(\/\).*/{
24362 s//\1/
24363 q
24364 }
24365 s/.*/./; q'`
24366 { as_dir="$ac_dir"
24367 case $as_dir in #(
24368 -*) as_dir=./$as_dir;;
24369 esac
24370 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24371 as_dirs=
24372 while :; do
24373 case $as_dir in #(
24374 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24375 *) as_qdir=$as_dir;;
24376 esac
24377 as_dirs="'$as_qdir' $as_dirs"
24378 as_dir=`$as_dirname -- "$as_dir" ||
24379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24380 X"$as_dir" : 'X\(//\)[^/]' \| \
24381 X"$as_dir" : 'X\(//\)$' \| \
24382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24383 echo X"$as_dir" |
24384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24385 s//\1/
24386 q
24387 }
24388 /^X\(\/\/\)[^/].*/{
24389 s//\1/
24390 q
24391 }
24392 /^X\(\/\/\)$/{
24393 s//\1/
24394 q
24395 }
24396 /^X\(\/\).*/{
24397 s//\1/
24398 q
24399 }
24400 s/.*/./; q'`
24401 test -d "$as_dir" && break
24402 done
24403 test -z "$as_dirs" || eval "mkdir $as_dirs"
24404 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24405 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24406 { (exit 1); exit 1; }; }; }
24407 ac_builddir=.
24408
24409 case "$ac_dir" in
24410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24411 *)
24412 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24413 # A ".." for each directory in $ac_dir_suffix.
24414 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24415 case $ac_top_builddir_sub in
24416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24418 esac ;;
24419 esac
24420 ac_abs_top_builddir=$ac_pwd
24421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24422 # for backward compatibility:
24423 ac_top_builddir=$ac_top_build_prefix
24424
24425 case $srcdir in
24426 .) # We are building in place.
24427 ac_srcdir=.
24428 ac_top_srcdir=$ac_top_builddir_sub
24429 ac_abs_top_srcdir=$ac_pwd ;;
24430 [\\/]* | ?:[\\/]* ) # Absolute name.
24431 ac_srcdir=$srcdir$ac_dir_suffix;
24432 ac_top_srcdir=$srcdir
24433 ac_abs_top_srcdir=$srcdir ;;
24434 *) # Relative name.
24435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24436 ac_top_srcdir=$ac_top_build_prefix$srcdir
24437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24438 esac
24439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24440
24441
24442 case $ac_mode in
24443 :F)
24444 #
24445 # CONFIG_FILE
24446 #
24447
24448 case $INSTALL in
24449 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24450 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24451 esac
24452 _ACEOF
24453
24454 cat >>$CONFIG_STATUS <<\_ACEOF
24455 # If the template does not know about datarootdir, expand it.
24456 # FIXME: This hack should be removed a few years after 2.60.
24457 ac_datarootdir_hack=; ac_datarootdir_seen=
24458
24459 case `sed -n '/datarootdir/ {
24460 p
24461 q
24462 }
24463 /@datadir@/p
24464 /@docdir@/p
24465 /@infodir@/p
24466 /@localedir@/p
24467 /@mandir@/p
24468 ' $ac_file_inputs` in
24469 *datarootdir*) ac_datarootdir_seen=yes;;
24470 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24471 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24472 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24473 _ACEOF
24474 cat >>$CONFIG_STATUS <<_ACEOF
24475 ac_datarootdir_hack='
24476 s&@datadir@&$datadir&g
24477 s&@docdir@&$docdir&g
24478 s&@infodir@&$infodir&g
24479 s&@localedir@&$localedir&g
24480 s&@mandir@&$mandir&g
24481 s&\\\${datarootdir}&$datarootdir&g' ;;
24482 esac
24483 _ACEOF
24484
24485 # Neutralize VPATH when `$srcdir' = `.'.
24486 # Shell code in configure.ac might set extrasub.
24487 # FIXME: do we really want to maintain this feature?
24488 cat >>$CONFIG_STATUS <<_ACEOF
24489 sed "$ac_vpsub
24490 $extrasub
24491 _ACEOF
24492 cat >>$CONFIG_STATUS <<\_ACEOF
24493 :t
24494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24495 s&@configure_input@&$configure_input&;t t
24496 s&@top_builddir@&$ac_top_builddir_sub&;t t
24497 s&@srcdir@&$ac_srcdir&;t t
24498 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24499 s&@top_srcdir@&$ac_top_srcdir&;t t
24500 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24501 s&@builddir@&$ac_builddir&;t t
24502 s&@abs_builddir@&$ac_abs_builddir&;t t
24503 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24504 s&@INSTALL@&$ac_INSTALL&;t t
24505 $ac_datarootdir_hack
24506 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24507
24508 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24509 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24510 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24511 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24512 which seems to be undefined. Please make sure it is defined." >&5
24513 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24514 which seems to be undefined. Please make sure it is defined." >&2;}
24515
24516 rm -f "$tmp/stdin"
24517 case $ac_file in
24518 -) cat "$tmp/out"; rm -f "$tmp/out";;
24519 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24520 esac
24521 ;;
24522 :H)
24523 #
24524 # CONFIG_HEADER
24525 #
24526 _ACEOF
24527
24528 # Transform confdefs.h into a sed script `conftest.defines', that
24529 # substitutes the proper values into config.h.in to produce config.h.
24530 rm -f conftest.defines conftest.tail
24531 # First, append a space to every undef/define line, to ease matching.
24532 echo 's/$/ /' >conftest.defines
24533 # Then, protect against being on the right side of a sed subst, or in
24534 # an unquoted here document, in config.status. If some macros were
24535 # called several times there might be several #defines for the same
24536 # symbol, which is useless. But do not sort them, since the last
24537 # AC_DEFINE must be honored.
24538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24539 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24540 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24541 # PARAMS is the parameter list in the macro definition--in most cases, it's
24542 # just an empty string.
24543 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24544 ac_dB='\\)[ (].*,\\1define\\2'
24545 ac_dC=' '
24546 ac_dD=' ,'
24547
24548 uniq confdefs.h |
24549 sed -n '
24550 t rset
24551 :rset
24552 s/^[ ]*#[ ]*define[ ][ ]*//
24553 t ok
24554 d
24555 :ok
24556 s/[\\&,]/\\&/g
24557 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24558 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24559 ' >>conftest.defines
24560
24561 # Remove the space that was appended to ease matching.
24562 # Then replace #undef with comments. This is necessary, for
24563 # example, in the case of _POSIX_SOURCE, which is predefined and required
24564 # on some systems where configure will not decide to define it.
24565 # (The regexp can be short, since the line contains either #define or #undef.)
24566 echo 's/ $//
24567 s,^[ #]*u.*,/* & */,' >>conftest.defines
24568
24569 # Break up conftest.defines:
24570 ac_max_sed_lines=50
24571
24572 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24573 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24574 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24575 # et cetera.
24576 ac_in='$ac_file_inputs'
24577 ac_out='"$tmp/out1"'
24578 ac_nxt='"$tmp/out2"'
24579
24580 while :
24581 do
24582 # Write a here document:
24583 cat >>$CONFIG_STATUS <<_ACEOF
24584 # First, check the format of the line:
24585 cat >"\$tmp/defines.sed" <<\\CEOF
24586 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24587 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24588 b
24589 :def
24590 _ACEOF
24591 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24592 echo 'CEOF
24593 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24594 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24595 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24596 grep . conftest.tail >/dev/null || break
24597 rm -f conftest.defines
24598 mv conftest.tail conftest.defines
24599 done
24600 rm -f conftest.defines conftest.tail
24601
24602 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24603 cat >>$CONFIG_STATUS <<\_ACEOF
24604 if test x"$ac_file" != x-; then
24605 echo "/* $configure_input */" >"$tmp/config.h"
24606 cat "$ac_result" >>"$tmp/config.h"
24607 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24608 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24609 echo "$as_me: $ac_file is unchanged" >&6;}
24610 else
24611 rm -f $ac_file
24612 mv "$tmp/config.h" $ac_file
24613 fi
24614 else
24615 echo "/* $configure_input */"
24616 cat "$ac_result"
24617 fi
24618 rm -f "$tmp/out12"
24619 ;;
24620
24621 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24622 echo "$as_me: executing $ac_file commands" >&6;}
24623 ;;
24624 esac
24625
24626
24627 case $ac_file$ac_mode in
24628 "default":C)
24629
24630 ### Make the necessary directories, if they don't exist.
24631 for dir in etc lisp ; do
24632 test -d ${dir} || mkdir ${dir}
24633 done
24634
24635 # Build src/Makefile from ${srcdir}/src/Makefile.c
24636 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24637 # This must be done after src/config.h is built, since we rely on that file.
24638
24639 # Now get this: Some word that is part of the ${srcdir} directory name
24640 # or the ${configuration} value might, just might, happen to be an
24641 # identifier like `sun4' or `i386' or something, and be predefined by
24642 # the C preprocessor to some helpful value like 1, or maybe the empty
24643 # string. Needless to say consequent macro substitutions are less
24644 # than conducive to the makefile finding the correct directory.
24645 undefs="`echo $top_srcdir $configuration $canonical |
24646 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24647 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24648 `"
24649
24650 echo creating src/epaths.h
24651 ${MAKE-make} epaths-force
24652
24653 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24654 # `..' to `. .' unless invoked with -traditional
24655
24656 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24657 CPPFLAGS="$CPPFLAGS -traditional"
24658 fi
24659
24660 echo creating lib-src/Makefile
24661 ( cd lib-src
24662 rm -f junk.c junk1.c junk2.c
24663 sed -e '/start of cpp stuff/q' \
24664 < Makefile.c > junk1.c
24665 sed -e '1,/start of cpp stuff/d'\
24666 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24667 < Makefile.c > junk.c
24668 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24669 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24670 cat junk1.c junk2.c > Makefile.new
24671 rm -f junk.c junk1.c junk2.c
24672 chmod 444 Makefile.new
24673 mv -f Makefile.new Makefile
24674 )
24675
24676 echo creating src/Makefile
24677 ( cd src
24678 rm -f junk.c junk1.c junk2.c
24679 sed -e '/start of cpp stuff/q' \
24680 < Makefile.c > junk1.c
24681 sed -e '1,/start of cpp stuff/d'\
24682 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24683 < Makefile.c > junk.c
24684 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
24685 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
24686 fi
24687 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24688 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24689 cat junk1.c junk2.c > Makefile.new
24690 rm -f junk.c junk1.c junk2.c
24691 chmod 444 Makefile.new
24692 mv -f Makefile.new Makefile
24693 )
24694
24695 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24696 echo creating src/.gdbinit
24697 echo source $srcdir/src/.gdbinit > src/.gdbinit
24698 fi
24699
24700 # This is how we know whether to re-run configure in certain cases.
24701 touch src/config.stamp
24702
24703 ;;
24704
24705 esac
24706 done # for ac_tag
24707
24708
24709 { (exit 0); exit 0; }
24710 _ACEOF
24711 chmod +x $CONFIG_STATUS
24712 ac_clean_files=$ac_clean_files_save
24713
24714
24715 # configure is writing to config.log, and then calls config.status.
24716 # config.status does its own redirection, appending to config.log.
24717 # Unfortunately, on DOS this fails, as config.log is still kept open
24718 # by configure, so config.status won't be able to write to it; its
24719 # output is simply discarded. So we exec the FD to /dev/null,
24720 # effectively closing config.log, so it can be properly (re)opened and
24721 # appended to by config.status. When coming back to configure, we
24722 # need to make the FD available again.
24723 if test "$no_create" != yes; then
24724 ac_cs_success=:
24725 ac_config_status_args=
24726 test "$silent" = yes &&
24727 ac_config_status_args="$ac_config_status_args --quiet"
24728 exec 5>/dev/null
24729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24730 exec 5>>config.log
24731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24732 # would make configure fail if this is the last instruction.
24733 $ac_cs_success || { (exit 1); exit 1; }
24734 fi
24735
24736