]> code.delx.au - gnu-emacs/blob - configure
Restore file since src/unexhp9k800.c, on which it depends, is
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 ALLOCA
695 liblockfile
696 LIBOBJS
697 NEED_SETGID
698 KMEM_GROUP
699 GETLOADAVG_LIBS
700 GETOPT_H
701 GETOPTOBJS
702 version
703 configuration
704 canonical
705 srcdir
706 lispdir
707 locallisppath
708 lisppath
709 x_default_search_path
710 etcdir
711 archlibdir
712 bitmapdir
713 gamedir
714 gameuser
715 c_switch_system
716 c_switch_machine
717 LD_SWITCH_X_SITE
718 LD_SWITCH_X_SITE_AUX
719 C_SWITCH_X_SITE
720 X_TOOLKIT_TYPE
721 machfile
722 opsysfile
723 carbon_appdir
724 LTLIBOBJS'
725 ac_subst_files=''
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
729 CC
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
734 CPP
735 XMKMF'
736
737
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
757
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
783
784 ac_prev=
785 ac_dashdash=
786 for ac_option
787 do
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
793 fi
794
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
799
800 # Accept the important Cygnus configure options, so we can diagnose typos.
801
802 case $ac_dashdash$ac_option in
803 --)
804 ac_dashdash=yes ;;
805
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
810
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
815
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
822
823 --config-cache | -C)
824 cache_file=config.cache ;;
825
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
830
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
837
838 -disable-* | --disable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=no ;;
846
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
851
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
856
857 -enable-* | --enable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_$ac_feature=\$ac_optarg ;;
865
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
874
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
878
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
885
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
890
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
896
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
903
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
908
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
913
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
920
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
925
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
932
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
937
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
941
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
945
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
949
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
958
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
963
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
970
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
977
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
994
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
999
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1004
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1008
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1014
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1025
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1030
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1035
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1042
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1047
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1050
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1053
1054 -with-* | --with-*)
1055 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=\$ac_optarg ;;
1062
1063 -without-* | --without-*)
1064 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=no ;;
1071
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1075
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1082
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1089
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1093 ;;
1094
1095 *=*)
1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1103
1104 *)
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1110 ;;
1111
1112 esac
1113 done
1114
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1119 fi
1120
1121 # Be sure to have absolute directory names.
1122 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1126 do
1127 eval ac_val=\$$ac_var
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1134 done
1135
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1139 build=$build_alias
1140 host=$host_alias
1141 target=$target_alias
1142
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x; then
1145 if test "x$build_alias" = x; then
1146 cross_compiling=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1150 cross_compiling=yes
1151 fi
1152 fi
1153
1154 ac_tool_prefix=
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1156
1157 test "$silent" = yes && exec 6>/dev/null
1158
1159
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1168
1169
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 echo X"$0" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1182 q
1183 }
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1186 q
1187 }
1188 /^X\(\/\/\)$/{
1189 s//\1/
1190 q
1191 }
1192 /^X\(\/\).*/{
1193 s//\1/
1194 q
1195 }
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1200 fi
1201 else
1202 ac_srcdir_defaulted=no
1203 fi
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1208 fi
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1213 pwd)`
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1217 fi
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1221 case $srcdir in
1222 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 esac
1224 for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 done
1230
1231 #
1232 # Report the --help message.
1233 #
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238 \`configure' configures this package to adapt to many kinds of systems.
1239
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1241
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1244
1245 Defaults for the options are specified in brackets.
1246
1247 Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1263
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1268
1269 For better control, use the options below.
1270
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1292
1293 cat <<\_ACEOF
1294
1295 Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1299
1300 X features:
1301 --x-includes=DIR X include files are in DIR
1302 --x-libraries=DIR X library files are in DIR
1303
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311
1312 cat <<\_ACEOF
1313
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-carbon-app[=DIR] [DIR=/Application]
1318 specify install directory for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search for lisp files
1324 specific to this site
1325 --disable-largefile omit support for large files
1326
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc don't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version 5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server host
1335 --without-sound don't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1350
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CPP C preprocessor
1360 XMKMF Path to xmkmf, Makefile generator for X Window System
1361
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1364
1365 _ACEOF
1366 ac_status=$?
1367 fi
1368
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1373 ac_builddir=.
1374
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *)
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1390
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1420 fi
1421
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 configure
1426 generated by GNU Autoconf 2.61
1427
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1434 fi
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1438
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1441
1442 $ $0 $@
1443
1444 _ACEOF
1445 exec 5>>config.log
1446 {
1447 cat <<_ASUNAME
1448 ## --------- ##
1449 ## Platform. ##
1450 ## --------- ##
1451
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1457
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1460
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1468
1469 _ASUNAME
1470
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1473 do
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1477 done
1478 IFS=$as_save_IFS
1479
1480 } >&5
1481
1482 cat >&5 <<_ACEOF
1483
1484
1485 ## ----------- ##
1486 ## Core tests. ##
1487 ## ----------- ##
1488
1489 _ACEOF
1490
1491
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_configure_args=
1498 ac_configure_args0=
1499 ac_configure_args1=
1500 ac_must_keep_next=false
1501 for ac_pass in 1 2
1502 do
1503 for ac_arg
1504 do
1505 case $ac_arg in
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 continue ;;
1510 *\'*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512 esac
1513 case $ac_pass in
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1515 2)
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1519 else
1520 case $ac_arg in
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 esac
1528 ;;
1529 -* ) ac_must_keep_next=true ;;
1530 esac
1531 fi
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1533 ;;
1534 esac
1535 done
1536 done
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1539
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1547 {
1548 echo
1549
1550 cat <<\_ASBOX
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1554 _ASBOX
1555 echo
1556 # The following way of writing the cache mishandles newlines in values,
1557 (
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1560 case $ac_val in #(
1561 *${as_nl}*)
1562 case $ac_var in #(
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 esac
1566 case $ac_var in #(
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1569 esac ;;
1570 esac
1571 done
1572 (set) 2>&1 |
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1575 sed -n \
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 ;; #(
1579 *)
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1581 ;;
1582 esac |
1583 sort
1584 )
1585 echo
1586
1587 cat <<\_ASBOX
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1591 _ASBOX
1592 echo
1593 for ac_var in $ac_subst_vars
1594 do
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1602
1603 if test -n "$ac_subst_files"; then
1604 cat <<\_ASBOX
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_files
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619 fi
1620
1621 if test -s confdefs.h; then
1622 cat <<\_ASBOX
1623 ## ----------- ##
1624 ## confdefs.h. ##
1625 ## ----------- ##
1626 _ASBOX
1627 echo
1628 cat confdefs.h
1629 echo
1630 fi
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1634 } >&5
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 exit $exit_status
1638 ' 0
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 done
1642 ac_signal=0
1643
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1646
1647 # Predefined preprocessor variables.
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 _ACEOF
1652
1653
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 _ACEOF
1657
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 _ACEOF
1672
1673
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 else
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1683 fi
1684 shift
1685 for ac_site_file
1686 do
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file"
1692 fi
1693 done
1694
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1704 esac
1705 fi
1706 else
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file
1710 fi
1711
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1716 # value.
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1724 set,)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1726 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,set)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,);;
1733 *)
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1738 echo "$as_me: former value: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1740 echo "$as_me: current value: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1742 fi;;
1743 esac
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1746 case $ac_new_val in
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1749 esac
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 esac
1754 fi
1755 done
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1762 fi
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785
1786
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1788
1789
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s,x,x', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1799 _ACEOF
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1801 rm -f conftest.sed
1802
1803
1804 lispdir='${datadir}/emacs/${version}/lisp'
1805 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1806 '${datadir}/emacs/site-lisp'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1808 etcdir='${datadir}/emacs/${version}/etc'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs/${version}/etc'
1811 gamedir='${localstatedir}/games/emacs'
1812
1813 gameuser=games
1814
1815
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1818 withval=$with_gcc;
1819 fi
1820
1821
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1827 _ACEOF
1828
1829 else :
1830 fi
1831 else
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1834 _ACEOF
1835
1836 fi
1837
1838
1839
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1844 #define KERBEROS 1
1845 _ACEOF
1846
1847 fi
1848 fi
1849
1850
1851
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1856 with_kerberos=yes
1857 cat >>confdefs.h <<\_ACEOF
1858 #define KERBEROS 1
1859 _ACEOF
1860
1861 fi
1862
1863 cat >>confdefs.h <<\_ACEOF
1864 #define KERBEROS5 1
1865 _ACEOF
1866
1867 fi
1868 fi
1869
1870
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1874
1875 cat >>confdefs.h <<\_ACEOF
1876 #define HESIOD 1
1877 _ACEOF
1878
1879 fi
1880 fi
1881
1882
1883
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1887 fi
1888
1889
1890
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=athena ;;
1895 n | no ) val=no ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1900 * )
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1902 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1903 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1904 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1905 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1906 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1908 ;;
1909 esac
1910 with_x_toolkit=$val
1911
1912 fi
1913
1914
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1917 withval=$with_xpm;
1918 fi
1919
1920
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1923 withval=$with_jpeg;
1924 fi
1925
1926
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1929 withval=$with_tiff;
1930 fi
1931
1932
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1935 withval=$with_gif;
1936 fi
1937
1938
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1941 withval=$with_png;
1942 fi
1943
1944
1945 # Check whether --with-gtk was given.
1946 if test "${with_gtk+set}" = set; then
1947 withval=$with_gtk;
1948 fi
1949
1950
1951 # Check whether --with-pkg-config-prog was given.
1952 if test "${with_pkg_config_prog+set}" = set; then
1953 withval=$with_pkg_config_prog;
1954 fi
1955
1956
1957 # Check whether --with-toolkit-scroll-bars was given.
1958 if test "${with_toolkit_scroll_bars+set}" = set; then
1959 withval=$with_toolkit_scroll_bars;
1960 fi
1961
1962
1963 # Check whether --with-xim was given.
1964 if test "${with_xim+set}" = set; then
1965 withval=$with_xim;
1966 fi
1967
1968
1969 # Check whether --with-carbon was given.
1970 if test "${with_carbon+set}" = set; then
1971 withval=$with_carbon;
1972 fi
1973
1974 # Check whether --enable-carbon-app was given.
1975 if test "${enable_carbon_app+set}" = set; then
1976 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1977 fi
1978
1979
1980 # Check whether --enable-asserts was given.
1981 if test "${enable_asserts+set}" = set; then
1982 enableval=$enable_asserts; USE_XASSERTS=$enableval
1983 else
1984 USE_XASSERTS=no
1985 fi
1986
1987
1988 # Check whether --enable-maintainer-mode was given.
1989 if test "${enable_maintainer_mode+set}" = set; then
1990 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1991 else
1992 USE_MAINTAINER_MODE=no
1993 fi
1994
1995 if test $USE_MAINTAINER_MODE = yes; then
1996 MAINT=
1997 else
1998 MAINT=#
1999 fi
2000
2001
2002 # Check whether --enable-locallisppath was given.
2003 if test "${enable_locallisppath+set}" = set; then
2004 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2005 locallisppath=
2006 elif test "${enableval}" != "yes"; then
2007 locallisppath=${enableval}
2008 fi
2009 fi
2010
2011
2012 #### Make srcdir absolute, if it isn't already. It's important to
2013 #### avoid running the path through pwd unnecessarily, since pwd can
2014 #### give you automounter prefixes, which can go away. We do all this
2015 #### so Emacs can find its files when run uninstalled.
2016 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2017 unset CDPATH
2018 case "${srcdir}" in
2019 /* ) ;;
2020 . )
2021 ## We may be able to use the $PWD environment variable to make this
2022 ## absolute. But sometimes PWD is inaccurate.
2023 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2024 ## but that tested only for a well-formed and valid PWD,
2025 ## it did not object when PWD was well-formed and valid but just wrong.
2026 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2027 then
2028 srcdir="$PWD"
2029 else
2030 srcdir="`(cd ${srcdir}; pwd)`"
2031 fi
2032 ;;
2033 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2034 esac
2035
2036 #### Check if the source directory already has a configured system in it.
2037 if test `pwd` != `(cd ${srcdir} && pwd)` \
2038 && test -f "${srcdir}/src/config.h" ; then
2039 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2040 as a build directory right now; it has been configured in its own
2041 right. To configure in another directory as well, you MUST
2042 use GNU make. If you do not have GNU make, then you must
2043 now do \`make distclean' in ${srcdir},
2044 and then run $0 again." >&5
2045 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&2;}
2051 fi
2052
2053 #### Given the configuration name, set machfile and opsysfile to the
2054 #### names of the m/*.h and s/*.h files we should use.
2055
2056 ### Canonicalize the configuration name.
2057
2058 ac_aux_dir=
2059 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2060 if test -f "$ac_dir/install-sh"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/install-sh -c"
2063 break
2064 elif test -f "$ac_dir/install.sh"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install.sh -c"
2067 break
2068 elif test -f "$ac_dir/shtool"; then
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/shtool install -c"
2071 break
2072 fi
2073 done
2074 if test -z "$ac_aux_dir"; then
2075 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2076 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2077 { (exit 1); exit 1; }; }
2078 fi
2079
2080 # These three variables are undocumented and unsupported,
2081 # and are intended to be withdrawn in a future Autoconf release.
2082 # They can cause serious problems if a builder's source tree is in a directory
2083 # whose full name contains unusual characters.
2084 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2085 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2086 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2087
2088
2089 # Make sure we can run config.sub.
2090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2091 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2093 { (exit 1); exit 1; }; }
2094
2095 { echo "$as_me:$LINENO: checking build system type" >&5
2096 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2097 if test "${ac_cv_build+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 ac_build_alias=$build_alias
2101 test "x$ac_build_alias" = x &&
2102 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2103 test "x$ac_build_alias" = x &&
2104 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2106 { (exit 1); exit 1; }; }
2107 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2111
2112 fi
2113 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114 echo "${ECHO_T}$ac_cv_build" >&6; }
2115 case $ac_cv_build in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118 echo "$as_me: error: invalid value of canonical build" >&2;}
2119 { (exit 1); exit 1; }; };;
2120 esac
2121 build=$ac_cv_build
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_build
2124 shift
2125 build_cpu=$1
2126 build_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 build_os=$*
2131 IFS=$ac_save_IFS
2132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2133
2134
2135 { echo "$as_me:$LINENO: checking host system type" >&5
2136 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_host+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140 if test "x$host_alias" = x; then
2141 ac_cv_host=$ac_cv_build
2142 else
2143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2147 fi
2148
2149 fi
2150 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151 echo "${ECHO_T}$ac_cv_host" >&6; }
2152 case $ac_cv_host in
2153 *-*-*) ;;
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155 echo "$as_me: error: invalid value of canonical host" >&2;}
2156 { (exit 1); exit 1; }; };;
2157 esac
2158 host=$ac_cv_host
2159 ac_save_IFS=$IFS; IFS='-'
2160 set x $ac_cv_host
2161 shift
2162 host_cpu=$1
2163 host_vendor=$2
2164 shift; shift
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2167 host_os=$*
2168 IFS=$ac_save_IFS
2169 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2170
2171
2172 canonical=$host
2173 configuration=${host_alias-$host}
2174
2175
2176
2177 ### If you add support for a new configuration, add code to this
2178 ### switch statement to recognize your configuration name and select
2179 ### the appropriate operating system and machine description files.
2180
2181 ### You would hope that you could choose an m/*.h file pretty much
2182 ### based on the machine portion of the configuration name, and an s-
2183 ### file based on the operating system portion. However, it turns out
2184 ### that each m/*.h file is pretty manufacturer-specific - for
2185 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2186 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2187 ### machines. So we basically have to have a special case for each
2188 ### configuration name.
2189 ###
2190 ### As far as handling version numbers on operating systems is
2191 ### concerned, make sure things will fail in a fixable way. If
2192 ### /etc/MACHINES doesn't say anything about version numbers, be
2193 ### prepared to handle anything reasonably. If version numbers
2194 ### matter, be sure /etc/MACHINES says something about it.
2195 ###
2196 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2197 ### "System V Release 4"; he writes, "The old convention encouraged
2198 ### confusion between `system' and `release' levels'."
2199
2200 machine='' opsys='' unported=no
2201 case "${canonical}" in
2202
2203 ## FreeBSD ports
2204 *-*-freebsd* )
2205 opsys=freebsd
2206 case "${canonical}" in
2207 alpha*-*-freebsd*) machine=alpha ;;
2208 ia64-*-freebsd*) machine=ia64 ;;
2209 sparc64-*-freebsd*) machine=sparc ;;
2210 powerpc-*-freebsd*) machine=macppc ;;
2211 i[3456]86-*-freebsd*) machine=intel386 ;;
2212 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2213 esac
2214 ;;
2215
2216 ## NetBSD ports
2217 *-*-netbsd* )
2218 opsys=netbsd
2219 if test -f /usr/lib/crti.o; then
2220
2221 cat >>confdefs.h <<\_ACEOF
2222 #define HAVE_CRTIN
2223 _ACEOF
2224
2225 fi
2226
2227 case "${canonical}" in
2228 alpha*-*-netbsd*) machine=alpha ;;
2229 i[3456]86-*-netbsd*) machine=intel386 ;;
2230 m68k-*-netbsd*)
2231 # This is somewhat bogus.
2232 machine=hp9000s300 ;;
2233 mips-*-netbsd*) machine=pmax ;;
2234 mipsel-*-netbsd*) machine=pmax ;;
2235 mipseb-*-netbsd*) machine=pmax ;;
2236 ns32k-*-netbsd*) machine=ns32000 ;;
2237 powerpc-*-netbsd*) machine=macppc ;;
2238 sparc*-*-netbsd*) machine=sparc ;;
2239 vax-*-netbsd*) machine=vax ;;
2240 arm-*-netbsd*) machine=arm ;;
2241 x86_64-*-netbsd*) machine=amdx86-64 ;;
2242 hppa-*-netbsd*) machine=hp800 ;;
2243 shle-*-netbsd*) machine=sh3el ;;
2244 esac
2245 ;;
2246
2247 ## OpenBSD ports
2248 *-*-openbsd* )
2249 opsys=openbsd
2250 case "${canonical}" in
2251 alpha*-*-openbsd*) machine=alpha ;;
2252 arm-*-openbsd*) machine=arm ;;
2253 hppa-*-openbsd*) machine=hp9000s300 ;;
2254 i386-*-openbsd*) machine=intel386 ;;
2255 m68k-*-openbsd*) machine=hp9000s300 ;;
2256 m88k-*-openbsd*) machine=aviion ;;
2257 mips64-*-openbsd*) machine=mips64 ;;
2258 powerpc-*-openbsd*) machine=macppc ;;
2259 sh-*-openbsd*) machine=sh3el ;;
2260 sparc*-*-openbsd*) machine=sparc ;;
2261 vax-*-openbsd*) machine=vax ;;
2262 x86_64-*-openbsd*) machine=amdx86-64 ;;
2263 esac
2264 ;;
2265
2266 ## LynxOS ports
2267 *-*-lynxos* )
2268 opsys=lynxos
2269 case "${canonical}" in
2270 i[3456]86-*-lynxos*) machine=intel386 ;;
2271 powerpc-*-lynxos*) machine=powerpc ;;
2272 esac
2273 ;;
2274
2275 ## Acorn RISCiX:
2276 arm-acorn-riscix1.1* )
2277 machine=acorn opsys=riscix1-1
2278 ;;
2279 arm-acorn-riscix1.2* | arm-acorn-riscix )
2280 ## This name is riscix12 instead of riscix1.2
2281 ## to avoid a file name conflict on MSDOS.
2282 machine=acorn opsys=riscix12
2283 ;;
2284
2285 ## BSDI ports
2286 *-*-bsdi* )
2287 opsys=bsdi
2288 case "${canonical}" in
2289 i[345]86-*-bsdi*) machine=intel386 ;;
2290 sparc-*-bsdi*) machine=sparc ;;
2291 powerpc-*-bsdi*) machine=macppc ;;
2292 esac
2293 case "${canonical}" in
2294 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2295 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2296 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2297 *-*-bsdi3* ) opsys=bsdos3 ;;
2298 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2299 esac
2300 ;;
2301
2302 ## Alliant machines
2303 ## Strictly speaking, we need the version of the alliant operating
2304 ## system to choose the right machine file, but currently the
2305 ## configuration name doesn't tell us enough to choose the right
2306 ## one; we need to give alliants their own operating system name to
2307 ## do this right. When someone cares, they can help us.
2308 fx80-alliant-* )
2309 machine=alliant4 opsys=bsd4-2
2310 ;;
2311 i860-alliant-* )
2312 machine=alliant-2800 opsys=bsd4-3
2313 ;;
2314
2315 ## Alpha (DEC) machines.
2316 alpha*-dec-osf* )
2317 machine=alpha opsys=osf1
2318 # This is needed to find X11R6.1 libraries for certain tests.
2319 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2320 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2321 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2322 # due to non-traditional preprocessing with the current compiler
2323 # defaults. OSF 4 can also have that compiler version, and there
2324 # seems always to have been a usable /usr/bin/cpp.
2325 NON_GNU_CPP=/usr/bin/cpp
2326 case "${canonical}" in
2327 alpha*-dec-osf[5-9]*)
2328 opsys=osf5-0 ;;
2329 esac
2330 ;;
2331
2332 alpha*-*-linux-gnu* )
2333 machine=alpha opsys=gnu-linux
2334 ;;
2335
2336 arm*-*-linux-gnu* )
2337 machine=arm opsys=gnu-linux
2338 ;;
2339
2340 ## Altos 3068
2341 m68*-altos-sysv* )
2342 machine=altos opsys=usg5-2
2343 ;;
2344
2345 ## Amdahl UTS
2346 580-amdahl-sysv* )
2347 machine=amdahl opsys=usg5-2-2
2348 ;;
2349
2350 ## Apollo, Domain/OS
2351 m68*-apollo-* )
2352 machine=apollo opsys=bsd4-3
2353 ;;
2354
2355 ## Apple Darwin / Mac OS X
2356 *-apple-darwin* )
2357 case "${canonical}" in
2358 i[3456]86-* ) machine=intel386 ;;
2359 powerpc-* ) machine=powermac ;;
2360 * ) unported=yes ;;
2361 esac
2362 opsys=darwin
2363 # Define CPP as follows to make autoconf work correctly.
2364 CPP="${CC-cc} -E -no-cpp-precomp"
2365 # Use fink packages if available.
2366 if test -d /sw/include && test -d /sw/lib; then
2367 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2368 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2369 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2370 fi
2371 ;;
2372
2373 ## AT&T 3b2, 3b5, 3b15, 3b20
2374 we32k-att-sysv* )
2375 machine=att3b opsys=usg5-2-2
2376 ;;
2377
2378 ## AT&T 3b1 - The Mighty Unix PC!
2379 m68*-att-sysv* )
2380 machine=7300 opsys=usg5-2-2
2381 ;;
2382
2383 ## Bull dpx20
2384 rs6000-bull-bosx* )
2385 machine=ibmrs6000 opsys=aix3-2
2386 ;;
2387
2388 ## Bull dpx2
2389 m68*-bull-sysv3* )
2390 machine=dpx2 opsys=usg5-3
2391 ;;
2392
2393 ## Bull sps7
2394 m68*-bull-sysv2* )
2395 machine=sps7 opsys=usg5-2
2396 ;;
2397
2398 ## CCI 5/32, 6/32 -- see "Tahoe".
2399
2400 ## Celerity
2401 ## I don't know what configuration name to use for this; config.sub
2402 ## doesn't seem to know anything about it. Hey, Celerity users, get
2403 ## in touch with us!
2404 celerity-celerity-bsd* )
2405 machine=celerity opsys=bsd4-2
2406 ;;
2407
2408 ## Clipper
2409 ## What operating systems does this chip run that Emacs has been
2410 ## tested on?
2411 clipper-* )
2412 machine=clipper
2413 ## We'll use the catch-all code at the bottom to guess the
2414 ## operating system.
2415 ;;
2416
2417 ## Compaq Nonstop
2418 mips-compaq-nonstopux* )
2419 machine=nonstopux opsys=nonstopux
2420 ;;
2421
2422 ## Convex
2423 *-convex-bsd* | *-convex-convexos* )
2424 machine=convex opsys=bsd4-3
2425 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2426 NON_GNU_CPP="cc -E -P"
2427 ;;
2428
2429 ## Cubix QBx/386
2430 i[3456]86-cubix-sysv* )
2431 machine=intel386 opsys=usg5-3
2432 ;;
2433
2434 ## Cydra 5
2435 cydra*-cydrome-sysv* )
2436 machine=cydra5 opsys=usg5-3
2437 ;;
2438
2439 ## Data General AViiON Machines
2440 ## DG changed naming conventions with the release of 5.4.4.10, they
2441 ## dropped the initial 5.4 but left the intervening R. Because of the
2442 ## R this shouldn't conflict with older versions of the OS (which I
2443 ## think were named like dgux4.*). In addition, DG new AViiONs series
2444 ## uses either Motorola M88k or Intel Pentium CPUs.
2445 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2446 machine=aviion opsys=dgux4
2447 ;;
2448 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2449 ## This name is dgux5-4-3 instead of dgux5-4r3
2450 ## to avoid a file name conflict on MSDOS.
2451 machine=aviion opsys=dgux5-4-3
2452 ;;
2453 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2454 machine=aviion opsys=dgux5-4r2
2455 ;;
2456 m88k-dg-dgux* )
2457 machine=aviion opsys=dgux
2458 ;;
2459
2460 ## Data General AViiON Intel (x86) Machines
2461 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2462 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2463 i[345]86-dg-dguxR4* )
2464 machine=aviion-intel opsys=dgux4
2465 ;;
2466
2467 ## DECstations
2468 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2469 machine=pmax opsys=bsd4-2
2470 ;;
2471 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2472 machine=pmax opsys=bsd4-3
2473 ;;
2474 mips-dec-ultrix* )
2475 machine=pmax opsys=ultrix4-3
2476 ;;
2477 mips-dec-osf* )
2478 machine=pmax opsys=osf1
2479 ;;
2480 mips-dec-mach_bsd4.3* )
2481 machine=pmax opsys=mach-bsd4-3
2482 ;;
2483
2484 ## Motorola Delta machines
2485 m68k-motorola-sysv* | m68000-motorola-sysv* )
2486 machine=delta opsys=usg5-3
2487 if test -z "`type gnucc | grep 'not found'`"
2488 then
2489 if test -s /etc/167config
2490 then CC="gnucc -m68040"
2491 else CC="gnucc -m68881"
2492 fi
2493 else
2494 if test -z "`type gcc | grep 'not found'`"
2495 then CC=gcc
2496 else CC=cc
2497 fi
2498 fi
2499 ;;
2500 m88k-motorola-sysv4* )
2501 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2502 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2503 # I hope there are not other 4.0 versions for this machine
2504 # which really need usg5-4 instead.
2505 machine=delta88k opsys=usg5-4-2
2506 ;;
2507 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2508 machine=delta88k opsys=usg5-3
2509 ;;
2510
2511 ## Dual machines
2512 m68*-dual-sysv* )
2513 machine=dual opsys=usg5-2
2514 ;;
2515 m68*-dual-uniplus* )
2516 machine=dual opsys=unipl5-2
2517 ;;
2518
2519 ## Elxsi 6400
2520 elxsi-elxsi-sysv* )
2521 machine=elxsi opsys=usg5-2
2522 ;;
2523
2524 ## Encore machines
2525 ns16k-encore-bsd* )
2526 machine=ns16000 opsys=umax
2527 ;;
2528
2529 ## The GEC 63 - apparently, this port isn't really finished yet.
2530 # I'm sure we finished off the last of the machines, though. -- fx
2531
2532 ## Gould Power Node and NP1
2533 pn-gould-bsd4.2* )
2534 machine=gould opsys=bsd4-2
2535 ;;
2536 pn-gould-bsd4.3* )
2537 machine=gould opsys=bsd4-3
2538 ;;
2539 np1-gould-bsd* )
2540 machine=gould-np1 opsys=bsd4-3
2541 ;;
2542
2543 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2544 ## as far as Emacs is concerned).
2545 m88k-harris-cxux* )
2546 # Build needs to be different on 7.0 and later releases
2547 case "`uname -r`" in
2548 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2549 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2550 esac
2551 NON_GNU_CPP="/lib/cpp"
2552 ;;
2553 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2554 m68k-harris-cxux* )
2555 machine=nh3000 opsys=cxux
2556 ;;
2557 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2558 powerpc-harris-powerunix )
2559 machine=nh6000 opsys=powerunix
2560 NON_GNU_CPP="cc -Xo -E -P"
2561 ;;
2562 ## Honeywell XPS100
2563 xps*-honeywell-sysv* )
2564 machine=xps100 opsys=usg5-2
2565 ;;
2566
2567 ## HP 9000 series 200 or 300
2568 m68*-hp-bsd* )
2569 machine=hp9000s300 opsys=bsd4-3
2570 ;;
2571 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2572 m68*-hp-hpux* )
2573 case "`uname -r`" in
2574 ## Someone's system reports A.B8.05 for this.
2575 ## I wonder what other possibilities there are.
2576 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2577 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2578 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2579 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2580 *) machine=hp9000s300 opsys=hpux ;;
2581 esac
2582 ;;
2583
2584 hppa*-*-linux-gnu* )
2585 machine=hp800 opsys=gnu-linux
2586 ;;
2587
2588 hppa*-*-nextstep* )
2589 machine=hp800 opsys=nextstep
2590 ;;
2591
2592 ## Orion machines
2593 orion-orion-bsd* )
2594 machine=orion opsys=bsd4-2
2595 ;;
2596 clipper-orion-bsd* )
2597 machine=orion105 opsys=bsd4-2
2598 ;;
2599
2600 ## IBM machines
2601 i[3456]86-ibm-aix1.1* )
2602 machine=ibmps2-aix opsys=usg5-2-2
2603 ;;
2604 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2605 machine=ibmps2-aix opsys=usg5-3
2606 ;;
2607 i370-ibm-aix*)
2608 machine=ibm370aix opsys=usg5-3
2609 ;;
2610 s390-*-linux-gnu* )
2611 machine=ibms390 opsys=gnu-linux
2612 ;;
2613 s390x-*-linux-gnu* )
2614 machine=ibms390x opsys=gnu-linux
2615 ;;
2616 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2617 machine=ibmrs6000 opsys=aix3-1
2618 ;;
2619 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2620 machine=ibmrs6000 opsys=aix3-2-5
2621 ;;
2622 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2623 machine=ibmrs6000 opsys=aix4-1
2624 ;;
2625 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2626 machine=ibmrs6000 opsys=aix4-2
2627 ;;
2628 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2629 machine=ibmrs6000 opsys=aix4-2
2630 ;;
2631 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2632 machine=ibmrs6000 opsys=aix4-2
2633 ;;
2634 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2635 machine=ibmrs6000 opsys=aix4
2636 ;;
2637 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2638 machine=ibmrs6000 opsys=aix4-1
2639 ;;
2640 rs6000-ibm-aix* | powerpc-ibm-aix* )
2641 machine=ibmrs6000 opsys=aix3-2
2642 ;;
2643 romp-ibm-bsd4.3* )
2644 machine=ibmrt opsys=bsd4-3
2645 ;;
2646 romp-ibm-bsd4.2* )
2647 machine=ibmrt opsys=bsd4-2
2648 ;;
2649 romp-ibm-aos4.3* )
2650 machine=ibmrt opsys=bsd4-3
2651 ;;
2652 romp-ibm-aos4.2* )
2653 machine=ibmrt opsys=bsd4-2
2654 ;;
2655 romp-ibm-aos* )
2656 machine=ibmrt opsys=bsd4-3
2657 ;;
2658 romp-ibm-bsd* )
2659 machine=ibmrt opsys=bsd4-3
2660 ;;
2661 romp-ibm-aix* )
2662 machine=ibmrt-aix opsys=usg5-2-2
2663 ;;
2664
2665 ## Integrated Solutions `Optimum V'
2666 m68*-isi-bsd4.2* )
2667 machine=isi-ov opsys=bsd4-2
2668 ;;
2669 m68*-isi-bsd4.3* )
2670 machine=isi-ov opsys=bsd4-3
2671 ;;
2672
2673 ## Intel 386 machines where we do care about the manufacturer
2674 i[3456]86-intsys-sysv* )
2675 machine=is386 opsys=usg5-2-2
2676 ;;
2677
2678 ## Prime EXL
2679 i[3456]86-prime-sysv* )
2680 machine=i386 opsys=usg5-3
2681 ;;
2682
2683 ## Sequent Symmetry running Dynix
2684 i[3456]86-sequent-bsd* )
2685 machine=symmetry opsys=bsd4-3
2686 ;;
2687
2688 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2689 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2690 machine=sequent-ptx opsys=ptx4
2691 NON_GNU_CPP=/lib/cpp
2692 ;;
2693
2694 ## Sequent Symmetry running DYNIX/ptx
2695 ## Use the old cpp rather than the newer ANSI one.
2696 i[3456]86-sequent-ptx* )
2697 machine=sequent-ptx opsys=ptx
2698 NON_GNU_CPP="/lib/cpp"
2699 ;;
2700
2701 ## ncr machine running svr4.3.
2702 i[3456]86-ncr-sysv4.3 )
2703 machine=ncr386 opsys=usg5-4-3
2704 ;;
2705
2706 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2707 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2708 i[3456]86-ncr-sysv* )
2709 machine=ncr386 opsys=usg5-4-2
2710 ;;
2711
2712 ## Intel Paragon OSF/1
2713 i860-intel-osf1* )
2714 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2715 ;;
2716
2717 ## Intel 860
2718 i860-*-sysv4* )
2719 machine=i860 opsys=usg5-4
2720 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2721 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2722 ;;
2723
2724 ## Macintosh PowerPC
2725 powerpc*-*-linux-gnu* )
2726 machine=macppc opsys=gnu-linux
2727 ;;
2728
2729 ## Masscomp machines
2730 m68*-masscomp-rtu* )
2731 machine=masscomp opsys=rtu
2732 ;;
2733
2734 ## Megatest machines
2735 m68*-megatest-bsd* )
2736 machine=mega68 opsys=bsd4-2
2737 ;;
2738
2739 ## Workstations sold by MIPS
2740 ## This is not necessarily all workstations using the MIPS processor -
2741 ## Irises are produced by SGI, and DECstations by DEC.
2742
2743 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2744 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2745 ## it gives for choosing between the alternatives seems to be "Use
2746 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2747 ## the BSD world." I'll assume that these are instructions for
2748 ## handling two odd situations, and that every other situation
2749 ## should use mips.h and usg5-2-2, they being listed first.
2750 mips-mips-usg* )
2751 machine=mips4
2752 ## Fall through to the general code at the bottom to decide on the OS.
2753 ;;
2754 mips-mips-riscos4* )
2755 machine=mips4 opsys=bsd4-3
2756 NON_GNU_CC="cc -systype bsd43"
2757 NON_GNU_CPP="cc -systype bsd43 -E"
2758 ;;
2759 mips-mips-riscos5* )
2760 machine=mips4 opsys=riscos5
2761 NON_GNU_CC="cc -systype bsd43"
2762 NON_GNU_CPP="cc -systype bsd43 -E"
2763 ;;
2764 mips-mips-bsd* )
2765 machine=mips opsys=bsd4-3
2766 ;;
2767 mips-mips-* )
2768 machine=mips opsys=usg5-2-2
2769 ;;
2770
2771 ## NeXT
2772 m68*-next-* | m68k-*-nextstep* )
2773 machine=m68k opsys=nextstep
2774 ;;
2775
2776 ## The complete machine from National Semiconductor
2777 ns32k-ns-genix* )
2778 machine=ns32000 opsys=usg5-2
2779 ;;
2780
2781 ## NCR machines
2782 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2783 machine=tower32 opsys=usg5-2-2
2784 ;;
2785 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2786 machine=tower32v3 opsys=usg5-3
2787 ;;
2788
2789 ## NEC EWS4800
2790 mips-nec-sysv4*)
2791 machine=ews4800 opsys=ux4800
2792 ;;
2793
2794 ## Nixdorf Targon 31
2795 m68*-nixdorf-sysv* )
2796 machine=targon31 opsys=usg5-2-2
2797 ;;
2798
2799 ## Nu (TI or LMI)
2800 m68*-nu-sysv* )
2801 machine=nu opsys=usg5-2
2802 ;;
2803
2804 ## Plexus
2805 m68*-plexus-sysv* )
2806 machine=plexus opsys=usg5-2
2807 ;;
2808
2809 ## Pyramid machines
2810 ## I don't really have any idea what sort of processor the Pyramid has,
2811 ## so I'm assuming it is its own architecture.
2812 pyramid-pyramid-bsd* )
2813 machine=pyramid opsys=bsd4-2
2814 ;;
2815
2816 ## Sequent Balance
2817 ns32k-sequent-bsd4.2* )
2818 machine=sequent opsys=bsd4-2
2819 ;;
2820 ns32k-sequent-bsd4.3* )
2821 machine=sequent opsys=bsd4-3
2822 ;;
2823
2824 ## Siemens Nixdorf
2825 mips-siemens-sysv* | mips-sni-sysv*)
2826 machine=mips-siemens opsys=usg5-4
2827 NON_GNU_CC=/usr/ccs/bin/cc
2828 NON_GNU_CPP=/usr/ccs/lib/cpp
2829 ;;
2830
2831 ## Silicon Graphics machines
2832 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2833 m68*-sgi-iris3.5* )
2834 machine=irist opsys=iris3-5
2835 ;;
2836 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2837 machine=irist opsys=iris3-6
2838 ;;
2839 ## Iris 4D
2840 mips-sgi-irix3* )
2841 machine=iris4d opsys=irix3-3
2842 ;;
2843 mips-sgi-irix4* )
2844 machine=iris4d opsys=irix4-0
2845 ;;
2846 mips-sgi-irix6.5 )
2847 machine=iris4d opsys=irix6-5
2848 # Without defining _LANGUAGE_C, things get masked out in the headers
2849 # so that, for instance, grepping for `free' in stdlib.h fails and
2850 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2851 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2852 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2853 ;;
2854 mips-sgi-irix6* )
2855 machine=iris4d opsys=irix6-0
2856 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2857 # but presumably it does no harm.
2858 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2859 # -32 probably isn't necessary in later v.6s -- anyone know which?
2860 NON_GCC_TEST_OPTIONS=-32
2861 ;;
2862 mips-sgi-irix5.[01]* )
2863 machine=iris4d opsys=irix5-0
2864 ;;
2865 mips-sgi-irix5* | mips-sgi-irix* )
2866 machine=iris4d opsys=irix5-2
2867 ;;
2868
2869 ## SONY machines
2870 m68*-sony-bsd4.2* )
2871 machine=news opsys=bsd4-2
2872 ;;
2873 m68*-sony-bsd4.3* )
2874 machine=news opsys=bsd4-3
2875 ;;
2876 m68*-sony-newsos3* | m68*-sony-news3*)
2877 machine=news opsys=bsd4-3
2878 ;;
2879 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2880 machine=news-risc opsys=bsd4-3
2881 ;;
2882 mips-sony-newsos6* )
2883 machine=news-r6 opsys=newsos6
2884 ;;
2885 mips-sony-news* )
2886 machine=news-risc opsys=newsos5
2887 ;;
2888
2889 ## Stride
2890 m68*-stride-sysv* )
2891 machine=stride opsys=usg5-2
2892 ;;
2893
2894 ## Suns
2895 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2896 machine=sparc opsys=gnu-linux
2897 ;;
2898
2899 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2900 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2901 | rs6000-*-solaris2*)
2902 case "${canonical}" in
2903 m68*-sunos1* ) machine=sun1 ;;
2904 m68*-sunos2* ) machine=sun2 ;;
2905 m68* ) machine=sun3 ;;
2906 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2907 i[3456]86-*-* ) machine=intel386 ;;
2908 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2909 powerpcle* ) machine=powerpcle ;;
2910 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2911 sparc* ) machine=sparc ;;
2912 * ) unported=yes ;;
2913 esac
2914 case "${canonical}" in
2915 ## The Sun386 didn't get past 4.0.
2916 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2917 *-sunos4.0* ) opsys=sunos4-0 ;;
2918 *-sunos4.1.[3-9]*noshare )
2919 ## This name is sunos413 instead of sunos4-1-3
2920 ## to avoid a file name conflict on MSDOS.
2921 opsys=sunos413
2922 NON_GNU_CPP=/usr/lib/cpp
2923 NON_GCC_TEST_OPTIONS=-Bstatic
2924 GCC_TEST_OPTIONS=-static
2925 ;;
2926 *-sunos4.1.[3-9]* | *-sunos4shr*)
2927 opsys=sunos4shr
2928 NON_GNU_CPP=/usr/lib/cpp
2929 ;;
2930 *-sunos4* | *-sunos )
2931 opsys=sunos4-1
2932 NON_GCC_TEST_OPTIONS=-Bstatic
2933 GCC_TEST_OPTIONS=-static
2934 ;;
2935 *-sunos5.3* | *-solaris2.3* )
2936 opsys=sol2-3
2937 NON_GNU_CPP=/usr/ccs/lib/cpp
2938 ;;
2939 *-sunos5.4* | *-solaris2.4* )
2940 opsys=sol2-4
2941 NON_GNU_CPP=/usr/ccs/lib/cpp
2942 RANLIB="ar -ts"
2943 ;;
2944 *-sunos5.5* | *-solaris2.5* )
2945 opsys=sol2-5
2946 NON_GNU_CPP=/usr/ccs/lib/cpp
2947 RANLIB="ar -ts"
2948 ;;
2949 *-sunos5.6* | *-solaris2.6* )
2950 opsys=sol2-6
2951 NON_GNU_CPP=/usr/ccs/lib/cpp
2952 RANLIB="ar -ts"
2953 ;;
2954 *-sunos5* | *-solaris* )
2955 opsys=sol2-6
2956 NON_GNU_CPP=/usr/ccs/lib/cpp
2957 ;;
2958 * ) opsys=bsd4-2 ;;
2959 esac
2960 ## Watch out for a compiler that we know will not work.
2961 case "${canonical}" in
2962 *-solaris* | *-sunos5* )
2963 if [ "x$CC" = x/usr/ucb/cc ]; then
2964 ## /usr/ucb/cc doesn't work;
2965 ## we should find some other compiler that does work.
2966 unset CC
2967 fi
2968 ;;
2969 *) ;;
2970 esac
2971 ;;
2972 sparc-*-nextstep* )
2973 machine=sparc opsys=nextstep
2974 ;;
2975
2976 ## Tadpole 68k
2977 m68*-tadpole-sysv* )
2978 machine=tad68k opsys=usg5-3
2979 ;;
2980
2981 ## Tahoe machines
2982 tahoe-tahoe-bsd4.2* )
2983 machine=tahoe opsys=bsd4-2
2984 ;;
2985 tahoe-tahoe-bsd4.3* )
2986 machine=tahoe opsys=bsd4-3
2987 ;;
2988
2989 ## Tandem Integrity S2
2990 mips-tandem-sysv* )
2991 machine=tandem-s2 opsys=usg5-3
2992 ;;
2993
2994 ## Tektronix XD88
2995 m88k-tektronix-sysv3* )
2996 machine=tekxd88 opsys=usg5-3
2997 ;;
2998
2999 ## Tektronix 16000 box (6130?)
3000 ns16k-tektronix-bsd* )
3001 machine=ns16000 opsys=bsd4-2
3002 ;;
3003 ## Tektronix 4300
3004 ## src/m/tek4300.h hints that this is a m68k machine.
3005 m68*-tektronix-bsd* )
3006 machine=tek4300 opsys=bsd4-3
3007 ;;
3008
3009 ## Titan P2 or P3
3010 ## We seem to have lost the machine-description file titan.h!
3011 titan-titan-sysv* )
3012 machine=titan opsys=usg5-3
3013 ;;
3014
3015 ## Ustation E30 (SS5E)
3016 m68*-unisys-uniplus* )
3017 machine=ustation opsystem=unipl5-2
3018 ;;
3019
3020 ## Vaxen.
3021 vax-dec-* )
3022 machine=vax
3023 case "${canonical}" in
3024 *-bsd4.1* ) opsys=bsd4-1 ;;
3025 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3026 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3027 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3028 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3029 *-vms* ) opsys=vms ;;
3030 * ) unported=yes
3031 esac
3032 ;;
3033
3034 ## Whitechapel MG1
3035 ns16k-whitechapel-* )
3036 machine=mg1
3037 ## We don't know what sort of OS runs on these; we'll let the
3038 ## operating system guessing code below try.
3039 ;;
3040
3041 ## Wicat
3042 m68*-wicat-sysv* )
3043 machine=wicat opsys=usg5-2
3044 ;;
3045
3046 ## IA-64
3047 ia64*-*-linux* )
3048 machine=ia64 opsys=gnu-linux
3049 ;;
3050
3051 ## Intel 386 machines where we don't care about the manufacturer
3052 i[3456]86-*-* )
3053 machine=intel386
3054 case "${canonical}" in
3055 *-cygwin ) opsys=cygwin ;;
3056 *-darwin* ) opsys=darwin
3057 CPP="${CC-cc} -E -no-cpp-precomp"
3058 ;;
3059 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3060 *-isc2.2* ) opsys=isc2-2 ;;
3061 *-isc4.0* ) opsys=isc4-0 ;;
3062 *-isc4.* ) opsys=isc4-1
3063 GCC_TEST_OPTIONS=-posix
3064 NON_GCC_TEST_OPTIONS=-Xp
3065 ;;
3066 *-isc* ) opsys=isc3-0 ;;
3067 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3068 *-esix* ) opsys=esix ;;
3069 *-xenix* ) opsys=xenix ;;
3070 *-linux-gnu* ) opsys=gnu-linux ;;
3071 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3072 *-sco3.2v5* ) opsys=sco5
3073 NON_GNU_CPP=/lib/cpp
3074 # Prevent -belf from being passed to $CPP.
3075 # /lib/cpp does not accept it.
3076 OVERRIDE_CPPFLAGS=" "
3077 ;;
3078 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3079 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3080 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3081 *-386bsd* ) opsys=386bsd ;;
3082 *-nextstep* ) opsys=nextstep ;;
3083 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3084 esac
3085 ;;
3086
3087 ## m68k Linux-based GNU system
3088 m68k-*-linux-gnu* )
3089 machine=m68k opsys=gnu-linux
3090 ;;
3091
3092 ## Mips Linux-based GNU system
3093 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3094 machine=mips opsys=gnu-linux
3095 ;;
3096
3097 ## UXP/DS
3098 sparc-fujitsu-sysv4* )
3099 machine=sparc opsys=uxpds
3100 NON_GNU_CPP=/usr/ccs/lib/cpp
3101 RANLIB="ar -ts"
3102 ;;
3103
3104 ## UXP/V
3105 f301-fujitsu-uxpv4.1)
3106 machine=f301 opsys=uxpv
3107 ;;
3108
3109 ## AMD x86-64 Linux-based GNU system
3110 x86_64-*-linux-gnu* )
3111 machine=amdx86-64 opsys=gnu-linux
3112 ;;
3113
3114 ## Tensilica Xtensa Linux-based GNU system
3115 xtensa-*-linux-gnu* )
3116 machine=xtensa opsys=gnu-linux
3117 ;;
3118
3119 * )
3120 unported=yes
3121 ;;
3122 esac
3123
3124 ### If the code above didn't choose an operating system, just choose
3125 ### an operating system based on the configuration name. You really
3126 ### only want to use this when you have no idea what the right
3127 ### operating system is; if you know what operating systems a machine
3128 ### runs, it's cleaner to make it explicit in the case statement
3129 ### above.
3130 if test x"${opsys}" = x; then
3131 case "${canonical}" in
3132 *-gnu* ) opsys=gnu ;;
3133 *-bsd4.[01] ) opsys=bsd4-1 ;;
3134 *-bsd4.2 ) opsys=bsd4-2 ;;
3135 *-bsd4.3 ) opsys=bsd4-3 ;;
3136 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3137 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3138 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3139 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3140 *-sysv4.2uw* ) opsys=unixware ;;
3141 *-sysv5uw* ) opsys=unixware ;;
3142 *-sysv5OpenUNIX* ) opsys=unixware ;;
3143 *-sysv4.1* | *-sysvr4.1* )
3144 NON_GNU_CPP=/usr/lib/cpp
3145 opsys=usg5-4 ;;
3146 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3147 if [ x$NON_GNU_CPP = x ]; then
3148 if [ -f /usr/ccs/lib/cpp ]; then
3149 NON_GNU_CPP=/usr/ccs/lib/cpp
3150 else
3151 NON_GNU_CPP=/lib/cpp
3152 fi
3153 fi
3154 opsys=usg5-4-2 ;;
3155 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3156 * )
3157 unported=yes
3158 ;;
3159 esac
3160 fi
3161
3162
3163
3164 if test $unported = yes; then
3165 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3166 Check \`etc/MACHINES' for recognized configuration names." >&5
3167 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3168 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3169 { (exit 1); exit 1; }; }
3170 fi
3171
3172 machfile="m/${machine}.h"
3173 opsysfile="s/${opsys}.h"
3174
3175
3176 #### Choose a compiler.
3177 test -n "$CC" && cc_specified=yes
3178
3179 # Save the value of CFLAGS that the user specified.
3180 SPECIFIED_CFLAGS="$CFLAGS"
3181
3182 case ${with_gcc} in
3183 "yes" ) CC="gcc" GCC=yes ;;
3184 "no" ) : ${CC=cc} ;;
3185 * )
3186 esac
3187 ac_ext=c
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3197 if test "${ac_cv_prog_CC+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3213 fi
3214 done
3215 done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222 { echo "$as_me:$LINENO: result: $CC" >&5
3223 echo "${ECHO_T}$CC" >&6; }
3224 else
3225 { echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6; }
3227 fi
3228
3229
3230 fi
3231 if test -z "$ac_cv_prog_CC"; then
3232 ac_ct_CC=$CC
3233 # Extract the first word of "gcc", so it can be a program name with args.
3234 set dummy gcc; ac_word=$2
3235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240 if test -n "$ac_ct_CC"; then
3241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_ac_ct_CC="gcc"
3251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3261 if test -n "$ac_ct_CC"; then
3262 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3263 echo "${ECHO_T}$ac_ct_CC" >&6; }
3264 else
3265 { echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6; }
3267 fi
3268
3269 if test "x$ac_ct_CC" = x; then
3270 CC=""
3271 else
3272 case $cross_compiling:$ac_tool_warned in
3273 yes:)
3274 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3275 whose name does not start with the host triplet. If you think this
3276 configuration is useful to you, please write to autoconf@gnu.org." >&5
3277 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3278 whose name does not start with the host triplet. If you think this
3279 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3280 ac_tool_warned=yes ;;
3281 esac
3282 CC=$ac_ct_CC
3283 fi
3284 else
3285 CC="$ac_cv_prog_CC"
3286 fi
3287
3288 if test -z "$CC"; then
3289 if test -n "$ac_tool_prefix"; then
3290 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}cc; ac_word=$2
3292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_CC+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 if test -n "$CC"; then
3298 ac_cv_prog_CC="$CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 ac_cv_prog_CC="${ac_tool_prefix}cc"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319 { echo "$as_me:$LINENO: result: $CC" >&5
3320 echo "${ECHO_T}$CC" >&6; }
3321 else
3322 { echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6; }
3324 fi
3325
3326
3327 fi
3328 fi
3329 if test -z "$CC"; then
3330 # Extract the first word of "cc", so it can be a program name with args.
3331 set dummy cc; ac_word=$2
3332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3334 if test "${ac_cv_prog_CC+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 ac_prog_rejected=no
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3349 ac_prog_rejected=yes
3350 continue
3351 fi
3352 ac_cv_prog_CC="cc"
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3359
3360 if test $ac_prog_rejected = yes; then
3361 # We found a bogon in the path, so make sure we never use it.
3362 set dummy $ac_cv_prog_CC
3363 shift
3364 if test $# != 0; then
3365 # We chose a different compiler from the bogus one.
3366 # However, it has the same basename, so the bogon will be chosen
3367 # first if we set CC to just the basename; use the full file name.
3368 shift
3369 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3370 fi
3371 fi
3372 fi
3373 fi
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376 { echo "$as_me:$LINENO: result: $CC" >&5
3377 echo "${ECHO_T}$CC" >&6; }
3378 else
3379 { echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6; }
3381 fi
3382
3383
3384 fi
3385 if test -z "$CC"; then
3386 if test -n "$ac_tool_prefix"; then
3387 for ac_prog in cl.exe
3388 do
3389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3393 if test "${ac_cv_prog_CC+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 break 2
3409 fi
3410 done
3411 done
3412 IFS=$as_save_IFS
3413
3414 fi
3415 fi
3416 CC=$ac_cv_prog_CC
3417 if test -n "$CC"; then
3418 { echo "$as_me:$LINENO: result: $CC" >&5
3419 echo "${ECHO_T}$CC" >&6; }
3420 else
3421 { echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6; }
3423 fi
3424
3425
3426 test -n "$CC" && break
3427 done
3428 fi
3429 if test -z "$CC"; then
3430 ac_ct_CC=$CC
3431 for ac_prog in cl.exe
3432 do
3433 # Extract the first word of "$ac_prog", so it can be a program name with args.
3434 set dummy $ac_prog; ac_word=$2
3435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 if test -n "$ac_ct_CC"; then
3441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 ac_cv_prog_ac_ct_CC="$ac_prog"
3451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3453 fi
3454 done
3455 done
3456 IFS=$as_save_IFS
3457
3458 fi
3459 fi
3460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461 if test -n "$ac_ct_CC"; then
3462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3463 echo "${ECHO_T}$ac_ct_CC" >&6; }
3464 else
3465 { echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6; }
3467 fi
3468
3469
3470 test -n "$ac_ct_CC" && break
3471 done
3472
3473 if test "x$ac_ct_CC" = x; then
3474 CC=""
3475 else
3476 case $cross_compiling:$ac_tool_warned in
3477 yes:)
3478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3479 whose name does not start with the host triplet. If you think this
3480 configuration is useful to you, please write to autoconf@gnu.org." >&5
3481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3482 whose name does not start with the host triplet. If you think this
3483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3484 ac_tool_warned=yes ;;
3485 esac
3486 CC=$ac_ct_CC
3487 fi
3488 fi
3489
3490 fi
3491
3492
3493 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3494 See \`config.log' for more details." >&5
3495 echo "$as_me: error: no acceptable C compiler found in \$PATH
3496 See \`config.log' for more details." >&2;}
3497 { (exit 1); exit 1; }; }
3498
3499 # Provide some information about the compiler.
3500 echo "$as_me:$LINENO: checking for C compiler version" >&5
3501 ac_compiler=`set X $ac_compile; echo $2`
3502 { (ac_try="$ac_compiler --version >&5"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_compiler --version >&5") 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }
3512 { (ac_try="$ac_compiler -v >&5"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compiler -v >&5") 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }
3522 { (ac_try="$ac_compiler -V >&5"
3523 case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compiler -V >&5") 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }
3532
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h. */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539
3540 int
3541 main ()
3542 {
3543
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 ac_clean_files_save=$ac_clean_files
3549 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3550 # Try to create an executable without -o first, disregard a.out.
3551 # It will help us diagnose broken compilers, and finding out an intuition
3552 # of exeext.
3553 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3554 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3555 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3556 #
3557 # List of possible output files, starting from the most likely.
3558 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3559 # only as a last resort. b.out is created by i960 compilers.
3560 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3561 #
3562 # The IRIX 6 linker writes into existing files which may not be
3563 # executable, retaining their permissions. Remove them first so a
3564 # subsequent execution test works.
3565 ac_rmfiles=
3566 for ac_file in $ac_files
3567 do
3568 case $ac_file in
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3570 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3571 esac
3572 done
3573 rm -f $ac_rmfiles
3574
3575 if { (ac_try="$ac_link_default"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_link_default") 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; then
3585 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3586 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3587 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3588 # so that the user can short-circuit this test for compilers unknown to
3589 # Autoconf.
3590 for ac_file in $ac_files ''
3591 do
3592 test -f "$ac_file" || continue
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3595 ;;
3596 [ab].out )
3597 # We found the default executable, but exeext='' is most
3598 # certainly right.
3599 break;;
3600 *.* )
3601 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3602 then :; else
3603 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604 fi
3605 # We set ac_cv_exeext here because the later test for it is not
3606 # safe: cross compilers may not add the suffix if given an `-o'
3607 # argument, so we may need to know it at that point already.
3608 # Even if this section looks crufty: it has the advantage of
3609 # actually working.
3610 break;;
3611 * )
3612 break;;
3613 esac
3614 done
3615 test "$ac_cv_exeext" = no && ac_cv_exeext=
3616
3617 else
3618 ac_file=''
3619 fi
3620
3621 { echo "$as_me:$LINENO: result: $ac_file" >&5
3622 echo "${ECHO_T}$ac_file" >&6; }
3623 if test -z "$ac_file"; then
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3628 See \`config.log' for more details." >&5
3629 echo "$as_me: error: C compiler cannot create executables
3630 See \`config.log' for more details." >&2;}
3631 { (exit 77); exit 77; }; }
3632 fi
3633
3634 ac_exeext=$ac_cv_exeext
3635
3636 # Check that the compiler produces executables we can run. If not, either
3637 # the compiler is broken, or we cross compile.
3638 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3639 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3640 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3641 # If not cross compiling, check that we can run a simple program.
3642 if test "$cross_compiling" != yes; then
3643 if { ac_try='./$ac_file'
3644 { (case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647 esac
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649 (eval "$ac_try") 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; }; then
3653 cross_compiling=no
3654 else
3655 if test "$cross_compiling" = maybe; then
3656 cross_compiling=yes
3657 else
3658 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3659 If you meant to cross compile, use \`--host'.
3660 See \`config.log' for more details." >&5
3661 echo "$as_me: error: cannot run C compiled programs.
3662 If you meant to cross compile, use \`--host'.
3663 See \`config.log' for more details." >&2;}
3664 { (exit 1); exit 1; }; }
3665 fi
3666 fi
3667 fi
3668 { echo "$as_me:$LINENO: result: yes" >&5
3669 echo "${ECHO_T}yes" >&6; }
3670
3671 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3672 ac_clean_files=$ac_clean_files_save
3673 # Check that the compiler produces executables we can run. If not, either
3674 # the compiler is broken, or we cross compile.
3675 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3676 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3677 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3678 echo "${ECHO_T}$cross_compiling" >&6; }
3679
3680 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3681 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3682 if { (ac_try="$ac_link"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688 (eval "$ac_link") 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; then
3692 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3693 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3694 # work properly (i.e., refer to `conftest.exe'), while it won't with
3695 # `rm'.
3696 for ac_file in conftest.exe conftest conftest.*; do
3697 test -f "$ac_file" || continue
3698 case $ac_file in
3699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3701 break;;
3702 * ) break;;
3703 esac
3704 done
3705 else
3706 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3707 See \`config.log' for more details." >&5
3708 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3709 See \`config.log' for more details." >&2;}
3710 { (exit 1); exit 1; }; }
3711 fi
3712
3713 rm -f conftest$ac_cv_exeext
3714 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3715 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3716
3717 rm -f conftest.$ac_ext
3718 EXEEXT=$ac_cv_exeext
3719 ac_exeext=$EXEEXT
3720 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3721 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3722 if test "${ac_cv_objext+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h. */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3731
3732 int
3733 main ()
3734 {
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 rm -f conftest.o conftest.obj
3741 if { (ac_try="$ac_compile"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; then
3751 for ac_file in conftest.o conftest.obj conftest.*; do
3752 test -f "$ac_file" || continue;
3753 case $ac_file in
3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3756 break;;
3757 esac
3758 done
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3764 See \`config.log' for more details." >&5
3765 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3766 See \`config.log' for more details." >&2;}
3767 { (exit 1); exit 1; }; }
3768 fi
3769
3770 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3771 fi
3772 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3773 echo "${ECHO_T}$ac_cv_objext" >&6; }
3774 OBJEXT=$ac_cv_objext
3775 ac_objext=$OBJEXT
3776 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3777 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3778 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781 cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h. */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787
3788 int
3789 main ()
3790 {
3791 #ifndef __GNUC__
3792 choke me
3793 #endif
3794
3795 ;
3796 return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest.$ac_objext
3800 if { (ac_try="$ac_compile"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806 (eval "$ac_compile") 2>conftest.er1
3807 ac_status=$?
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } && {
3813 test -z "$ac_c_werror_flag" ||
3814 test ! -s conftest.err
3815 } && test -s conftest.$ac_objext; then
3816 ac_compiler_gnu=yes
3817 else
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 ac_compiler_gnu=no
3822 fi
3823
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3826
3827 fi
3828 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3829 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3830 GCC=`test $ac_compiler_gnu = yes && echo yes`
3831 ac_test_CFLAGS=${CFLAGS+set}
3832 ac_save_CFLAGS=$CFLAGS
3833 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3834 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3835 if test "${ac_cv_prog_cc_g+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 ac_save_c_werror_flag=$ac_c_werror_flag
3839 ac_c_werror_flag=yes
3840 ac_cv_prog_cc_g=no
3841 CFLAGS="-g"
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3848
3849 int
3850 main ()
3851 {
3852
3853 ;
3854 return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_compile") 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && {
3871 test -z "$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 } && test -s conftest.$ac_objext; then
3874 ac_cv_prog_cc_g=yes
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 CFLAGS=""
3880 cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h. */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3886
3887 int
3888 main ()
3889 {
3890
3891 ;
3892 return 0;
3893 }
3894 _ACEOF
3895 rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_compile") 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } && {
3909 test -z "$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 } && test -s conftest.$ac_objext; then
3912 :
3913 else
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917 ac_c_werror_flag=$ac_save_c_werror_flag
3918 CFLAGS="-g"
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925
3926 int
3927 main ()
3928 {
3929
3930 ;
3931 return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && {
3948 test -z "$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 } && test -s conftest.$ac_objext; then
3951 ac_cv_prog_cc_g=yes
3952 else
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956
3957 fi
3958
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 fi
3961
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 fi
3964
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_c_werror_flag=$ac_save_c_werror_flag
3967 fi
3968 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3969 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3970 if test "$ac_test_CFLAGS" = set; then
3971 CFLAGS=$ac_save_CFLAGS
3972 elif test $ac_cv_prog_cc_g = yes; then
3973 if test "$GCC" = yes; then
3974 CFLAGS="-g -O2"
3975 else
3976 CFLAGS="-g"
3977 fi
3978 else
3979 if test "$GCC" = yes; then
3980 CFLAGS="-O2"
3981 else
3982 CFLAGS=
3983 fi
3984 fi
3985 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3986 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3987 if test "${ac_cv_prog_cc_c89+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990 ac_cv_prog_cc_c89=no
3991 ac_save_CC=$CC
3992 cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h. */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 #include <stdarg.h>
3999 #include <stdio.h>
4000 #include <sys/types.h>
4001 #include <sys/stat.h>
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4006 char **p;
4007 int i;
4008 {
4009 return p[i];
4010 }
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4012 {
4013 char *s;
4014 va_list v;
4015 va_start (v,p);
4016 s = g (p, va_arg (v,int));
4017 va_end (v);
4018 return s;
4019 }
4020
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4022 function prototypes and stuff, but not '\xHH' hex character constants.
4023 These don't provoke an error unfortunately, instead are silently treated
4024 as 'x'. The following induces an error, until -std is added to get
4025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4026 array size at least. It's necessary to write '\x00'==0 to get something
4027 that's true only with -std. */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4029
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031 inside strings and character constants. */
4032 #define FOO(x) 'x'
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4034
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039 int argc;
4040 char **argv;
4041 int
4042 main ()
4043 {
4044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051 do
4052 CC="$ac_save_CC $ac_arg"
4053 rm -f conftest.$ac_objext
4054 if { (ac_try="$ac_compile"
4055 case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } && {
4067 test -z "$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4069 } && test -s conftest.$ac_objext; then
4070 ac_cv_prog_cc_c89=$ac_arg
4071 else
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075
4076 fi
4077
4078 rm -f core conftest.err conftest.$ac_objext
4079 test "x$ac_cv_prog_cc_c89" != "xno" && break
4080 done
4081 rm -f conftest.$ac_ext
4082 CC=$ac_save_CC
4083
4084 fi
4085 # AC_CACHE_VAL
4086 case "x$ac_cv_prog_cc_c89" in
4087 x)
4088 { echo "$as_me:$LINENO: result: none needed" >&5
4089 echo "${ECHO_T}none needed" >&6; } ;;
4090 xno)
4091 { echo "$as_me:$LINENO: result: unsupported" >&5
4092 echo "${ECHO_T}unsupported" >&6; } ;;
4093 *)
4094 CC="$CC $ac_cv_prog_cc_c89"
4095 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4096 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4097 esac
4098
4099
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106
4107 # On Suns, sometimes $CPP names a directory.
4108 if test -n "$CPP" && test -d "$CPP"; then
4109 CPP=
4110 fi
4111
4112 #### Some systems specify a CPP to use unless we are using GCC.
4113 #### Now that we know whether we are using GCC, we can decide whether
4114 #### to use that one.
4115 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4116 then
4117 CPP="$NON_GNU_CPP"
4118 fi
4119
4120 #### Some systems specify a CC to use unless we are using GCC.
4121 #### Now that we know whether we are using GCC, we can decide whether
4122 #### to use that one.
4123 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4124 test x$cc_specified != xyes
4125 then
4126 CC="$NON_GNU_CC"
4127 fi
4128
4129 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4130 then
4131 CC="$CC $GCC_TEST_OPTIONS"
4132 fi
4133
4134 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4135 then
4136 CC="$CC $NON_GCC_TEST_OPTIONS"
4137 fi
4138
4139
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4146 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4147 # On Suns, sometimes $CPP names a directory.
4148 if test -n "$CPP" && test -d "$CPP"; then
4149 CPP=
4150 fi
4151 if test -z "$CPP"; then
4152 if test "${ac_cv_prog_CPP+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155 # Double quotes because CPP needs to be expanded
4156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4157 do
4158 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes
4160 do
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #ifdef __STDC__
4174 # include <limits.h>
4175 #else
4176 # include <assert.h>
4177 #endif
4178 Syntax error
4179 _ACEOF
4180 if { (ac_try="$ac_cpp conftest.$ac_ext"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } >/dev/null && {
4193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4195 }; then
4196 :
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 # Broken: fails on valid input.
4202 continue
4203 fi
4204
4205 rm -f conftest.err conftest.$ac_ext
4206
4207 # OK, works on sane cases. Now check whether nonexistent headers
4208 # can be detected and how.
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <ac_nonexistent.h>
4216 _ACEOF
4217 if { (ac_try="$ac_cpp conftest.$ac_ext"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev/null && {
4230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4232 }; then
4233 # Broken: success on invalid input.
4234 continue
4235 else
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 # Passes both tests.
4240 ac_preproc_ok=:
4241 break
4242 fi
4243
4244 rm -f conftest.err conftest.$ac_ext
4245
4246 done
4247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4248 rm -f conftest.err conftest.$ac_ext
4249 if $ac_preproc_ok; then
4250 break
4251 fi
4252
4253 done
4254 ac_cv_prog_CPP=$CPP
4255
4256 fi
4257 CPP=$ac_cv_prog_CPP
4258 else
4259 ac_cv_prog_CPP=$CPP
4260 fi
4261 { echo "$as_me:$LINENO: result: $CPP" >&5
4262 echo "${ECHO_T}$CPP" >&6; }
4263 ac_preproc_ok=false
4264 for ac_c_preproc_warn_flag in '' yes
4265 do
4266 # Use a header file that comes with gcc, so configuring glibc
4267 # with a fresh cross-compiler works.
4268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269 # <limits.h> exists even on freestanding compilers.
4270 # On the NeXT, cc -E runs the code through the compiler's parser,
4271 # not just through cpp. "Syntax error" is here to catch this case.
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #ifdef __STDC__
4279 # include <limits.h>
4280 #else
4281 # include <assert.h>
4282 #endif
4283 Syntax error
4284 _ACEOF
4285 if { (ac_try="$ac_cpp conftest.$ac_ext"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } >/dev/null && {
4298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4299 test ! -s conftest.err
4300 }; then
4301 :
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4305
4306 # Broken: fails on valid input.
4307 continue
4308 fi
4309
4310 rm -f conftest.err conftest.$ac_ext
4311
4312 # OK, works on sane cases. Now check whether nonexistent headers
4313 # can be detected and how.
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #include <ac_nonexistent.h>
4321 _ACEOF
4322 if { (ac_try="$ac_cpp conftest.$ac_ext"
4323 case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } >/dev/null && {
4335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 }; then
4338 # Broken: success on invalid input.
4339 continue
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 # Passes both tests.
4345 ac_preproc_ok=:
4346 break
4347 fi
4348
4349 rm -f conftest.err conftest.$ac_ext
4350
4351 done
4352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4353 rm -f conftest.err conftest.$ac_ext
4354 if $ac_preproc_ok; then
4355 :
4356 else
4357 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4358 See \`config.log' for more details." >&5
4359 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4360 See \`config.log' for more details." >&2;}
4361 { (exit 1); exit 1; }; }
4362 fi
4363
4364 ac_ext=c
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369
4370
4371 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4372 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4373 if test "${ac_cv_path_GREP+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 # Extract the first word of "grep ggrep" to use in msg output
4377 if test -z "$GREP"; then
4378 set dummy grep ggrep; ac_prog_name=$2
4379 if test "${ac_cv_path_GREP+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382 ac_path_GREP_found=false
4383 # Loop through the user's path and test for each of PROGNAME-LIST
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4386 do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_prog in grep ggrep; do
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4392 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4393 # Check for GNU ac_path_GREP and select it if it is found.
4394 # Check for GNU $ac_path_GREP
4395 case `"$ac_path_GREP" --version 2>&1` in
4396 *GNU*)
4397 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4398 *)
4399 ac_count=0
4400 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4401 while :
4402 do
4403 cat "conftest.in" "conftest.in" >"conftest.tmp"
4404 mv "conftest.tmp" "conftest.in"
4405 cp "conftest.in" "conftest.nl"
4406 echo 'GREP' >> "conftest.nl"
4407 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409 ac_count=`expr $ac_count + 1`
4410 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4411 # Best one so far, save it but keep looking for a better one
4412 ac_cv_path_GREP="$ac_path_GREP"
4413 ac_path_GREP_max=$ac_count
4414 fi
4415 # 10*(2^10) chars as input seems more than enough
4416 test $ac_count -gt 10 && break
4417 done
4418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4419 esac
4420
4421
4422 $ac_path_GREP_found && break 3
4423 done
4424 done
4425
4426 done
4427 IFS=$as_save_IFS
4428
4429
4430 fi
4431
4432 GREP="$ac_cv_path_GREP"
4433 if test -z "$GREP"; then
4434 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4435 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4436 { (exit 1); exit 1; }; }
4437 fi
4438
4439 else
4440 ac_cv_path_GREP=$GREP
4441 fi
4442
4443
4444 fi
4445 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4446 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4447 GREP="$ac_cv_path_GREP"
4448
4449
4450 { echo "$as_me:$LINENO: checking for egrep" >&5
4451 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4452 if test "${ac_cv_path_EGREP+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4456 then ac_cv_path_EGREP="$GREP -E"
4457 else
4458 # Extract the first word of "egrep" to use in msg output
4459 if test -z "$EGREP"; then
4460 set dummy egrep; ac_prog_name=$2
4461 if test "${ac_cv_path_EGREP+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 ac_path_EGREP_found=false
4465 # Loop through the user's path and test for each of PROGNAME-LIST
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4468 do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_prog in egrep; do
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4474 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4475 # Check for GNU ac_path_EGREP and select it if it is found.
4476 # Check for GNU $ac_path_EGREP
4477 case `"$ac_path_EGREP" --version 2>&1` in
4478 *GNU*)
4479 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4480 *)
4481 ac_count=0
4482 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4483 while :
4484 do
4485 cat "conftest.in" "conftest.in" >"conftest.tmp"
4486 mv "conftest.tmp" "conftest.in"
4487 cp "conftest.in" "conftest.nl"
4488 echo 'EGREP' >> "conftest.nl"
4489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4491 ac_count=`expr $ac_count + 1`
4492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4493 # Best one so far, save it but keep looking for a better one
4494 ac_cv_path_EGREP="$ac_path_EGREP"
4495 ac_path_EGREP_max=$ac_count
4496 fi
4497 # 10*(2^10) chars as input seems more than enough
4498 test $ac_count -gt 10 && break
4499 done
4500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4501 esac
4502
4503
4504 $ac_path_EGREP_found && break 3
4505 done
4506 done
4507
4508 done
4509 IFS=$as_save_IFS
4510
4511
4512 fi
4513
4514 EGREP="$ac_cv_path_EGREP"
4515 if test -z "$EGREP"; then
4516 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4517 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4518 { (exit 1); exit 1; }; }
4519 fi
4520
4521 else
4522 ac_cv_path_EGREP=$EGREP
4523 fi
4524
4525
4526 fi
4527 fi
4528 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4529 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4530 EGREP="$ac_cv_path_EGREP"
4531
4532
4533
4534 { echo "$as_me:$LINENO: checking for AIX" >&5
4535 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4536 cat >conftest.$ac_ext <<_ACEOF
4537 /* confdefs.h. */
4538 _ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4542 #ifdef _AIX
4543 yes
4544 #endif
4545
4546 _ACEOF
4547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548 $EGREP "yes" >/dev/null 2>&1; then
4549 { echo "$as_me:$LINENO: result: yes" >&5
4550 echo "${ECHO_T}yes" >&6; }
4551 cat >>confdefs.h <<\_ACEOF
4552 #define _ALL_SOURCE 1
4553 _ACEOF
4554
4555 else
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4558 fi
4559 rm -f conftest*
4560
4561
4562
4563 cat >>confdefs.h <<\_ACEOF
4564 #define _GNU_SOURCE 1
4565 _ACEOF
4566
4567
4568
4569 ### Use -Wno-pointer-sign if the compiler supports it
4570 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4571 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4572 SAVE_CFLAGS="$CFLAGS"
4573 CFLAGS="$CFLAGS -Wno-pointer-sign"
4574 cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h. */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580
4581 int
4582 main ()
4583 {
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (ac_try="$ac_compile"
4591 case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594 esac
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4597 ac_status=$?
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && {
4603 test -z "$ac_c_werror_flag" ||
4604 test ! -s conftest.err
4605 } && test -s conftest.$ac_objext; then
4606 has_option=yes
4607 else
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611 has_option=no
4612 fi
4613
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 if test $has_option = yes; then
4616 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4617 fi
4618 { echo "$as_me:$LINENO: result: $has_option" >&5
4619 echo "${ECHO_T}$has_option" >&6; }
4620 CFLAGS="$SAVE_CFLAGS"
4621 unset has_option
4622 unset SAVE_CFLAGS
4623
4624 #### Some other nice autoconf tests.
4625
4626 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4627 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4628 LN_S=$as_ln_s
4629 if test "$LN_S" = "ln -s"; then
4630 { echo "$as_me:$LINENO: result: yes" >&5
4631 echo "${ECHO_T}yes" >&6; }
4632 else
4633 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4634 echo "${ECHO_T}no, using $LN_S" >&6; }
4635 fi
4636
4637 ac_ext=c
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4643 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4644 # On Suns, sometimes $CPP names a directory.
4645 if test -n "$CPP" && test -d "$CPP"; then
4646 CPP=
4647 fi
4648 if test -z "$CPP"; then
4649 if test "${ac_cv_prog_CPP+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 # Double quotes because CPP needs to be expanded
4653 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4654 do
4655 ac_preproc_ok=false
4656 for ac_c_preproc_warn_flag in '' yes
4657 do
4658 # Use a header file that comes with gcc, so configuring glibc
4659 # with a fresh cross-compiler works.
4660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661 # <limits.h> exists even on freestanding compilers.
4662 # On the NeXT, cc -E runs the code through the compiler's parser,
4663 # not just through cpp. "Syntax error" is here to catch this case.
4664 cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 #ifdef __STDC__
4671 # include <limits.h>
4672 #else
4673 # include <assert.h>
4674 #endif
4675 Syntax error
4676 _ACEOF
4677 if { (ac_try="$ac_cpp conftest.$ac_ext"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev/null && {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 }; then
4693 :
4694 else
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 # Broken: fails on valid input.
4699 continue
4700 fi
4701
4702 rm -f conftest.err conftest.$ac_ext
4703
4704 # OK, works on sane cases. Now check whether nonexistent headers
4705 # can be detected and how.
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #include <ac_nonexistent.h>
4713 _ACEOF
4714 if { (ac_try="$ac_cpp conftest.$ac_ext"
4715 case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev/null && {
4727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4728 test ! -s conftest.err
4729 }; then
4730 # Broken: success on invalid input.
4731 continue
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 # Passes both tests.
4737 ac_preproc_ok=:
4738 break
4739 fi
4740
4741 rm -f conftest.err conftest.$ac_ext
4742
4743 done
4744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4745 rm -f conftest.err conftest.$ac_ext
4746 if $ac_preproc_ok; then
4747 break
4748 fi
4749
4750 done
4751 ac_cv_prog_CPP=$CPP
4752
4753 fi
4754 CPP=$ac_cv_prog_CPP
4755 else
4756 ac_cv_prog_CPP=$CPP
4757 fi
4758 { echo "$as_me:$LINENO: result: $CPP" >&5
4759 echo "${ECHO_T}$CPP" >&6; }
4760 ac_preproc_ok=false
4761 for ac_c_preproc_warn_flag in '' yes
4762 do
4763 # Use a header file that comes with gcc, so configuring glibc
4764 # with a fresh cross-compiler works.
4765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4766 # <limits.h> exists even on freestanding compilers.
4767 # On the NeXT, cc -E runs the code through the compiler's parser,
4768 # not just through cpp. "Syntax error" is here to catch this case.
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h. */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 #ifdef __STDC__
4776 # include <limits.h>
4777 #else
4778 # include <assert.h>
4779 #endif
4780 Syntax error
4781 _ACEOF
4782 if { (ac_try="$ac_cpp conftest.$ac_ext"
4783 case "(($ac_try" in
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4786 esac
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4789 ac_status=$?
4790 grep -v '^ *+' conftest.er1 >conftest.err
4791 rm -f conftest.er1
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } >/dev/null && {
4795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4796 test ! -s conftest.err
4797 }; then
4798 :
4799 else
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803 # Broken: fails on valid input.
4804 continue
4805 fi
4806
4807 rm -f conftest.err conftest.$ac_ext
4808
4809 # OK, works on sane cases. Now check whether nonexistent headers
4810 # can be detected and how.
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 #include <ac_nonexistent.h>
4818 _ACEOF
4819 if { (ac_try="$ac_cpp conftest.$ac_ext"
4820 case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } >/dev/null && {
4832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4834 }; then
4835 # Broken: success on invalid input.
4836 continue
4837 else
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841 # Passes both tests.
4842 ac_preproc_ok=:
4843 break
4844 fi
4845
4846 rm -f conftest.err conftest.$ac_ext
4847
4848 done
4849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4850 rm -f conftest.err conftest.$ac_ext
4851 if $ac_preproc_ok; then
4852 :
4853 else
4854 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4855 See \`config.log' for more details." >&5
4856 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4857 See \`config.log' for more details." >&2;}
4858 { (exit 1); exit 1; }; }
4859 fi
4860
4861 ac_ext=c
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4866
4867 # Find a good install program. We prefer a C program (faster),
4868 # so one script is as good as another. But avoid the broken or
4869 # incompatible versions:
4870 # SysV /etc/install, /usr/sbin/install
4871 # SunOS /usr/etc/install
4872 # IRIX /sbin/install
4873 # AIX /bin/install
4874 # AmigaOS /C/install, which installs bootblocks on floppy discs
4875 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4878 # OS/2's system install, which has a completely different semantic
4879 # ./install, which can be erroneously created by make from ./install.sh.
4880 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4881 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4882 if test -z "$INSTALL"; then
4883 if test "${ac_cv_path_install+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 # Account for people who put trailing slashes in PATH elements.
4892 case $as_dir/ in
4893 ./ | .// | /cC/* | \
4894 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4895 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4896 /usr/ucb/* ) ;;
4897 *)
4898 # OSF1 and SCO ODT 3.0 have their own names for install.
4899 # Don't use installbsd from OSF since it installs stuff as root
4900 # by default.
4901 for ac_prog in ginstall scoinst install; do
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4904 if test $ac_prog = install &&
4905 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4906 # AIX install. It has an incompatible calling convention.
4907 :
4908 elif test $ac_prog = install &&
4909 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4910 # program-specific install script used by HP pwplus--don't use.
4911 :
4912 else
4913 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4914 break 3
4915 fi
4916 fi
4917 done
4918 done
4919 ;;
4920 esac
4921 done
4922 IFS=$as_save_IFS
4923
4924
4925 fi
4926 if test "${ac_cv_path_install+set}" = set; then
4927 INSTALL=$ac_cv_path_install
4928 else
4929 # As a last resort, use the slow shell script. Don't cache a
4930 # value for INSTALL within a source directory, because that will
4931 # break other packages using the cache if that directory is
4932 # removed, or if the value is a relative name.
4933 INSTALL=$ac_install_sh
4934 fi
4935 fi
4936 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4937 echo "${ECHO_T}$INSTALL" >&6; }
4938
4939 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4940 # It thinks the first close brace ends the variable substitution.
4941 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4942
4943 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4944
4945 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4946
4947 if test "x$RANLIB" = x; then
4948 if test -n "$ac_tool_prefix"; then
4949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4950 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4953 if test "${ac_cv_prog_RANLIB+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956 if test -n "$RANLIB"; then
4957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 break 2
4969 fi
4970 done
4971 done
4972 IFS=$as_save_IFS
4973
4974 fi
4975 fi
4976 RANLIB=$ac_cv_prog_RANLIB
4977 if test -n "$RANLIB"; then
4978 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4979 echo "${ECHO_T}$RANLIB" >&6; }
4980 else
4981 { echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6; }
4983 fi
4984
4985
4986 fi
4987 if test -z "$ac_cv_prog_RANLIB"; then
4988 ac_ct_RANLIB=$RANLIB
4989 # Extract the first word of "ranlib", so it can be a program name with args.
4990 set dummy ranlib; ac_word=$2
4991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4993 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996 if test -n "$ac_ct_RANLIB"; then
4997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_ac_ct_RANLIB="ranlib"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014 fi
5015 fi
5016 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5017 if test -n "$ac_ct_RANLIB"; then
5018 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5019 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5020 else
5021 { echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6; }
5023 fi
5024
5025 if test "x$ac_ct_RANLIB" = x; then
5026 RANLIB=":"
5027 else
5028 case $cross_compiling:$ac_tool_warned in
5029 yes:)
5030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5031 whose name does not start with the host triplet. If you think this
5032 configuration is useful to you, please write to autoconf@gnu.org." >&5
5033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5034 whose name does not start with the host triplet. If you think this
5035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5036 ac_tool_warned=yes ;;
5037 esac
5038 RANLIB=$ac_ct_RANLIB
5039 fi
5040 else
5041 RANLIB="$ac_cv_prog_RANLIB"
5042 fi
5043
5044 fi
5045 # Extract the first word of "install-info", so it can be a program name with args.
5046 set dummy install-info; ac_word=$2
5047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 case $INSTALL_INFO in
5053 [\\/]* | ?:[\\/]*)
5054 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5055 ;;
5056 *)
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068 done
5069 done
5070 IFS=$as_save_IFS
5071
5072 ;;
5073 esac
5074 fi
5075 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5076 if test -n "$INSTALL_INFO"; then
5077 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5078 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5079 else
5080 { echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6; }
5082 fi
5083
5084
5085 # Extract the first word of "install-info", so it can be a program name with args.
5086 set dummy install-info; ac_word=$2
5087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5089 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 case $INSTALL_INFO in
5093 [\\/]* | ?:[\\/]*)
5094 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5095 ;;
5096 *)
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in /usr/sbin
5099 do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 ;;
5113 esac
5114 fi
5115 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5116 if test -n "$INSTALL_INFO"; then
5117 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5118 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5119 else
5120 { echo "$as_me:$LINENO: result: no" >&5
5121 echo "${ECHO_T}no" >&6; }
5122 fi
5123
5124
5125 # Extract the first word of "install-info", so it can be a program name with args.
5126 set dummy install-info; ac_word=$2
5127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5129 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 case $INSTALL_INFO in
5133 [\\/]* | ?:[\\/]*)
5134 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5135 ;;
5136 *)
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in /sbin
5139 do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148 done
5149 done
5150 IFS=$as_save_IFS
5151
5152 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5153 ;;
5154 esac
5155 fi
5156 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5157 if test -n "$INSTALL_INFO"; then
5158 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5159 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5160 else
5161 { echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6; }
5163 fi
5164
5165
5166 # Extract the first word of "gzip", so it can be a program name with args.
5167 set dummy gzip; ac_word=$2
5168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5170 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 case $GZIP_PROG in
5174 [\\/]* | ?:[\\/]*)
5175 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5176 ;;
5177 *)
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 break 2
5188 fi
5189 done
5190 done
5191 IFS=$as_save_IFS
5192
5193 ;;
5194 esac
5195 fi
5196 GZIP_PROG=$ac_cv_path_GZIP_PROG
5197 if test -n "$GZIP_PROG"; then
5198 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5199 echo "${ECHO_T}$GZIP_PROG" >&6; }
5200 else
5201 { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5203 fi
5204
5205
5206
5207
5208 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5209 then
5210 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5211 fi
5212
5213 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5214 then
5215 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5216 fi
5217
5218
5219 late_LDFLAGS=$LDFLAGS
5220 if test "$GCC" = yes; then
5221 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5222 else
5223 LDFLAGS="$LDFLAGS -znocombreloc"
5224 fi
5225
5226 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5227 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5228 cat >conftest.$ac_ext <<_ACEOF
5229 main(){return 0;}
5230 _ACEOF
5231 rm -f conftest.$ac_objext conftest$ac_exeext
5232 if { (ac_try="$ac_link"
5233 case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5236 esac
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_link") 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && {
5245 test -z "$ac_c_werror_flag" ||
5246 test ! -s conftest.err
5247 } && test -s conftest$ac_exeext &&
5248 $as_test_x conftest$ac_exeext; then
5249 { echo "$as_me:$LINENO: result: yes" >&5
5250 echo "${ECHO_T}yes" >&6; }
5251 else
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5254
5255 LDFLAGS=$late_LDFLAGS
5256 { echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6; }
5258 fi
5259
5260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5261 conftest$ac_exeext conftest.$ac_ext
5262
5263 #### Extract some information from the operating system and machine files.
5264
5265 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5266 - which libraries the lib-src programs will want, and
5267 - whether the GNU malloc routines are usable..." >&5
5268 echo "$as_me: checking the machine- and system-dependent files to find out
5269 - which libraries the lib-src programs will want, and
5270 - whether the GNU malloc routines are usable..." >&6;}
5271
5272 ### First figure out CFLAGS (which we use for running the compiler here)
5273 ### and REAL_CFLAGS (which we use for real compilation).
5274 ### The two are the same except on a few systems, where they are made
5275 ### different to work around various lossages. For example,
5276 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5277 ### as implying static linking.
5278
5279 ### If the CFLAGS env var is specified, we use that value
5280 ### instead of the default.
5281
5282 ### It's not important that this name contain the PID; you can't run
5283 ### two configures in the same directory and have anything work
5284 ### anyway.
5285 tempcname="conftest.c"
5286
5287 echo '
5288 #include "'${srcdir}'/src/'${opsysfile}'"
5289 #include "'${srcdir}'/src/'${machfile}'"
5290 #ifndef LIBS_MACHINE
5291 #define LIBS_MACHINE
5292 #endif
5293 #ifndef LIBS_SYSTEM
5294 #define LIBS_SYSTEM
5295 #endif
5296 #ifndef C_SWITCH_SYSTEM
5297 #define C_SWITCH_SYSTEM
5298 #endif
5299 #ifndef C_SWITCH_MACHINE
5300 #define C_SWITCH_MACHINE
5301 #endif
5302 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5303 configure___ c_switch_system=C_SWITCH_SYSTEM
5304 configure___ c_switch_machine=C_SWITCH_MACHINE
5305
5306 #ifndef LIB_X11_LIB
5307 #define LIB_X11_LIB -lX11
5308 #endif
5309
5310 #ifndef LIBX11_MACHINE
5311 #define LIBX11_MACHINE
5312 #endif
5313
5314 #ifndef LIBX11_SYSTEM
5315 #define LIBX11_SYSTEM
5316 #endif
5317 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5318
5319 #ifdef UNEXEC
5320 configure___ unexec=UNEXEC
5321 #else
5322 configure___ unexec=unexec.o
5323 #endif
5324
5325 #ifdef SYSTEM_MALLOC
5326 configure___ system_malloc=yes
5327 #else
5328 configure___ system_malloc=no
5329 #endif
5330
5331 #ifdef USE_MMAP_FOR_BUFFERS
5332 configure___ use_mmap_for_buffers=yes
5333 #else
5334 configure___ use_mmap_for_buffers=no
5335 #endif
5336
5337 #ifndef C_DEBUG_SWITCH
5338 #define C_DEBUG_SWITCH -g
5339 #endif
5340
5341 #ifndef C_OPTIMIZE_SWITCH
5342 #ifdef __GNUC__
5343 #define C_OPTIMIZE_SWITCH -O2
5344 #else
5345 #define C_OPTIMIZE_SWITCH -O
5346 #endif
5347 #endif
5348
5349 #ifndef C_WARNINGS_SWITCH
5350 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5351 #endif
5352
5353 #ifndef LD_SWITCH_MACHINE
5354 #define LD_SWITCH_MACHINE
5355 #endif
5356
5357 #ifndef LD_SWITCH_SYSTEM
5358 #define LD_SWITCH_SYSTEM
5359 #endif
5360
5361 #ifndef LD_SWITCH_X_SITE_AUX
5362 #define LD_SWITCH_X_SITE_AUX
5363 #endif
5364
5365 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5366 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5367
5368 #ifdef THIS_IS_CONFIGURE
5369
5370 /* Get the CFLAGS for tests in configure. */
5371 #ifdef __GNUC__
5372 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5373 #else
5374 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5375 #endif
5376
5377 #else /* not THIS_IS_CONFIGURE */
5378
5379 /* Get the CFLAGS for real compilation. */
5380 #ifdef __GNUC__
5381 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5382 #else
5383 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5384 #endif
5385
5386 #endif /* not THIS_IS_CONFIGURE */
5387 ' > ${tempcname}
5388
5389 # The value of CPP is a quoted variable reference, so we need to do this
5390 # to get its actual value...
5391 CPP=`eval "echo $CPP"`
5392 eval `${CPP} -Isrc ${tempcname} \
5393 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5394 if test "x$SPECIFIED_CFLAGS" = x; then
5395 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5396 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5397 else
5398 REAL_CFLAGS="$CFLAGS"
5399 fi
5400 rm ${tempcname}
5401
5402 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5403
5404 ### Make sure subsequent tests use flags consistent with the build flags.
5405
5406 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5407 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5408 else
5409 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5410 fi
5411
5412
5413
5414 # Check whether --enable-largefile was given.
5415 if test "${enable_largefile+set}" = set; then
5416 enableval=$enable_largefile;
5417 fi
5418
5419 if test "$enable_largefile" != no; then
5420
5421 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5422 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5423 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426 ac_cv_sys_largefile_CC=no
5427 if test "$GCC" != yes; then
5428 ac_save_CC=$CC
5429 while :; do
5430 # IRIX 6.2 and later do not support large files by default,
5431 # so use the C compiler's -n32 option if that helps.
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 #include <sys/types.h>
5439 /* Check that off_t can represent 2**63 - 1 correctly.
5440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5441 since some C++ compilers masquerading as C compilers
5442 incorrectly reject 9223372036854775807. */
5443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5445 && LARGE_OFF_T % 2147483647 == 1)
5446 ? 1 : -1];
5447 int
5448 main ()
5449 {
5450
5451 ;
5452 return 0;
5453 }
5454 _ACEOF
5455 rm -f conftest.$ac_objext
5456 if { (ac_try="$ac_compile"
5457 case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460 esac
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_compile") 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.$ac_objext; then
5472 break
5473 else
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477
5478 fi
5479
5480 rm -f core conftest.err conftest.$ac_objext
5481 CC="$CC -n32"
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5499 ac_cv_sys_largefile_CC=' -n32'; break
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504
5505 fi
5506
5507 rm -f core conftest.err conftest.$ac_objext
5508 break
5509 done
5510 CC=$ac_save_CC
5511 rm -f conftest.$ac_ext
5512 fi
5513 fi
5514 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5515 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5516 if test "$ac_cv_sys_largefile_CC" != no; then
5517 CC=$CC$ac_cv_sys_largefile_CC
5518 fi
5519
5520 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5521 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5522 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 while :; do
5526 cat >conftest.$ac_ext <<_ACEOF
5527 /* confdefs.h. */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5532 #include <sys/types.h>
5533 /* Check that off_t can represent 2**63 - 1 correctly.
5534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5535 since some C++ compilers masquerading as C compilers
5536 incorrectly reject 9223372036854775807. */
5537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5539 && LARGE_OFF_T % 2147483647 == 1)
5540 ? 1 : -1];
5541 int
5542 main ()
5543 {
5544
5545 ;
5546 return 0;
5547 }
5548 _ACEOF
5549 rm -f conftest.$ac_objext
5550 if { (ac_try="$ac_compile"
5551 case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554 esac
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_compile") 2>conftest.er1
5557 ac_status=$?
5558 grep -v '^ *+' conftest.er1 >conftest.err
5559 rm -f conftest.er1
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } && {
5563 test -z "$ac_c_werror_flag" ||
5564 test ! -s conftest.err
5565 } && test -s conftest.$ac_objext; then
5566 ac_cv_sys_file_offset_bits=no; break
5567 else
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.$ac_ext >&5
5570
5571
5572 fi
5573
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #define _FILE_OFFSET_BITS 64
5582 #include <sys/types.h>
5583 /* Check that off_t can represent 2**63 - 1 correctly.
5584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5585 since some C++ compilers masquerading as C compilers
5586 incorrectly reject 9223372036854775807. */
5587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5589 && LARGE_OFF_T % 2147483647 == 1)
5590 ? 1 : -1];
5591 int
5592 main ()
5593 {
5594
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5601 case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5607 ac_status=$?
5608 grep -v '^ *+' conftest.er1 >conftest.err
5609 rm -f conftest.er1
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && {
5613 test -z "$ac_c_werror_flag" ||
5614 test ! -s conftest.err
5615 } && test -s conftest.$ac_objext; then
5616 ac_cv_sys_file_offset_bits=64; break
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621
5622 fi
5623
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 ac_cv_sys_file_offset_bits=unknown
5626 break
5627 done
5628 fi
5629 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5630 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5631 case $ac_cv_sys_file_offset_bits in #(
5632 no | unknown) ;;
5633 *)
5634 cat >>confdefs.h <<_ACEOF
5635 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5636 _ACEOF
5637 ;;
5638 esac
5639 rm -f conftest*
5640 if test $ac_cv_sys_file_offset_bits = unknown; then
5641 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5642 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5643 if test "${ac_cv_sys_large_files+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 while :; do
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <sys/types.h>
5654 /* Check that off_t can represent 2**63 - 1 correctly.
5655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5656 since some C++ compilers masquerading as C compilers
5657 incorrectly reject 9223372036854775807. */
5658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5660 && LARGE_OFF_T % 2147483647 == 1)
5661 ? 1 : -1];
5662 int
5663 main ()
5664 {
5665
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5672 case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675 esac
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; then
5687 ac_cv_sys_large_files=no; break
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692
5693 fi
5694
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #define _LARGE_FILES 1
5703 #include <sys/types.h>
5704 /* Check that off_t can represent 2**63 - 1 correctly.
5705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706 since some C++ compilers masquerading as C compilers
5707 incorrectly reject 9223372036854775807. */
5708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5710 && LARGE_OFF_T % 2147483647 == 1)
5711 ? 1 : -1];
5712 int
5713 main ()
5714 {
5715
5716 ;
5717 return 0;
5718 }
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5722 case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.$ac_objext; then
5737 ac_cv_sys_large_files=1; break
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5741
5742
5743 fi
5744
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 ac_cv_sys_large_files=unknown
5747 break
5748 done
5749 fi
5750 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5751 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5752 case $ac_cv_sys_large_files in #(
5753 no | unknown) ;;
5754 *)
5755 cat >>confdefs.h <<_ACEOF
5756 #define _LARGE_FILES $ac_cv_sys_large_files
5757 _ACEOF
5758 ;;
5759 esac
5760 rm -f conftest*
5761 fi
5762 fi
5763
5764
5765
5766 ### The standard library on x86-64 GNU/Linux distributions can
5767 ### be located in either /usr/lib64 or /usr/lib.
5768 case "${canonical}" in
5769 x86_64-*-linux-gnu* )
5770 if test -d /usr/lib64; then
5771
5772 cat >>confdefs.h <<\_ACEOF
5773 #define HAVE_X86_64_LIB64_DIR 1
5774 _ACEOF
5775
5776 fi
5777 esac
5778
5779
5780
5781
5782 if test "${with_sound}" != "no"; then
5783 # Sound support for GNU/Linux and the free BSDs.
5784 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5785 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5786 if test "${ac_cv_header_stdc+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789 cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h. */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5795 #include <stdlib.h>
5796 #include <stdarg.h>
5797 #include <string.h>
5798 #include <float.h>
5799
5800 int
5801 main ()
5802 {
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (ac_try="$ac_compile"
5810 case "(($ac_try" in
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5813 esac
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_compile") 2>conftest.er1
5816 ac_status=$?
5817 grep -v '^ *+' conftest.er1 >conftest.err
5818 rm -f conftest.er1
5819 cat conftest.err >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } && {
5822 test -z "$ac_c_werror_flag" ||
5823 test ! -s conftest.err
5824 } && test -s conftest.$ac_objext; then
5825 ac_cv_header_stdc=yes
5826 else
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5829
5830 ac_cv_header_stdc=no
5831 fi
5832
5833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834
5835 if test $ac_cv_header_stdc = yes; then
5836 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 #include <string.h>
5844
5845 _ACEOF
5846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5847 $EGREP "memchr" >/dev/null 2>&1; then
5848 :
5849 else
5850 ac_cv_header_stdc=no
5851 fi
5852 rm -f conftest*
5853
5854 fi
5855
5856 if test $ac_cv_header_stdc = yes; then
5857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <stdlib.h>
5865
5866 _ACEOF
5867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5868 $EGREP "free" >/dev/null 2>&1; then
5869 :
5870 else
5871 ac_cv_header_stdc=no
5872 fi
5873 rm -f conftest*
5874
5875 fi
5876
5877 if test $ac_cv_header_stdc = yes; then
5878 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5879 if test "$cross_compiling" = yes; then
5880 :
5881 else
5882 cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h. */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 #include <ctype.h>
5889 #include <stdlib.h>
5890 #if ((' ' & 0x0FF) == 0x020)
5891 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5892 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5893 #else
5894 # define ISLOWER(c) \
5895 (('a' <= (c) && (c) <= 'i') \
5896 || ('j' <= (c) && (c) <= 'r') \
5897 || ('s' <= (c) && (c) <= 'z'))
5898 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5899 #endif
5900
5901 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5902 int
5903 main ()
5904 {
5905 int i;
5906 for (i = 0; i < 256; i++)
5907 if (XOR (islower (i), ISLOWER (i))
5908 || toupper (i) != TOUPPER (i))
5909 return 2;
5910 return 0;
5911 }
5912 _ACEOF
5913 rm -f conftest$ac_exeext
5914 if { (ac_try="$ac_link"
5915 case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_link") 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5924 { (case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927 esac
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_try") 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 :
5934 else
5935 echo "$as_me: program exited with status $ac_status" >&5
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 ( exit $ac_status )
5940 ac_cv_header_stdc=no
5941 fi
5942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5943 fi
5944
5945
5946 fi
5947 fi
5948 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5949 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5950 if test $ac_cv_header_stdc = yes; then
5951
5952 cat >>confdefs.h <<\_ACEOF
5953 #define STDC_HEADERS 1
5954 _ACEOF
5955
5956 fi
5957
5958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5969 inttypes.h stdint.h unistd.h
5970 do
5971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5984
5985 #include <$ac_header>
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (ac_try="$ac_compile"
5989 case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_compile") 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } && {
6001 test -z "$ac_c_werror_flag" ||
6002 test ! -s conftest.err
6003 } && test -s conftest.$ac_objext; then
6004 eval "$as_ac_Header=yes"
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 eval "$as_ac_Header=no"
6010 fi
6011
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 fi
6014 ac_res=`eval echo '${'$as_ac_Header'}'`
6015 { echo "$as_me:$LINENO: result: $ac_res" >&5
6016 echo "${ECHO_T}$ac_res" >&6; }
6017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6018 cat >>confdefs.h <<_ACEOF
6019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6020 _ACEOF
6021
6022 fi
6023
6024 done
6025
6026
6027
6028
6029
6030 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6031 do
6032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 fi
6039 ac_res=`eval echo '${'$as_ac_Header'}'`
6040 { echo "$as_me:$LINENO: result: $ac_res" >&5
6041 echo "${ECHO_T}$ac_res" >&6; }
6042 else
6043 # Is the header compilable?
6044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 $ac_includes_default
6053 #include <$ac_header>
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6057 case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060 esac
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compile") 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && {
6069 test -z "$ac_c_werror_flag" ||
6070 test ! -s conftest.err
6071 } && test -s conftest.$ac_objext; then
6072 ac_header_compiler=yes
6073 else
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 ac_header_compiler=no
6078 fi
6079
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6082 echo "${ECHO_T}$ac_header_compiler" >&6; }
6083
6084 # Is the header present?
6085 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6087 cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h. */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 #include <$ac_header>
6094 _ACEOF
6095 if { (ac_try="$ac_cpp conftest.$ac_ext"
6096 case "(($ac_try" in
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6099 esac
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } >/dev/null && {
6108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6109 test ! -s conftest.err
6110 }; then
6111 ac_header_preproc=yes
6112 else
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 ac_header_preproc=no
6117 fi
6118
6119 rm -f conftest.err conftest.$ac_ext
6120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6121 echo "${ECHO_T}$ac_header_preproc" >&6; }
6122
6123 # So? What about this header?
6124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6125 yes:no: )
6126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6130 ac_header_preproc=yes
6131 ;;
6132 no:yes:* )
6133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6145
6146 ;;
6147 esac
6148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153 eval "$as_ac_Header=\$ac_header_preproc"
6154 fi
6155 ac_res=`eval echo '${'$as_ac_Header'}'`
6156 { echo "$as_me:$LINENO: result: $ac_res" >&5
6157 echo "${ECHO_T}$ac_res" >&6; }
6158
6159 fi
6160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6161 cat >>confdefs.h <<_ACEOF
6162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6163 _ACEOF
6164
6165 fi
6166
6167 done
6168
6169 # Emulation library used on NetBSD.
6170 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6171 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6172 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175 ac_check_lib_save_LIBS=$LIBS
6176 LIBS="-lossaudio $LIBS"
6177 cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h. */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183
6184 /* Override any GCC internal prototype to avoid an error.
6185 Use char because int might match the return type of a GCC
6186 builtin and then its argument prototype would still apply. */
6187 #ifdef __cplusplus
6188 extern "C"
6189 #endif
6190 char _oss_ioctl ();
6191 int
6192 main ()
6193 {
6194 return _oss_ioctl ();
6195 ;
6196 return 0;
6197 }
6198 _ACEOF
6199 rm -f conftest.$ac_objext conftest$ac_exeext
6200 if { (ac_try="$ac_link"
6201 case "(($ac_try" in
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6204 esac
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$ac_link") 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_c_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest$ac_exeext &&
6216 $as_test_x conftest$ac_exeext; then
6217 ac_cv_lib_ossaudio__oss_ioctl=yes
6218 else
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222 ac_cv_lib_ossaudio__oss_ioctl=no
6223 fi
6224
6225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6226 conftest$ac_exeext conftest.$ac_ext
6227 LIBS=$ac_check_lib_save_LIBS
6228 fi
6229 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6230 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6231 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6232 LIBSOUND=-lossaudio
6233 else
6234 LIBSOUND=
6235 fi
6236
6237
6238
6239 ALSA_REQUIRED=1.0.0
6240 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6241 if test "X${with_pkg_config_prog}" != X; then
6242 PKG_CONFIG="${with_pkg_config_prog}"
6243 fi
6244
6245 succeeded=no
6246
6247 if test -z "$PKG_CONFIG"; then
6248 # Extract the first word of "pkg-config", so it can be a program name with args.
6249 set dummy pkg-config; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 case $PKG_CONFIG in
6256 [\\/]* | ?:[\\/]*)
6257 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6258 ;;
6259 *)
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6276 ;;
6277 esac
6278 fi
6279 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6280 if test -n "$PKG_CONFIG"; then
6281 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6282 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6283 else
6284 { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6286 fi
6287
6288
6289 fi
6290
6291 if test "$PKG_CONFIG" = "no" ; then
6292 HAVE_ALSA=no
6293 else
6294 PKG_CONFIG_MIN_VERSION=0.9.0
6295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6296 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6297 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6298
6299 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6300 { echo "$as_me:$LINENO: result: yes" >&5
6301 echo "${ECHO_T}yes" >&6; }
6302 succeeded=yes
6303
6304 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6305 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6306 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6307 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6308 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6309
6310 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6311 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6312 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6313 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6314 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6315 else
6316 { echo "$as_me:$LINENO: result: no" >&5
6317 echo "${ECHO_T}no" >&6; }
6318 ALSA_CFLAGS=""
6319 ALSA_LIBS=""
6320 ## If we have a custom action on failure, don't print errors, but
6321 ## do set a variable so people can do so.
6322 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6323
6324 fi
6325
6326
6327
6328 else
6329 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6330 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6331 fi
6332 fi
6333
6334 if test $succeeded = yes; then
6335 HAVE_ALSA=yes
6336 else
6337 HAVE_ALSA=no
6338 fi
6339
6340 if test $HAVE_ALSA = yes; then
6341 SAVE_CFLAGS="$CFLAGS"
6342 SAVE_LDFLAGS="$LDFLAGS"
6343 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6344 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6345 cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h. */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 #include <asoundlib.h>
6352 int
6353 main ()
6354 {
6355 snd_lib_error_set_handler (0);
6356 ;
6357 return 0;
6358 }
6359 _ACEOF
6360 rm -f conftest.$ac_objext
6361 if { (ac_try="$ac_compile"
6362 case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365 esac
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_compile") 2>conftest.er1
6368 ac_status=$?
6369 grep -v '^ *+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } && {
6374 test -z "$ac_c_werror_flag" ||
6375 test ! -s conftest.err
6376 } && test -s conftest.$ac_objext; then
6377 emacs_alsa_normal=yes
6378 else
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6381
6382 emacs_alsa_normal=no
6383 fi
6384
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 if test "$emacs_alsa_normal" != yes; then
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 #include <alsa/asoundlib.h>
6394 int
6395 main ()
6396 {
6397 snd_lib_error_set_handler (0);
6398 ;
6399 return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6404 case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407 esac
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6410 ac_status=$?
6411 grep -v '^ *+' conftest.er1 >conftest.err
6412 rm -f conftest.er1
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && {
6416 test -z "$ac_c_werror_flag" ||
6417 test ! -s conftest.err
6418 } && test -s conftest.$ac_objext; then
6419 emacs_alsa_subdir=yes
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424 emacs_alsa_subdir=no
6425 fi
6426
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 if test "$emacs_alsa_subdir" != yes; then
6429 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6430 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6431 { (exit 1); exit 1; }; }
6432 fi
6433 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6434 fi
6435
6436 CFLAGS="$SAVE_CFLAGS"
6437 LDFLAGS="$SAVE_LDFLAGS"
6438 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6439 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6440
6441 cat >>confdefs.h <<\_ACEOF
6442 #define HAVE_ALSA 1
6443 _ACEOF
6444
6445
6446 fi
6447
6448 fi
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6476 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6477 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6478 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6479 sys/utsname.h pwd.h
6480 do
6481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 fi
6488 ac_res=`eval echo '${'$as_ac_Header'}'`
6489 { echo "$as_me:$LINENO: result: $ac_res" >&5
6490 echo "${ECHO_T}$ac_res" >&6; }
6491 else
6492 # Is the header compilable?
6493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6495 cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h. */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6501 $ac_includes_default
6502 #include <$ac_header>
6503 _ACEOF
6504 rm -f conftest.$ac_objext
6505 if { (ac_try="$ac_compile"
6506 case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509 esac
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compile") 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest.$ac_objext; then
6521 ac_header_compiler=yes
6522 else
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526 ac_header_compiler=no
6527 fi
6528
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6531 echo "${ECHO_T}$ac_header_compiler" >&6; }
6532
6533 # Is the header present?
6534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 #include <$ac_header>
6543 _ACEOF
6544 if { (ac_try="$ac_cpp conftest.$ac_ext"
6545 case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548 esac
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } >/dev/null && {
6557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6559 }; then
6560 ac_header_preproc=yes
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6564
6565 ac_header_preproc=no
6566 fi
6567
6568 rm -f conftest.err conftest.$ac_ext
6569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6570 echo "${ECHO_T}$ac_header_preproc" >&6; }
6571
6572 # So? What about this header?
6573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6574 yes:no: )
6575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6579 ac_header_preproc=yes
6580 ;;
6581 no:yes:* )
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6594
6595 ;;
6596 esac
6597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602 eval "$as_ac_Header=\$ac_header_preproc"
6603 fi
6604 ac_res=`eval echo '${'$as_ac_Header'}'`
6605 { echo "$as_me:$LINENO: result: $ac_res" >&5
6606 echo "${ECHO_T}$ac_res" >&6; }
6607
6608 fi
6609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6610 cat >>confdefs.h <<_ACEOF
6611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6612 _ACEOF
6613
6614 fi
6615
6616 done
6617
6618
6619 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6620 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <sys/personality.h>
6628 int
6629 main ()
6630 {
6631 personality (PER_LINUX32)
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 rm -f conftest.$ac_objext
6637 if { (ac_try="$ac_compile"
6638 case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641 esac
6642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6643 (eval "$ac_compile") 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } && {
6650 test -z "$ac_c_werror_flag" ||
6651 test ! -s conftest.err
6652 } && test -s conftest.$ac_objext; then
6653 emacs_cv_personality_linux32=yes
6654 else
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658 emacs_cv_personality_linux32=no
6659 fi
6660
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6663 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6664
6665 if test $emacs_cv_personality_linux32 = yes; then
6666
6667 cat >>confdefs.h <<\_ACEOF
6668 #define HAVE_PERSONALITY_LINUX32 1
6669 _ACEOF
6670
6671 fi
6672
6673
6674 for ac_header in term.h
6675 do
6676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h. */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 #include <$ac_header>
6689 _ACEOF
6690 if { (ac_try="$ac_cpp conftest.$ac_ext"
6691 case "(($ac_try" in
6692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6693 *) ac_try_echo=$ac_try;;
6694 esac
6695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } >/dev/null && {
6703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6704 test ! -s conftest.err
6705 }; then
6706 eval "$as_ac_Header=yes"
6707 else
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711 eval "$as_ac_Header=no"
6712 fi
6713
6714 rm -f conftest.err conftest.$ac_ext
6715 fi
6716 ac_res=`eval echo '${'$as_ac_Header'}'`
6717 { echo "$as_me:$LINENO: result: $ac_res" >&5
6718 echo "${ECHO_T}$ac_res" >&6; }
6719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6720 cat >>confdefs.h <<_ACEOF
6721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6722 _ACEOF
6723
6724 fi
6725
6726 done
6727
6728 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6730 if test "${ac_cv_header_stdc+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h. */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739 #include <stdlib.h>
6740 #include <stdarg.h>
6741 #include <string.h>
6742 #include <float.h>
6743
6744 int
6745 main ()
6746 {
6747
6748 ;
6749 return 0;
6750 }
6751 _ACEOF
6752 rm -f conftest.$ac_objext
6753 if { (ac_try="$ac_compile"
6754 case "(($ac_try" in
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6757 esac
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_compile") 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } && {
6766 test -z "$ac_c_werror_flag" ||
6767 test ! -s conftest.err
6768 } && test -s conftest.$ac_objext; then
6769 ac_cv_header_stdc=yes
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6773
6774 ac_cv_header_stdc=no
6775 fi
6776
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778
6779 if test $ac_cv_header_stdc = yes; then
6780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <string.h>
6788
6789 _ACEOF
6790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6791 $EGREP "memchr" >/dev/null 2>&1; then
6792 :
6793 else
6794 ac_cv_header_stdc=no
6795 fi
6796 rm -f conftest*
6797
6798 fi
6799
6800 if test $ac_cv_header_stdc = yes; then
6801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6802 cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h. */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 #include <stdlib.h>
6809
6810 _ACEOF
6811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6812 $EGREP "free" >/dev/null 2>&1; then
6813 :
6814 else
6815 ac_cv_header_stdc=no
6816 fi
6817 rm -f conftest*
6818
6819 fi
6820
6821 if test $ac_cv_header_stdc = yes; then
6822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6823 if test "$cross_compiling" = yes; then
6824 :
6825 else
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include <ctype.h>
6833 #include <stdlib.h>
6834 #if ((' ' & 0x0FF) == 0x020)
6835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6837 #else
6838 # define ISLOWER(c) \
6839 (('a' <= (c) && (c) <= 'i') \
6840 || ('j' <= (c) && (c) <= 'r') \
6841 || ('s' <= (c) && (c) <= 'z'))
6842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6843 #endif
6844
6845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6846 int
6847 main ()
6848 {
6849 int i;
6850 for (i = 0; i < 256; i++)
6851 if (XOR (islower (i), ISLOWER (i))
6852 || toupper (i) != TOUPPER (i))
6853 return 2;
6854 return 0;
6855 }
6856 _ACEOF
6857 rm -f conftest$ac_exeext
6858 if { (ac_try="$ac_link"
6859 case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6862 esac
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_link") 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6868 { (case "(($ac_try" in
6869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6871 esac
6872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6873 (eval "$ac_try") 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 :
6878 else
6879 echo "$as_me: program exited with status $ac_status" >&5
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6882
6883 ( exit $ac_status )
6884 ac_cv_header_stdc=no
6885 fi
6886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6887 fi
6888
6889
6890 fi
6891 fi
6892 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6893 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6894 if test $ac_cv_header_stdc = yes; then
6895
6896 cat >>confdefs.h <<\_ACEOF
6897 #define STDC_HEADERS 1
6898 _ACEOF
6899
6900 fi
6901
6902 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6903 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6904 if test "${ac_cv_header_time+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 #include <sys/types.h>
6914 #include <sys/time.h>
6915 #include <time.h>
6916
6917 int
6918 main ()
6919 {
6920 if ((struct tm *) 0)
6921 return 0;
6922 ;
6923 return 0;
6924 }
6925 _ACEOF
6926 rm -f conftest.$ac_objext
6927 if { (ac_try="$ac_compile"
6928 case "(($ac_try" in
6929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6930 *) ac_try_echo=$ac_try;;
6931 esac
6932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6933 (eval "$ac_compile") 2>conftest.er1
6934 ac_status=$?
6935 grep -v '^ *+' conftest.er1 >conftest.err
6936 rm -f conftest.er1
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && {
6940 test -z "$ac_c_werror_flag" ||
6941 test ! -s conftest.err
6942 } && test -s conftest.$ac_objext; then
6943 ac_cv_header_time=yes
6944 else
6945 echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6947
6948 ac_cv_header_time=no
6949 fi
6950
6951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952 fi
6953 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6954 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6955 if test $ac_cv_header_time = yes; then
6956
6957 cat >>confdefs.h <<\_ACEOF
6958 #define TIME_WITH_SYS_TIME 1
6959 _ACEOF
6960
6961 fi
6962
6963 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6964 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6965 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968 cat >conftest.$ac_ext <<_ACEOF
6969 /* confdefs.h. */
6970 _ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 $ac_includes_default
6975 int
6976 main ()
6977 {
6978 #ifndef sys_siglist
6979 (void) sys_siglist;
6980 #endif
6981
6982 ;
6983 return 0;
6984 }
6985 _ACEOF
6986 rm -f conftest.$ac_objext
6987 if { (ac_try="$ac_compile"
6988 case "(($ac_try" in
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6991 esac
6992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6993 (eval "$ac_compile") 2>conftest.er1
6994 ac_status=$?
6995 grep -v '^ *+' conftest.er1 >conftest.err
6996 rm -f conftest.er1
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && {
7000 test -z "$ac_c_werror_flag" ||
7001 test ! -s conftest.err
7002 } && test -s conftest.$ac_objext; then
7003 ac_cv_have_decl_sys_siglist=yes
7004 else
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7007
7008 ac_cv_have_decl_sys_siglist=no
7009 fi
7010
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 fi
7013 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7014 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7015 if test $ac_cv_have_decl_sys_siglist = yes; then
7016
7017 cat >>confdefs.h <<_ACEOF
7018 #define HAVE_DECL_SYS_SIGLIST 1
7019 _ACEOF
7020
7021
7022 else
7023 cat >>confdefs.h <<_ACEOF
7024 #define HAVE_DECL_SYS_SIGLIST 0
7025 _ACEOF
7026
7027
7028 fi
7029
7030
7031 if test $ac_cv_have_decl_sys_siglist != yes; then
7032 # For Tru64, at least:
7033 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7034 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7035 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 $ac_includes_default
7045 int
7046 main ()
7047 {
7048 #ifndef __sys_siglist
7049 (void) __sys_siglist;
7050 #endif
7051
7052 ;
7053 return 0;
7054 }
7055 _ACEOF
7056 rm -f conftest.$ac_objext
7057 if { (ac_try="$ac_compile"
7058 case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061 esac
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_compile") 2>conftest.er1
7064 ac_status=$?
7065 grep -v '^ *+' conftest.er1 >conftest.err
7066 rm -f conftest.er1
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && {
7070 test -z "$ac_c_werror_flag" ||
7071 test ! -s conftest.err
7072 } && test -s conftest.$ac_objext; then
7073 ac_cv_have_decl___sys_siglist=yes
7074 else
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078 ac_cv_have_decl___sys_siglist=no
7079 fi
7080
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082 fi
7083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7084 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7085 if test $ac_cv_have_decl___sys_siglist = yes; then
7086
7087 cat >>confdefs.h <<_ACEOF
7088 #define HAVE_DECL___SYS_SIGLIST 1
7089 _ACEOF
7090
7091
7092 else
7093 cat >>confdefs.h <<_ACEOF
7094 #define HAVE_DECL___SYS_SIGLIST 0
7095 _ACEOF
7096
7097
7098 fi
7099
7100
7101 if test $ac_cv_have_decl___sys_siglist = yes; then
7102
7103 cat >>confdefs.h <<\_ACEOF
7104 #define sys_siglist __sys_siglist
7105 _ACEOF
7106
7107 fi
7108 fi
7109 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7110 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7111 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h. */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7120 #include <sys/types.h>
7121 #include <sys/wait.h>
7122 #ifndef WEXITSTATUS
7123 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7124 #endif
7125 #ifndef WIFEXITED
7126 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7127 #endif
7128
7129 int
7130 main ()
7131 {
7132 int s;
7133 wait (&s);
7134 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (ac_try="$ac_compile"
7141 case "(($ac_try" in
7142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143 *) ac_try_echo=$ac_try;;
7144 esac
7145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7146 (eval "$ac_compile") 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } && {
7153 test -z "$ac_c_werror_flag" ||
7154 test ! -s conftest.err
7155 } && test -s conftest.$ac_objext; then
7156 ac_cv_header_sys_wait_h=yes
7157 else
7158 echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7160
7161 ac_cv_header_sys_wait_h=no
7162 fi
7163
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 fi
7166 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7167 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7168 if test $ac_cv_header_sys_wait_h = yes; then
7169
7170 cat >>confdefs.h <<\_ACEOF
7171 #define HAVE_SYS_WAIT_H 1
7172 _ACEOF
7173
7174 fi
7175
7176
7177 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7178 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7179 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h. */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 #ifdef TIME_WITH_SYS_TIME
7189 #include <sys/time.h>
7190 #include <time.h>
7191 #else
7192 #ifdef HAVE_SYS_TIME_H
7193 #include <sys/time.h>
7194 #else
7195 #include <time.h>
7196 #endif
7197 #endif
7198 #ifdef HAVE_UTIME_H
7199 #include <utime.h>
7200 #endif
7201 int
7202 main ()
7203 {
7204 static struct utimbuf x; x.actime = x.modtime;
7205 ;
7206 return 0;
7207 }
7208 _ACEOF
7209 rm -f conftest.$ac_objext
7210 if { (ac_try="$ac_compile"
7211 case "(($ac_try" in
7212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213 *) ac_try_echo=$ac_try;;
7214 esac
7215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7216 (eval "$ac_compile") 2>conftest.er1
7217 ac_status=$?
7218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } && {
7223 test -z "$ac_c_werror_flag" ||
7224 test ! -s conftest.err
7225 } && test -s conftest.$ac_objext; then
7226 emacs_cv_struct_utimbuf=yes
7227 else
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7230
7231 emacs_cv_struct_utimbuf=no
7232 fi
7233
7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235 fi
7236 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7237 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7238 if test $emacs_cv_struct_utimbuf = yes; then
7239
7240 cat >>confdefs.h <<\_ACEOF
7241 #define HAVE_STRUCT_UTIMBUF 1
7242 _ACEOF
7243
7244 fi
7245
7246 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7247 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7248 if test "${ac_cv_type_signal+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251 cat >conftest.$ac_ext <<_ACEOF
7252 /* confdefs.h. */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 #include <sys/types.h>
7258 #include <signal.h>
7259
7260 int
7261 main ()
7262 {
7263 return *(signal (0, 0)) (0) == 1;
7264 ;
7265 return 0;
7266 }
7267 _ACEOF
7268 rm -f conftest.$ac_objext
7269 if { (ac_try="$ac_compile"
7270 case "(($ac_try" in
7271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7273 esac
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275 (eval "$ac_compile") 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && {
7282 test -z "$ac_c_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest.$ac_objext; then
7285 ac_cv_type_signal=int
7286 else
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7289
7290 ac_cv_type_signal=void
7291 fi
7292
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 fi
7295 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7296 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7297
7298 cat >>confdefs.h <<_ACEOF
7299 #define RETSIGTYPE $ac_cv_type_signal
7300 _ACEOF
7301
7302
7303
7304 { echo "$as_me:$LINENO: checking for speed_t" >&5
7305 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7306 if test "${emacs_cv_speed_t+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309 cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h. */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 #include <termios.h>
7316 int
7317 main ()
7318 {
7319 speed_t x = 1;
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 rm -f conftest.$ac_objext
7325 if { (ac_try="$ac_compile"
7326 case "(($ac_try" in
7327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7328 *) ac_try_echo=$ac_try;;
7329 esac
7330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7331 (eval "$ac_compile") 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && {
7338 test -z "$ac_c_werror_flag" ||
7339 test ! -s conftest.err
7340 } && test -s conftest.$ac_objext; then
7341 emacs_cv_speed_t=yes
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346 emacs_cv_speed_t=no
7347 fi
7348
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 fi
7351 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7352 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7353 if test $emacs_cv_speed_t = yes; then
7354
7355 cat >>confdefs.h <<\_ACEOF
7356 #define HAVE_SPEED_T 1
7357 _ACEOF
7358
7359 fi
7360
7361 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7362 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7363 if test "${emacs_cv_struct_timeval+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #ifdef TIME_WITH_SYS_TIME
7373 #include <sys/time.h>
7374 #include <time.h>
7375 #else
7376 #ifdef HAVE_SYS_TIME_H
7377 #include <sys/time.h>
7378 #else
7379 #include <time.h>
7380 #endif
7381 #endif
7382 int
7383 main ()
7384 {
7385 static struct timeval x; x.tv_sec = x.tv_usec;
7386 ;
7387 return 0;
7388 }
7389 _ACEOF
7390 rm -f conftest.$ac_objext
7391 if { (ac_try="$ac_compile"
7392 case "(($ac_try" in
7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394 *) ac_try_echo=$ac_try;;
7395 esac
7396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7397 (eval "$ac_compile") 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } && {
7404 test -z "$ac_c_werror_flag" ||
7405 test ! -s conftest.err
7406 } && test -s conftest.$ac_objext; then
7407 emacs_cv_struct_timeval=yes
7408 else
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7411
7412 emacs_cv_struct_timeval=no
7413 fi
7414
7415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7416 fi
7417 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7418 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7419 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7420 if test $emacs_cv_struct_timeval = yes; then
7421
7422 cat >>confdefs.h <<\_ACEOF
7423 #define HAVE_TIMEVAL 1
7424 _ACEOF
7425
7426 fi
7427
7428 { echo "$as_me:$LINENO: checking for struct exception" >&5
7429 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7430 if test "${emacs_cv_struct_exception+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h. */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 #include <math.h>
7440 int
7441 main ()
7442 {
7443 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7444 ;
7445 return 0;
7446 }
7447 _ACEOF
7448 rm -f conftest.$ac_objext
7449 if { (ac_try="$ac_compile"
7450 case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.$ac_objext; then
7465 emacs_cv_struct_exception=yes
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470 emacs_cv_struct_exception=no
7471 fi
7472
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 fi
7475 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7476 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7477 HAVE_EXCEPTION=$emacs_cv_struct_exception
7478 if test $emacs_cv_struct_exception != yes; then
7479
7480 cat >>confdefs.h <<\_ACEOF
7481 #define NO_MATHERR 1
7482 _ACEOF
7483
7484 fi
7485
7486
7487 for ac_header in sys/socket.h
7488 do
7489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 fi
7496 ac_res=`eval echo '${'$as_ac_Header'}'`
7497 { echo "$as_me:$LINENO: result: $ac_res" >&5
7498 echo "${ECHO_T}$ac_res" >&6; }
7499 else
7500 # Is the header compilable?
7501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7510 #include <$ac_header>
7511 _ACEOF
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7514 case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517 esac
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 ac_header_compiler=yes
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_header_compiler=no
7535 fi
7536
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7539 echo "${ECHO_T}$ac_header_compiler" >&6; }
7540
7541 # Is the header present?
7542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h. */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 #include <$ac_header>
7551 _ACEOF
7552 if { (ac_try="$ac_cpp conftest.$ac_ext"
7553 case "(($ac_try" in
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7556 esac
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7559 ac_status=$?
7560 grep -v '^ *+' conftest.er1 >conftest.err
7561 rm -f conftest.er1
7562 cat conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } >/dev/null && {
7565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7566 test ! -s conftest.err
7567 }; then
7568 ac_header_preproc=yes
7569 else
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7572
7573 ac_header_preproc=no
7574 fi
7575
7576 rm -f conftest.err conftest.$ac_ext
7577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7578 echo "${ECHO_T}$ac_header_preproc" >&6; }
7579
7580 # So? What about this header?
7581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7582 yes:no: )
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7587 ac_header_preproc=yes
7588 ;;
7589 no:yes:* )
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7602
7603 ;;
7604 esac
7605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610 eval "$as_ac_Header=\$ac_header_preproc"
7611 fi
7612 ac_res=`eval echo '${'$as_ac_Header'}'`
7613 { echo "$as_me:$LINENO: result: $ac_res" >&5
7614 echo "${ECHO_T}$ac_res" >&6; }
7615
7616 fi
7617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7618 cat >>confdefs.h <<_ACEOF
7619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7620 _ACEOF
7621
7622 fi
7623
7624 done
7625
7626
7627 for ac_header in net/if.h
7628 do
7629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635 cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h. */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7641 $ac_includes_default
7642 #if HAVE_SYS_SOCKET_H
7643 #include <sys/socket.h>
7644 #endif
7645
7646 #include <$ac_header>
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7650 case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653 esac
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7665 eval "$as_ac_Header=yes"
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7669
7670 eval "$as_ac_Header=no"
7671 fi
7672
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 fi
7675 ac_res=`eval echo '${'$as_ac_Header'}'`
7676 { echo "$as_me:$LINENO: result: $ac_res" >&5
7677 echo "${ECHO_T}$ac_res" >&6; }
7678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7679 cat >>confdefs.h <<_ACEOF
7680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7681 _ACEOF
7682
7683 fi
7684
7685 done
7686
7687
7688 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7689 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7690 if test "${ac_cv_struct_tm+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693 cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h. */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7699 #include <sys/types.h>
7700 #include <time.h>
7701
7702 int
7703 main ()
7704 {
7705 struct tm tm;
7706 int *p = &tm.tm_sec;
7707 return !p;
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (ac_try="$ac_compile"
7714 case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7717 esac
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_compile") 2>conftest.er1
7720 ac_status=$?
7721 grep -v '^ *+' conftest.er1 >conftest.err
7722 rm -f conftest.er1
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } && {
7726 test -z "$ac_c_werror_flag" ||
7727 test ! -s conftest.err
7728 } && test -s conftest.$ac_objext; then
7729 ac_cv_struct_tm=time.h
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_struct_tm=sys/time.h
7735 fi
7736
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738 fi
7739 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7740 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7741 if test $ac_cv_struct_tm = sys/time.h; then
7742
7743 cat >>confdefs.h <<\_ACEOF
7744 #define TM_IN_SYS_TIME 1
7745 _ACEOF
7746
7747 fi
7748
7749 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7750 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7751 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754 cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h. */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 #include <sys/types.h>
7761 #include <$ac_cv_struct_tm>
7762
7763
7764 int
7765 main ()
7766 {
7767 static struct tm ac_aggr;
7768 if (ac_aggr.tm_zone)
7769 return 0;
7770 ;
7771 return 0;
7772 }
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (ac_try="$ac_compile"
7776 case "(($ac_try" in
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7779 esac
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
7791 ac_cv_member_struct_tm_tm_zone=yes
7792 else
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7795
7796 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h. */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 #include <sys/types.h>
7803 #include <$ac_cv_struct_tm>
7804
7805
7806 int
7807 main ()
7808 {
7809 static struct tm ac_aggr;
7810 if (sizeof ac_aggr.tm_zone)
7811 return 0;
7812 ;
7813 return 0;
7814 }
7815 _ACEOF
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7818 case "(($ac_try" in
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7821 esac
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
7833 ac_cv_member_struct_tm_tm_zone=yes
7834 else
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838 ac_cv_member_struct_tm_tm_zone=no
7839 fi
7840
7841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 fi
7843
7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845 fi
7846 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7847 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7848 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7849
7850 cat >>confdefs.h <<_ACEOF
7851 #define HAVE_STRUCT_TM_TM_ZONE 1
7852 _ACEOF
7853
7854
7855 fi
7856
7857 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7858
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_TM_ZONE 1
7861 _ACEOF
7862
7863 else
7864 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7865 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7866 if test "${ac_cv_have_decl_tzname+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h. */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 #include <time.h>
7876
7877 int
7878 main ()
7879 {
7880 #ifndef tzname
7881 (void) tzname;
7882 #endif
7883
7884 ;
7885 return 0;
7886 }
7887 _ACEOF
7888 rm -f conftest.$ac_objext
7889 if { (ac_try="$ac_compile"
7890 case "(($ac_try" in
7891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7893 esac
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_compile") 2>conftest.er1
7896 ac_status=$?
7897 grep -v '^ *+' conftest.er1 >conftest.err
7898 rm -f conftest.er1
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } && {
7902 test -z "$ac_c_werror_flag" ||
7903 test ! -s conftest.err
7904 } && test -s conftest.$ac_objext; then
7905 ac_cv_have_decl_tzname=yes
7906 else
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 ac_cv_have_decl_tzname=no
7911 fi
7912
7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7914 fi
7915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7916 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7917 if test $ac_cv_have_decl_tzname = yes; then
7918
7919 cat >>confdefs.h <<_ACEOF
7920 #define HAVE_DECL_TZNAME 1
7921 _ACEOF
7922
7923
7924 else
7925 cat >>confdefs.h <<_ACEOF
7926 #define HAVE_DECL_TZNAME 0
7927 _ACEOF
7928
7929
7930 fi
7931
7932
7933 { echo "$as_me:$LINENO: checking for tzname" >&5
7934 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7935 if test "${ac_cv_var_tzname+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 #include <time.h>
7945 #if !HAVE_DECL_TZNAME
7946 extern char *tzname[];
7947 #endif
7948
7949 int
7950 main ()
7951 {
7952 return tzname[0][0];
7953 ;
7954 return 0;
7955 }
7956 _ACEOF
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (ac_try="$ac_link"
7959 case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_link") 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } && {
7971 test -z "$ac_c_werror_flag" ||
7972 test ! -s conftest.err
7973 } && test -s conftest$ac_exeext &&
7974 $as_test_x conftest$ac_exeext; then
7975 ac_cv_var_tzname=yes
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 ac_cv_var_tzname=no
7981 fi
7982
7983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7984 conftest$ac_exeext conftest.$ac_ext
7985 fi
7986 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7987 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7988 if test $ac_cv_var_tzname = yes; then
7989
7990 cat >>confdefs.h <<\_ACEOF
7991 #define HAVE_TZNAME 1
7992 _ACEOF
7993
7994 fi
7995 fi
7996
7997 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7998 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7999 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h. */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 #include <time.h>
8009
8010 int
8011 main ()
8012 {
8013 static struct tm ac_aggr;
8014 if (ac_aggr.tm_gmtoff)
8015 return 0;
8016 ;
8017 return 0;
8018 }
8019 _ACEOF
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8022 case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
8037 ac_cv_member_struct_tm_tm_gmtoff=yes
8038 else
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042 cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h. */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <time.h>
8049
8050 int
8051 main ()
8052 {
8053 static struct tm ac_aggr;
8054 if (sizeof ac_aggr.tm_gmtoff)
8055 return 0;
8056 ;
8057 return 0;
8058 }
8059 _ACEOF
8060 rm -f conftest.$ac_objext
8061 if { (ac_try="$ac_compile"
8062 case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065 esac
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_compile") 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest.$ac_objext; then
8077 ac_cv_member_struct_tm_tm_gmtoff=yes
8078 else
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 ac_cv_member_struct_tm_tm_gmtoff=no
8083 fi
8084
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 fi
8087
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 fi
8090 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8091 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8092 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8093
8094 cat >>confdefs.h <<\_ACEOF
8095 #define HAVE_TM_GMTOFF 1
8096 _ACEOF
8097
8098 fi
8099
8100 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8101 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8102 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105 cat >conftest.$ac_ext <<_ACEOF
8106 /* confdefs.h. */
8107 _ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 $ac_includes_default
8112 #if HAVE_SYS_SOCKET_H
8113 #include <sys/socket.h>
8114 #endif
8115 #if HAVE_NET_IF_H
8116 #include <net/if.h>
8117 #endif
8118
8119 int
8120 main ()
8121 {
8122 static struct ifreq ac_aggr;
8123 if (ac_aggr.ifr_flags)
8124 return 0;
8125 ;
8126 return 0;
8127 }
8128 _ACEOF
8129 rm -f conftest.$ac_objext
8130 if { (ac_try="$ac_compile"
8131 case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_compile") 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest.$ac_objext; then
8146 ac_cv_member_struct_ifreq_ifr_flags=yes
8147 else
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 cat >conftest.$ac_ext <<_ACEOF
8152 /* confdefs.h. */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8157 $ac_includes_default
8158 #if HAVE_SYS_SOCKET_H
8159 #include <sys/socket.h>
8160 #endif
8161 #if HAVE_NET_IF_H
8162 #include <net/if.h>
8163 #endif
8164
8165 int
8166 main ()
8167 {
8168 static struct ifreq ac_aggr;
8169 if (sizeof ac_aggr.ifr_flags)
8170 return 0;
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext
8176 if { (ac_try="$ac_compile"
8177 case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_compile") 2>conftest.er1
8183 ac_status=$?
8184 grep -v '^ *+' conftest.er1 >conftest.err
8185 rm -f conftest.er1
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest.$ac_objext; then
8192 ac_cv_member_struct_ifreq_ifr_flags=yes
8193 else
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 ac_cv_member_struct_ifreq_ifr_flags=no
8198 fi
8199
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 fi
8202
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 fi
8205 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8206 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8207 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8208
8209 cat >>confdefs.h <<_ACEOF
8210 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8211 _ACEOF
8212
8213
8214 fi
8215 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8216 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8217 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220 cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h. */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226 $ac_includes_default
8227 #if HAVE_SYS_SOCKET_H
8228 #include <sys/socket.h>
8229 #endif
8230 #if HAVE_NET_IF_H
8231 #include <net/if.h>
8232 #endif
8233
8234 int
8235 main ()
8236 {
8237 static struct ifreq ac_aggr;
8238 if (ac_aggr.ifr_hwaddr)
8239 return 0;
8240 ;
8241 return 0;
8242 }
8243 _ACEOF
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8246 case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8249 esac
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_compile") 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && {
8258 test -z "$ac_c_werror_flag" ||
8259 test ! -s conftest.err
8260 } && test -s conftest.$ac_objext; then
8261 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8262 else
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 #if HAVE_SYS_SOCKET_H
8274 #include <sys/socket.h>
8275 #endif
8276 #if HAVE_NET_IF_H
8277 #include <net/if.h>
8278 #endif
8279
8280 int
8281 main ()
8282 {
8283 static struct ifreq ac_aggr;
8284 if (sizeof ac_aggr.ifr_hwaddr)
8285 return 0;
8286 ;
8287 return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8292 case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
8307 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8308 else
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8311
8312 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8313 fi
8314
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 fi
8317
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 fi
8320 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8321 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8322 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8323
8324 cat >>confdefs.h <<_ACEOF
8325 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8326 _ACEOF
8327
8328
8329 fi
8330 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8331 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8332 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h. */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8342 #if HAVE_SYS_SOCKET_H
8343 #include <sys/socket.h>
8344 #endif
8345 #if HAVE_NET_IF_H
8346 #include <net/if.h>
8347 #endif
8348
8349 int
8350 main ()
8351 {
8352 static struct ifreq ac_aggr;
8353 if (ac_aggr.ifr_netmask)
8354 return 0;
8355 ;
8356 return 0;
8357 }
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (ac_try="$ac_compile"
8361 case "(($ac_try" in
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8364 esac
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_compile") 2>conftest.er1
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && {
8373 test -z "$ac_c_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest.$ac_objext; then
8376 ac_cv_member_struct_ifreq_ifr_netmask=yes
8377 else
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 $ac_includes_default
8388 #if HAVE_SYS_SOCKET_H
8389 #include <sys/socket.h>
8390 #endif
8391 #if HAVE_NET_IF_H
8392 #include <net/if.h>
8393 #endif
8394
8395 int
8396 main ()
8397 {
8398 static struct ifreq ac_aggr;
8399 if (sizeof ac_aggr.ifr_netmask)
8400 return 0;
8401 ;
8402 return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest.$ac_objext
8406 if { (ac_try="$ac_compile"
8407 case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410 esac
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_compile") 2>conftest.er1
8413 ac_status=$?
8414 grep -v '^ *+' conftest.er1 >conftest.err
8415 rm -f conftest.er1
8416 cat conftest.err >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest.$ac_objext; then
8422 ac_cv_member_struct_ifreq_ifr_netmask=yes
8423 else
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8426
8427 ac_cv_member_struct_ifreq_ifr_netmask=no
8428 fi
8429
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 fi
8432
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 fi
8435 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8436 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8437 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8438
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8441 _ACEOF
8442
8443
8444 fi
8445 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8446 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8447 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8457 #if HAVE_SYS_SOCKET_H
8458 #include <sys/socket.h>
8459 #endif
8460 #if HAVE_NET_IF_H
8461 #include <net/if.h>
8462 #endif
8463
8464 int
8465 main ()
8466 {
8467 static struct ifreq ac_aggr;
8468 if (ac_aggr.ifr_broadaddr)
8469 return 0;
8470 ;
8471 return 0;
8472 }
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (ac_try="$ac_compile"
8476 case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479 esac
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
8491 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8492 else
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 cat >conftest.$ac_ext <<_ACEOF
8497 /* confdefs.h. */
8498 _ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 $ac_includes_default
8503 #if HAVE_SYS_SOCKET_H
8504 #include <sys/socket.h>
8505 #endif
8506 #if HAVE_NET_IF_H
8507 #include <net/if.h>
8508 #endif
8509
8510 int
8511 main ()
8512 {
8513 static struct ifreq ac_aggr;
8514 if (sizeof ac_aggr.ifr_broadaddr)
8515 return 0;
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8537 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8538 else
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8543 fi
8544
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 fi
8547
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8549 fi
8550 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8551 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8552 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8553
8554 cat >>confdefs.h <<_ACEOF
8555 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8556 _ACEOF
8557
8558
8559 fi
8560 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8561 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8562 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h. */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 $ac_includes_default
8572 #if HAVE_SYS_SOCKET_H
8573 #include <sys/socket.h>
8574 #endif
8575 #if HAVE_NET_IF_H
8576 #include <net/if.h>
8577 #endif
8578
8579 int
8580 main ()
8581 {
8582 static struct ifreq ac_aggr;
8583 if (ac_aggr.ifr_addr)
8584 return 0;
8585 ;
8586 return 0;
8587 }
8588 _ACEOF
8589 rm -f conftest.$ac_objext
8590 if { (ac_try="$ac_compile"
8591 case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8594 esac
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_compile") 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && {
8603 test -z "$ac_c_werror_flag" ||
8604 test ! -s conftest.err
8605 } && test -s conftest.$ac_objext; then
8606 ac_cv_member_struct_ifreq_ifr_addr=yes
8607 else
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h. */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 $ac_includes_default
8618 #if HAVE_SYS_SOCKET_H
8619 #include <sys/socket.h>
8620 #endif
8621 #if HAVE_NET_IF_H
8622 #include <net/if.h>
8623 #endif
8624
8625 int
8626 main ()
8627 {
8628 static struct ifreq ac_aggr;
8629 if (sizeof ac_aggr.ifr_addr)
8630 return 0;
8631 ;
8632 return 0;
8633 }
8634 _ACEOF
8635 rm -f conftest.$ac_objext
8636 if { (ac_try="$ac_compile"
8637 case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8643 ac_status=$?
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.$ac_objext; then
8652 ac_cv_member_struct_ifreq_ifr_addr=yes
8653 else
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657 ac_cv_member_struct_ifreq_ifr_addr=no
8658 fi
8659
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661 fi
8662
8663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 fi
8665 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8666 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8667 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8668
8669 cat >>confdefs.h <<_ACEOF
8670 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8671 _ACEOF
8672
8673
8674 fi
8675
8676
8677
8678 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8679 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8680 if test "$ac_cv_prog_cc_c89" != no; then
8681 { echo "$as_me:$LINENO: result: yes" >&5
8682 echo "${ECHO_T}yes" >&6; }
8683
8684 cat >>confdefs.h <<\_ACEOF
8685 #define PROTOTYPES 1
8686 _ACEOF
8687
8688
8689 cat >>confdefs.h <<\_ACEOF
8690 #define __PROTOTYPES 1
8691 _ACEOF
8692
8693 else
8694 { echo "$as_me:$LINENO: result: no" >&5
8695 echo "${ECHO_T}no" >&6; }
8696 fi
8697
8698 { echo "$as_me:$LINENO: checking for working volatile" >&5
8699 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8700 if test "${ac_cv_c_volatile+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h. */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709
8710 int
8711 main ()
8712 {
8713
8714 volatile int x;
8715 int * volatile y = (int *) 0;
8716 return !x && !y;
8717 ;
8718 return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (ac_try="$ac_compile"
8723 case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726 esac
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_compile") 2>conftest.er1
8729 ac_status=$?
8730 grep -v '^ *+' conftest.er1 >conftest.err
8731 rm -f conftest.er1
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } && {
8735 test -z "$ac_c_werror_flag" ||
8736 test ! -s conftest.err
8737 } && test -s conftest.$ac_objext; then
8738 ac_cv_c_volatile=yes
8739 else
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743 ac_cv_c_volatile=no
8744 fi
8745
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 fi
8748 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8749 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8750 if test $ac_cv_c_volatile = no; then
8751
8752 cat >>confdefs.h <<\_ACEOF
8753 #define volatile
8754 _ACEOF
8755
8756 fi
8757
8758 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8759 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8760 if test "${ac_cv_c_const+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 else
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h. */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769
8770 int
8771 main ()
8772 {
8773 /* FIXME: Include the comments suggested by Paul. */
8774 #ifndef __cplusplus
8775 /* Ultrix mips cc rejects this. */
8776 typedef int charset[2];
8777 const charset cs;
8778 /* SunOS 4.1.1 cc rejects this. */
8779 char const *const *pcpcc;
8780 char **ppc;
8781 /* NEC SVR4.0.2 mips cc rejects this. */
8782 struct point {int x, y;};
8783 static struct point const zero = {0,0};
8784 /* AIX XL C 1.02.0.0 rejects this.
8785 It does not let you subtract one const X* pointer from another in
8786 an arm of an if-expression whose if-part is not a constant
8787 expression */
8788 const char *g = "string";
8789 pcpcc = &g + (g ? g-g : 0);
8790 /* HPUX 7.0 cc rejects these. */
8791 ++pcpcc;
8792 ppc = (char**) pcpcc;
8793 pcpcc = (char const *const *) ppc;
8794 { /* SCO 3.2v4 cc rejects this. */
8795 char *t;
8796 char const *s = 0 ? (char *) 0 : (char const *) 0;
8797
8798 *t++ = 0;
8799 if (s) return 0;
8800 }
8801 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8802 int x[] = {25, 17};
8803 const int *foo = &x[0];
8804 ++foo;
8805 }
8806 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8807 typedef const int *iptr;
8808 iptr p = 0;
8809 ++p;
8810 }
8811 { /* AIX XL C 1.02.0.0 rejects this saying
8812 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8813 struct s { int j; const int *ap[3]; };
8814 struct s *b; b->j = 5;
8815 }
8816 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8817 const int foo = 10;
8818 if (!foo) return 0;
8819 }
8820 return !cs[0] && !zero.x;
8821 #endif
8822
8823 ;
8824 return 0;
8825 }
8826 _ACEOF
8827 rm -f conftest.$ac_objext
8828 if { (ac_try="$ac_compile"
8829 case "(($ac_try" in
8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831 *) ac_try_echo=$ac_try;;
8832 esac
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834 (eval "$ac_compile") 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } && {
8841 test -z "$ac_c_werror_flag" ||
8842 test ! -s conftest.err
8843 } && test -s conftest.$ac_objext; then
8844 ac_cv_c_const=yes
8845 else
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8848
8849 ac_cv_c_const=no
8850 fi
8851
8852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 fi
8854 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8855 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8856 if test $ac_cv_c_const = no; then
8857
8858 cat >>confdefs.h <<\_ACEOF
8859 #define const
8860 _ACEOF
8861
8862 fi
8863
8864 { echo "$as_me:$LINENO: checking for void * support" >&5
8865 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8866 if test "${emacs_cv_void_star+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875
8876 int
8877 main ()
8878 {
8879 void * foo;
8880 ;
8881 return 0;
8882 }
8883 _ACEOF
8884 rm -f conftest.$ac_objext
8885 if { (ac_try="$ac_compile"
8886 case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889 esac
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.$ac_objext; then
8901 emacs_cv_void_star=yes
8902 else
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8905
8906 emacs_cv_void_star=no
8907 fi
8908
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910 fi
8911 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8912 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8913 if test $emacs_cv_void_star = yes; then
8914 cat >>confdefs.h <<\_ACEOF
8915 #define POINTER_TYPE void
8916 _ACEOF
8917
8918 else
8919 cat >>confdefs.h <<\_ACEOF
8920 #define POINTER_TYPE char
8921 _ACEOF
8922
8923 fi
8924
8925
8926
8927
8928
8929 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8930 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8931 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8932 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 else
8935 cat >conftest.make <<\_ACEOF
8936 SHELL = /bin/sh
8937 all:
8938 @echo '@@@%%%=$(MAKE)=@@@%%%'
8939 _ACEOF
8940 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8941 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8942 *@@@%%%=?*=@@@%%%*)
8943 eval ac_cv_prog_make_${ac_make}_set=yes;;
8944 *)
8945 eval ac_cv_prog_make_${ac_make}_set=no;;
8946 esac
8947 rm -f conftest.make
8948 fi
8949 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8950 { echo "$as_me:$LINENO: result: yes" >&5
8951 echo "${ECHO_T}yes" >&6; }
8952 SET_MAKE=
8953 else
8954 { echo "$as_me:$LINENO: result: no" >&5
8955 echo "${ECHO_T}no" >&6; }
8956 SET_MAKE="MAKE=${MAKE-make}"
8957 fi
8958
8959
8960 { echo "$as_me:$LINENO: checking for long file names" >&5
8961 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8962 if test "${ac_cv_sys_long_file_names+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965 ac_cv_sys_long_file_names=yes
8966 # Test for long file names in all the places we know might matter:
8967 # . the current directory, where building will happen
8968 # $prefix/lib where we will be installing things
8969 # $exec_prefix/lib likewise
8970 # $TMPDIR if set, where it might want to write temporary files
8971 # /tmp where it might want to write temporary files
8972 # /var/tmp likewise
8973 # /usr/tmp likewise
8974 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8975 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8976 # in the usual case where exec_prefix is '${prefix}'.
8977 case $ac_dir in #(
8978 . | /* | ?:[\\/]*) ;; #(
8979 *) continue;;
8980 esac
8981 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8982 ac_xdir=$ac_dir/cf$$
8983 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8984 ac_tf1=$ac_xdir/conftest9012345
8985 ac_tf2=$ac_xdir/conftest9012346
8986 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8987 ac_cv_sys_long_file_names=no
8988 rm -f -r "$ac_xdir" 2>/dev/null
8989 test $ac_cv_sys_long_file_names = no && break
8990 done
8991 fi
8992 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8993 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8994 if test $ac_cv_sys_long_file_names = yes; then
8995
8996 cat >>confdefs.h <<\_ACEOF
8997 #define HAVE_LONG_FILE_NAMES 1
8998 _ACEOF
8999
9000 fi
9001
9002
9003 #### Choose a window system.
9004
9005 { echo "$as_me:$LINENO: checking for X" >&5
9006 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9007
9008
9009 # Check whether --with-x was given.
9010 if test "${with_x+set}" = set; then
9011 withval=$with_x;
9012 fi
9013
9014 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9015 if test "x$with_x" = xno; then
9016 # The user explicitly disabled X.
9017 have_x=disabled
9018 else
9019 case $x_includes,$x_libraries in #(
9020 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9021 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9022 { (exit 1); exit 1; }; };; #(
9023 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026 # One or both of the vars are not set, and there is no cached value.
9027 ac_x_includes=no ac_x_libraries=no
9028 rm -f -r conftest.dir
9029 if mkdir conftest.dir; then
9030 cd conftest.dir
9031 cat >Imakefile <<'_ACEOF'
9032 incroot:
9033 @echo incroot='${INCROOT}'
9034 usrlibdir:
9035 @echo usrlibdir='${USRLIBDIR}'
9036 libdir:
9037 @echo libdir='${LIBDIR}'
9038 _ACEOF
9039 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9040 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9041 for ac_var in incroot usrlibdir libdir; do
9042 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9043 done
9044 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9045 for ac_extension in a so sl; do
9046 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9047 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9048 ac_im_usrlibdir=$ac_im_libdir; break
9049 fi
9050 done
9051 # Screen out bogus values from the imake configuration. They are
9052 # bogus both because they are the default anyway, and because
9053 # using them would break gcc on systems where it needs fixed includes.
9054 case $ac_im_incroot in
9055 /usr/include) ac_x_includes= ;;
9056 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9057 esac
9058 case $ac_im_usrlibdir in
9059 /usr/lib | /lib) ;;
9060 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9061 esac
9062 fi
9063 cd ..
9064 rm -f -r conftest.dir
9065 fi
9066
9067 # Standard set of common directories for X headers.
9068 # Check X11 before X11Rn because it is often a symlink to the current release.
9069 ac_x_header_dirs='
9070 /usr/X11/include
9071 /usr/X11R6/include
9072 /usr/X11R5/include
9073 /usr/X11R4/include
9074
9075 /usr/include/X11
9076 /usr/include/X11R6
9077 /usr/include/X11R5
9078 /usr/include/X11R4
9079
9080 /usr/local/X11/include
9081 /usr/local/X11R6/include
9082 /usr/local/X11R5/include
9083 /usr/local/X11R4/include
9084
9085 /usr/local/include/X11
9086 /usr/local/include/X11R6
9087 /usr/local/include/X11R5
9088 /usr/local/include/X11R4
9089
9090 /usr/X386/include
9091 /usr/x386/include
9092 /usr/XFree86/include/X11
9093
9094 /usr/include
9095 /usr/local/include
9096 /usr/unsupported/include
9097 /usr/athena/include
9098 /usr/local/x11r5/include
9099 /usr/lpp/Xamples/include
9100
9101 /usr/openwin/include
9102 /usr/openwin/share/include'
9103
9104 if test "$ac_x_includes" = no; then
9105 # Guess where to find include files, by looking for Xlib.h.
9106 # First, try using that file with no special directory specified.
9107 cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h. */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 #include <X11/Xlib.h>
9114 _ACEOF
9115 if { (ac_try="$ac_cpp conftest.$ac_ext"
9116 case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9119 esac
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } >/dev/null && {
9128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 }; then
9131 # We can compile using X headers with no special include directory.
9132 ac_x_includes=
9133 else
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9136
9137 for ac_dir in $ac_x_header_dirs; do
9138 if test -r "$ac_dir/X11/Xlib.h"; then
9139 ac_x_includes=$ac_dir
9140 break
9141 fi
9142 done
9143 fi
9144
9145 rm -f conftest.err conftest.$ac_ext
9146 fi # $ac_x_includes = no
9147
9148 if test "$ac_x_libraries" = no; then
9149 # Check for the libraries.
9150 # See if we find them without any special options.
9151 # Don't add to $LIBS permanently.
9152 ac_save_LIBS=$LIBS
9153 LIBS="-lX11 $LIBS"
9154 cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h. */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 #include <X11/Xlib.h>
9161 int
9162 main ()
9163 {
9164 XrmInitialize ()
9165 ;
9166 return 0;
9167 }
9168 _ACEOF
9169 rm -f conftest.$ac_objext conftest$ac_exeext
9170 if { (ac_try="$ac_link"
9171 case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9174 esac
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_link") 2>conftest.er1
9177 ac_status=$?
9178 grep -v '^ *+' conftest.er1 >conftest.err
9179 rm -f conftest.er1
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } && {
9183 test -z "$ac_c_werror_flag" ||
9184 test ! -s conftest.err
9185 } && test -s conftest$ac_exeext &&
9186 $as_test_x conftest$ac_exeext; then
9187 LIBS=$ac_save_LIBS
9188 # We can link X programs with no special library path.
9189 ac_x_libraries=
9190 else
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 LIBS=$ac_save_LIBS
9195 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9196 do
9197 # Don't even attempt the hair of trying to link an X program!
9198 for ac_extension in a so sl; do
9199 if test -r "$ac_dir/libX11.$ac_extension"; then
9200 ac_x_libraries=$ac_dir
9201 break 2
9202 fi
9203 done
9204 done
9205 fi
9206
9207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9208 conftest$ac_exeext conftest.$ac_ext
9209 fi # $ac_x_libraries = no
9210
9211 case $ac_x_includes,$ac_x_libraries in #(
9212 no,* | *,no | *\'*)
9213 # Didn't find X, or a directory has "'" in its name.
9214 ac_cv_have_x="have_x=no";; #(
9215 *)
9216 # Record where we found X for the cache.
9217 ac_cv_have_x="have_x=yes\
9218 ac_x_includes='$ac_x_includes'\
9219 ac_x_libraries='$ac_x_libraries'"
9220 esac
9221 fi
9222 ;; #(
9223 *) have_x=yes;;
9224 esac
9225 eval "$ac_cv_have_x"
9226 fi # $with_x != no
9227
9228 if test "$have_x" != yes; then
9229 { echo "$as_me:$LINENO: result: $have_x" >&5
9230 echo "${ECHO_T}$have_x" >&6; }
9231 no_x=yes
9232 else
9233 # If each of the values was on the command line, it overrides each guess.
9234 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9235 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9236 # Update the cache value to reflect the command line values.
9237 ac_cv_have_x="have_x=yes\
9238 ac_x_includes='$x_includes'\
9239 ac_x_libraries='$x_libraries'"
9240 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9241 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9242 fi
9243
9244 if test "$no_x" = yes; then
9245 window_system=none
9246 else
9247 window_system=x11
9248 fi
9249
9250 if test "${x_libraries}" != NONE; then
9251 if test -n "${x_libraries}"; then
9252 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9253 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9254 fi
9255 x_default_search_path=""
9256 x_search_path=${x_libraries}
9257 if test -z "${x_search_path}"; then
9258 x_search_path=/usr/lib
9259 fi
9260 for x_library in `echo ${x_search_path}: | \
9261 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9262 x_search_path="\
9263 ${x_library}/X11/%L/%T/%N%C%S:\
9264 ${x_library}/X11/%l/%T/%N%C%S:\
9265 ${x_library}/X11/%T/%N%C%S:\
9266 ${x_library}/X11/%L/%T/%N%S:\
9267 ${x_library}/X11/%l/%T/%N%S:\
9268 ${x_library}/X11/%T/%N%S"
9269 if test x"${x_default_search_path}" = x; then
9270 x_default_search_path=${x_search_path}
9271 else
9272 x_default_search_path="${x_search_path}:${x_default_search_path}"
9273 fi
9274 done
9275 fi
9276 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9277 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9278 fi
9279
9280 if test x"${x_includes}" = x; then
9281 bitmapdir=/usr/include/X11/bitmaps
9282 else
9283 # accumulate include directories that have X11 bitmap subdirectories
9284 bmd_acc="dummyval"
9285 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9286 if test -d "${bmd}/X11/bitmaps"; then
9287 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9288 fi
9289 if test -d "${bmd}/bitmaps"; then
9290 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9291 fi
9292 done
9293 if test ${bmd_acc} != "dummyval"; then
9294 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9295 fi
9296 fi
9297
9298 HAVE_CARBON=no
9299 if test "${with_carbon}" != no; then
9300 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9301 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9302 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9303 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 fi
9306 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9307 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9308 else
9309 # Is the header compilable?
9310 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9311 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9312 cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h. */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 $ac_includes_default
9319 #include <Carbon/Carbon.h>
9320 _ACEOF
9321 rm -f conftest.$ac_objext
9322 if { (ac_try="$ac_compile"
9323 case "(($ac_try" in
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9326 esac
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_compile") 2>conftest.er1
9329 ac_status=$?
9330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && {
9335 test -z "$ac_c_werror_flag" ||
9336 test ! -s conftest.err
9337 } && test -s conftest.$ac_objext; then
9338 ac_header_compiler=yes
9339 else
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9342
9343 ac_header_compiler=no
9344 fi
9345
9346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9348 echo "${ECHO_T}$ac_header_compiler" >&6; }
9349
9350 # Is the header present?
9351 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9352 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 #include <Carbon/Carbon.h>
9360 _ACEOF
9361 if { (ac_try="$ac_cpp conftest.$ac_ext"
9362 case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } >/dev/null && {
9374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9376 }; then
9377 ac_header_preproc=yes
9378 else
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382 ac_header_preproc=no
9383 fi
9384
9385 rm -f conftest.err conftest.$ac_ext
9386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9387 echo "${ECHO_T}$ac_header_preproc" >&6; }
9388
9389 # So? What about this header?
9390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9391 yes:no: )
9392 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9393 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9395 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9396 ac_header_preproc=yes
9397 ;;
9398 no:yes:* )
9399 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9400 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9402 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9404 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9406 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9408 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9410 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9411
9412 ;;
9413 esac
9414 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9415 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9416 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9420 fi
9421 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9422 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9423
9424 fi
9425 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9426 HAVE_CARBON=yes
9427 fi
9428
9429
9430 fi
9431 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9432 if test "${with_carbon+set}" != set \
9433 && test "${carbon_appdir_x+set}" != set; then
9434 for var in with_x with_x_toolkit with_gtk with_xim \
9435 with_xpm with_jpeg with_tiff with_gif with_png; do
9436 if eval test \"\${$var+set}\" = set; then
9437 HAVE_CARBON=no
9438 break
9439 fi
9440 done
9441 fi
9442 fi
9443 if test "${HAVE_CARBON}" = yes; then
9444 window_system=mac
9445 fi
9446
9447 case "${window_system}" in
9448 x11 )
9449 HAVE_X_WINDOWS=yes
9450 HAVE_X11=yes
9451 case "${with_x_toolkit}" in
9452 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9453 motif ) USE_X_TOOLKIT=MOTIF ;;
9454 gtk ) with_gtk=yes
9455 USE_X_TOOLKIT=none ;;
9456 no ) USE_X_TOOLKIT=none ;;
9457 * ) USE_X_TOOLKIT=maybe ;;
9458 esac
9459 ;;
9460 mac | none )
9461 HAVE_X_WINDOWS=no
9462 HAVE_X11=no
9463 USE_X_TOOLKIT=none
9464 ;;
9465 esac
9466
9467 ### If we're using X11, we should use the X menu package.
9468 HAVE_MENUS=no
9469 case ${HAVE_X11} in
9470 yes ) HAVE_MENUS=yes ;;
9471 esac
9472
9473 if test "${opsys}" = "hpux9"; then
9474 case "${x_libraries}" in
9475 *X11R4* )
9476 opsysfile="s/hpux9-x11r4.h"
9477 ;;
9478 esac
9479 fi
9480
9481 if test "${opsys}" = "hpux9shr"; then
9482 case "${x_libraries}" in
9483 *X11R4* )
9484 opsysfile="s/hpux9shxr4.h"
9485 ;;
9486 esac
9487 fi
9488
9489 ### Compute the unexec source name from the object name.
9490 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9491
9492 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9493 # Assume not, until told otherwise.
9494 GNU_MALLOC=yes
9495 doug_lea_malloc=yes
9496 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9497 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9498 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h. */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9509 #define malloc_get_state innocuous_malloc_get_state
9510
9511 /* System header to define __stub macros and hopefully few prototypes,
9512 which can conflict with char malloc_get_state (); below.
9513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9514 <limits.h> exists even on freestanding compilers. */
9515
9516 #ifdef __STDC__
9517 # include <limits.h>
9518 #else
9519 # include <assert.h>
9520 #endif
9521
9522 #undef malloc_get_state
9523
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 char malloc_get_state ();
9531 /* The GNU C library defines this for functions which it implements
9532 to always fail with ENOSYS. Some functions are actually named
9533 something starting with __ and the normal name is an alias. */
9534 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9535 choke me
9536 #endif
9537
9538 int
9539 main ()
9540 {
9541 return malloc_get_state ();
9542 ;
9543 return 0;
9544 }
9545 _ACEOF
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (ac_try="$ac_link"
9548 case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9551 esac
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_link") 2>conftest.er1
9554 ac_status=$?
9555 grep -v '^ *+' conftest.er1 >conftest.err
9556 rm -f conftest.er1
9557 cat conftest.err >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && {
9560 test -z "$ac_c_werror_flag" ||
9561 test ! -s conftest.err
9562 } && test -s conftest$ac_exeext &&
9563 $as_test_x conftest$ac_exeext; then
9564 ac_cv_func_malloc_get_state=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 ac_cv_func_malloc_get_state=no
9570 fi
9571
9572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9573 conftest$ac_exeext conftest.$ac_ext
9574 fi
9575 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9576 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9577 if test $ac_cv_func_malloc_get_state = yes; then
9578 :
9579 else
9580 doug_lea_malloc=no
9581 fi
9582
9583 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9584 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9585 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h. */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9596 #define malloc_set_state innocuous_malloc_set_state
9597
9598 /* System header to define __stub macros and hopefully few prototypes,
9599 which can conflict with char malloc_set_state (); below.
9600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9601 <limits.h> exists even on freestanding compilers. */
9602
9603 #ifdef __STDC__
9604 # include <limits.h>
9605 #else
9606 # include <assert.h>
9607 #endif
9608
9609 #undef malloc_set_state
9610
9611 /* Override any GCC internal prototype to avoid an error.
9612 Use char because int might match the return type of a GCC
9613 builtin and then its argument prototype would still apply. */
9614 #ifdef __cplusplus
9615 extern "C"
9616 #endif
9617 char malloc_set_state ();
9618 /* The GNU C library defines this for functions which it implements
9619 to always fail with ENOSYS. Some functions are actually named
9620 something starting with __ and the normal name is an alias. */
9621 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9622 choke me
9623 #endif
9624
9625 int
9626 main ()
9627 {
9628 return malloc_set_state ();
9629 ;
9630 return 0;
9631 }
9632 _ACEOF
9633 rm -f conftest.$ac_objext conftest$ac_exeext
9634 if { (ac_try="$ac_link"
9635 case "(($ac_try" in
9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9638 esac
9639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640 (eval "$ac_link") 2>conftest.er1
9641 ac_status=$?
9642 grep -v '^ *+' conftest.er1 >conftest.err
9643 rm -f conftest.er1
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } && {
9647 test -z "$ac_c_werror_flag" ||
9648 test ! -s conftest.err
9649 } && test -s conftest$ac_exeext &&
9650 $as_test_x conftest$ac_exeext; then
9651 ac_cv_func_malloc_set_state=yes
9652 else
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9655
9656 ac_cv_func_malloc_set_state=no
9657 fi
9658
9659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9660 conftest$ac_exeext conftest.$ac_ext
9661 fi
9662 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9663 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9664 if test $ac_cv_func_malloc_set_state = yes; then
9665 :
9666 else
9667 doug_lea_malloc=no
9668 fi
9669
9670 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9671 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9672 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675 cat >conftest.$ac_ext <<_ACEOF
9676 /* confdefs.h. */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9681 extern void (* __after_morecore_hook)();
9682 int
9683 main ()
9684 {
9685 __after_morecore_hook = 0
9686 ;
9687 return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9692 case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9695 esac
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && {
9704 test -z "$ac_c_werror_flag" ||
9705 test ! -s conftest.err
9706 } && test -s conftest$ac_exeext &&
9707 $as_test_x conftest$ac_exeext; then
9708 emacs_cv_var___after_morecore_hook=yes
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 emacs_cv_var___after_morecore_hook=no
9714 fi
9715
9716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9717 conftest$ac_exeext conftest.$ac_ext
9718 fi
9719 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9720 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9721 if test $emacs_cv_var___after_morecore_hook = no; then
9722 doug_lea_malloc=no
9723 fi
9724 if test "${system_malloc}" = "yes"; then
9725 GNU_MALLOC=no
9726 GNU_MALLOC_reason="
9727 (The GNU allocators don't work with this system configuration.)"
9728 fi
9729 if test "$doug_lea_malloc" = "yes" ; then
9730 if test "$GNU_MALLOC" = yes ; then
9731 GNU_MALLOC_reason="
9732 (Using Doug Lea's new malloc from the GNU C Library.)"
9733 fi
9734
9735 cat >>confdefs.h <<\_ACEOF
9736 #define DOUG_LEA_MALLOC 1
9737 _ACEOF
9738
9739 fi
9740
9741 if test x"${REL_ALLOC}" = x; then
9742 REL_ALLOC=${GNU_MALLOC}
9743 fi
9744
9745
9746
9747
9748 for ac_header in stdlib.h unistd.h
9749 do
9750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 fi
9757 ac_res=`eval echo '${'$as_ac_Header'}'`
9758 { echo "$as_me:$LINENO: result: $ac_res" >&5
9759 echo "${ECHO_T}$ac_res" >&6; }
9760 else
9761 # Is the header compilable?
9762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9764 cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h. */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9770 $ac_includes_default
9771 #include <$ac_header>
9772 _ACEOF
9773 rm -f conftest.$ac_objext
9774 if { (ac_try="$ac_compile"
9775 case "(($ac_try" in
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9778 esac
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_compile") 2>conftest.er1
9781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } && {
9787 test -z "$ac_c_werror_flag" ||
9788 test ! -s conftest.err
9789 } && test -s conftest.$ac_objext; then
9790 ac_header_compiler=yes
9791 else
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9794
9795 ac_header_compiler=no
9796 fi
9797
9798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9800 echo "${ECHO_T}$ac_header_compiler" >&6; }
9801
9802 # Is the header present?
9803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9805 cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h. */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9811 #include <$ac_header>
9812 _ACEOF
9813 if { (ac_try="$ac_cpp conftest.$ac_ext"
9814 case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } >/dev/null && {
9826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9827 test ! -s conftest.err
9828 }; then
9829 ac_header_preproc=yes
9830 else
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_header_preproc=no
9835 fi
9836
9837 rm -f conftest.err conftest.$ac_ext
9838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9839 echo "${ECHO_T}$ac_header_preproc" >&6; }
9840
9841 # So? What about this header?
9842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9843 yes:no: )
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9848 ac_header_preproc=yes
9849 ;;
9850 no:yes:* )
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9863
9864 ;;
9865 esac
9866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871 eval "$as_ac_Header=\$ac_header_preproc"
9872 fi
9873 ac_res=`eval echo '${'$as_ac_Header'}'`
9874 { echo "$as_me:$LINENO: result: $ac_res" >&5
9875 echo "${ECHO_T}$ac_res" >&6; }
9876
9877 fi
9878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9879 cat >>confdefs.h <<_ACEOF
9880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9881 _ACEOF
9882
9883 fi
9884
9885 done
9886
9887
9888 for ac_func in getpagesize
9889 do
9890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9904 #define $ac_func innocuous_$ac_func
9905
9906 /* System header to define __stub macros and hopefully few prototypes,
9907 which can conflict with char $ac_func (); below.
9908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909 <limits.h> exists even on freestanding compilers. */
9910
9911 #ifdef __STDC__
9912 # include <limits.h>
9913 #else
9914 # include <assert.h>
9915 #endif
9916
9917 #undef $ac_func
9918
9919 /* Override any GCC internal prototype to avoid an error.
9920 Use char because int might match the return type of a GCC
9921 builtin and then its argument prototype would still apply. */
9922 #ifdef __cplusplus
9923 extern "C"
9924 #endif
9925 char $ac_func ();
9926 /* The GNU C library defines this for functions which it implements
9927 to always fail with ENOSYS. Some functions are actually named
9928 something starting with __ and the normal name is an alias. */
9929 #if defined __stub_$ac_func || defined __stub___$ac_func
9930 choke me
9931 #endif
9932
9933 int
9934 main ()
9935 {
9936 return $ac_func ();
9937 ;
9938 return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (ac_try="$ac_link"
9943 case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9946 esac
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_link") 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } && {
9955 test -z "$ac_c_werror_flag" ||
9956 test ! -s conftest.err
9957 } && test -s conftest$ac_exeext &&
9958 $as_test_x conftest$ac_exeext; then
9959 eval "$as_ac_var=yes"
9960 else
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9963
9964 eval "$as_ac_var=no"
9965 fi
9966
9967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9968 conftest$ac_exeext conftest.$ac_ext
9969 fi
9970 ac_res=`eval echo '${'$as_ac_var'}'`
9971 { echo "$as_me:$LINENO: result: $ac_res" >&5
9972 echo "${ECHO_T}$ac_res" >&6; }
9973 if test `eval echo '${'$as_ac_var'}'` = yes; then
9974 cat >>confdefs.h <<_ACEOF
9975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9976 _ACEOF
9977
9978 fi
9979 done
9980
9981 { echo "$as_me:$LINENO: checking for working mmap" >&5
9982 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9983 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 else
9986 if test "$cross_compiling" = yes; then
9987 ac_cv_func_mmap_fixed_mapped=no
9988 else
9989 cat >conftest.$ac_ext <<_ACEOF
9990 /* confdefs.h. */
9991 _ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995 $ac_includes_default
9996 /* malloc might have been renamed as rpl_malloc. */
9997 #undef malloc
9998
9999 /* Thanks to Mike Haertel and Jim Avera for this test.
10000 Here is a matrix of mmap possibilities:
10001 mmap private not fixed
10002 mmap private fixed at somewhere currently unmapped
10003 mmap private fixed at somewhere already mapped
10004 mmap shared not fixed
10005 mmap shared fixed at somewhere currently unmapped
10006 mmap shared fixed at somewhere already mapped
10007 For private mappings, we should verify that changes cannot be read()
10008 back from the file, nor mmap's back from the file at a different
10009 address. (There have been systems where private was not correctly
10010 implemented like the infamous i386 svr4.0, and systems where the
10011 VM page cache was not coherent with the file system buffer cache
10012 like early versions of FreeBSD and possibly contemporary NetBSD.)
10013 For shared mappings, we should conversely verify that changes get
10014 propagated back to all the places they're supposed to be.
10015
10016 Grep wants private fixed already mapped.
10017 The main things grep needs to know about mmap are:
10018 * does it exist and is it safe to write into the mmap'd area
10019 * how to use it (BSD variants) */
10020
10021 #include <fcntl.h>
10022 #include <sys/mman.h>
10023
10024 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10025 char *malloc ();
10026 #endif
10027
10028 /* This mess was copied from the GNU getpagesize.h. */
10029 #ifndef HAVE_GETPAGESIZE
10030 /* Assume that all systems that can run configure have sys/param.h. */
10031 # ifndef HAVE_SYS_PARAM_H
10032 # define HAVE_SYS_PARAM_H 1
10033 # endif
10034
10035 # ifdef _SC_PAGESIZE
10036 # define getpagesize() sysconf(_SC_PAGESIZE)
10037 # else /* no _SC_PAGESIZE */
10038 # ifdef HAVE_SYS_PARAM_H
10039 # include <sys/param.h>
10040 # ifdef EXEC_PAGESIZE
10041 # define getpagesize() EXEC_PAGESIZE
10042 # else /* no EXEC_PAGESIZE */
10043 # ifdef NBPG
10044 # define getpagesize() NBPG * CLSIZE
10045 # ifndef CLSIZE
10046 # define CLSIZE 1
10047 # endif /* no CLSIZE */
10048 # else /* no NBPG */
10049 # ifdef NBPC
10050 # define getpagesize() NBPC
10051 # else /* no NBPC */
10052 # ifdef PAGESIZE
10053 # define getpagesize() PAGESIZE
10054 # endif /* PAGESIZE */
10055 # endif /* no NBPC */
10056 # endif /* no NBPG */
10057 # endif /* no EXEC_PAGESIZE */
10058 # else /* no HAVE_SYS_PARAM_H */
10059 # define getpagesize() 8192 /* punt totally */
10060 # endif /* no HAVE_SYS_PARAM_H */
10061 # endif /* no _SC_PAGESIZE */
10062
10063 #endif /* no HAVE_GETPAGESIZE */
10064
10065 int
10066 main ()
10067 {
10068 char *data, *data2, *data3;
10069 int i, pagesize;
10070 int fd;
10071
10072 pagesize = getpagesize ();
10073
10074 /* First, make a file with some known garbage in it. */
10075 data = (char *) malloc (pagesize);
10076 if (!data)
10077 return 1;
10078 for (i = 0; i < pagesize; ++i)
10079 *(data + i) = rand ();
10080 umask (0);
10081 fd = creat ("conftest.mmap", 0600);
10082 if (fd < 0)
10083 return 1;
10084 if (write (fd, data, pagesize) != pagesize)
10085 return 1;
10086 close (fd);
10087
10088 /* Next, try to mmap the file at a fixed address which already has
10089 something else allocated at it. If we can, also make sure that
10090 we see the same garbage. */
10091 fd = open ("conftest.mmap", O_RDWR);
10092 if (fd < 0)
10093 return 1;
10094 data2 = (char *) malloc (2 * pagesize);
10095 if (!data2)
10096 return 1;
10097 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10098 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10099 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10100 return 1;
10101 for (i = 0; i < pagesize; ++i)
10102 if (*(data + i) != *(data2 + i))
10103 return 1;
10104
10105 /* Finally, make sure that changes to the mapped area do not
10106 percolate back to the file as seen by read(). (This is a bug on
10107 some variants of i386 svr4.0.) */
10108 for (i = 0; i < pagesize; ++i)
10109 *(data2 + i) = *(data2 + i) + 1;
10110 data3 = (char *) malloc (pagesize);
10111 if (!data3)
10112 return 1;
10113 if (read (fd, data3, pagesize) != pagesize)
10114 return 1;
10115 for (i = 0; i < pagesize; ++i)
10116 if (*(data + i) != *(data3 + i))
10117 return 1;
10118 close (fd);
10119 return 0;
10120 }
10121 _ACEOF
10122 rm -f conftest$ac_exeext
10123 if { (ac_try="$ac_link"
10124 case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127 esac
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_link") 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10133 { (case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_try") 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_func_mmap_fixed_mapped=yes
10143 else
10144 echo "$as_me: program exited with status $ac_status" >&5
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10147
10148 ( exit $ac_status )
10149 ac_cv_func_mmap_fixed_mapped=no
10150 fi
10151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10152 fi
10153
10154
10155 fi
10156 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10157 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10158 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10159
10160 cat >>confdefs.h <<\_ACEOF
10161 #define HAVE_MMAP 1
10162 _ACEOF
10163
10164 fi
10165 rm -f conftest.mmap
10166
10167 if test $use_mmap_for_buffers = yes; then
10168 REL_ALLOC=no
10169 fi
10170
10171 LIBS="$libsrc_libs $LIBS"
10172
10173
10174 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10175 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10176 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179 ac_check_lib_save_LIBS=$LIBS
10180 LIBS="-ldnet $LIBS"
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h. */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187
10188 /* Override any GCC internal prototype to avoid an error.
10189 Use char because int might match the return type of a GCC
10190 builtin and then its argument prototype would still apply. */
10191 #ifdef __cplusplus
10192 extern "C"
10193 #endif
10194 char dnet_ntoa ();
10195 int
10196 main ()
10197 {
10198 return dnet_ntoa ();
10199 ;
10200 return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (ac_try="$ac_link"
10205 case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && {
10217 test -z "$ac_c_werror_flag" ||
10218 test ! -s conftest.err
10219 } && test -s conftest$ac_exeext &&
10220 $as_test_x conftest$ac_exeext; then
10221 ac_cv_lib_dnet_dnet_ntoa=yes
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 ac_cv_lib_dnet_dnet_ntoa=no
10227 fi
10228
10229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LIBS=$ac_check_lib_save_LIBS
10232 fi
10233 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10234 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10235 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10236 cat >>confdefs.h <<_ACEOF
10237 #define HAVE_LIBDNET 1
10238 _ACEOF
10239
10240 LIBS="-ldnet $LIBS"
10241
10242 fi
10243
10244
10245 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10246 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10247 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250 ac_check_lib_save_LIBS=$LIBS
10251 LIBS="-lXbsd $LIBS"
10252 cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h. */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258
10259
10260 int
10261 main ()
10262 {
10263 return main ();
10264 ;
10265 return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_link") 2>conftest.er1
10276 ac_status=$?
10277 grep -v '^ *+' conftest.er1 >conftest.err
10278 rm -f conftest.er1
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 } && test -s conftest$ac_exeext &&
10285 $as_test_x conftest$ac_exeext; then
10286 ac_cv_lib_Xbsd_main=yes
10287 else
10288 echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10290
10291 ac_cv_lib_Xbsd_main=no
10292 fi
10293
10294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10295 conftest$ac_exeext conftest.$ac_ext
10296 LIBS=$ac_check_lib_save_LIBS
10297 fi
10298 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10299 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10300 if test $ac_cv_lib_Xbsd_main = yes; then
10301 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10302 fi
10303
10304
10305
10306 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10307 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10308 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311 ac_check_lib_save_LIBS=$LIBS
10312 LIBS="-lpthreads $LIBS"
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319
10320 /* Override any GCC internal prototype to avoid an error.
10321 Use char because int might match the return type of a GCC
10322 builtin and then its argument prototype would still apply. */
10323 #ifdef __cplusplus
10324 extern "C"
10325 #endif
10326 char cma_open ();
10327 int
10328 main ()
10329 {
10330 return cma_open ();
10331 ;
10332 return 0;
10333 }
10334 _ACEOF
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (ac_try="$ac_link"
10337 case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340 esac
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_link") 2>conftest.er1
10343 ac_status=$?
10344 grep -v '^ *+' conftest.er1 >conftest.err
10345 rm -f conftest.er1
10346 cat conftest.err >&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } && {
10349 test -z "$ac_c_werror_flag" ||
10350 test ! -s conftest.err
10351 } && test -s conftest$ac_exeext &&
10352 $as_test_x conftest$ac_exeext; then
10353 ac_cv_lib_pthreads_cma_open=yes
10354 else
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10357
10358 ac_cv_lib_pthreads_cma_open=no
10359 fi
10360
10361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10362 conftest$ac_exeext conftest.$ac_ext
10363 LIBS=$ac_check_lib_save_LIBS
10364 fi
10365 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10366 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10367 if test $ac_cv_lib_pthreads_cma_open = yes; then
10368 cat >>confdefs.h <<_ACEOF
10369 #define HAVE_LIBPTHREADS 1
10370 _ACEOF
10371
10372 LIBS="-lpthreads $LIBS"
10373
10374 fi
10375
10376
10377 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10378 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10379 if test -d /usr/X386/include; then
10380 HAVE_XFREE386=yes
10381 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10382 else
10383 HAVE_XFREE386=no
10384 fi
10385 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10386 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10387
10388
10389 case ${host_os} in
10390 aix*)
10391 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10392 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10393 if test "${gdb_cv_bigtoc+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396
10397 case $GCC in
10398 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10399 *) gdb_cv_bigtoc=-bbigtoc ;;
10400 esac
10401
10402 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10403 cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h. */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10409
10410 int
10411 main ()
10412 {
10413 int i;
10414 ;
10415 return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (ac_try="$ac_link"
10420 case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10423 esac
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_link") 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && {
10432 test -z "$ac_c_werror_flag" ||
10433 test ! -s conftest.err
10434 } && test -s conftest$ac_exeext &&
10435 $as_test_x conftest$ac_exeext; then
10436 :
10437 else
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10440
10441 gdb_cv_bigtoc=
10442 fi
10443
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 conftest$ac_exeext conftest.$ac_ext
10446
10447 fi
10448 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10449 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10450 ;;
10451 esac
10452
10453 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10454 # used for the tests that follow. We set them back to REAL_CFLAGS and
10455 # REAL_CPPFLAGS later on.
10456
10457 REAL_CPPFLAGS="$CPPFLAGS"
10458
10459 if test "${HAVE_X11}" = "yes"; then
10460 DEFS="$C_SWITCH_X_SITE $DEFS"
10461 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10462 LIBS="$LIBX $LIBS"
10463 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10464 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10465
10466 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10467 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10468 # but it's more convenient here to set LD_RUN_PATH
10469 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10470 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10471 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10472 export LD_RUN_PATH
10473 fi
10474
10475 if test "${opsys}" = "gnu-linux"; then
10476 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10477 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h. */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484
10485 int
10486 main ()
10487 {
10488 XOpenDisplay ("foo");
10489 ;
10490 return 0;
10491 }
10492 _ACEOF
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (ac_try="$ac_link"
10495 case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10498 esac
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_link") 2>conftest.er1
10501 ac_status=$?
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_c_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest$ac_exeext &&
10510 $as_test_x conftest$ac_exeext; then
10511 xlinux_first_failure=no
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10515
10516 xlinux_first_failure=yes
10517 fi
10518
10519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10520 conftest$ac_exeext conftest.$ac_ext
10521 if test "${xlinux_first_failure}" = "yes"; then
10522 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10523 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10524 OLD_CPPFLAGS="$CPPFLAGS"
10525 OLD_LIBS="$LIBS"
10526 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10527 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10528 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10529 LIBS="$LIBS -b i486-linuxaout"
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_second_failure=no
10564 else
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 xlinux_second_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_second_failure}" = "yes"; then
10574 # If we get the same failure with -b, there is no use adding -b.
10575 # So take it out. This plays safe.
10576 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10577 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10578 CPPFLAGS="$OLD_CPPFLAGS"
10579 LIBS="$OLD_LIBS"
10580 { echo "$as_me:$LINENO: result: no" >&5
10581 echo "${ECHO_T}no" >&6; }
10582 else
10583 { echo "$as_me:$LINENO: result: yes" >&5
10584 echo "${ECHO_T}yes" >&6; }
10585 fi
10586 else
10587 { echo "$as_me:$LINENO: result: no" >&5
10588 echo "${ECHO_T}no" >&6; }
10589 fi
10590 fi
10591
10592 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10593 # header files included from there.
10594 { echo "$as_me:$LINENO: checking for Xkb" >&5
10595 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h. */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 #include <X11/Xlib.h>
10603 #include <X11/XKBlib.h>
10604 int
10605 main ()
10606 {
10607 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10608 ;
10609 return 0;
10610 }
10611 _ACEOF
10612 rm -f conftest.$ac_objext conftest$ac_exeext
10613 if { (ac_try="$ac_link"
10614 case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10617 esac
10618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619 (eval "$ac_link") 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && {
10626 test -z "$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 } && test -s conftest$ac_exeext &&
10629 $as_test_x conftest$ac_exeext; then
10630 emacs_xkb=yes
10631 else
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635 emacs_xkb=no
10636 fi
10637
10638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10639 conftest$ac_exeext conftest.$ac_ext
10640 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10641 echo "${ECHO_T}$emacs_xkb" >&6; }
10642 if test $emacs_xkb = yes; then
10643
10644 cat >>confdefs.h <<\_ACEOF
10645 #define HAVE_XKBGETKEYBOARD 1
10646 _ACEOF
10647
10648 fi
10649
10650
10651
10652
10653
10654 for ac_func in XrmSetDatabase XScreenResourceString \
10655 XScreenNumberOfScreen XSetWMProtocols
10656 do
10657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10671 #define $ac_func innocuous_$ac_func
10672
10673 /* System header to define __stub macros and hopefully few prototypes,
10674 which can conflict with char $ac_func (); below.
10675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10676 <limits.h> exists even on freestanding compilers. */
10677
10678 #ifdef __STDC__
10679 # include <limits.h>
10680 #else
10681 # include <assert.h>
10682 #endif
10683
10684 #undef $ac_func
10685
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 char $ac_func ();
10693 /* The GNU C library defines this for functions which it implements
10694 to always fail with ENOSYS. Some functions are actually named
10695 something starting with __ and the normal name is an alias. */
10696 #if defined __stub_$ac_func || defined __stub___$ac_func
10697 choke me
10698 #endif
10699
10700 int
10701 main ()
10702 {
10703 return $ac_func ();
10704 ;
10705 return 0;
10706 }
10707 _ACEOF
10708 rm -f conftest.$ac_objext conftest$ac_exeext
10709 if { (ac_try="$ac_link"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713 esac
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_link") 2>conftest.er1
10716 ac_status=$?
10717 grep -v '^ *+' conftest.er1 >conftest.err
10718 rm -f conftest.er1
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } && {
10722 test -z "$ac_c_werror_flag" ||
10723 test ! -s conftest.err
10724 } && test -s conftest$ac_exeext &&
10725 $as_test_x conftest$ac_exeext; then
10726 eval "$as_ac_var=yes"
10727 else
10728 echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10730
10731 eval "$as_ac_var=no"
10732 fi
10733
10734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10735 conftest$ac_exeext conftest.$ac_ext
10736 fi
10737 ac_res=`eval echo '${'$as_ac_var'}'`
10738 { echo "$as_me:$LINENO: result: $ac_res" >&5
10739 echo "${ECHO_T}$ac_res" >&6; }
10740 if test `eval echo '${'$as_ac_var'}'` = yes; then
10741 cat >>confdefs.h <<_ACEOF
10742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10743 _ACEOF
10744
10745 fi
10746 done
10747
10748 fi
10749
10750 if test "${window_system}" = "x11"; then
10751 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10752 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10753 if test "${emacs_cv_x11_version_6+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756 cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h. */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 #include <X11/Xlib.h>
10763 int
10764 main ()
10765 {
10766 #if XlibSpecificationRelease < 6
10767 fail;
10768 #endif
10769
10770 ;
10771 return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779 esac
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_link") 2>conftest.er1
10782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } && {
10788 test -z "$ac_c_werror_flag" ||
10789 test ! -s conftest.err
10790 } && test -s conftest$ac_exeext &&
10791 $as_test_x conftest$ac_exeext; then
10792 emacs_cv_x11_version_6=yes
10793 else
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797 emacs_cv_x11_version_6=no
10798 fi
10799
10800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10801 conftest$ac_exeext conftest.$ac_ext
10802 fi
10803
10804 if test $emacs_cv_x11_version_6 = yes; then
10805 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10806 echo "${ECHO_T}6 or newer" >&6; }
10807
10808 cat >>confdefs.h <<\_ACEOF
10809 #define HAVE_X11R6 1
10810 _ACEOF
10811
10812 else
10813 { echo "$as_me:$LINENO: result: before 6" >&5
10814 echo "${ECHO_T}before 6" >&6; }
10815 fi
10816 fi
10817
10818 if test "${window_system}" = "x11"; then
10819 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10820 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10821 if test "${emacs_cv_x11_version_5+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 else
10824 cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h. */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 #include <X11/Xlib.h>
10831 int
10832 main ()
10833 {
10834 #if XlibSpecificationRelease < 5
10835 fail;
10836 #endif
10837
10838 ;
10839 return 0;
10840 }
10841 _ACEOF
10842 rm -f conftest.$ac_objext conftest$ac_exeext
10843 if { (ac_try="$ac_link"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10847 esac
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_link") 2>conftest.er1
10850 ac_status=$?
10851 grep -v '^ *+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest$ac_exeext &&
10859 $as_test_x conftest$ac_exeext; then
10860 emacs_cv_x11_version_5=yes
10861 else
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10864
10865 emacs_cv_x11_version_5=no
10866 fi
10867
10868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10869 conftest$ac_exeext conftest.$ac_ext
10870 fi
10871
10872 if test $emacs_cv_x11_version_5 = yes; then
10873 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10874 echo "${ECHO_T}5 or newer" >&6; }
10875 HAVE_X11R5=yes
10876
10877 cat >>confdefs.h <<\_ACEOF
10878 #define HAVE_X11R5 1
10879 _ACEOF
10880
10881 else
10882 HAVE_X11R5=no
10883 { echo "$as_me:$LINENO: result: before 5" >&5
10884 echo "${ECHO_T}before 5" >&6; }
10885 fi
10886 fi
10887
10888 HAVE_GTK=no
10889 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10890 USE_X_TOOLKIT=none
10891 fi
10892 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10893 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10894 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10895 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10896 { (exit 1); exit 1; }; };
10897 fi
10898 GLIB_REQUIRED=2.4
10899 GTK_REQUIRED=2.4
10900 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10901
10902 if test "X${with_pkg_config_prog}" != X; then
10903 PKG_CONFIG="${with_pkg_config_prog}"
10904 fi
10905
10906 succeeded=no
10907
10908 if test -z "$PKG_CONFIG"; then
10909 # Extract the first word of "pkg-config", so it can be a program name with args.
10910 set dummy pkg-config; ac_word=$2
10911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10913 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 case $PKG_CONFIG in
10917 [\\/]* | ?:[\\/]*)
10918 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10919 ;;
10920 *)
10921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922 for as_dir in $PATH
10923 do
10924 IFS=$as_save_IFS
10925 test -z "$as_dir" && as_dir=.
10926 for ac_exec_ext in '' $ac_executable_extensions; do
10927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10928 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10930 break 2
10931 fi
10932 done
10933 done
10934 IFS=$as_save_IFS
10935
10936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10937 ;;
10938 esac
10939 fi
10940 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10941 if test -n "$PKG_CONFIG"; then
10942 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10943 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10944 else
10945 { echo "$as_me:$LINENO: result: no" >&5
10946 echo "${ECHO_T}no" >&6; }
10947 fi
10948
10949
10950 fi
10951
10952 if test "$PKG_CONFIG" = "no" ; then
10953 { { echo "$as_me:$LINENO: error:
10954 *** 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
10955 echo "$as_me: error:
10956 *** 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;}
10957 { (exit 1); exit 1; }; }
10958 else
10959 PKG_CONFIG_MIN_VERSION=0.9.0
10960 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10961 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10962 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10963
10964 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10965 { echo "$as_me:$LINENO: result: yes" >&5
10966 echo "${ECHO_T}yes" >&6; }
10967 succeeded=yes
10968
10969 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10970 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10971 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10972 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10973 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10974
10975 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10976 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10977 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10978 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10979 echo "${ECHO_T}$GTK_LIBS" >&6; }
10980 else
10981 { echo "$as_me:$LINENO: result: no" >&5
10982 echo "${ECHO_T}no" >&6; }
10983 GTK_CFLAGS=""
10984 GTK_LIBS=""
10985 ## If we have a custom action on failure, don't print errors, but
10986 ## do set a variable so people can do so.
10987 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10988 echo $GTK_PKG_ERRORS
10989 fi
10990
10991
10992
10993 else
10994 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10995 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10996 fi
10997 fi
10998
10999 if test $succeeded = yes; then
11000 :
11001 else
11002 { { 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
11003 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;}
11004 { (exit 1); exit 1; }; }
11005 fi
11006
11007
11008
11009 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11010 CFLAGS="$CFLAGS $GTK_CFLAGS"
11011 LIBS="$GTK_LIBS $LIBS"
11012 GTK_COMPILES=no
11013
11014 for ac_func in gtk_main
11015 do
11016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11030 #define $ac_func innocuous_$ac_func
11031
11032 /* System header to define __stub macros and hopefully few prototypes,
11033 which can conflict with char $ac_func (); below.
11034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11035 <limits.h> exists even on freestanding compilers. */
11036
11037 #ifdef __STDC__
11038 # include <limits.h>
11039 #else
11040 # include <assert.h>
11041 #endif
11042
11043 #undef $ac_func
11044
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char $ac_func ();
11052 /* The GNU C library defines this for functions which it implements
11053 to always fail with ENOSYS. Some functions are actually named
11054 something starting with __ and the normal name is an alias. */
11055 #if defined __stub_$ac_func || defined __stub___$ac_func
11056 choke me
11057 #endif
11058
11059 int
11060 main ()
11061 {
11062 return $ac_func ();
11063 ;
11064 return 0;
11065 }
11066 _ACEOF
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (ac_try="$ac_link"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_link") 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } && {
11081 test -z "$ac_c_werror_flag" ||
11082 test ! -s conftest.err
11083 } && test -s conftest$ac_exeext &&
11084 $as_test_x conftest$ac_exeext; then
11085 eval "$as_ac_var=yes"
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11089
11090 eval "$as_ac_var=no"
11091 fi
11092
11093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11094 conftest$ac_exeext conftest.$ac_ext
11095 fi
11096 ac_res=`eval echo '${'$as_ac_var'}'`
11097 { echo "$as_me:$LINENO: result: $ac_res" >&5
11098 echo "${ECHO_T}$ac_res" >&6; }
11099 if test `eval echo '${'$as_ac_var'}'` = yes; then
11100 cat >>confdefs.h <<_ACEOF
11101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11102 _ACEOF
11103 GTK_COMPILES=yes
11104 fi
11105 done
11106
11107 if test "${GTK_COMPILES}" != "yes"; then
11108 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11109 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11110 { (exit 1); exit 1; }; };
11111 fi
11112
11113 HAVE_GTK=yes
11114
11115 cat >>confdefs.h <<\_ACEOF
11116 #define HAVE_GTK 1
11117 _ACEOF
11118
11119 USE_X_TOOLKIT=none
11120
11121 if test "$with_toolkit_scroll_bars" != no; then
11122 with_toolkit_scroll_bars=yes
11123 fi
11124
11125 HAVE_GTK_MULTIDISPLAY=no
11126
11127 for ac_func in gdk_display_open
11128 do
11129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135 cat >conftest.$ac_ext <<_ACEOF
11136 /* confdefs.h. */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11143 #define $ac_func innocuous_$ac_func
11144
11145 /* System header to define __stub macros and hopefully few prototypes,
11146 which can conflict with char $ac_func (); below.
11147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11148 <limits.h> exists even on freestanding compilers. */
11149
11150 #ifdef __STDC__
11151 # include <limits.h>
11152 #else
11153 # include <assert.h>
11154 #endif
11155
11156 #undef $ac_func
11157
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11161 #ifdef __cplusplus
11162 extern "C"
11163 #endif
11164 char $ac_func ();
11165 /* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168 #if defined __stub_$ac_func || defined __stub___$ac_func
11169 choke me
11170 #endif
11171
11172 int
11173 main ()
11174 {
11175 return $ac_func ();
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 rm -f conftest.$ac_objext conftest$ac_exeext
11181 if { (ac_try="$ac_link"
11182 case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_link") 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } && {
11194 test -z "$ac_c_werror_flag" ||
11195 test ! -s conftest.err
11196 } && test -s conftest$ac_exeext &&
11197 $as_test_x conftest$ac_exeext; then
11198 eval "$as_ac_var=yes"
11199 else
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11202
11203 eval "$as_ac_var=no"
11204 fi
11205
11206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11207 conftest$ac_exeext conftest.$ac_ext
11208 fi
11209 ac_res=`eval echo '${'$as_ac_var'}'`
11210 { echo "$as_me:$LINENO: result: $ac_res" >&5
11211 echo "${ECHO_T}$ac_res" >&6; }
11212 if test `eval echo '${'$as_ac_var'}'` = yes; then
11213 cat >>confdefs.h <<_ACEOF
11214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11215 _ACEOF
11216 HAVE_GTK_MULTIDISPLAY=yes
11217 fi
11218 done
11219
11220 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11221
11222 cat >>confdefs.h <<\_ACEOF
11223 #define HAVE_GTK_MULTIDISPLAY 1
11224 _ACEOF
11225
11226 fi
11227 HAVE_GTK_FILE_SELECTION=no
11228
11229 for ac_func in gtk_file_selection_new
11230 do
11231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h. */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11245 #define $ac_func innocuous_$ac_func
11246
11247 /* System header to define __stub macros and hopefully few prototypes,
11248 which can conflict with char $ac_func (); below.
11249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11250 <limits.h> exists even on freestanding compilers. */
11251
11252 #ifdef __STDC__
11253 # include <limits.h>
11254 #else
11255 # include <assert.h>
11256 #endif
11257
11258 #undef $ac_func
11259
11260 /* Override any GCC internal prototype to avoid an error.
11261 Use char because int might match the return type of a GCC
11262 builtin and then its argument prototype would still apply. */
11263 #ifdef __cplusplus
11264 extern "C"
11265 #endif
11266 char $ac_func ();
11267 /* The GNU C library defines this for functions which it implements
11268 to always fail with ENOSYS. Some functions are actually named
11269 something starting with __ and the normal name is an alias. */
11270 #if defined __stub_$ac_func || defined __stub___$ac_func
11271 choke me
11272 #endif
11273
11274 int
11275 main ()
11276 {
11277 return $ac_func ();
11278 ;
11279 return 0;
11280 }
11281 _ACEOF
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (ac_try="$ac_link"
11284 case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11287 esac
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_link") 2>conftest.er1
11290 ac_status=$?
11291 grep -v '^ *+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } && {
11296 test -z "$ac_c_werror_flag" ||
11297 test ! -s conftest.err
11298 } && test -s conftest$ac_exeext &&
11299 $as_test_x conftest$ac_exeext; then
11300 eval "$as_ac_var=yes"
11301 else
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11304
11305 eval "$as_ac_var=no"
11306 fi
11307
11308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11309 conftest$ac_exeext conftest.$ac_ext
11310 fi
11311 ac_res=`eval echo '${'$as_ac_var'}'`
11312 { echo "$as_me:$LINENO: result: $ac_res" >&5
11313 echo "${ECHO_T}$ac_res" >&6; }
11314 if test `eval echo '${'$as_ac_var'}'` = yes; then
11315 cat >>confdefs.h <<_ACEOF
11316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11317 _ACEOF
11318 HAVE_GTK_FILE_SELECTION=yes
11319 fi
11320 done
11321
11322
11323 HAVE_GTK_FILE_CHOOSER=no
11324
11325 for ac_func in gtk_file_chooser_dialog_new
11326 do
11327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333 cat >conftest.$ac_ext <<_ACEOF
11334 /* confdefs.h. */
11335 _ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11341 #define $ac_func innocuous_$ac_func
11342
11343 /* System header to define __stub macros and hopefully few prototypes,
11344 which can conflict with char $ac_func (); below.
11345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11346 <limits.h> exists even on freestanding compilers. */
11347
11348 #ifdef __STDC__
11349 # include <limits.h>
11350 #else
11351 # include <assert.h>
11352 #endif
11353
11354 #undef $ac_func
11355
11356 /* Override any GCC internal prototype to avoid an error.
11357 Use char because int might match the return type of a GCC
11358 builtin and then its argument prototype would still apply. */
11359 #ifdef __cplusplus
11360 extern "C"
11361 #endif
11362 char $ac_func ();
11363 /* The GNU C library defines this for functions which it implements
11364 to always fail with ENOSYS. Some functions are actually named
11365 something starting with __ and the normal name is an alias. */
11366 #if defined __stub_$ac_func || defined __stub___$ac_func
11367 choke me
11368 #endif
11369
11370 int
11371 main ()
11372 {
11373 return $ac_func ();
11374 ;
11375 return 0;
11376 }
11377 _ACEOF
11378 rm -f conftest.$ac_objext conftest$ac_exeext
11379 if { (ac_try="$ac_link"
11380 case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11383 esac
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_link") 2>conftest.er1
11386 ac_status=$?
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } && {
11392 test -z "$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 } && test -s conftest$ac_exeext &&
11395 $as_test_x conftest$ac_exeext; then
11396 eval "$as_ac_var=yes"
11397 else
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401 eval "$as_ac_var=no"
11402 fi
11403
11404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11405 conftest$ac_exeext conftest.$ac_ext
11406 fi
11407 ac_res=`eval echo '${'$as_ac_var'}'`
11408 { echo "$as_me:$LINENO: result: $ac_res" >&5
11409 echo "${ECHO_T}$ac_res" >&6; }
11410 if test `eval echo '${'$as_ac_var'}'` = yes; then
11411 cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11413 _ACEOF
11414 HAVE_GTK_FILE_CHOOSER=yes
11415 fi
11416 done
11417
11418
11419 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11420 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11421
11422 cat >>confdefs.h <<\_ACEOF
11423 #define HAVE_GTK_FILE_BOTH 1
11424 _ACEOF
11425
11426 fi
11427
11428 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11429 HAVE_GTK_AND_PTHREAD=no
11430
11431 for ac_header in pthread.h
11432 do
11433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 fi
11440 ac_res=`eval echo '${'$as_ac_Header'}'`
11441 { echo "$as_me:$LINENO: result: $ac_res" >&5
11442 echo "${ECHO_T}$ac_res" >&6; }
11443 else
11444 # Is the header compilable?
11445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h. */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 $ac_includes_default
11454 #include <$ac_header>
11455 _ACEOF
11456 rm -f conftest.$ac_objext
11457 if { (ac_try="$ac_compile"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_compile") 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && {
11470 test -z "$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 } && test -s conftest.$ac_objext; then
11473 ac_header_compiler=yes
11474 else
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11477
11478 ac_header_compiler=no
11479 fi
11480
11481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11483 echo "${ECHO_T}$ac_header_compiler" >&6; }
11484
11485 # Is the header present?
11486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 #include <$ac_header>
11495 _ACEOF
11496 if { (ac_try="$ac_cpp conftest.$ac_ext"
11497 case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11503 ac_status=$?
11504 grep -v '^ *+' conftest.er1 >conftest.err
11505 rm -f conftest.er1
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } >/dev/null && {
11509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11510 test ! -s conftest.err
11511 }; then
11512 ac_header_preproc=yes
11513 else
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 ac_header_preproc=no
11518 fi
11519
11520 rm -f conftest.err conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11522 echo "${ECHO_T}$ac_header_preproc" >&6; }
11523
11524 # So? What about this header?
11525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11526 yes:no: )
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11531 ac_header_preproc=yes
11532 ;;
11533 no:yes:* )
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11546
11547 ;;
11548 esac
11549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 else
11554 eval "$as_ac_Header=\$ac_header_preproc"
11555 fi
11556 ac_res=`eval echo '${'$as_ac_Header'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558 echo "${ECHO_T}$ac_res" >&6; }
11559
11560 fi
11561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11562 cat >>confdefs.h <<_ACEOF
11563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11564 _ACEOF
11565
11566 fi
11567
11568 done
11569
11570 if test "$ac_cv_header_pthread_h"; then
11571 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11572 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11573 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576 ac_check_lib_save_LIBS=$LIBS
11577 LIBS="-lpthread $LIBS"
11578 cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h. */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11584
11585 /* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11588 #ifdef __cplusplus
11589 extern "C"
11590 #endif
11591 char pthread_self ();
11592 int
11593 main ()
11594 {
11595 return pthread_self ();
11596 ;
11597 return 0;
11598 }
11599 _ACEOF
11600 rm -f conftest.$ac_objext conftest$ac_exeext
11601 if { (ac_try="$ac_link"
11602 case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11605 esac
11606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_link") 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } && {
11614 test -z "$ac_c_werror_flag" ||
11615 test ! -s conftest.err
11616 } && test -s conftest$ac_exeext &&
11617 $as_test_x conftest$ac_exeext; then
11618 ac_cv_lib_pthread_pthread_self=yes
11619 else
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 ac_cv_lib_pthread_pthread_self=no
11624 fi
11625
11626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11627 conftest$ac_exeext conftest.$ac_ext
11628 LIBS=$ac_check_lib_save_LIBS
11629 fi
11630 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11631 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11632 if test $ac_cv_lib_pthread_pthread_self = yes; then
11633 HAVE_GTK_AND_PTHREAD=yes
11634 fi
11635
11636 fi
11637 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11638 GTK_LIBS="$GTK_LIBS -lpthread"
11639
11640 cat >>confdefs.h <<\_ACEOF
11641 #define HAVE_GTK_AND_PTHREAD 1
11642 _ACEOF
11643
11644 fi
11645 fi
11646 fi
11647
11648 ### Link with -lXft if available to work around a bug.
11649 HAVE_XFT=maybe
11650 if test "${HAVE_GTK}" = "yes"; then
11651 if test "X${with_pkg_config_prog}" != X; then
11652 PKG_CONFIG="${with_pkg_config_prog}"
11653 fi
11654
11655
11656 succeeded=no
11657
11658 if test -z "$PKG_CONFIG"; then
11659 # Extract the first word of "pkg-config", so it can be a program name with args.
11660 set dummy pkg-config; ac_word=$2
11661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666 case $PKG_CONFIG in
11667 [\\/]* | ?:[\\/]*)
11668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11669 ;;
11670 *)
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11673 do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 break 2
11681 fi
11682 done
11683 done
11684 IFS=$as_save_IFS
11685
11686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11687 ;;
11688 esac
11689 fi
11690 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11691 if test -n "$PKG_CONFIG"; then
11692 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11693 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11694 else
11695 { echo "$as_me:$LINENO: result: no" >&5
11696 echo "${ECHO_T}no" >&6; }
11697 fi
11698
11699
11700 fi
11701
11702 if test "$PKG_CONFIG" = "no" ; then
11703 HAVE_XFT=no
11704 else
11705 PKG_CONFIG_MIN_VERSION=0.9.0
11706 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11707 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11708 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11709
11710 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11711 { echo "$as_me:$LINENO: result: yes" >&5
11712 echo "${ECHO_T}yes" >&6; }
11713 succeeded=yes
11714
11715 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11716 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11717 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11718 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11719 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11720
11721 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11722 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11723 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11724 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11725 echo "${ECHO_T}$XFT_LIBS" >&6; }
11726 else
11727 { echo "$as_me:$LINENO: result: no" >&5
11728 echo "${ECHO_T}no" >&6; }
11729 XFT_CFLAGS=""
11730 XFT_LIBS=""
11731 ## If we have a custom action on failure, don't print errors, but
11732 ## do set a variable so people can do so.
11733 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11734
11735 fi
11736
11737
11738
11739 else
11740 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11741 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11742 fi
11743 fi
11744
11745 if test $succeeded = yes; then
11746 :
11747 else
11748 HAVE_XFT=no
11749 fi
11750
11751 if test "$HAVE_XFT" != no; then
11752 OLD_CFLAGS="$CPPFLAGS"
11753 OLD_CPPFLAGS="$CFLAGS"
11754 OLD_LIBS="$LIBS"
11755 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11756 CFLAGS="$CFLAGS $XFT_CFLAGS"
11757 LIBS="$XFT_LIBS $LIBS"
11758 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11759 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11760 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11761 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 fi
11764 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11765 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11766 else
11767 # Is the header compilable?
11768 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11769 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11770 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h. */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 $ac_includes_default
11777 #include <X11/Xft/Xft.h>
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && {
11793 test -z "$ac_c_werror_flag" ||
11794 test ! -s conftest.err
11795 } && test -s conftest.$ac_objext; then
11796 ac_header_compiler=yes
11797 else
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 ac_header_compiler=no
11802 fi
11803
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11806 echo "${ECHO_T}$ac_header_compiler" >&6; }
11807
11808 # Is the header present?
11809 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11810 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11811 cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h. */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11817 #include <X11/Xft/Xft.h>
11818 _ACEOF
11819 if { (ac_try="$ac_cpp conftest.$ac_ext"
11820 case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11823 esac
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11826 ac_status=$?
11827 grep -v '^ *+' conftest.er1 >conftest.err
11828 rm -f conftest.er1
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } >/dev/null && {
11832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11833 test ! -s conftest.err
11834 }; then
11835 ac_header_preproc=yes
11836 else
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 ac_header_preproc=no
11841 fi
11842
11843 rm -f conftest.err conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11845 echo "${ECHO_T}$ac_header_preproc" >&6; }
11846
11847 # So? What about this header?
11848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11849 yes:no: )
11850 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11851 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11853 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11854 ac_header_preproc=yes
11855 ;;
11856 no:yes:* )
11857 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11858 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11860 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11862 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11864 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11866 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11868 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11869
11870 ;;
11871 esac
11872 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11873 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11874 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11878 fi
11879 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11880 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11881
11882 fi
11883 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11884 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11885 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11886 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889 ac_check_lib_save_LIBS=$LIBS
11890 LIBS="-lXft $XFT_LIBS $LIBS"
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 char XftFontOpen ();
11905 int
11906 main ()
11907 {
11908 return XftFontOpen ();
11909 ;
11910 return 0;
11911 }
11912 _ACEOF
11913 rm -f conftest.$ac_objext conftest$ac_exeext
11914 if { (ac_try="$ac_link"
11915 case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11918 esac
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_link") 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && {
11927 test -z "$ac_c_werror_flag" ||
11928 test ! -s conftest.err
11929 } && test -s conftest$ac_exeext &&
11930 $as_test_x conftest$ac_exeext; then
11931 ac_cv_lib_Xft_XftFontOpen=yes
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 ac_cv_lib_Xft_XftFontOpen=no
11937 fi
11938
11939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940 conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11942 fi
11943 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11944 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11945 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11946 HAVE_XFT=yes
11947 fi
11948
11949 fi
11950
11951
11952
11953 if test "${HAVE_XFT}" = "yes"; then
11954
11955 cat >>confdefs.h <<\_ACEOF
11956 #define HAVE_XFT 1
11957 _ACEOF
11958
11959
11960 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11961 else
11962 CFLAGS="$OLD_CPPFLAGS"
11963 CFLAGS="$OLD_CFLAGS"
11964 LIBS="$OLD_LIBS"
11965 fi
11966 fi
11967 fi
11968
11969 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11970 if test x"${HAVE_X11R5}" = xyes; then
11971 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11972 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11973 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 else
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h. */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982
11983 #include <X11/Intrinsic.h>
11984 #include <X11/Xaw/Simple.h>
11985 int
11986 main ()
11987 {
11988
11989 ;
11990 return 0;
11991 }
11992 _ACEOF
11993 rm -f conftest.$ac_objext conftest$ac_exeext
11994 if { (ac_try="$ac_link"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_link") 2>conftest.er1
12001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } && {
12007 test -z "$ac_c_werror_flag" ||
12008 test ! -s conftest.err
12009 } && test -s conftest$ac_exeext &&
12010 $as_test_x conftest$ac_exeext; then
12011 emacs_cv_x11_version_5_with_xaw=yes
12012 else
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 emacs_cv_x11_version_5_with_xaw=no
12017 fi
12018
12019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12020 conftest$ac_exeext conftest.$ac_ext
12021 fi
12022
12023 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12024 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12025 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12026 USE_X_TOOLKIT=LUCID
12027 else
12028 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12029 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12030 USE_X_TOOLKIT=none
12031 fi
12032 else
12033 USE_X_TOOLKIT=none
12034 fi
12035 fi
12036
12037 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12038
12039 if test "${USE_X_TOOLKIT}" != "none"; then
12040 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12041 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12042 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h. */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 #include <X11/Intrinsic.h>
12052 int
12053 main ()
12054 {
12055 #if XtSpecificationRelease < 6
12056 fail;
12057 #endif
12058
12059 ;
12060 return 0;
12061 }
12062 _ACEOF
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (ac_try="$ac_link"
12065 case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12068 esac
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_link") 2>conftest.er1
12071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } && {
12077 test -z "$ac_c_werror_flag" ||
12078 test ! -s conftest.err
12079 } && test -s conftest$ac_exeext &&
12080 $as_test_x conftest$ac_exeext; then
12081 emacs_cv_x11_toolkit_version_6=yes
12082 else
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12085
12086 emacs_cv_x11_toolkit_version_6=no
12087 fi
12088
12089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12090 conftest$ac_exeext conftest.$ac_ext
12091 fi
12092
12093 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12094 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12095 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12096 echo "${ECHO_T}6 or newer" >&6; }
12097
12098 cat >>confdefs.h <<\_ACEOF
12099 #define HAVE_X11XTR6 1
12100 _ACEOF
12101
12102 else
12103 { echo "$as_me:$LINENO: result: before 6" >&5
12104 echo "${ECHO_T}before 6" >&6; }
12105 fi
12106
12107 OLDLIBS="$LIBS"
12108 if test x$HAVE_X11XTR6 = xyes; then
12109 LIBS="-lXt -lSM -lICE $LIBS"
12110 else
12111 LIBS="-lXt $LIBS"
12112 fi
12113
12114 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12115 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12116 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119 ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-lXmu $LIBS"
12121 cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h. */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12127
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12131 #ifdef __cplusplus
12132 extern "C"
12133 #endif
12134 char XmuConvertStandardSelection ();
12135 int
12136 main ()
12137 {
12138 return XmuConvertStandardSelection ();
12139 ;
12140 return 0;
12141 }
12142 _ACEOF
12143 rm -f conftest.$ac_objext conftest$ac_exeext
12144 if { (ac_try="$ac_link"
12145 case "(($ac_try" in
12146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12148 esac
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_link") 2>conftest.er1
12151 ac_status=$?
12152 grep -v '^ *+' conftest.er1 >conftest.err
12153 rm -f conftest.er1
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } && {
12157 test -z "$ac_c_werror_flag" ||
12158 test ! -s conftest.err
12159 } && test -s conftest$ac_exeext &&
12160 $as_test_x conftest$ac_exeext; then
12161 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12162 else
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12165
12166 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12167 fi
12168
12169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12170 conftest$ac_exeext conftest.$ac_ext
12171 LIBS=$ac_check_lib_save_LIBS
12172 fi
12173 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12174 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12175 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12176 cat >>confdefs.h <<_ACEOF
12177 #define HAVE_LIBXMU 1
12178 _ACEOF
12179
12180 LIBS="-lXmu $LIBS"
12181
12182 fi
12183
12184 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12185 fi
12186
12187 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12188 if test "${HAVE_X11}" = "yes"; then
12189 if test "${USE_X_TOOLKIT}" != "none"; then
12190
12191 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12192 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12193 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196 ac_check_lib_save_LIBS=$LIBS
12197 LIBS="-lXext $LIBS"
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h. */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204
12205 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12208 #ifdef __cplusplus
12209 extern "C"
12210 #endif
12211 char XShapeQueryExtension ();
12212 int
12213 main ()
12214 {
12215 return XShapeQueryExtension ();
12216 ;
12217 return 0;
12218 }
12219 _ACEOF
12220 rm -f conftest.$ac_objext conftest$ac_exeext
12221 if { (ac_try="$ac_link"
12222 case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12225 esac
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_link") 2>conftest.er1
12228 ac_status=$?
12229 grep -v '^ *+' conftest.er1 >conftest.err
12230 rm -f conftest.er1
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } && {
12234 test -z "$ac_c_werror_flag" ||
12235 test ! -s conftest.err
12236 } && test -s conftest$ac_exeext &&
12237 $as_test_x conftest$ac_exeext; then
12238 ac_cv_lib_Xext_XShapeQueryExtension=yes
12239 else
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_cv_lib_Xext_XShapeQueryExtension=no
12244 fi
12245
12246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12249 fi
12250 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12251 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12252 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12253 cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBXEXT 1
12255 _ACEOF
12256
12257 LIBS="-lXext $LIBS"
12258
12259 fi
12260
12261 fi
12262 fi
12263
12264 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12265 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12266 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12267 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270 cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h. */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 #include <Xm/Xm.h>
12277 int
12278 main ()
12279 {
12280 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12281 int x = 5;
12282 #else
12283 Motif version prior to 2.1.
12284 #endif
12285 ;
12286 return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
12306 emacs_cv_motif_version_2_1=yes
12307 else
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311 emacs_cv_motif_version_2_1=no
12312 fi
12313
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315 fi
12316 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12317 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12318 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12319 if test $emacs_cv_motif_version_2_1 = yes; then
12320 HAVE_LIBXP=no
12321
12322 cat >>confdefs.h <<\_ACEOF
12323 #define HAVE_MOTIF_2_1 1
12324 _ACEOF
12325
12326 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12327 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12328 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 ac_check_lib_save_LIBS=$LIBS
12332 LIBS="-lXp $LIBS"
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h. */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339
12340 /* Override any GCC internal prototype to avoid an error.
12341 Use char because int might match the return type of a GCC
12342 builtin and then its argument prototype would still apply. */
12343 #ifdef __cplusplus
12344 extern "C"
12345 #endif
12346 char XpCreateContext ();
12347 int
12348 main ()
12349 {
12350 return XpCreateContext ();
12351 ;
12352 return 0;
12353 }
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (ac_try="$ac_link"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360 esac
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_link") 2>conftest.er1
12363 ac_status=$?
12364 grep -v '^ *+' conftest.er1 >conftest.err
12365 rm -f conftest.er1
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } && {
12369 test -z "$ac_c_werror_flag" ||
12370 test ! -s conftest.err
12371 } && test -s conftest$ac_exeext &&
12372 $as_test_x conftest$ac_exeext; then
12373 ac_cv_lib_Xp_XpCreateContext=yes
12374 else
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 ac_cv_lib_Xp_XpCreateContext=no
12379 fi
12380
12381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12382 conftest$ac_exeext conftest.$ac_ext
12383 LIBS=$ac_check_lib_save_LIBS
12384 fi
12385 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12386 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12387 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12388 HAVE_LIBXP=yes
12389 fi
12390
12391 if test ${HAVE_LIBXP} = yes; then
12392
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_LIBXP 1
12395 _ACEOF
12396
12397 fi
12398 else
12399 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12400 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12401 if test "${emacs_cv_lesstif+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404 # We put this in CFLAGS temporarily to precede other -I options
12405 # that might be in CFLAGS temporarily.
12406 # We put this in CPPFLAGS where it precedes the other -I options.
12407 OLD_CPPFLAGS=$CPPFLAGS
12408 OLD_CFLAGS=$CFLAGS
12409 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12410 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12418 int
12419 main ()
12420 {
12421 int x = 5;
12422 ;
12423 return 0;
12424 }
12425 _ACEOF
12426 rm -f conftest.$ac_objext
12427 if { (ac_try="$ac_compile"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_compile") 2>conftest.er1
12434 ac_status=$?
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest.$ac_objext; then
12443 emacs_cv_lesstif=yes
12444 else
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 emacs_cv_lesstif=no
12449 fi
12450
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 fi
12453 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12454 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12455 if test $emacs_cv_lesstif = yes; then
12456 # Make sure this -I option remains in CPPFLAGS after it is set
12457 # back to REAL_CPPFLAGS.
12458 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12459 # have those other -I options anyway. Ultimately, having this
12460 # directory ultimately in CPPFLAGS will be enough.
12461 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12462 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12463 else
12464 CFLAGS=$OLD_CFLAGS
12465 CPPFLAGS=$OLD_CPPFLAGS
12466 fi
12467 fi
12468 fi
12469
12470 ### Is -lXaw3d available?
12471 HAVE_XAW3D=no
12472 if test "${HAVE_X11}" = "yes"; then
12473 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12474 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12475 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12476 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h. */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 #include <X11/Xaw3d/Scrollbar.h>
12486 _ACEOF
12487 if { (ac_try="$ac_cpp conftest.$ac_ext"
12488 case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12491 esac
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12494 ac_status=$?
12495 grep -v '^ *+' conftest.er1 >conftest.err
12496 rm -f conftest.er1
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } >/dev/null && {
12500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12501 test ! -s conftest.err
12502 }; then
12503 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12504 else
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12509 fi
12510
12511 rm -f conftest.err conftest.$ac_ext
12512 fi
12513 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12514 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12515 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12516 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12517 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12518 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-lXaw3d $LIBS"
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12533 #ifdef __cplusplus
12534 extern "C"
12535 #endif
12536 char XawScrollbarSetThumb ();
12537 int
12538 main ()
12539 {
12540 return XawScrollbarSetThumb ();
12541 ;
12542 return 0;
12543 }
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12553 ac_status=$?
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } && {
12559 test -z "$ac_c_werror_flag" ||
12560 test ! -s conftest.err
12561 } && test -s conftest$ac_exeext &&
12562 $as_test_x conftest$ac_exeext; then
12563 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12564 else
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572 conftest$ac_exeext conftest.$ac_ext
12573 LIBS=$ac_check_lib_save_LIBS
12574 fi
12575 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12576 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12577 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12578 HAVE_XAW3D=yes
12579 fi
12580
12581 fi
12582
12583
12584 if test "${HAVE_XAW3D}" = "yes"; then
12585
12586 cat >>confdefs.h <<\_ACEOF
12587 #define HAVE_XAW3D 1
12588 _ACEOF
12589
12590 fi
12591 fi
12592 fi
12593
12594
12595
12596 USE_TOOLKIT_SCROLL_BARS=no
12597 if test "${with_toolkit_scroll_bars}" != "no"; then
12598 if test "${USE_X_TOOLKIT}" != "none"; then
12599 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12600 cat >>confdefs.h <<\_ACEOF
12601 #define USE_TOOLKIT_SCROLL_BARS 1
12602 _ACEOF
12603
12604 HAVE_XAW3D=no
12605 USE_TOOLKIT_SCROLL_BARS=yes
12606 elif test "${HAVE_XAW3D}" = "yes"; then
12607 cat >>confdefs.h <<\_ACEOF
12608 #define USE_TOOLKIT_SCROLL_BARS 1
12609 _ACEOF
12610
12611 USE_TOOLKIT_SCROLL_BARS=yes
12612 fi
12613 elif test "${HAVE_GTK}" = "yes"; then
12614 cat >>confdefs.h <<\_ACEOF
12615 #define USE_TOOLKIT_SCROLL_BARS 1
12616 _ACEOF
12617
12618 USE_TOOLKIT_SCROLL_BARS=yes
12619 elif test "${HAVE_CARBON}" = "yes"; then
12620 cat >>confdefs.h <<\_ACEOF
12621 #define USE_TOOLKIT_SCROLL_BARS 1
12622 _ACEOF
12623
12624 USE_TOOLKIT_SCROLL_BARS=yes
12625 fi
12626 fi
12627
12628 cat >conftest.$ac_ext <<_ACEOF
12629 /* confdefs.h. */
12630 _ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12634
12635 #include <X11/Xlib.h>
12636 #include <X11/Xresource.h>
12637 int
12638 main ()
12639 {
12640 XIMProc callback;
12641 ;
12642 return 0;
12643 }
12644 _ACEOF
12645 rm -f conftest.$ac_objext
12646 if { (ac_try="$ac_compile"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_compile") 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest.$ac_objext; then
12662 HAVE_XIM=yes
12663
12664 cat >>confdefs.h <<\_ACEOF
12665 #define HAVE_XIM 1
12666 _ACEOF
12667
12668 else
12669 echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12671
12672 HAVE_XIM=no
12673 fi
12674
12675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12676
12677
12678 if test "${with_xim}" != "no"; then
12679
12680 cat >>confdefs.h <<\_ACEOF
12681 #define USE_XIM 1
12682 _ACEOF
12683
12684 fi
12685
12686
12687 if test "${HAVE_XIM}" != "no"; then
12688 late_CFLAGS=$CFLAGS
12689 if test "$GCC" = yes; then
12690 CFLAGS="$CFLAGS --pedantic-errors"
12691 fi
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h. */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698
12699 #include <X11/Xlib.h>
12700 #include <X11/Xresource.h>
12701 int
12702 main ()
12703 {
12704 Display *display;
12705 XrmDatabase db;
12706 char *res_name;
12707 char *res_class;
12708 XIMProc callback;
12709 XPointer *client_data;
12710 #ifndef __GNUC__
12711 /* If we're not using GCC, it's probably not XFree86, and this is
12712 probably right, but we can't use something like --pedantic-errors. */
12713 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12714 char*, XIMProc, XPointer*);
12715 #endif
12716 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12717 client_data);
12718 ;
12719 return 0;
12720 }
12721 _ACEOF
12722 rm -f conftest.$ac_objext
12723 if { (ac_try="$ac_compile"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_compile") 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } && {
12736 test -z "$ac_c_werror_flag" ||
12737 test ! -s conftest.err
12738 } && test -s conftest.$ac_objext; then
12739 emacs_cv_arg6_star=yes
12740 else
12741 echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12743
12744
12745 fi
12746
12747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748
12749 if test "$emacs_cv_arg6_star" = yes; then
12750 cat >>confdefs.h <<\_ACEOF
12751 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12752 _ACEOF
12753
12754 else
12755 cat >>confdefs.h <<\_ACEOF
12756 #define XRegisterIMInstantiateCallback_arg6 XPointer
12757 _ACEOF
12758
12759 fi
12760 CFLAGS=$late_CFLAGS
12761 fi
12762
12763 ### Use -lXpm if available, unless `--with-xpm=no'.
12764 HAVE_XPM=no
12765 if test "${HAVE_X11}" = "yes"; then
12766 if test "${with_xpm}" != "no"; then
12767 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12768 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12769 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12770 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 fi
12773 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12774 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12775 else
12776 # Is the header compilable?
12777 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12778 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12779 cat >conftest.$ac_ext <<_ACEOF
12780 /* confdefs.h. */
12781 _ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12785 $ac_includes_default
12786 #include <X11/xpm.h>
12787 _ACEOF
12788 rm -f conftest.$ac_objext
12789 if { (ac_try="$ac_compile"
12790 case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12793 esac
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_compile") 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && {
12802 test -z "$ac_c_werror_flag" ||
12803 test ! -s conftest.err
12804 } && test -s conftest.$ac_objext; then
12805 ac_header_compiler=yes
12806 else
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12809
12810 ac_header_compiler=no
12811 fi
12812
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12815 echo "${ECHO_T}$ac_header_compiler" >&6; }
12816
12817 # Is the header present?
12818 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12819 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h. */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 #include <X11/xpm.h>
12827 _ACEOF
12828 if { (ac_try="$ac_cpp conftest.$ac_ext"
12829 case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12832 esac
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } >/dev/null && {
12841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12842 test ! -s conftest.err
12843 }; then
12844 ac_header_preproc=yes
12845 else
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12848
12849 ac_header_preproc=no
12850 fi
12851
12852 rm -f conftest.err conftest.$ac_ext
12853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12854 echo "${ECHO_T}$ac_header_preproc" >&6; }
12855
12856 # So? What about this header?
12857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12858 yes:no: )
12859 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12860 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12862 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12863 ac_header_preproc=yes
12864 ;;
12865 no:yes:* )
12866 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12867 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12868 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12869 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12870 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12871 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12873 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12875 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12877 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12878
12879 ;;
12880 esac
12881 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12882 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12883 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886 ac_cv_header_X11_xpm_h=$ac_header_preproc
12887 fi
12888 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12889 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12890
12891 fi
12892 if test $ac_cv_header_X11_xpm_h = yes; then
12893 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12894 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12895 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898 ac_check_lib_save_LIBS=$LIBS
12899 LIBS="-lXpm -lX11 $LIBS"
12900 cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h. */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12906
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12910 #ifdef __cplusplus
12911 extern "C"
12912 #endif
12913 char XpmReadFileToPixmap ();
12914 int
12915 main ()
12916 {
12917 return XpmReadFileToPixmap ();
12918 ;
12919 return 0;
12920 }
12921 _ACEOF
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (ac_try="$ac_link"
12924 case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12927 esac
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_link") 2>conftest.er1
12930 ac_status=$?
12931 grep -v '^ *+' conftest.er1 >conftest.err
12932 rm -f conftest.er1
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } && {
12936 test -z "$ac_c_werror_flag" ||
12937 test ! -s conftest.err
12938 } && test -s conftest$ac_exeext &&
12939 $as_test_x conftest$ac_exeext; then
12940 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12941 else
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12944
12945 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12946 fi
12947
12948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12949 conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_check_lib_save_LIBS
12951 fi
12952 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12953 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12954 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12955 HAVE_XPM=yes
12956 fi
12957
12958 fi
12959
12960
12961 if test "${HAVE_XPM}" = "yes"; then
12962 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12963 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12964 cat >conftest.$ac_ext <<_ACEOF
12965 /* confdefs.h. */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #include "X11/xpm.h"
12971 #ifndef XpmReturnAllocPixels
12972 no_return_alloc_pixels
12973 #endif
12974
12975 _ACEOF
12976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12977 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12978 HAVE_XPM=no
12979 else
12980 HAVE_XPM=yes
12981 fi
12982 rm -f conftest*
12983
12984
12985 if test "${HAVE_XPM}" = "yes"; then
12986 { echo "$as_me:$LINENO: result: yes" >&5
12987 echo "${ECHO_T}yes" >&6; }
12988 else
12989 { echo "$as_me:$LINENO: result: no" >&5
12990 echo "${ECHO_T}no" >&6; }
12991 fi
12992 fi
12993 fi
12994
12995 if test "${HAVE_XPM}" = "yes"; then
12996
12997 cat >>confdefs.h <<\_ACEOF
12998 #define HAVE_XPM 1
12999 _ACEOF
13000
13001 fi
13002 fi
13003
13004 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13005 HAVE_JPEG=no
13006 if test "${HAVE_X11}" = "yes"; then
13007 if test "${with_jpeg}" != "no"; then
13008 if test "${ac_cv_header_jerror_h+set}" = set; then
13009 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13010 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13011 if test "${ac_cv_header_jerror_h+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13013 fi
13014 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13015 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13016 else
13017 # Is the header compilable?
13018 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13019 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13020 cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h. */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13026 $ac_includes_default
13027 #include <jerror.h>
13028 _ACEOF
13029 rm -f conftest.$ac_objext
13030 if { (ac_try="$ac_compile"
13031 case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13034 esac
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_compile") 2>conftest.er1
13037 ac_status=$?
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -f conftest.er1
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } && {
13043 test -z "$ac_c_werror_flag" ||
13044 test ! -s conftest.err
13045 } && test -s conftest.$ac_objext; then
13046 ac_header_compiler=yes
13047 else
13048 echo "$as_me: failed program was:" >&5
13049 sed 's/^/| /' conftest.$ac_ext >&5
13050
13051 ac_header_compiler=no
13052 fi
13053
13054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13056 echo "${ECHO_T}$ac_header_compiler" >&6; }
13057
13058 # Is the header present?
13059 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13060 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13061 cat >conftest.$ac_ext <<_ACEOF
13062 /* confdefs.h. */
13063 _ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h. */
13067 #include <jerror.h>
13068 _ACEOF
13069 if { (ac_try="$ac_cpp conftest.$ac_ext"
13070 case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } >/dev/null && {
13082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13083 test ! -s conftest.err
13084 }; then
13085 ac_header_preproc=yes
13086 else
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090 ac_header_preproc=no
13091 fi
13092
13093 rm -f conftest.err conftest.$ac_ext
13094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13095 echo "${ECHO_T}$ac_header_preproc" >&6; }
13096
13097 # So? What about this header?
13098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13099 yes:no: )
13100 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13101 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13103 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13104 ac_header_preproc=yes
13105 ;;
13106 no:yes:* )
13107 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13108 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13109 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13110 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13111 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13112 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13114 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13116 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13117 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13118 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13119
13120 ;;
13121 esac
13122 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13123 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13124 if test "${ac_cv_header_jerror_h+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127 ac_cv_header_jerror_h=$ac_header_preproc
13128 fi
13129 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13130 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13131
13132 fi
13133 if test $ac_cv_header_jerror_h = yes; then
13134 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13135 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13136 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13138 else
13139 ac_check_lib_save_LIBS=$LIBS
13140 LIBS="-ljpeg $LIBS"
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h. */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147
13148 /* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13151 #ifdef __cplusplus
13152 extern "C"
13153 #endif
13154 char jpeg_destroy_compress ();
13155 int
13156 main ()
13157 {
13158 return jpeg_destroy_compress ();
13159 ;
13160 return 0;
13161 }
13162 _ACEOF
13163 rm -f conftest.$ac_objext conftest$ac_exeext
13164 if { (ac_try="$ac_link"
13165 case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13168 esac
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_link") 2>conftest.er1
13171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest$ac_exeext &&
13180 $as_test_x conftest$ac_exeext; then
13181 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13182 else
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13185
13186 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13187 fi
13188
13189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13190 conftest$ac_exeext conftest.$ac_ext
13191 LIBS=$ac_check_lib_save_LIBS
13192 fi
13193 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13194 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13195 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13196 HAVE_JPEG=yes
13197 fi
13198
13199 fi
13200
13201
13202 fi
13203
13204
13205 if test "${HAVE_JPEG}" = "yes"; then
13206 cat >>confdefs.h <<\_ACEOF
13207 #define HAVE_JPEG 1
13208 _ACEOF
13209
13210 cat >conftest.$ac_ext <<_ACEOF
13211 /* confdefs.h. */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216 #include <jpeglib.h>
13217 version=JPEG_LIB_VERSION
13218
13219 _ACEOF
13220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13221 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13222 cat >>confdefs.h <<\_ACEOF
13223 #define HAVE_JPEG 1
13224 _ACEOF
13225
13226 else
13227 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13228 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13229 HAVE_JPEG=no
13230 fi
13231 rm -f conftest*
13232
13233 fi
13234 fi
13235
13236 ### Use -lpng if available, unless `--with-png=no'.
13237 HAVE_PNG=no
13238 if test "${HAVE_X11}" = "yes"; then
13239 if test "${with_png}" != "no"; then
13240 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13241 # in /usr/include/libpng.
13242
13243
13244 for ac_header in png.h libpng/png.h
13245 do
13246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 fi
13253 ac_res=`eval echo '${'$as_ac_Header'}'`
13254 { echo "$as_me:$LINENO: result: $ac_res" >&5
13255 echo "${ECHO_T}$ac_res" >&6; }
13256 else
13257 # Is the header compilable?
13258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13260 cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h. */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 $ac_includes_default
13267 #include <$ac_header>
13268 _ACEOF
13269 rm -f conftest.$ac_objext
13270 if { (ac_try="$ac_compile"
13271 case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13274 esac
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_compile") 2>conftest.er1
13277 ac_status=$?
13278 grep -v '^ *+' conftest.er1 >conftest.err
13279 rm -f conftest.er1
13280 cat conftest.err >&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } && {
13283 test -z "$ac_c_werror_flag" ||
13284 test ! -s conftest.err
13285 } && test -s conftest.$ac_objext; then
13286 ac_header_compiler=yes
13287 else
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291 ac_header_compiler=no
13292 fi
13293
13294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13296 echo "${ECHO_T}$ac_header_compiler" >&6; }
13297
13298 # Is the header present?
13299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13300 echo $ECHO_N "checking $ac_header presence... $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 <$ac_header>
13308 _ACEOF
13309 if { (ac_try="$ac_cpp conftest.$ac_ext"
13310 case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13313 esac
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13316 ac_status=$?
13317 grep -v '^ *+' conftest.er1 >conftest.err
13318 rm -f conftest.er1
13319 cat conftest.err >&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } >/dev/null && {
13322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13323 test ! -s conftest.err
13324 }; then
13325 ac_header_preproc=yes
13326 else
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330 ac_header_preproc=no
13331 fi
13332
13333 rm -f conftest.err conftest.$ac_ext
13334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13335 echo "${ECHO_T}$ac_header_preproc" >&6; }
13336
13337 # So? What about this header?
13338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13339 yes:no: )
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13344 ac_header_preproc=yes
13345 ;;
13346 no:yes:* )
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13359
13360 ;;
13361 esac
13362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367 eval "$as_ac_Header=\$ac_header_preproc"
13368 fi
13369 ac_res=`eval echo '${'$as_ac_Header'}'`
13370 { echo "$as_me:$LINENO: result: $ac_res" >&5
13371 echo "${ECHO_T}$ac_res" >&6; }
13372
13373 fi
13374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13375 cat >>confdefs.h <<_ACEOF
13376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13377 _ACEOF
13378
13379 fi
13380
13381 done
13382
13383 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13384 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13385 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13386 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 else
13389 ac_check_lib_save_LIBS=$LIBS
13390 LIBS="-lpng -lz -lm $LIBS"
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397
13398 /* Override any GCC internal prototype to avoid an error.
13399 Use char because int might match the return type of a GCC
13400 builtin and then its argument prototype would still apply. */
13401 #ifdef __cplusplus
13402 extern "C"
13403 #endif
13404 char png_get_channels ();
13405 int
13406 main ()
13407 {
13408 return png_get_channels ();
13409 ;
13410 return 0;
13411 }
13412 _ACEOF
13413 rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (ac_try="$ac_link"
13415 case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_link") 2>conftest.er1
13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } && {
13427 test -z "$ac_c_werror_flag" ||
13428 test ! -s conftest.err
13429 } && test -s conftest$ac_exeext &&
13430 $as_test_x conftest$ac_exeext; then
13431 ac_cv_lib_png_png_get_channels=yes
13432 else
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13435
13436 ac_cv_lib_png_png_get_channels=no
13437 fi
13438
13439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13440 conftest$ac_exeext conftest.$ac_ext
13441 LIBS=$ac_check_lib_save_LIBS
13442 fi
13443 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13444 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13445 if test $ac_cv_lib_png_png_get_channels = yes; then
13446 HAVE_PNG=yes
13447 fi
13448
13449 fi
13450 fi
13451
13452 if test "${HAVE_PNG}" = "yes"; then
13453
13454 cat >>confdefs.h <<\_ACEOF
13455 #define HAVE_PNG 1
13456 _ACEOF
13457
13458 fi
13459 fi
13460
13461 ### Use -ltiff if available, unless `--with-tiff=no'.
13462 HAVE_TIFF=no
13463 if test "${HAVE_X11}" = "yes"; then
13464 if test "${with_tiff}" != "no"; then
13465 if test "${ac_cv_header_tiffio_h+set}" = set; then
13466 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13467 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13468 if test "${ac_cv_header_tiffio_h+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 fi
13471 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13472 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13473 else
13474 # Is the header compilable?
13475 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13476 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13477 cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h. */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 $ac_includes_default
13484 #include <tiffio.h>
13485 _ACEOF
13486 rm -f conftest.$ac_objext
13487 if { (ac_try="$ac_compile"
13488 case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13491 esac
13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_compile") 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } && {
13500 test -z "$ac_c_werror_flag" ||
13501 test ! -s conftest.err
13502 } && test -s conftest.$ac_objext; then
13503 ac_header_compiler=yes
13504 else
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 ac_header_compiler=no
13509 fi
13510
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13513 echo "${ECHO_T}$ac_header_compiler" >&6; }
13514
13515 # Is the header present?
13516 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13517 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13518 cat >conftest.$ac_ext <<_ACEOF
13519 /* confdefs.h. */
13520 _ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524 #include <tiffio.h>
13525 _ACEOF
13526 if { (ac_try="$ac_cpp conftest.$ac_ext"
13527 case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13530 esac
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13533 ac_status=$?
13534 grep -v '^ *+' conftest.er1 >conftest.err
13535 rm -f conftest.er1
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } >/dev/null && {
13539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13540 test ! -s conftest.err
13541 }; then
13542 ac_header_preproc=yes
13543 else
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13546
13547 ac_header_preproc=no
13548 fi
13549
13550 rm -f conftest.err conftest.$ac_ext
13551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13552 echo "${ECHO_T}$ac_header_preproc" >&6; }
13553
13554 # So? What about this header?
13555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13556 yes:no: )
13557 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13558 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13560 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13561 ac_header_preproc=yes
13562 ;;
13563 no:yes:* )
13564 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13565 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13567 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13569 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13571 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13572 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13573 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13575 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13576
13577 ;;
13578 esac
13579 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13580 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13581 if test "${ac_cv_header_tiffio_h+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584 ac_cv_header_tiffio_h=$ac_header_preproc
13585 fi
13586 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13587 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13588
13589 fi
13590 if test $ac_cv_header_tiffio_h = yes; then
13591 tifflibs="-lz -lm"
13592 # At least one tiff package requires the jpeg library.
13593 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13594 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13595 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13596 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599 ac_check_lib_save_LIBS=$LIBS
13600 LIBS="-ltiff $tifflibs $LIBS"
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h. */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607
13608 /* Override any GCC internal prototype to avoid an error.
13609 Use char because int might match the return type of a GCC
13610 builtin and then its argument prototype would still apply. */
13611 #ifdef __cplusplus
13612 extern "C"
13613 #endif
13614 char TIFFGetVersion ();
13615 int
13616 main ()
13617 {
13618 return TIFFGetVersion ();
13619 ;
13620 return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (ac_try="$ac_link"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_link") 2>conftest.er1
13631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } && {
13637 test -z "$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 } && test -s conftest$ac_exeext &&
13640 $as_test_x conftest$ac_exeext; then
13641 ac_cv_lib_tiff_TIFFGetVersion=yes
13642 else
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646 ac_cv_lib_tiff_TIFFGetVersion=no
13647 fi
13648
13649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_check_lib_save_LIBS
13652 fi
13653 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13654 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13655 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13656 HAVE_TIFF=yes
13657 fi
13658
13659 fi
13660
13661
13662 fi
13663
13664 if test "${HAVE_TIFF}" = "yes"; then
13665
13666 cat >>confdefs.h <<\_ACEOF
13667 #define HAVE_TIFF 1
13668 _ACEOF
13669
13670 fi
13671 fi
13672
13673 ### Use -lgif if available, unless `--with-gif=no'.
13674 HAVE_GIF=no
13675 if test "${HAVE_X11}" = "yes"; then
13676 if test "${with_gif}" != "no"; then
13677 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13678 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13679 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13680 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 fi
13683 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13684 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13685 else
13686 # Is the header compilable?
13687 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13688 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13689 cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h. */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 $ac_includes_default
13696 #include <gif_lib.h>
13697 _ACEOF
13698 rm -f conftest.$ac_objext
13699 if { (ac_try="$ac_compile"
13700 case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_compile") 2>conftest.er1
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } && {
13712 test -z "$ac_c_werror_flag" ||
13713 test ! -s conftest.err
13714 } && test -s conftest.$ac_objext; then
13715 ac_header_compiler=yes
13716 else
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13719
13720 ac_header_compiler=no
13721 fi
13722
13723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13725 echo "${ECHO_T}$ac_header_compiler" >&6; }
13726
13727 # Is the header present?
13728 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13729 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13730 cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h. */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #include <gif_lib.h>
13737 _ACEOF
13738 if { (ac_try="$ac_cpp conftest.$ac_ext"
13739 case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13742 esac
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13745 ac_status=$?
13746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } >/dev/null && {
13751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13752 test ! -s conftest.err
13753 }; then
13754 ac_header_preproc=yes
13755 else
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13758
13759 ac_header_preproc=no
13760 fi
13761
13762 rm -f conftest.err conftest.$ac_ext
13763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13764 echo "${ECHO_T}$ac_header_preproc" >&6; }
13765
13766 # So? What about this header?
13767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13768 yes:no: )
13769 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13770 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13772 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13773 ac_header_preproc=yes
13774 ;;
13775 no:yes:* )
13776 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13777 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13778 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13779 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13780 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13781 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13782 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13783 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13784 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13785 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13787 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13788
13789 ;;
13790 esac
13791 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13792 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13793 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796 ac_cv_header_gif_lib_h=$ac_header_preproc
13797 fi
13798 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13799 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13800
13801 fi
13802 if test $ac_cv_header_gif_lib_h = yes; then
13803 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13804 # Earlier versions can crash Emacs.
13805 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13806 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13807 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810 ac_check_lib_save_LIBS=$LIBS
13811 LIBS="-lungif $LIBS"
13812 cat >conftest.$ac_ext <<_ACEOF
13813 /* confdefs.h. */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13818
13819 /* Override any GCC internal prototype to avoid an error.
13820 Use char because int might match the return type of a GCC
13821 builtin and then its argument prototype would still apply. */
13822 #ifdef __cplusplus
13823 extern "C"
13824 #endif
13825 char EGifPutExtensionLast ();
13826 int
13827 main ()
13828 {
13829 return EGifPutExtensionLast ();
13830 ;
13831 return 0;
13832 }
13833 _ACEOF
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (ac_try="$ac_link"
13836 case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13839 esac
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_link") 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } && {
13848 test -z "$ac_c_werror_flag" ||
13849 test ! -s conftest.err
13850 } && test -s conftest$ac_exeext &&
13851 $as_test_x conftest$ac_exeext; then
13852 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13853 else
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857 ac_cv_lib_ungif_EGifPutExtensionLast=no
13858 fi
13859
13860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13861 conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13863 fi
13864 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13865 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13866 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13867 HAVE_GIF=yes
13868 fi
13869
13870 fi
13871
13872
13873 fi
13874
13875 if test "${HAVE_GIF}" = "yes"; then
13876
13877 cat >>confdefs.h <<\_ACEOF
13878 #define HAVE_GIF 1
13879 _ACEOF
13880
13881 fi
13882 fi
13883
13884 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13885 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13886 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13887 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889 fi
13890 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13891 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13892 else
13893 # Is the header compilable?
13894 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13895 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13896 cat >conftest.$ac_ext <<_ACEOF
13897 /* confdefs.h. */
13898 _ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 $ac_includes_default
13903 #include <malloc/malloc.h>
13904 _ACEOF
13905 rm -f conftest.$ac_objext
13906 if { (ac_try="$ac_compile"
13907 case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13910 esac
13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_compile") 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && {
13919 test -z "$ac_c_werror_flag" ||
13920 test ! -s conftest.err
13921 } && test -s conftest.$ac_objext; then
13922 ac_header_compiler=yes
13923 else
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 ac_header_compiler=no
13928 fi
13929
13930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13932 echo "${ECHO_T}$ac_header_compiler" >&6; }
13933
13934 # Is the header present?
13935 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13936 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h. */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 #include <malloc/malloc.h>
13944 _ACEOF
13945 if { (ac_try="$ac_cpp conftest.$ac_ext"
13946 case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13952 ac_status=$?
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } >/dev/null && {
13958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13959 test ! -s conftest.err
13960 }; then
13961 ac_header_preproc=yes
13962 else
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13965
13966 ac_header_preproc=no
13967 fi
13968
13969 rm -f conftest.err conftest.$ac_ext
13970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13971 echo "${ECHO_T}$ac_header_preproc" >&6; }
13972
13973 # So? What about this header?
13974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13975 yes:no: )
13976 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13977 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13979 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13980 ac_header_preproc=yes
13981 ;;
13982 no:yes:* )
13983 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13984 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13986 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13988 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13990 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13992 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13994 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13995
13996 ;;
13997 esac
13998 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13999 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14000 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14004 fi
14005 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14006 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14007
14008 fi
14009 if test $ac_cv_header_malloc_malloc_h = yes; then
14010
14011 cat >>confdefs.h <<\_ACEOF
14012 #define HAVE_MALLOC_MALLOC_H 1
14013 _ACEOF
14014
14015 fi
14016
14017
14018
14019 ### Use Mac OS X Carbon API to implement GUI.
14020 if test "${HAVE_CARBON}" = "yes"; then
14021
14022 cat >>confdefs.h <<\_ACEOF
14023 #define HAVE_CARBON 1
14024 _ACEOF
14025
14026 ## Specify the install directory
14027 carbon_appdir=
14028 if test "${carbon_appdir_x}" != ""; then
14029 case ${carbon_appdir_x} in
14030 y | ye | yes) carbon_appdir=/Applications ;;
14031 * ) carbon_appdir=${carbon_appdir_x} ;;
14032 esac
14033 fi
14034 # We also have mouse menus.
14035 HAVE_MENUS=yes
14036 fi
14037
14038 ### Use session management (-lSM -lICE) if available
14039 HAVE_X_SM=no
14040 if test "${HAVE_X11}" = "yes"; then
14041 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14042 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14043 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14044 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 fi
14047 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14048 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14049 else
14050 # Is the header compilable?
14051 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14052 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14053 cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h. */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 $ac_includes_default
14060 #include <X11/SM/SMlib.h>
14061 _ACEOF
14062 rm -f conftest.$ac_objext
14063 if { (ac_try="$ac_compile"
14064 case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14067 esac
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_compile") 2>conftest.er1
14070 ac_status=$?
14071 grep -v '^ *+' conftest.er1 >conftest.err
14072 rm -f conftest.er1
14073 cat conftest.err >&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } && {
14076 test -z "$ac_c_werror_flag" ||
14077 test ! -s conftest.err
14078 } && test -s conftest.$ac_objext; then
14079 ac_header_compiler=yes
14080 else
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084 ac_header_compiler=no
14085 fi
14086
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14089 echo "${ECHO_T}$ac_header_compiler" >&6; }
14090
14091 # Is the header present?
14092 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14093 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14094 cat >conftest.$ac_ext <<_ACEOF
14095 /* confdefs.h. */
14096 _ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 #include <X11/SM/SMlib.h>
14101 _ACEOF
14102 if { (ac_try="$ac_cpp conftest.$ac_ext"
14103 case "(($ac_try" in
14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14106 esac
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14109 ac_status=$?
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } >/dev/null && {
14115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14116 test ! -s conftest.err
14117 }; then
14118 ac_header_preproc=yes
14119 else
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14122
14123 ac_header_preproc=no
14124 fi
14125
14126 rm -f conftest.err conftest.$ac_ext
14127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14128 echo "${ECHO_T}$ac_header_preproc" >&6; }
14129
14130 # So? What about this header?
14131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14132 yes:no: )
14133 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14134 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14136 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14137 ac_header_preproc=yes
14138 ;;
14139 no:yes:* )
14140 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14141 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14143 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14145 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14146 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14147 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14148 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14149 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14150 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14151 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14152
14153 ;;
14154 esac
14155 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14156 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14157 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14161 fi
14162 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14163 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14164
14165 fi
14166 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14167 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14168 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14169 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172 ac_check_lib_save_LIBS=$LIBS
14173 LIBS="-lSM -lICE $LIBS"
14174 cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h. */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180
14181 /* Override any GCC internal prototype to avoid an error.
14182 Use char because int might match the return type of a GCC
14183 builtin and then its argument prototype would still apply. */
14184 #ifdef __cplusplus
14185 extern "C"
14186 #endif
14187 char SmcOpenConnection ();
14188 int
14189 main ()
14190 {
14191 return SmcOpenConnection ();
14192 ;
14193 return 0;
14194 }
14195 _ACEOF
14196 rm -f conftest.$ac_objext conftest$ac_exeext
14197 if { (ac_try="$ac_link"
14198 case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14201 esac
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_link") 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } && {
14210 test -z "$ac_c_werror_flag" ||
14211 test ! -s conftest.err
14212 } && test -s conftest$ac_exeext &&
14213 $as_test_x conftest$ac_exeext; then
14214 ac_cv_lib_SM_SmcOpenConnection=yes
14215 else
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14218
14219 ac_cv_lib_SM_SmcOpenConnection=no
14220 fi
14221
14222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14223 conftest$ac_exeext conftest.$ac_ext
14224 LIBS=$ac_check_lib_save_LIBS
14225 fi
14226 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14227 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14228 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14229 HAVE_X_SM=yes
14230 fi
14231
14232 fi
14233
14234
14235
14236 if test "${HAVE_X_SM}" = "yes"; then
14237
14238 cat >>confdefs.h <<\_ACEOF
14239 #define HAVE_X_SM 1
14240 _ACEOF
14241
14242 case "$LIBS" in
14243 *-lSM*) ;;
14244 *) LIBS="-lSM -lICE $LIBS" ;;
14245 esac
14246 fi
14247 fi
14248
14249 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14250 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14251 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14252 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255 cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h. */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14261 #include <netdb.h>
14262 int
14263 main ()
14264 {
14265 return h_errno;
14266 ;
14267 return 0;
14268 }
14269 _ACEOF
14270 rm -f conftest.$ac_objext conftest$ac_exeext
14271 if { (ac_try="$ac_link"
14272 case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14275 esac
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_link") 2>conftest.er1
14278 ac_status=$?
14279 grep -v '^ *+' conftest.er1 >conftest.err
14280 rm -f conftest.er1
14281 cat conftest.err >&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } && {
14284 test -z "$ac_c_werror_flag" ||
14285 test ! -s conftest.err
14286 } && test -s conftest$ac_exeext &&
14287 $as_test_x conftest$ac_exeext; then
14288 emacs_cv_netdb_declares_h_errno=yes
14289 else
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14292
14293 emacs_cv_netdb_declares_h_errno=no
14294 fi
14295
14296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14297 conftest$ac_exeext conftest.$ac_ext
14298 fi
14299 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14300 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14301 if test $emacs_cv_netdb_declares_h_errno = yes; then
14302
14303 cat >>confdefs.h <<\_ACEOF
14304 #define HAVE_H_ERRNO 1
14305 _ACEOF
14306
14307 fi
14308
14309 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14310 # for constant arguments. Useless!
14311 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14312 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14313 if test "${ac_cv_working_alloca_h+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316 cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h. */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 #include <alloca.h>
14323 int
14324 main ()
14325 {
14326 char *p = (char *) alloca (2 * sizeof (int));
14327 if (p) return 0;
14328 ;
14329 return 0;
14330 }
14331 _ACEOF
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (ac_try="$ac_link"
14334 case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337 esac
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_link") 2>conftest.er1
14340 ac_status=$?
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } && {
14346 test -z "$ac_c_werror_flag" ||
14347 test ! -s conftest.err
14348 } && test -s conftest$ac_exeext &&
14349 $as_test_x conftest$ac_exeext; then
14350 ac_cv_working_alloca_h=yes
14351 else
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14354
14355 ac_cv_working_alloca_h=no
14356 fi
14357
14358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14359 conftest$ac_exeext conftest.$ac_ext
14360 fi
14361 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14362 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14363 if test $ac_cv_working_alloca_h = yes; then
14364
14365 cat >>confdefs.h <<\_ACEOF
14366 #define HAVE_ALLOCA_H 1
14367 _ACEOF
14368
14369 fi
14370
14371 { echo "$as_me:$LINENO: checking for alloca" >&5
14372 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14373 if test "${ac_cv_func_alloca_works+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 else
14376 cat >conftest.$ac_ext <<_ACEOF
14377 /* confdefs.h. */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382 #ifdef __GNUC__
14383 # define alloca __builtin_alloca
14384 #else
14385 # ifdef _MSC_VER
14386 # include <malloc.h>
14387 # define alloca _alloca
14388 # else
14389 # ifdef HAVE_ALLOCA_H
14390 # include <alloca.h>
14391 # else
14392 # ifdef _AIX
14393 #pragma alloca
14394 # else
14395 # ifndef alloca /* predefined by HP cc +Olibcalls */
14396 char *alloca ();
14397 # endif
14398 # endif
14399 # endif
14400 # endif
14401 #endif
14402
14403 int
14404 main ()
14405 {
14406 char *p = (char *) alloca (1);
14407 if (p) return 0;
14408 ;
14409 return 0;
14410 }
14411 _ACEOF
14412 rm -f conftest.$ac_objext conftest$ac_exeext
14413 if { (ac_try="$ac_link"
14414 case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417 esac
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_link") 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } && {
14426 test -z "$ac_c_werror_flag" ||
14427 test ! -s conftest.err
14428 } && test -s conftest$ac_exeext &&
14429 $as_test_x conftest$ac_exeext; then
14430 ac_cv_func_alloca_works=yes
14431 else
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14434
14435 ac_cv_func_alloca_works=no
14436 fi
14437
14438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14439 conftest$ac_exeext conftest.$ac_ext
14440 fi
14441 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14442 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14443
14444 if test $ac_cv_func_alloca_works = yes; then
14445
14446 cat >>confdefs.h <<\_ACEOF
14447 #define HAVE_ALLOCA 1
14448 _ACEOF
14449
14450 else
14451 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14452 # that cause trouble. Some versions do not even contain alloca or
14453 # contain a buggy version. If you still want to use their alloca,
14454 # use ar to extract alloca.o from them instead of compiling alloca.c.
14455
14456 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14457
14458 cat >>confdefs.h <<\_ACEOF
14459 #define C_ALLOCA 1
14460 _ACEOF
14461
14462
14463 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14464 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14465 if test "${ac_cv_os_cray+set}" = set; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14468 cat >conftest.$ac_ext <<_ACEOF
14469 /* confdefs.h. */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 #if defined CRAY && ! defined CRAY2
14475 webecray
14476 #else
14477 wenotbecray
14478 #endif
14479
14480 _ACEOF
14481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14482 $EGREP "webecray" >/dev/null 2>&1; then
14483 ac_cv_os_cray=yes
14484 else
14485 ac_cv_os_cray=no
14486 fi
14487 rm -f conftest*
14488
14489 fi
14490 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14491 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14492 if test $ac_cv_os_cray = yes; then
14493 for ac_func in _getb67 GETB67 getb67; do
14494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 else
14500 cat >conftest.$ac_ext <<_ACEOF
14501 /* confdefs.h. */
14502 _ACEOF
14503 cat confdefs.h >>conftest.$ac_ext
14504 cat >>conftest.$ac_ext <<_ACEOF
14505 /* end confdefs.h. */
14506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14508 #define $ac_func innocuous_$ac_func
14509
14510 /* System header to define __stub macros and hopefully few prototypes,
14511 which can conflict with char $ac_func (); below.
14512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14513 <limits.h> exists even on freestanding compilers. */
14514
14515 #ifdef __STDC__
14516 # include <limits.h>
14517 #else
14518 # include <assert.h>
14519 #endif
14520
14521 #undef $ac_func
14522
14523 /* Override any GCC internal prototype to avoid an error.
14524 Use char because int might match the return type of a GCC
14525 builtin and then its argument prototype would still apply. */
14526 #ifdef __cplusplus
14527 extern "C"
14528 #endif
14529 char $ac_func ();
14530 /* The GNU C library defines this for functions which it implements
14531 to always fail with ENOSYS. Some functions are actually named
14532 something starting with __ and the normal name is an alias. */
14533 #if defined __stub_$ac_func || defined __stub___$ac_func
14534 choke me
14535 #endif
14536
14537 int
14538 main ()
14539 {
14540 return $ac_func ();
14541 ;
14542 return 0;
14543 }
14544 _ACEOF
14545 rm -f conftest.$ac_objext conftest$ac_exeext
14546 if { (ac_try="$ac_link"
14547 case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550 esac
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_link") 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } && {
14559 test -z "$ac_c_werror_flag" ||
14560 test ! -s conftest.err
14561 } && test -s conftest$ac_exeext &&
14562 $as_test_x conftest$ac_exeext; then
14563 eval "$as_ac_var=yes"
14564 else
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14567
14568 eval "$as_ac_var=no"
14569 fi
14570
14571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14572 conftest$ac_exeext conftest.$ac_ext
14573 fi
14574 ac_res=`eval echo '${'$as_ac_var'}'`
14575 { echo "$as_me:$LINENO: result: $ac_res" >&5
14576 echo "${ECHO_T}$ac_res" >&6; }
14577 if test `eval echo '${'$as_ac_var'}'` = yes; then
14578
14579 cat >>confdefs.h <<_ACEOF
14580 #define CRAY_STACKSEG_END $ac_func
14581 _ACEOF
14582
14583 break
14584 fi
14585
14586 done
14587 fi
14588
14589 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14590 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14591 if test "${ac_cv_c_stack_direction+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 else
14594 if test "$cross_compiling" = yes; then
14595 ac_cv_c_stack_direction=0
14596 else
14597 cat >conftest.$ac_ext <<_ACEOF
14598 /* confdefs.h. */
14599 _ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h. */
14603 $ac_includes_default
14604 int
14605 find_stack_direction ()
14606 {
14607 static char *addr = 0;
14608 auto char dummy;
14609 if (addr == 0)
14610 {
14611 addr = &dummy;
14612 return find_stack_direction ();
14613 }
14614 else
14615 return (&dummy > addr) ? 1 : -1;
14616 }
14617
14618 int
14619 main ()
14620 {
14621 return find_stack_direction () < 0;
14622 }
14623 _ACEOF
14624 rm -f conftest$ac_exeext
14625 if { (ac_try="$ac_link"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14629 esac
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_link") 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638 esac
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_cv_c_stack_direction=1
14645 else
14646 echo "$as_me: program exited with status $ac_status" >&5
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14649
14650 ( exit $ac_status )
14651 ac_cv_c_stack_direction=-1
14652 fi
14653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14654 fi
14655
14656
14657 fi
14658 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14659 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14660
14661 cat >>confdefs.h <<_ACEOF
14662 #define STACK_DIRECTION $ac_cv_c_stack_direction
14663 _ACEOF
14664
14665
14666 fi
14667
14668
14669 # fmod, logb, and frexp are found in -lm on most systems.
14670 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14671
14672 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14673 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14674 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14676 else
14677 ac_check_lib_save_LIBS=$LIBS
14678 LIBS="-lm $LIBS"
14679 cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h. */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685
14686 /* Override any GCC internal prototype to avoid an error.
14687 Use char because int might match the return type of a GCC
14688 builtin and then its argument prototype would still apply. */
14689 #ifdef __cplusplus
14690 extern "C"
14691 #endif
14692 char sqrt ();
14693 int
14694 main ()
14695 {
14696 return sqrt ();
14697 ;
14698 return 0;
14699 }
14700 _ACEOF
14701 rm -f conftest.$ac_objext conftest$ac_exeext
14702 if { (ac_try="$ac_link"
14703 case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706 esac
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_link") 2>conftest.er1
14709 ac_status=$?
14710 grep -v '^ *+' conftest.er1 >conftest.err
14711 rm -f conftest.er1
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } && {
14715 test -z "$ac_c_werror_flag" ||
14716 test ! -s conftest.err
14717 } && test -s conftest$ac_exeext &&
14718 $as_test_x conftest$ac_exeext; then
14719 ac_cv_lib_m_sqrt=yes
14720 else
14721 echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14723
14724 ac_cv_lib_m_sqrt=no
14725 fi
14726
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14729 LIBS=$ac_check_lib_save_LIBS
14730 fi
14731 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14732 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14733 if test $ac_cv_lib_m_sqrt = yes; then
14734 cat >>confdefs.h <<_ACEOF
14735 #define HAVE_LIBM 1
14736 _ACEOF
14737
14738 LIBS="-lm $LIBS"
14739
14740 fi
14741
14742
14743 # Check for mail-locking functions in a "mail" library. Probably this should
14744 # have the same check as for liblockfile below.
14745
14746 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14747 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14748 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 else
14751 ac_check_lib_save_LIBS=$LIBS
14752 LIBS="-lmail $LIBS"
14753 cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h. */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759
14760 /* Override any GCC internal prototype to avoid an error.
14761 Use char because int might match the return type of a GCC
14762 builtin and then its argument prototype would still apply. */
14763 #ifdef __cplusplus
14764 extern "C"
14765 #endif
14766 char maillock ();
14767 int
14768 main ()
14769 {
14770 return maillock ();
14771 ;
14772 return 0;
14773 }
14774 _ACEOF
14775 rm -f conftest.$ac_objext conftest$ac_exeext
14776 if { (ac_try="$ac_link"
14777 case "(($ac_try" in
14778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14780 esac
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782 (eval "$ac_link") 2>conftest.er1
14783 ac_status=$?
14784 grep -v '^ *+' conftest.er1 >conftest.err
14785 rm -f conftest.er1
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } && {
14789 test -z "$ac_c_werror_flag" ||
14790 test ! -s conftest.err
14791 } && test -s conftest$ac_exeext &&
14792 $as_test_x conftest$ac_exeext; then
14793 ac_cv_lib_mail_maillock=yes
14794 else
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14797
14798 ac_cv_lib_mail_maillock=no
14799 fi
14800
14801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14802 conftest$ac_exeext conftest.$ac_ext
14803 LIBS=$ac_check_lib_save_LIBS
14804 fi
14805 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14806 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14807 if test $ac_cv_lib_mail_maillock = yes; then
14808 cat >>confdefs.h <<_ACEOF
14809 #define HAVE_LIBMAIL 1
14810 _ACEOF
14811
14812 LIBS="-lmail $LIBS"
14813
14814 fi
14815
14816
14817 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14818 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14819 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822 ac_check_lib_save_LIBS=$LIBS
14823 LIBS="-llockfile $LIBS"
14824 cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h. */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14830
14831 /* Override any GCC internal prototype to avoid an error.
14832 Use char because int might match the return type of a GCC
14833 builtin and then its argument prototype would still apply. */
14834 #ifdef __cplusplus
14835 extern "C"
14836 #endif
14837 char maillock ();
14838 int
14839 main ()
14840 {
14841 return maillock ();
14842 ;
14843 return 0;
14844 }
14845 _ACEOF
14846 rm -f conftest.$ac_objext conftest$ac_exeext
14847 if { (ac_try="$ac_link"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14851 esac
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_link") 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } && {
14860 test -z "$ac_c_werror_flag" ||
14861 test ! -s conftest.err
14862 } && test -s conftest$ac_exeext &&
14863 $as_test_x conftest$ac_exeext; then
14864 ac_cv_lib_lockfile_maillock=yes
14865 else
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14868
14869 ac_cv_lib_lockfile_maillock=no
14870 fi
14871
14872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14873 conftest$ac_exeext conftest.$ac_ext
14874 LIBS=$ac_check_lib_save_LIBS
14875 fi
14876 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14877 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14878 if test $ac_cv_lib_lockfile_maillock = yes; then
14879 cat >>confdefs.h <<_ACEOF
14880 #define HAVE_LIBLOCKFILE 1
14881 _ACEOF
14882
14883 LIBS="-llockfile $LIBS"
14884
14885 fi
14886
14887 # If we have the shared liblockfile, assume we must use it for mail
14888 # locking (e.g. Debian). If we couldn't link against liblockfile
14889 # (no liblockfile.a installed), ensure that we don't need to.
14890 if test "$ac_cv_lib_lockfile_maillock" = no; then
14891 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14892 set dummy liblockfile.so; ac_word=$2
14893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14895 if test "${ac_cv_prog_liblockfile+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898 if test -n "$liblockfile"; then
14899 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14900 else
14901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14902 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14903 for as_dir in $as_dummy
14904 do
14905 IFS=$as_save_IFS
14906 test -z "$as_dir" && as_dir=.
14907 for ac_exec_ext in '' $ac_executable_extensions; do
14908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14909 ac_cv_prog_liblockfile="yes"
14910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14911 break 2
14912 fi
14913 done
14914 done
14915 IFS=$as_save_IFS
14916
14917 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14918 fi
14919 fi
14920 liblockfile=$ac_cv_prog_liblockfile
14921 if test -n "$liblockfile"; then
14922 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14923 echo "${ECHO_T}$liblockfile" >&6; }
14924 else
14925 { echo "$as_me:$LINENO: result: no" >&5
14926 echo "${ECHO_T}no" >&6; }
14927 fi
14928
14929
14930 if test $ac_cv_prog_liblockfile = yes; then
14931 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14932 This probably means that movemail could lose mail.
14933 There may be a \`development' package to install containing liblockfile." >&5
14934 echo "$as_me: error: Shared liblockfile found but can't link against it.
14935 This probably means that movemail could lose mail.
14936 There may be a \`development' package to install containing liblockfile." >&2;}
14937 { (exit 1); exit 1; }; }
14938 else :
14939 fi
14940 fi
14941
14942 for ac_func in touchlock
14943 do
14944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 else
14950 cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h. */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14958 #define $ac_func innocuous_$ac_func
14959
14960 /* System header to define __stub macros and hopefully few prototypes,
14961 which can conflict with char $ac_func (); below.
14962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14963 <limits.h> exists even on freestanding compilers. */
14964
14965 #ifdef __STDC__
14966 # include <limits.h>
14967 #else
14968 # include <assert.h>
14969 #endif
14970
14971 #undef $ac_func
14972
14973 /* Override any GCC internal prototype to avoid an error.
14974 Use char because int might match the return type of a GCC
14975 builtin and then its argument prototype would still apply. */
14976 #ifdef __cplusplus
14977 extern "C"
14978 #endif
14979 char $ac_func ();
14980 /* The GNU C library defines this for functions which it implements
14981 to always fail with ENOSYS. Some functions are actually named
14982 something starting with __ and the normal name is an alias. */
14983 #if defined __stub_$ac_func || defined __stub___$ac_func
14984 choke me
14985 #endif
14986
14987 int
14988 main ()
14989 {
14990 return $ac_func ();
14991 ;
14992 return 0;
14993 }
14994 _ACEOF
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (ac_try="$ac_link"
14997 case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_link") 2>conftest.er1
15003 ac_status=$?
15004 grep -v '^ *+' conftest.er1 >conftest.err
15005 rm -f conftest.er1
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } && {
15009 test -z "$ac_c_werror_flag" ||
15010 test ! -s conftest.err
15011 } && test -s conftest$ac_exeext &&
15012 $as_test_x conftest$ac_exeext; then
15013 eval "$as_ac_var=yes"
15014 else
15015 echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15017
15018 eval "$as_ac_var=no"
15019 fi
15020
15021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15022 conftest$ac_exeext conftest.$ac_ext
15023 fi
15024 ac_res=`eval echo '${'$as_ac_var'}'`
15025 { echo "$as_me:$LINENO: result: $ac_res" >&5
15026 echo "${ECHO_T}$ac_res" >&6; }
15027 if test `eval echo '${'$as_ac_var'}'` = yes; then
15028 cat >>confdefs.h <<_ACEOF
15029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15030 _ACEOF
15031
15032 fi
15033 done
15034
15035
15036 for ac_header in maillock.h
15037 do
15038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 fi
15045 ac_res=`eval echo '${'$as_ac_Header'}'`
15046 { echo "$as_me:$LINENO: result: $ac_res" >&5
15047 echo "${ECHO_T}$ac_res" >&6; }
15048 else
15049 # Is the header compilable?
15050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15052 cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h. */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 $ac_includes_default
15059 #include <$ac_header>
15060 _ACEOF
15061 rm -f conftest.$ac_objext
15062 if { (ac_try="$ac_compile"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066 esac
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_compile") 2>conftest.er1
15069 ac_status=$?
15070 grep -v '^ *+' conftest.er1 >conftest.err
15071 rm -f conftest.er1
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest.$ac_objext; then
15078 ac_header_compiler=yes
15079 else
15080 echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083 ac_header_compiler=no
15084 fi
15085
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15088 echo "${ECHO_T}$ac_header_compiler" >&6; }
15089
15090 # Is the header present?
15091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15093 cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h. */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15099 #include <$ac_header>
15100 _ACEOF
15101 if { (ac_try="$ac_cpp conftest.$ac_ext"
15102 case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105 esac
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15108 ac_status=$?
15109 grep -v '^ *+' conftest.er1 >conftest.err
15110 rm -f conftest.er1
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } >/dev/null && {
15114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15115 test ! -s conftest.err
15116 }; then
15117 ac_header_preproc=yes
15118 else
15119 echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15121
15122 ac_header_preproc=no
15123 fi
15124
15125 rm -f conftest.err conftest.$ac_ext
15126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15127 echo "${ECHO_T}$ac_header_preproc" >&6; }
15128
15129 # So? What about this header?
15130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15131 yes:no: )
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15136 ac_header_preproc=yes
15137 ;;
15138 no:yes:* )
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15151
15152 ;;
15153 esac
15154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 else
15159 eval "$as_ac_Header=\$ac_header_preproc"
15160 fi
15161 ac_res=`eval echo '${'$as_ac_Header'}'`
15162 { echo "$as_me:$LINENO: result: $ac_res" >&5
15163 echo "${ECHO_T}$ac_res" >&6; }
15164
15165 fi
15166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15167 cat >>confdefs.h <<_ACEOF
15168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15169 _ACEOF
15170
15171 fi
15172
15173 done
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245 for ac_func in gethostname getdomainname dup2 \
15246 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15247 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15248 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15249 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15250 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15251 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15252 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15253 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15254 do
15255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15260 else
15261 cat >conftest.$ac_ext <<_ACEOF
15262 /* confdefs.h. */
15263 _ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15269 #define $ac_func innocuous_$ac_func
15270
15271 /* System header to define __stub macros and hopefully few prototypes,
15272 which can conflict with char $ac_func (); below.
15273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15274 <limits.h> exists even on freestanding compilers. */
15275
15276 #ifdef __STDC__
15277 # include <limits.h>
15278 #else
15279 # include <assert.h>
15280 #endif
15281
15282 #undef $ac_func
15283
15284 /* Override any GCC internal prototype to avoid an error.
15285 Use char because int might match the return type of a GCC
15286 builtin and then its argument prototype would still apply. */
15287 #ifdef __cplusplus
15288 extern "C"
15289 #endif
15290 char $ac_func ();
15291 /* The GNU C library defines this for functions which it implements
15292 to always fail with ENOSYS. Some functions are actually named
15293 something starting with __ and the normal name is an alias. */
15294 #if defined __stub_$ac_func || defined __stub___$ac_func
15295 choke me
15296 #endif
15297
15298 int
15299 main ()
15300 {
15301 return $ac_func ();
15302 ;
15303 return 0;
15304 }
15305 _ACEOF
15306 rm -f conftest.$ac_objext conftest$ac_exeext
15307 if { (ac_try="$ac_link"
15308 case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15311 esac
15312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313 (eval "$ac_link") 2>conftest.er1
15314 ac_status=$?
15315 grep -v '^ *+' conftest.er1 >conftest.err
15316 rm -f conftest.er1
15317 cat conftest.err >&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } && {
15320 test -z "$ac_c_werror_flag" ||
15321 test ! -s conftest.err
15322 } && test -s conftest$ac_exeext &&
15323 $as_test_x conftest$ac_exeext; then
15324 eval "$as_ac_var=yes"
15325 else
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15328
15329 eval "$as_ac_var=no"
15330 fi
15331
15332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15333 conftest$ac_exeext conftest.$ac_ext
15334 fi
15335 ac_res=`eval echo '${'$as_ac_var'}'`
15336 { echo "$as_me:$LINENO: result: $ac_res" >&5
15337 echo "${ECHO_T}$ac_res" >&6; }
15338 if test `eval echo '${'$as_ac_var'}'` = yes; then
15339 cat >>confdefs.h <<_ACEOF
15340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15341 _ACEOF
15342
15343 fi
15344 done
15345
15346
15347
15348 for ac_header in sys/un.h
15349 do
15350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 fi
15357 ac_res=`eval echo '${'$as_ac_Header'}'`
15358 { echo "$as_me:$LINENO: result: $ac_res" >&5
15359 echo "${ECHO_T}$ac_res" >&6; }
15360 else
15361 # Is the header compilable?
15362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h. */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 $ac_includes_default
15371 #include <$ac_header>
15372 _ACEOF
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_compile") 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } && {
15387 test -z "$ac_c_werror_flag" ||
15388 test ! -s conftest.err
15389 } && test -s conftest.$ac_objext; then
15390 ac_header_compiler=yes
15391 else
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15394
15395 ac_header_compiler=no
15396 fi
15397
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15400 echo "${ECHO_T}$ac_header_compiler" >&6; }
15401
15402 # Is the header present?
15403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h. */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 #include <$ac_header>
15412 _ACEOF
15413 if { (ac_try="$ac_cpp conftest.$ac_ext"
15414 case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15417 esac
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15420 ac_status=$?
15421 grep -v '^ *+' conftest.er1 >conftest.err
15422 rm -f conftest.er1
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } >/dev/null && {
15426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15427 test ! -s conftest.err
15428 }; then
15429 ac_header_preproc=yes
15430 else
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15433
15434 ac_header_preproc=no
15435 fi
15436
15437 rm -f conftest.err conftest.$ac_ext
15438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15439 echo "${ECHO_T}$ac_header_preproc" >&6; }
15440
15441 # So? What about this header?
15442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15443 yes:no: )
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15448 ac_header_preproc=yes
15449 ;;
15450 no:yes:* )
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15463
15464 ;;
15465 esac
15466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15470 else
15471 eval "$as_ac_Header=\$ac_header_preproc"
15472 fi
15473 ac_res=`eval echo '${'$as_ac_Header'}'`
15474 { echo "$as_me:$LINENO: result: $ac_res" >&5
15475 echo "${ECHO_T}$ac_res" >&6; }
15476
15477 fi
15478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15479 cat >>confdefs.h <<_ACEOF
15480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15481 _ACEOF
15482
15483 fi
15484
15485 done
15486
15487
15488
15489
15490
15491
15492 for ac_header in $ac_header_list
15493 do
15494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 fi
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502 { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15504 else
15505 # Is the header compilable?
15506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h. */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 $ac_includes_default
15515 #include <$ac_header>
15516 _ACEOF
15517 rm -f conftest.$ac_objext
15518 if { (ac_try="$ac_compile"
15519 case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15522 esac
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_compile") 2>conftest.er1
15525 ac_status=$?
15526 grep -v '^ *+' conftest.er1 >conftest.err
15527 rm -f conftest.er1
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } && {
15531 test -z "$ac_c_werror_flag" ||
15532 test ! -s conftest.err
15533 } && test -s conftest.$ac_objext; then
15534 ac_header_compiler=yes
15535 else
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 ac_header_compiler=no
15540 fi
15541
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15544 echo "${ECHO_T}$ac_header_compiler" >&6; }
15545
15546 # Is the header present?
15547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h. */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 #include <$ac_header>
15556 _ACEOF
15557 if { (ac_try="$ac_cpp conftest.$ac_ext"
15558 case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15561 esac
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15564 ac_status=$?
15565 grep -v '^ *+' conftest.er1 >conftest.err
15566 rm -f conftest.er1
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } >/dev/null && {
15570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15571 test ! -s conftest.err
15572 }; then
15573 ac_header_preproc=yes
15574 else
15575 echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15577
15578 ac_header_preproc=no
15579 fi
15580
15581 rm -f conftest.err conftest.$ac_ext
15582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15583 echo "${ECHO_T}$ac_header_preproc" >&6; }
15584
15585 # So? What about this header?
15586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15587 yes:no: )
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15592 ac_header_preproc=yes
15593 ;;
15594 no:yes:* )
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15607
15608 ;;
15609 esac
15610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 else
15615 eval "$as_ac_Header=\$ac_header_preproc"
15616 fi
15617 ac_res=`eval echo '${'$as_ac_Header'}'`
15618 { echo "$as_me:$LINENO: result: $ac_res" >&5
15619 echo "${ECHO_T}$ac_res" >&6; }
15620
15621 fi
15622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15625 _ACEOF
15626
15627 fi
15628
15629 done
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639 for ac_func in $ac_func_list
15640 do
15641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 else
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h. */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15655 #define $ac_func innocuous_$ac_func
15656
15657 /* System header to define __stub macros and hopefully few prototypes,
15658 which can conflict with char $ac_func (); below.
15659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15660 <limits.h> exists even on freestanding compilers. */
15661
15662 #ifdef __STDC__
15663 # include <limits.h>
15664 #else
15665 # include <assert.h>
15666 #endif
15667
15668 #undef $ac_func
15669
15670 /* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15673 #ifdef __cplusplus
15674 extern "C"
15675 #endif
15676 char $ac_func ();
15677 /* The GNU C library defines this for functions which it implements
15678 to always fail with ENOSYS. Some functions are actually named
15679 something starting with __ and the normal name is an alias. */
15680 #if defined __stub_$ac_func || defined __stub___$ac_func
15681 choke me
15682 #endif
15683
15684 int
15685 main ()
15686 {
15687 return $ac_func ();
15688 ;
15689 return 0;
15690 }
15691 _ACEOF
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (ac_try="$ac_link"
15694 case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_link") 2>conftest.er1
15700 ac_status=$?
15701 grep -v '^ *+' conftest.er1 >conftest.err
15702 rm -f conftest.er1
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } && {
15706 test -z "$ac_c_werror_flag" ||
15707 test ! -s conftest.err
15708 } && test -s conftest$ac_exeext &&
15709 $as_test_x conftest$ac_exeext; then
15710 eval "$as_ac_var=yes"
15711 else
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15714
15715 eval "$as_ac_var=no"
15716 fi
15717
15718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15719 conftest$ac_exeext conftest.$ac_ext
15720 fi
15721 ac_res=`eval echo '${'$as_ac_var'}'`
15722 { echo "$as_me:$LINENO: result: $ac_res" >&5
15723 echo "${ECHO_T}$ac_res" >&6; }
15724 if test `eval echo '${'$as_ac_var'}'` = yes; then
15725 cat >>confdefs.h <<_ACEOF
15726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15727 _ACEOF
15728
15729 fi
15730 done
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748 { echo "$as_me:$LINENO: checking for working mktime" >&5
15749 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15750 if test "${ac_cv_func_working_mktime+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753 if test "$cross_compiling" = yes; then
15754 ac_cv_func_working_mktime=no
15755 else
15756 cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h. */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 /* Test program from Paul Eggert and Tony Leneis. */
15763 #ifdef TIME_WITH_SYS_TIME
15764 # include <sys/time.h>
15765 # include <time.h>
15766 #else
15767 # ifdef HAVE_SYS_TIME_H
15768 # include <sys/time.h>
15769 # else
15770 # include <time.h>
15771 # endif
15772 #endif
15773
15774 #include <stdlib.h>
15775
15776 #ifdef HAVE_UNISTD_H
15777 # include <unistd.h>
15778 #endif
15779
15780 #ifndef HAVE_ALARM
15781 # define alarm(X) /* empty */
15782 #endif
15783
15784 /* Work around redefinition to rpl_putenv by other config tests. */
15785 #undef putenv
15786
15787 static time_t time_t_max;
15788 static time_t time_t_min;
15789
15790 /* Values we'll use to set the TZ environment variable. */
15791 static char *tz_strings[] = {
15792 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15793 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15794 };
15795 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15796
15797 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15798 Based on a problem report from Andreas Jaeger. */
15799 static int
15800 spring_forward_gap ()
15801 {
15802 /* glibc (up to about 1998-10-07) failed this test. */
15803 struct tm tm;
15804
15805 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15806 instead of "TZ=America/Vancouver" in order to detect the bug even
15807 on systems that don't support the Olson extension, or don't have the
15808 full zoneinfo tables installed. */
15809 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15810
15811 tm.tm_year = 98;
15812 tm.tm_mon = 3;
15813 tm.tm_mday = 5;
15814 tm.tm_hour = 2;
15815 tm.tm_min = 0;
15816 tm.tm_sec = 0;
15817 tm.tm_isdst = -1;
15818 return mktime (&tm) != (time_t) -1;
15819 }
15820
15821 static int
15822 mktime_test1 (now)
15823 time_t now;
15824 {
15825 struct tm *lt;
15826 return ! (lt = localtime (&now)) || mktime (lt) == now;
15827 }
15828
15829 static int
15830 mktime_test (now)
15831 time_t now;
15832 {
15833 return (mktime_test1 (now)
15834 && mktime_test1 ((time_t) (time_t_max - now))
15835 && mktime_test1 ((time_t) (time_t_min + now)));
15836 }
15837
15838 static int
15839 irix_6_4_bug ()
15840 {
15841 /* Based on code from Ariel Faigon. */
15842 struct tm tm;
15843 tm.tm_year = 96;
15844 tm.tm_mon = 3;
15845 tm.tm_mday = 0;
15846 tm.tm_hour = 0;
15847 tm.tm_min = 0;
15848 tm.tm_sec = 0;
15849 tm.tm_isdst = -1;
15850 mktime (&tm);
15851 return tm.tm_mon == 2 && tm.tm_mday == 31;
15852 }
15853
15854 static int
15855 bigtime_test (j)
15856 int j;
15857 {
15858 struct tm tm;
15859 time_t now;
15860 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15861 now = mktime (&tm);
15862 if (now != (time_t) -1)
15863 {
15864 struct tm *lt = localtime (&now);
15865 if (! (lt
15866 && lt->tm_year == tm.tm_year
15867 && lt->tm_mon == tm.tm_mon
15868 && lt->tm_mday == tm.tm_mday
15869 && lt->tm_hour == tm.tm_hour
15870 && lt->tm_min == tm.tm_min
15871 && lt->tm_sec == tm.tm_sec
15872 && lt->tm_yday == tm.tm_yday
15873 && lt->tm_wday == tm.tm_wday
15874 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15875 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15876 return 0;
15877 }
15878 return 1;
15879 }
15880
15881 static int
15882 year_2050_test ()
15883 {
15884 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15885 ignoring leap seconds. */
15886 unsigned long int answer = 2527315200UL;
15887
15888 struct tm tm;
15889 time_t t;
15890 tm.tm_year = 2050 - 1900;
15891 tm.tm_mon = 2 - 1;
15892 tm.tm_mday = 1;
15893 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15894 tm.tm_isdst = -1;
15895
15896 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15897 instead of "TZ=America/Vancouver" in order to detect the bug even
15898 on systems that don't support the Olson extension, or don't have the
15899 full zoneinfo tables installed. */
15900 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15901
15902 t = mktime (&tm);
15903
15904 /* Check that the result is either a failure, or close enough
15905 to the correct answer that we can assume the discrepancy is
15906 due to leap seconds. */
15907 return (t == (time_t) -1
15908 || (0 < t && answer - 120 <= t && t <= answer + 120));
15909 }
15910
15911 int
15912 main ()
15913 {
15914 time_t t, delta;
15915 int i, j;
15916
15917 /* This test makes some buggy mktime implementations loop.
15918 Give up after 60 seconds; a mktime slower than that
15919 isn't worth using anyway. */
15920 alarm (60);
15921
15922 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15923 continue;
15924 time_t_max--;
15925 if ((time_t) -1 < 0)
15926 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15927 continue;
15928 delta = time_t_max / 997; /* a suitable prime number */
15929 for (i = 0; i < N_STRINGS; i++)
15930 {
15931 if (tz_strings[i])
15932 putenv (tz_strings[i]);
15933
15934 for (t = 0; t <= time_t_max - delta; t += delta)
15935 if (! mktime_test (t))
15936 return 1;
15937 if (! (mktime_test ((time_t) 1)
15938 && mktime_test ((time_t) (60 * 60))
15939 && mktime_test ((time_t) (60 * 60 * 24))))
15940 return 1;
15941
15942 for (j = 1; 0 < j; j *= 2)
15943 if (! bigtime_test (j))
15944 return 1;
15945 if (! bigtime_test (j - 1))
15946 return 1;
15947 }
15948 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15949 }
15950 _ACEOF
15951 rm -f conftest$ac_exeext
15952 if { (ac_try="$ac_link"
15953 case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15956 esac
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_link") 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15962 { (case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_try") 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_cv_func_working_mktime=yes
15972 else
15973 echo "$as_me: program exited with status $ac_status" >&5
15974 echo "$as_me: failed program was:" >&5
15975 sed 's/^/| /' conftest.$ac_ext >&5
15976
15977 ( exit $ac_status )
15978 ac_cv_func_working_mktime=no
15979 fi
15980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15981 fi
15982
15983
15984 fi
15985 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15986 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15987 if test $ac_cv_func_working_mktime = no; then
15988 case " $LIBOBJS " in
15989 *" mktime.$ac_objext "* ) ;;
15990 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15991 ;;
15992 esac
15993
15994 fi
15995
15996 if test "$ac_cv_func_working_mktime" = no; then
15997
15998 cat >>confdefs.h <<\_ACEOF
15999 #define BROKEN_MKTIME 1
16000 _ACEOF
16001
16002 fi
16003
16004 ac_have_func=no # yes means we've found a way to get the load average.
16005
16006 # Make sure getloadavg.c is where it belongs, at configure-time.
16007 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16008 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16009 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16010 { (exit 1); exit 1; }; }
16011
16012 ac_save_LIBS=$LIBS
16013
16014 # Check for getloadavg, but be sure not to touch the cache variable.
16015 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16016 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16017 if test "${ac_cv_func_getloadavg+set}" = set; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16019 else
16020 cat >conftest.$ac_ext <<_ACEOF
16021 /* confdefs.h. */
16022 _ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16026 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16028 #define getloadavg innocuous_getloadavg
16029
16030 /* System header to define __stub macros and hopefully few prototypes,
16031 which can conflict with char getloadavg (); below.
16032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16033 <limits.h> exists even on freestanding compilers. */
16034
16035 #ifdef __STDC__
16036 # include <limits.h>
16037 #else
16038 # include <assert.h>
16039 #endif
16040
16041 #undef getloadavg
16042
16043 /* Override any GCC internal prototype to avoid an error.
16044 Use char because int might match the return type of a GCC
16045 builtin and then its argument prototype would still apply. */
16046 #ifdef __cplusplus
16047 extern "C"
16048 #endif
16049 char getloadavg ();
16050 /* The GNU C library defines this for functions which it implements
16051 to always fail with ENOSYS. Some functions are actually named
16052 something starting with __ and the normal name is an alias. */
16053 #if defined __stub_getloadavg || defined __stub___getloadavg
16054 choke me
16055 #endif
16056
16057 int
16058 main ()
16059 {
16060 return getloadavg ();
16061 ;
16062 return 0;
16063 }
16064 _ACEOF
16065 rm -f conftest.$ac_objext conftest$ac_exeext
16066 if { (ac_try="$ac_link"
16067 case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16070 esac
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_link") 2>conftest.er1
16073 ac_status=$?
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } && {
16079 test -z "$ac_c_werror_flag" ||
16080 test ! -s conftest.err
16081 } && test -s conftest$ac_exeext &&
16082 $as_test_x conftest$ac_exeext; then
16083 ac_cv_func_getloadavg=yes
16084 else
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088 ac_cv_func_getloadavg=no
16089 fi
16090
16091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16092 conftest$ac_exeext conftest.$ac_ext
16093 fi
16094 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16095 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16096 if test $ac_cv_func_getloadavg = yes; then
16097 exit 0
16098 else
16099 exit 1
16100 fi
16101 ) && ac_have_func=yes
16102
16103 # On HPUX9, an unprivileged user can get load averages through this function.
16104
16105 for ac_func in pstat_getdynamic
16106 do
16107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 else
16113 cat >conftest.$ac_ext <<_ACEOF
16114 /* confdefs.h. */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16121 #define $ac_func innocuous_$ac_func
16122
16123 /* System header to define __stub macros and hopefully few prototypes,
16124 which can conflict with char $ac_func (); below.
16125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16126 <limits.h> exists even on freestanding compilers. */
16127
16128 #ifdef __STDC__
16129 # include <limits.h>
16130 #else
16131 # include <assert.h>
16132 #endif
16133
16134 #undef $ac_func
16135
16136 /* Override any GCC internal prototype to avoid an error.
16137 Use char because int might match the return type of a GCC
16138 builtin and then its argument prototype would still apply. */
16139 #ifdef __cplusplus
16140 extern "C"
16141 #endif
16142 char $ac_func ();
16143 /* The GNU C library defines this for functions which it implements
16144 to always fail with ENOSYS. Some functions are actually named
16145 something starting with __ and the normal name is an alias. */
16146 #if defined __stub_$ac_func || defined __stub___$ac_func
16147 choke me
16148 #endif
16149
16150 int
16151 main ()
16152 {
16153 return $ac_func ();
16154 ;
16155 return 0;
16156 }
16157 _ACEOF
16158 rm -f conftest.$ac_objext conftest$ac_exeext
16159 if { (ac_try="$ac_link"
16160 case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16163 esac
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_link") 2>conftest.er1
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } && {
16172 test -z "$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 } && test -s conftest$ac_exeext &&
16175 $as_test_x conftest$ac_exeext; then
16176 eval "$as_ac_var=yes"
16177 else
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16180
16181 eval "$as_ac_var=no"
16182 fi
16183
16184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16185 conftest$ac_exeext conftest.$ac_ext
16186 fi
16187 ac_res=`eval echo '${'$as_ac_var'}'`
16188 { echo "$as_me:$LINENO: result: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16190 if test `eval echo '${'$as_ac_var'}'` = yes; then
16191 cat >>confdefs.h <<_ACEOF
16192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16193 _ACEOF
16194
16195 fi
16196 done
16197
16198
16199 # Solaris has libkstat which does not require root.
16200
16201 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16202 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16203 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206 ac_check_lib_save_LIBS=$LIBS
16207 LIBS="-lkstat $LIBS"
16208 cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h. */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214
16215 /* Override any GCC internal prototype to avoid an error.
16216 Use char because int might match the return type of a GCC
16217 builtin and then its argument prototype would still apply. */
16218 #ifdef __cplusplus
16219 extern "C"
16220 #endif
16221 char kstat_open ();
16222 int
16223 main ()
16224 {
16225 return kstat_open ();
16226 ;
16227 return 0;
16228 }
16229 _ACEOF
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (ac_try="$ac_link"
16232 case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_link") 2>conftest.er1
16238 ac_status=$?
16239 grep -v '^ *+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } && {
16244 test -z "$ac_c_werror_flag" ||
16245 test ! -s conftest.err
16246 } && test -s conftest$ac_exeext &&
16247 $as_test_x conftest$ac_exeext; then
16248 ac_cv_lib_kstat_kstat_open=yes
16249 else
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253 ac_cv_lib_kstat_kstat_open=no
16254 fi
16255
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16258 LIBS=$ac_check_lib_save_LIBS
16259 fi
16260 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16261 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16262 if test $ac_cv_lib_kstat_kstat_open = yes; then
16263 cat >>confdefs.h <<_ACEOF
16264 #define HAVE_LIBKSTAT 1
16265 _ACEOF
16266
16267 LIBS="-lkstat $LIBS"
16268
16269 fi
16270
16271 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16272
16273 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16274 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16275 # to get the right answer into the cache.
16276 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16277 if test $ac_have_func = no; then
16278 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16279 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16280 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 else
16283 ac_check_lib_save_LIBS=$LIBS
16284 LIBS="-lelf $LIBS"
16285 cat >conftest.$ac_ext <<_ACEOF
16286 /* confdefs.h. */
16287 _ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291
16292 /* Override any GCC internal prototype to avoid an error.
16293 Use char because int might match the return type of a GCC
16294 builtin and then its argument prototype would still apply. */
16295 #ifdef __cplusplus
16296 extern "C"
16297 #endif
16298 char elf_begin ();
16299 int
16300 main ()
16301 {
16302 return elf_begin ();
16303 ;
16304 return 0;
16305 }
16306 _ACEOF
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (ac_try="$ac_link"
16309 case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16312 esac
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314 (eval "$ac_link") 2>conftest.er1
16315 ac_status=$?
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } && {
16321 test -z "$ac_c_werror_flag" ||
16322 test ! -s conftest.err
16323 } && test -s conftest$ac_exeext &&
16324 $as_test_x conftest$ac_exeext; then
16325 ac_cv_lib_elf_elf_begin=yes
16326 else
16327 echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16329
16330 ac_cv_lib_elf_elf_begin=no
16331 fi
16332
16333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16334 conftest$ac_exeext conftest.$ac_ext
16335 LIBS=$ac_check_lib_save_LIBS
16336 fi
16337 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16338 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16339 if test $ac_cv_lib_elf_elf_begin = yes; then
16340 LIBS="-lelf $LIBS"
16341 fi
16342
16343 fi
16344 if test $ac_have_func = no; then
16345 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16346 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16347 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350 ac_check_lib_save_LIBS=$LIBS
16351 LIBS="-lkvm $LIBS"
16352 cat >conftest.$ac_ext <<_ACEOF
16353 /* confdefs.h. */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358
16359 /* Override any GCC internal prototype to avoid an error.
16360 Use char because int might match the return type of a GCC
16361 builtin and then its argument prototype would still apply. */
16362 #ifdef __cplusplus
16363 extern "C"
16364 #endif
16365 char kvm_open ();
16366 int
16367 main ()
16368 {
16369 return kvm_open ();
16370 ;
16371 return 0;
16372 }
16373 _ACEOF
16374 rm -f conftest.$ac_objext conftest$ac_exeext
16375 if { (ac_try="$ac_link"
16376 case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16379 esac
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_link") 2>conftest.er1
16382 ac_status=$?
16383 grep -v '^ *+' conftest.er1 >conftest.err
16384 rm -f conftest.er1
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } && {
16388 test -z "$ac_c_werror_flag" ||
16389 test ! -s conftest.err
16390 } && test -s conftest$ac_exeext &&
16391 $as_test_x conftest$ac_exeext; then
16392 ac_cv_lib_kvm_kvm_open=yes
16393 else
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16396
16397 ac_cv_lib_kvm_kvm_open=no
16398 fi
16399
16400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16401 conftest$ac_exeext conftest.$ac_ext
16402 LIBS=$ac_check_lib_save_LIBS
16403 fi
16404 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16405 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16406 if test $ac_cv_lib_kvm_kvm_open = yes; then
16407 LIBS="-lkvm $LIBS"
16408 fi
16409
16410 # Check for the 4.4BSD definition of getloadavg.
16411 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16412 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16413 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16414 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 else
16416 ac_check_lib_save_LIBS=$LIBS
16417 LIBS="-lutil $LIBS"
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h. */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424
16425 /* Override any GCC internal prototype to avoid an error.
16426 Use char because int might match the return type of a GCC
16427 builtin and then its argument prototype would still apply. */
16428 #ifdef __cplusplus
16429 extern "C"
16430 #endif
16431 char getloadavg ();
16432 int
16433 main ()
16434 {
16435 return getloadavg ();
16436 ;
16437 return 0;
16438 }
16439 _ACEOF
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (ac_try="$ac_link"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_link") 2>conftest.er1
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } && {
16454 test -z "$ac_c_werror_flag" ||
16455 test ! -s conftest.err
16456 } && test -s conftest$ac_exeext &&
16457 $as_test_x conftest$ac_exeext; then
16458 ac_cv_lib_util_getloadavg=yes
16459 else
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16462
16463 ac_cv_lib_util_getloadavg=no
16464 fi
16465
16466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16467 conftest$ac_exeext conftest.$ac_ext
16468 LIBS=$ac_check_lib_save_LIBS
16469 fi
16470 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16471 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16472 if test $ac_cv_lib_util_getloadavg = yes; then
16473 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16474 fi
16475
16476 fi
16477
16478 if test $ac_have_func = no; then
16479 # There is a commonly available library for RS/6000 AIX.
16480 # Since it is not a standard part of AIX, it might be installed locally.
16481 ac_getloadavg_LIBS=$LIBS
16482 LIBS="-L/usr/local/lib $LIBS"
16483 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16484 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16485 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488 ac_check_lib_save_LIBS=$LIBS
16489 LIBS="-lgetloadavg $LIBS"
16490 cat >conftest.$ac_ext <<_ACEOF
16491 /* confdefs.h. */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16496
16497 /* Override any GCC internal prototype to avoid an error.
16498 Use char because int might match the return type of a GCC
16499 builtin and then its argument prototype would still apply. */
16500 #ifdef __cplusplus
16501 extern "C"
16502 #endif
16503 char getloadavg ();
16504 int
16505 main ()
16506 {
16507 return getloadavg ();
16508 ;
16509 return 0;
16510 }
16511 _ACEOF
16512 rm -f conftest.$ac_objext conftest$ac_exeext
16513 if { (ac_try="$ac_link"
16514 case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16517 esac
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_link") 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } && {
16526 test -z "$ac_c_werror_flag" ||
16527 test ! -s conftest.err
16528 } && test -s conftest$ac_exeext &&
16529 $as_test_x conftest$ac_exeext; then
16530 ac_cv_lib_getloadavg_getloadavg=yes
16531 else
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16534
16535 ac_cv_lib_getloadavg_getloadavg=no
16536 fi
16537
16538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16539 conftest$ac_exeext conftest.$ac_ext
16540 LIBS=$ac_check_lib_save_LIBS
16541 fi
16542 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16543 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16544 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16545 LIBS="-lgetloadavg $LIBS"
16546 else
16547 LIBS=$ac_getloadavg_LIBS
16548 fi
16549
16550 fi
16551
16552 # Make sure it is really in the library, if we think we found it,
16553 # otherwise set up the replacement function.
16554
16555 for ac_func in getloadavg
16556 do
16557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16562 else
16563 cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h. */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16571 #define $ac_func innocuous_$ac_func
16572
16573 /* System header to define __stub macros and hopefully few prototypes,
16574 which can conflict with char $ac_func (); below.
16575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16576 <limits.h> exists even on freestanding compilers. */
16577
16578 #ifdef __STDC__
16579 # include <limits.h>
16580 #else
16581 # include <assert.h>
16582 #endif
16583
16584 #undef $ac_func
16585
16586 /* Override any GCC internal prototype to avoid an error.
16587 Use char because int might match the return type of a GCC
16588 builtin and then its argument prototype would still apply. */
16589 #ifdef __cplusplus
16590 extern "C"
16591 #endif
16592 char $ac_func ();
16593 /* The GNU C library defines this for functions which it implements
16594 to always fail with ENOSYS. Some functions are actually named
16595 something starting with __ and the normal name is an alias. */
16596 #if defined __stub_$ac_func || defined __stub___$ac_func
16597 choke me
16598 #endif
16599
16600 int
16601 main ()
16602 {
16603 return $ac_func ();
16604 ;
16605 return 0;
16606 }
16607 _ACEOF
16608 rm -f conftest.$ac_objext conftest$ac_exeext
16609 if { (ac_try="$ac_link"
16610 case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16613 esac
16614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615 (eval "$ac_link") 2>conftest.er1
16616 ac_status=$?
16617 grep -v '^ *+' conftest.er1 >conftest.err
16618 rm -f conftest.er1
16619 cat conftest.err >&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } && {
16622 test -z "$ac_c_werror_flag" ||
16623 test ! -s conftest.err
16624 } && test -s conftest$ac_exeext &&
16625 $as_test_x conftest$ac_exeext; then
16626 eval "$as_ac_var=yes"
16627 else
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 eval "$as_ac_var=no"
16632 fi
16633
16634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16635 conftest$ac_exeext conftest.$ac_ext
16636 fi
16637 ac_res=`eval echo '${'$as_ac_var'}'`
16638 { echo "$as_me:$LINENO: result: $ac_res" >&5
16639 echo "${ECHO_T}$ac_res" >&6; }
16640 if test `eval echo '${'$as_ac_var'}'` = yes; then
16641 cat >>confdefs.h <<_ACEOF
16642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16643 _ACEOF
16644
16645 else
16646 case " $LIBOBJS " in
16647 *" getloadavg.$ac_objext "* ) ;;
16648 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16649 ;;
16650 esac
16651
16652
16653 cat >>confdefs.h <<\_ACEOF
16654 #define C_GETLOADAVG 1
16655 _ACEOF
16656
16657 # Figure out what our getloadavg.c needs.
16658 ac_have_func=no
16659 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16660 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16661 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16662 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 fi
16665 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16666 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16667 else
16668 # Is the header compilable?
16669 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16670 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16671 cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h. */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16677 $ac_includes_default
16678 #include <sys/dg_sys_info.h>
16679 _ACEOF
16680 rm -f conftest.$ac_objext
16681 if { (ac_try="$ac_compile"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16685 esac
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_compile") 2>conftest.er1
16688 ac_status=$?
16689 grep -v '^ *+' conftest.er1 >conftest.err
16690 rm -f conftest.er1
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } && {
16694 test -z "$ac_c_werror_flag" ||
16695 test ! -s conftest.err
16696 } && test -s conftest.$ac_objext; then
16697 ac_header_compiler=yes
16698 else
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702 ac_header_compiler=no
16703 fi
16704
16705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16707 echo "${ECHO_T}$ac_header_compiler" >&6; }
16708
16709 # Is the header present?
16710 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16711 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 #include <sys/dg_sys_info.h>
16719 _ACEOF
16720 if { (ac_try="$ac_cpp conftest.$ac_ext"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } >/dev/null && {
16733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 }; then
16736 ac_header_preproc=yes
16737 else
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16740
16741 ac_header_preproc=no
16742 fi
16743
16744 rm -f conftest.err conftest.$ac_ext
16745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16746 echo "${ECHO_T}$ac_header_preproc" >&6; }
16747
16748 # So? What about this header?
16749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16750 yes:no: )
16751 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16752 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16753 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16754 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16755 ac_header_preproc=yes
16756 ;;
16757 no:yes:* )
16758 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16759 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16760 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16761 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16762 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16763 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16764 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16765 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16766 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16767 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16768 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16769 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16770
16771 ;;
16772 esac
16773 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16774 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16775 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 else
16778 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16779 fi
16780 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16781 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16782
16783 fi
16784 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16785 ac_have_func=yes
16786
16787 cat >>confdefs.h <<\_ACEOF
16788 #define DGUX 1
16789 _ACEOF
16790
16791
16792 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16793 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16794 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16796 else
16797 ac_check_lib_save_LIBS=$LIBS
16798 LIBS="-ldgc $LIBS"
16799 cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h. */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16805
16806 /* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
16809 #ifdef __cplusplus
16810 extern "C"
16811 #endif
16812 char dg_sys_info ();
16813 int
16814 main ()
16815 {
16816 return dg_sys_info ();
16817 ;
16818 return 0;
16819 }
16820 _ACEOF
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_link") 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } && {
16835 test -z "$ac_c_werror_flag" ||
16836 test ! -s conftest.err
16837 } && test -s conftest$ac_exeext &&
16838 $as_test_x conftest$ac_exeext; then
16839 ac_cv_lib_dgc_dg_sys_info=yes
16840 else
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16843
16844 ac_cv_lib_dgc_dg_sys_info=no
16845 fi
16846
16847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16848 conftest$ac_exeext conftest.$ac_ext
16849 LIBS=$ac_check_lib_save_LIBS
16850 fi
16851 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16852 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16853 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16854 cat >>confdefs.h <<_ACEOF
16855 #define HAVE_LIBDGC 1
16856 _ACEOF
16857
16858 LIBS="-ldgc $LIBS"
16859
16860 fi
16861
16862 fi
16863
16864
16865
16866 if test "${ac_cv_header_locale_h+set}" = set; then
16867 { echo "$as_me:$LINENO: checking for locale.h" >&5
16868 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16869 if test "${ac_cv_header_locale_h+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 fi
16872 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16873 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16874 else
16875 # Is the header compilable?
16876 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16877 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16878 cat >conftest.$ac_ext <<_ACEOF
16879 /* confdefs.h. */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884 $ac_includes_default
16885 #include <locale.h>
16886 _ACEOF
16887 rm -f conftest.$ac_objext
16888 if { (ac_try="$ac_compile"
16889 case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16892 esac
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_compile") 2>conftest.er1
16895 ac_status=$?
16896 grep -v '^ *+' conftest.er1 >conftest.err
16897 rm -f conftest.er1
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } && {
16901 test -z "$ac_c_werror_flag" ||
16902 test ! -s conftest.err
16903 } && test -s conftest.$ac_objext; then
16904 ac_header_compiler=yes
16905 else
16906 echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16908
16909 ac_header_compiler=no
16910 fi
16911
16912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16914 echo "${ECHO_T}$ac_header_compiler" >&6; }
16915
16916 # Is the header present?
16917 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16918 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16919 cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h. */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 #include <locale.h>
16926 _ACEOF
16927 if { (ac_try="$ac_cpp conftest.$ac_ext"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } >/dev/null && {
16940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16941 test ! -s conftest.err
16942 }; then
16943 ac_header_preproc=yes
16944 else
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948 ac_header_preproc=no
16949 fi
16950
16951 rm -f conftest.err conftest.$ac_ext
16952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16953 echo "${ECHO_T}$ac_header_preproc" >&6; }
16954
16955 # So? What about this header?
16956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16957 yes:no: )
16958 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16959 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16960 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16961 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16962 ac_header_preproc=yes
16963 ;;
16964 no:yes:* )
16965 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16966 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16967 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16968 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16969 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16970 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16971 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16972 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16973 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16974 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16975 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16976 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16977
16978 ;;
16979 esac
16980 { echo "$as_me:$LINENO: checking for locale.h" >&5
16981 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16982 if test "${ac_cv_header_locale_h+set}" = set; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 else
16985 ac_cv_header_locale_h=$ac_header_preproc
16986 fi
16987 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16988 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16989
16990 fi
16991
16992
16993
16994 for ac_func in setlocale
16995 do
16996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h. */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17010 #define $ac_func innocuous_$ac_func
17011
17012 /* System header to define __stub macros and hopefully few prototypes,
17013 which can conflict with char $ac_func (); below.
17014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17015 <limits.h> exists even on freestanding compilers. */
17016
17017 #ifdef __STDC__
17018 # include <limits.h>
17019 #else
17020 # include <assert.h>
17021 #endif
17022
17023 #undef $ac_func
17024
17025 /* Override any GCC internal prototype to avoid an error.
17026 Use char because int might match the return type of a GCC
17027 builtin and then its argument prototype would still apply. */
17028 #ifdef __cplusplus
17029 extern "C"
17030 #endif
17031 char $ac_func ();
17032 /* The GNU C library defines this for functions which it implements
17033 to always fail with ENOSYS. Some functions are actually named
17034 something starting with __ and the normal name is an alias. */
17035 #if defined __stub_$ac_func || defined __stub___$ac_func
17036 choke me
17037 #endif
17038
17039 int
17040 main ()
17041 {
17042 return $ac_func ();
17043 ;
17044 return 0;
17045 }
17046 _ACEOF
17047 rm -f conftest.$ac_objext conftest$ac_exeext
17048 if { (ac_try="$ac_link"
17049 case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_link") 2>conftest.er1
17055 ac_status=$?
17056 grep -v '^ *+' conftest.er1 >conftest.err
17057 rm -f conftest.er1
17058 cat conftest.err >&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); } && {
17061 test -z "$ac_c_werror_flag" ||
17062 test ! -s conftest.err
17063 } && test -s conftest$ac_exeext &&
17064 $as_test_x conftest$ac_exeext; then
17065 eval "$as_ac_var=yes"
17066 else
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 eval "$as_ac_var=no"
17071 fi
17072
17073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17074 conftest$ac_exeext conftest.$ac_ext
17075 fi
17076 ac_res=`eval echo '${'$as_ac_var'}'`
17077 { echo "$as_me:$LINENO: result: $ac_res" >&5
17078 echo "${ECHO_T}$ac_res" >&6; }
17079 if test `eval echo '${'$as_ac_var'}'` = yes; then
17080 cat >>confdefs.h <<_ACEOF
17081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17082 _ACEOF
17083
17084 fi
17085 done
17086
17087
17088 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17089 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17090 # Irix 4.0.5F has the header but not the library.
17091 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17092 ac_have_func=yes
17093
17094 cat >>confdefs.h <<\_ACEOF
17095 #define SVR4 1
17096 _ACEOF
17097
17098 fi
17099
17100 if test $ac_have_func = no; then
17101 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17102 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17103 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17104 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106 fi
17107 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17108 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17109 else
17110 # Is the header compilable?
17111 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17112 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17113 cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h. */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 $ac_includes_default
17120 #include <inq_stats/cpustats.h>
17121 _ACEOF
17122 rm -f conftest.$ac_objext
17123 if { (ac_try="$ac_compile"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17127 esac
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_compile") 2>conftest.er1
17130 ac_status=$?
17131 grep -v '^ *+' conftest.er1 >conftest.err
17132 rm -f conftest.er1
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest.$ac_objext; then
17139 ac_header_compiler=yes
17140 else
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17143
17144 ac_header_compiler=no
17145 fi
17146
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17149 echo "${ECHO_T}$ac_header_compiler" >&6; }
17150
17151 # Is the header present?
17152 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17153 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17154 cat >conftest.$ac_ext <<_ACEOF
17155 /* confdefs.h. */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17160 #include <inq_stats/cpustats.h>
17161 _ACEOF
17162 if { (ac_try="$ac_cpp conftest.$ac_ext"
17163 case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166 esac
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17169 ac_status=$?
17170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } >/dev/null && {
17175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17176 test ! -s conftest.err
17177 }; then
17178 ac_header_preproc=yes
17179 else
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 ac_header_preproc=no
17184 fi
17185
17186 rm -f conftest.err conftest.$ac_ext
17187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17188 echo "${ECHO_T}$ac_header_preproc" >&6; }
17189
17190 # So? What about this header?
17191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17192 yes:no: )
17193 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17194 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17195 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17196 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17197 ac_header_preproc=yes
17198 ;;
17199 no:yes:* )
17200 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17201 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17203 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17204 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17205 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17206 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17207 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17209 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17210 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17211 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17212
17213 ;;
17214 esac
17215 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17216 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17217 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17221 fi
17222 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17223 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17224
17225 fi
17226 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17227 ac_have_func=yes
17228
17229 cat >>confdefs.h <<\_ACEOF
17230 #define UMAX 1
17231 _ACEOF
17232
17233
17234 cat >>confdefs.h <<\_ACEOF
17235 #define UMAX4_3 1
17236 _ACEOF
17237
17238 fi
17239
17240
17241 fi
17242
17243 if test $ac_have_func = no; then
17244 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17245 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17246 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17247 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 fi
17250 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17251 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17252 else
17253 # Is the header compilable?
17254 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17255 echo $ECHO_N "checking sys/cpustats.h usability... $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 $ac_includes_default
17263 #include <sys/cpustats.h>
17264 _ACEOF
17265 rm -f conftest.$ac_objext
17266 if { (ac_try="$ac_compile"
17267 case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17270 esac
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_compile") 2>conftest.er1
17273 ac_status=$?
17274 grep -v '^ *+' conftest.er1 >conftest.err
17275 rm -f conftest.er1
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } && {
17279 test -z "$ac_c_werror_flag" ||
17280 test ! -s conftest.err
17281 } && test -s conftest.$ac_objext; then
17282 ac_header_compiler=yes
17283 else
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17286
17287 ac_header_compiler=no
17288 fi
17289
17290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17292 echo "${ECHO_T}$ac_header_compiler" >&6; }
17293
17294 # Is the header present?
17295 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17296 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h. */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 #include <sys/cpustats.h>
17304 _ACEOF
17305 if { (ac_try="$ac_cpp conftest.$ac_ext"
17306 case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309 esac
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17312 ac_status=$?
17313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } >/dev/null && {
17318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17319 test ! -s conftest.err
17320 }; then
17321 ac_header_preproc=yes
17322 else
17323 echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17325
17326 ac_header_preproc=no
17327 fi
17328
17329 rm -f conftest.err conftest.$ac_ext
17330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17331 echo "${ECHO_T}$ac_header_preproc" >&6; }
17332
17333 # So? What about this header?
17334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17335 yes:no: )
17336 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17337 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17339 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17340 ac_header_preproc=yes
17341 ;;
17342 no:yes:* )
17343 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17344 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17345 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17346 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17347 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17348 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17349 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17350 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17352 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17353 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17354 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17355
17356 ;;
17357 esac
17358 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17359 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17360 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17364 fi
17365 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17366 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17367
17368 fi
17369 if test $ac_cv_header_sys_cpustats_h = yes; then
17370 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17371 #define UMAX 1
17372 _ACEOF
17373
17374 fi
17375
17376
17377 fi
17378
17379 if test $ac_have_func = no; then
17380
17381 for ac_header in mach/mach.h
17382 do
17383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 fi
17390 ac_res=`eval echo '${'$as_ac_Header'}'`
17391 { echo "$as_me:$LINENO: result: $ac_res" >&5
17392 echo "${ECHO_T}$ac_res" >&6; }
17393 else
17394 # Is the header compilable?
17395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17397 cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h. */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17403 $ac_includes_default
17404 #include <$ac_header>
17405 _ACEOF
17406 rm -f conftest.$ac_objext
17407 if { (ac_try="$ac_compile"
17408 case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_compile") 2>conftest.er1
17414 ac_status=$?
17415 grep -v '^ *+' conftest.er1 >conftest.err
17416 rm -f conftest.er1
17417 cat conftest.err >&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } && {
17420 test -z "$ac_c_werror_flag" ||
17421 test ! -s conftest.err
17422 } && test -s conftest.$ac_objext; then
17423 ac_header_compiler=yes
17424 else
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428 ac_header_compiler=no
17429 fi
17430
17431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17433 echo "${ECHO_T}$ac_header_compiler" >&6; }
17434
17435 # Is the header present?
17436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h. */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 #include <$ac_header>
17445 _ACEOF
17446 if { (ac_try="$ac_cpp conftest.$ac_ext"
17447 case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450 esac
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17453 ac_status=$?
17454 grep -v '^ *+' conftest.er1 >conftest.err
17455 rm -f conftest.er1
17456 cat conftest.err >&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } >/dev/null && {
17459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17460 test ! -s conftest.err
17461 }; then
17462 ac_header_preproc=yes
17463 else
17464 echo "$as_me: failed program was:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17466
17467 ac_header_preproc=no
17468 fi
17469
17470 rm -f conftest.err conftest.$ac_ext
17471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17472 echo "${ECHO_T}$ac_header_preproc" >&6; }
17473
17474 # So? What about this header?
17475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17476 yes:no: )
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17481 ac_header_preproc=yes
17482 ;;
17483 no:yes:* )
17484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17496
17497 ;;
17498 esac
17499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 else
17504 eval "$as_ac_Header=\$ac_header_preproc"
17505 fi
17506 ac_res=`eval echo '${'$as_ac_Header'}'`
17507 { echo "$as_me:$LINENO: result: $ac_res" >&5
17508 echo "${ECHO_T}$ac_res" >&6; }
17509
17510 fi
17511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17512 cat >>confdefs.h <<_ACEOF
17513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17514 _ACEOF
17515
17516 fi
17517
17518 done
17519
17520 fi
17521
17522
17523 for ac_header in nlist.h
17524 do
17525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 fi
17532 ac_res=`eval echo '${'$as_ac_Header'}'`
17533 { echo "$as_me:$LINENO: result: $ac_res" >&5
17534 echo "${ECHO_T}$ac_res" >&6; }
17535 else
17536 # Is the header compilable?
17537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 $ac_includes_default
17546 #include <$ac_header>
17547 _ACEOF
17548 rm -f conftest.$ac_objext
17549 if { (ac_try="$ac_compile"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553 esac
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_compile") 2>conftest.er1
17556 ac_status=$?
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } && {
17562 test -z "$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17564 } && test -s conftest.$ac_objext; then
17565 ac_header_compiler=yes
17566 else
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17569
17570 ac_header_compiler=no
17571 fi
17572
17573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17575 echo "${ECHO_T}$ac_header_compiler" >&6; }
17576
17577 # Is the header present?
17578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17580 cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h. */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17586 #include <$ac_header>
17587 _ACEOF
17588 if { (ac_try="$ac_cpp conftest.$ac_ext"
17589 case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17592 esac
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17595 ac_status=$?
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } >/dev/null && {
17601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17602 test ! -s conftest.err
17603 }; then
17604 ac_header_preproc=yes
17605 else
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609 ac_header_preproc=no
17610 fi
17611
17612 rm -f conftest.err conftest.$ac_ext
17613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17614 echo "${ECHO_T}$ac_header_preproc" >&6; }
17615
17616 # So? What about this header?
17617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17618 yes:no: )
17619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17623 ac_header_preproc=yes
17624 ;;
17625 no:yes:* )
17626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17638
17639 ;;
17640 esac
17641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17645 else
17646 eval "$as_ac_Header=\$ac_header_preproc"
17647 fi
17648 ac_res=`eval echo '${'$as_ac_Header'}'`
17649 { echo "$as_me:$LINENO: result: $ac_res" >&5
17650 echo "${ECHO_T}$ac_res" >&6; }
17651
17652 fi
17653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17654 cat >>confdefs.h <<_ACEOF
17655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17656 _ACEOF
17657 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17658 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17659 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17661 else
17662 cat >conftest.$ac_ext <<_ACEOF
17663 /* confdefs.h. */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17668 #include <nlist.h>
17669
17670 int
17671 main ()
17672 {
17673 static struct nlist ac_aggr;
17674 if (ac_aggr.n_un.n_name)
17675 return 0;
17676 ;
17677 return 0;
17678 }
17679 _ACEOF
17680 rm -f conftest.$ac_objext
17681 if { (ac_try="$ac_compile"
17682 case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17685 esac
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_compile") 2>conftest.er1
17688 ac_status=$?
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } && {
17694 test -z "$ac_c_werror_flag" ||
17695 test ! -s conftest.err
17696 } && test -s conftest.$ac_objext; then
17697 ac_cv_member_struct_nlist_n_un_n_name=yes
17698 else
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 cat >conftest.$ac_ext <<_ACEOF
17703 /* confdefs.h. */
17704 _ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17708 #include <nlist.h>
17709
17710 int
17711 main ()
17712 {
17713 static struct nlist ac_aggr;
17714 if (sizeof ac_aggr.n_un.n_name)
17715 return 0;
17716 ;
17717 return 0;
17718 }
17719 _ACEOF
17720 rm -f conftest.$ac_objext
17721 if { (ac_try="$ac_compile"
17722 case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17725 esac
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_compile") 2>conftest.er1
17728 ac_status=$?
17729 grep -v '^ *+' conftest.er1 >conftest.err
17730 rm -f conftest.er1
17731 cat conftest.err >&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } && {
17734 test -z "$ac_c_werror_flag" ||
17735 test ! -s conftest.err
17736 } && test -s conftest.$ac_objext; then
17737 ac_cv_member_struct_nlist_n_un_n_name=yes
17738 else
17739 echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742 ac_cv_member_struct_nlist_n_un_n_name=no
17743 fi
17744
17745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 fi
17747
17748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17749 fi
17750 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17751 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17752 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17753
17754 cat >>confdefs.h <<_ACEOF
17755 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17756 _ACEOF
17757
17758
17759 cat >>confdefs.h <<\_ACEOF
17760 #define NLIST_NAME_UNION 1
17761 _ACEOF
17762
17763 fi
17764
17765
17766 fi
17767
17768 done
17769
17770 fi
17771 done
17772
17773
17774 # Some definitions of getloadavg require that the program be installed setgid.
17775 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17776 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17777 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17779 else
17780 cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h. */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17787 #ifdef LDAV_PRIVILEGED
17788 Yowza Am I SETGID yet
17789 #endif
17790 _ACEOF
17791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17792 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17793 ac_cv_func_getloadavg_setgid=yes
17794 else
17795 ac_cv_func_getloadavg_setgid=no
17796 fi
17797 rm -f conftest*
17798
17799 fi
17800 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17801 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17802 if test $ac_cv_func_getloadavg_setgid = yes; then
17803 NEED_SETGID=true
17804
17805 cat >>confdefs.h <<\_ACEOF
17806 #define GETLOADAVG_PRIVILEGED 1
17807 _ACEOF
17808
17809 else
17810 NEED_SETGID=false
17811 fi
17812
17813 if test $ac_cv_func_getloadavg_setgid = yes; then
17814 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17815 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17816 if test "${ac_cv_group_kmem+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17820 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17821 # If we got an error (system does not support symlinks), try without -L.
17822 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17823 ac_cv_group_kmem=`echo $ac_ls_output \
17824 | sed -ne 's/[ ][ ]*/ /g;
17825 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17826 / /s/.* //;p;'`
17827
17828 fi
17829 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17830 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17831 KMEM_GROUP=$ac_cv_group_kmem
17832 fi
17833 if test "x$ac_save_LIBS" = x; then
17834 GETLOADAVG_LIBS=$LIBS
17835 else
17836 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17837 fi
17838 LIBS=$ac_save_LIBS
17839
17840
17841
17842 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17843 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17844 if test "${ac_cv_sys_largefile_source+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847 while :; do
17848 cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h. */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 #include <stdio.h>
17855 int
17856 main ()
17857 {
17858 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17859 ;
17860 return 0;
17861 }
17862 _ACEOF
17863 rm -f conftest.$ac_objext conftest$ac_exeext
17864 if { (ac_try="$ac_link"
17865 case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_link") 2>conftest.er1
17871 ac_status=$?
17872 grep -v '^ *+' conftest.er1 >conftest.err
17873 rm -f conftest.er1
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && {
17877 test -z "$ac_c_werror_flag" ||
17878 test ! -s conftest.err
17879 } && test -s conftest$ac_exeext &&
17880 $as_test_x conftest$ac_exeext; then
17881 ac_cv_sys_largefile_source=no; break
17882 else
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886
17887 fi
17888
17889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17890 conftest$ac_exeext conftest.$ac_ext
17891 cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h. */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 #define _LARGEFILE_SOURCE 1
17898 #include <stdio.h>
17899 int
17900 main ()
17901 {
17902 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17903 ;
17904 return 0;
17905 }
17906 _ACEOF
17907 rm -f conftest.$ac_objext conftest$ac_exeext
17908 if { (ac_try="$ac_link"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_link") 2>conftest.er1
17915 ac_status=$?
17916 grep -v '^ *+' conftest.er1 >conftest.err
17917 rm -f conftest.er1
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } && {
17921 test -z "$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 } && test -s conftest$ac_exeext &&
17924 $as_test_x conftest$ac_exeext; then
17925 ac_cv_sys_largefile_source=1; break
17926 else
17927 echo "$as_me: failed program was:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17929
17930
17931 fi
17932
17933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17934 conftest$ac_exeext conftest.$ac_ext
17935 ac_cv_sys_largefile_source=unknown
17936 break
17937 done
17938 fi
17939 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17940 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17941 case $ac_cv_sys_largefile_source in #(
17942 no | unknown) ;;
17943 *)
17944 cat >>confdefs.h <<_ACEOF
17945 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17946 _ACEOF
17947 ;;
17948 esac
17949 rm -f conftest*
17950
17951 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17952 # in glibc 2.1.3, but that breaks too many other things.
17953 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17954 if test $ac_cv_sys_largefile_source != unknown; then
17955
17956 cat >>confdefs.h <<\_ACEOF
17957 #define HAVE_FSEEKO 1
17958 _ACEOF
17959
17960 fi
17961
17962
17963 # Configure getopt.
17964 # getopt.m4 serial 10
17965
17966 # The getopt module assume you want GNU getopt, with getopt_long etc,
17967 # rather than vanilla POSIX getopt. This means your your code should
17968 # always include <getopt.h> for the getopt prototypes.
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980 # Prerequisites of lib/getopt*.
17981
17982
17983
17984
17985 GETOPT_H=
17986
17987 for ac_header in getopt.h
17988 do
17989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 fi
17996 ac_res=`eval echo '${'$as_ac_Header'}'`
17997 { echo "$as_me:$LINENO: result: $ac_res" >&5
17998 echo "${ECHO_T}$ac_res" >&6; }
17999 else
18000 # Is the header compilable?
18001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18003 cat >conftest.$ac_ext <<_ACEOF
18004 /* confdefs.h. */
18005 _ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h. */
18009 $ac_includes_default
18010 #include <$ac_header>
18011 _ACEOF
18012 rm -f conftest.$ac_objext
18013 if { (ac_try="$ac_compile"
18014 case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18017 esac
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_compile") 2>conftest.er1
18020 ac_status=$?
18021 grep -v '^ *+' conftest.er1 >conftest.err
18022 rm -f conftest.er1
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } && {
18026 test -z "$ac_c_werror_flag" ||
18027 test ! -s conftest.err
18028 } && test -s conftest.$ac_objext; then
18029 ac_header_compiler=yes
18030 else
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18033
18034 ac_header_compiler=no
18035 fi
18036
18037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18039 echo "${ECHO_T}$ac_header_compiler" >&6; }
18040
18041 # Is the header present?
18042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18044 cat >conftest.$ac_ext <<_ACEOF
18045 /* confdefs.h. */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 #include <$ac_header>
18051 _ACEOF
18052 if { (ac_try="$ac_cpp conftest.$ac_ext"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } >/dev/null && {
18065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 }; then
18068 ac_header_preproc=yes
18069 else
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18072
18073 ac_header_preproc=no
18074 fi
18075
18076 rm -f conftest.err conftest.$ac_ext
18077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18078 echo "${ECHO_T}$ac_header_preproc" >&6; }
18079
18080 # So? What about this header?
18081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18082 yes:no: )
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18087 ac_header_preproc=yes
18088 ;;
18089 no:yes:* )
18090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18102
18103 ;;
18104 esac
18105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 else
18110 eval "$as_ac_Header=\$ac_header_preproc"
18111 fi
18112 ac_res=`eval echo '${'$as_ac_Header'}'`
18113 { echo "$as_me:$LINENO: result: $ac_res" >&5
18114 echo "${ECHO_T}$ac_res" >&6; }
18115
18116 fi
18117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18118 cat >>confdefs.h <<_ACEOF
18119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18120 _ACEOF
18121
18122 else
18123 GETOPT_H=getopt.h
18124 fi
18125
18126 done
18127
18128 if test -z "$GETOPT_H"; then
18129
18130 for ac_func in getopt_long_only
18131 do
18132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18137 else
18138 cat >conftest.$ac_ext <<_ACEOF
18139 /* confdefs.h. */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18146 #define $ac_func innocuous_$ac_func
18147
18148 /* System header to define __stub macros and hopefully few prototypes,
18149 which can conflict with char $ac_func (); below.
18150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18151 <limits.h> exists even on freestanding compilers. */
18152
18153 #ifdef __STDC__
18154 # include <limits.h>
18155 #else
18156 # include <assert.h>
18157 #endif
18158
18159 #undef $ac_func
18160
18161 /* Override any GCC internal prototype to avoid an error.
18162 Use char because int might match the return type of a GCC
18163 builtin and then its argument prototype would still apply. */
18164 #ifdef __cplusplus
18165 extern "C"
18166 #endif
18167 char $ac_func ();
18168 /* The GNU C library defines this for functions which it implements
18169 to always fail with ENOSYS. Some functions are actually named
18170 something starting with __ and the normal name is an alias. */
18171 #if defined __stub_$ac_func || defined __stub___$ac_func
18172 choke me
18173 #endif
18174
18175 int
18176 main ()
18177 {
18178 return $ac_func ();
18179 ;
18180 return 0;
18181 }
18182 _ACEOF
18183 rm -f conftest.$ac_objext conftest$ac_exeext
18184 if { (ac_try="$ac_link"
18185 case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18188 esac
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_link") 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } && {
18197 test -z "$ac_c_werror_flag" ||
18198 test ! -s conftest.err
18199 } && test -s conftest$ac_exeext &&
18200 $as_test_x conftest$ac_exeext; then
18201 eval "$as_ac_var=yes"
18202 else
18203 echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206 eval "$as_ac_var=no"
18207 fi
18208
18209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18210 conftest$ac_exeext conftest.$ac_ext
18211 fi
18212 ac_res=`eval echo '${'$as_ac_var'}'`
18213 { echo "$as_me:$LINENO: result: $ac_res" >&5
18214 echo "${ECHO_T}$ac_res" >&6; }
18215 if test `eval echo '${'$as_ac_var'}'` = yes; then
18216 cat >>confdefs.h <<_ACEOF
18217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18218 _ACEOF
18219
18220 else
18221 GETOPT_H=getopt.h
18222 fi
18223 done
18224
18225 fi
18226
18227 if test -z "$GETOPT_H"; then
18228 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18229 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18230 if test "${ac_cv_have_decl_optreset+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18232 else
18233 cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h. */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18239 #include <getopt.h>
18240
18241 int
18242 main ()
18243 {
18244 #ifndef optreset
18245 (void) optreset;
18246 #endif
18247
18248 ;
18249 return 0;
18250 }
18251 _ACEOF
18252 rm -f conftest.$ac_objext
18253 if { (ac_try="$ac_compile"
18254 case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18257 esac
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_compile") 2>conftest.er1
18260 ac_status=$?
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } && {
18266 test -z "$ac_c_werror_flag" ||
18267 test ! -s conftest.err
18268 } && test -s conftest.$ac_objext; then
18269 ac_cv_have_decl_optreset=yes
18270 else
18271 echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18273
18274 ac_cv_have_decl_optreset=no
18275 fi
18276
18277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18278 fi
18279 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18280 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18281 if test $ac_cv_have_decl_optreset = yes; then
18282 GETOPT_H=getopt.h
18283 fi
18284
18285 fi
18286
18287 if test -z "$GETOPT_H"; then
18288 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18289 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18290 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18292 else
18293 if test "$cross_compiling" = yes; then
18294 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18295 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18296 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 else
18299 cat >conftest.$ac_ext <<_ACEOF
18300 /* confdefs.h. */
18301 _ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18305 #include <getopt.h>
18306
18307 int
18308 main ()
18309 {
18310 #ifndef getopt_clip
18311 (void) getopt_clip;
18312 #endif
18313
18314 ;
18315 return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext
18319 if { (ac_try="$ac_compile"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_compile") 2>conftest.er1
18326 ac_status=$?
18327 grep -v '^ *+' conftest.er1 >conftest.err
18328 rm -f conftest.er1
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } && {
18332 test -z "$ac_c_werror_flag" ||
18333 test ! -s conftest.err
18334 } && test -s conftest.$ac_objext; then
18335 ac_cv_have_decl_getopt_clip=yes
18336 else
18337 echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340 ac_cv_have_decl_getopt_clip=no
18341 fi
18342
18343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18344 fi
18345 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18346 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18347 if test $ac_cv_have_decl_getopt_clip = yes; then
18348 gl_cv_func_gnu_getopt=no
18349 else
18350 gl_cv_func_gnu_getopt=yes
18351 fi
18352
18353 else
18354 cat >conftest.$ac_ext <<_ACEOF
18355 /* confdefs.h. */
18356 _ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18360 #include <getopt.h>
18361 int
18362 main ()
18363 {
18364
18365 char *myargv[3];
18366 myargv[0] = "conftest";
18367 myargv[1] = "-+";
18368 myargv[2] = 0;
18369 return getopt (2, myargv, "+a") != '?';
18370
18371 ;
18372 return 0;
18373 }
18374 _ACEOF
18375 rm -f conftest$ac_exeext
18376 if { (ac_try="$ac_link"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_link") 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18386 { (case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18389 esac
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_try") 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 gl_cv_func_gnu_getopt=yes
18396 else
18397 echo "$as_me: program exited with status $ac_status" >&5
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18400
18401 ( exit $ac_status )
18402 gl_cv_func_gnu_getopt=no
18403 fi
18404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18405 fi
18406
18407
18408 fi
18409 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18410 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18411 if test "$gl_cv_func_gnu_getopt" = "no"; then
18412 GETOPT_H=getopt.h
18413 fi
18414 fi
18415
18416
18417
18418 if test -n "$GETOPT_H"; then
18419
18420
18421 GETOPT_H=getopt.h
18422
18423 cat >>confdefs.h <<\_ACEOF
18424 #define __GETOPT_PREFIX rpl_
18425 _ACEOF
18426
18427
18428
18429 :
18430 GETOPTOBJS='getopt.o getopt1.o'
18431
18432 fi
18433
18434
18435
18436
18437 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18438 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18439 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18441 else
18442 # Use it with a single arg.
18443 cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h. */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 $ac_includes_default
18450 int
18451 main ()
18452 {
18453 getpgrp (0);
18454 ;
18455 return 0;
18456 }
18457 _ACEOF
18458 rm -f conftest.$ac_objext
18459 if { (ac_try="$ac_compile"
18460 case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18463 esac
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_compile") 2>conftest.er1
18466 ac_status=$?
18467 grep -v '^ *+' conftest.er1 >conftest.err
18468 rm -f conftest.er1
18469 cat conftest.err >&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); } && {
18472 test -z "$ac_c_werror_flag" ||
18473 test ! -s conftest.err
18474 } && test -s conftest.$ac_objext; then
18475 ac_cv_func_getpgrp_void=no
18476 else
18477 echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480 ac_cv_func_getpgrp_void=yes
18481 fi
18482
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484
18485 fi
18486 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18487 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18488 if test $ac_cv_func_getpgrp_void = yes; then
18489
18490 cat >>confdefs.h <<\_ACEOF
18491 #define GETPGRP_VOID 1
18492 _ACEOF
18493
18494 fi
18495
18496
18497
18498 for ac_func in strftime
18499 do
18500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18501 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h. */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18514 #define $ac_func innocuous_$ac_func
18515
18516 /* System header to define __stub macros and hopefully few prototypes,
18517 which can conflict with char $ac_func (); below.
18518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18519 <limits.h> exists even on freestanding compilers. */
18520
18521 #ifdef __STDC__
18522 # include <limits.h>
18523 #else
18524 # include <assert.h>
18525 #endif
18526
18527 #undef $ac_func
18528
18529 /* Override any GCC internal prototype to avoid an error.
18530 Use char because int might match the return type of a GCC
18531 builtin and then its argument prototype would still apply. */
18532 #ifdef __cplusplus
18533 extern "C"
18534 #endif
18535 char $ac_func ();
18536 /* The GNU C library defines this for functions which it implements
18537 to always fail with ENOSYS. Some functions are actually named
18538 something starting with __ and the normal name is an alias. */
18539 #if defined __stub_$ac_func || defined __stub___$ac_func
18540 choke me
18541 #endif
18542
18543 int
18544 main ()
18545 {
18546 return $ac_func ();
18547 ;
18548 return 0;
18549 }
18550 _ACEOF
18551 rm -f conftest.$ac_objext conftest$ac_exeext
18552 if { (ac_try="$ac_link"
18553 case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18556 esac
18557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_link") 2>conftest.er1
18559 ac_status=$?
18560 grep -v '^ *+' conftest.er1 >conftest.err
18561 rm -f conftest.er1
18562 cat conftest.err >&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } && {
18565 test -z "$ac_c_werror_flag" ||
18566 test ! -s conftest.err
18567 } && test -s conftest$ac_exeext &&
18568 $as_test_x conftest$ac_exeext; then
18569 eval "$as_ac_var=yes"
18570 else
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18573
18574 eval "$as_ac_var=no"
18575 fi
18576
18577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18578 conftest$ac_exeext conftest.$ac_ext
18579 fi
18580 ac_res=`eval echo '${'$as_ac_var'}'`
18581 { echo "$as_me:$LINENO: result: $ac_res" >&5
18582 echo "${ECHO_T}$ac_res" >&6; }
18583 if test `eval echo '${'$as_ac_var'}'` = yes; then
18584 cat >>confdefs.h <<_ACEOF
18585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18586 _ACEOF
18587
18588 else
18589 # strftime is in -lintl on SCO UNIX.
18590 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18591 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18592 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595 ac_check_lib_save_LIBS=$LIBS
18596 LIBS="-lintl $LIBS"
18597 cat >conftest.$ac_ext <<_ACEOF
18598 /* confdefs.h. */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18603
18604 /* Override any GCC internal prototype to avoid an error.
18605 Use char because int might match the return type of a GCC
18606 builtin and then its argument prototype would still apply. */
18607 #ifdef __cplusplus
18608 extern "C"
18609 #endif
18610 char strftime ();
18611 int
18612 main ()
18613 {
18614 return strftime ();
18615 ;
18616 return 0;
18617 }
18618 _ACEOF
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (ac_try="$ac_link"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18624 esac
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_link") 2>conftest.er1
18627 ac_status=$?
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } && {
18633 test -z "$ac_c_werror_flag" ||
18634 test ! -s conftest.err
18635 } && test -s conftest$ac_exeext &&
18636 $as_test_x conftest$ac_exeext; then
18637 ac_cv_lib_intl_strftime=yes
18638 else
18639 echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18641
18642 ac_cv_lib_intl_strftime=no
18643 fi
18644
18645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18646 conftest$ac_exeext conftest.$ac_ext
18647 LIBS=$ac_check_lib_save_LIBS
18648 fi
18649 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18650 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18651 if test $ac_cv_lib_intl_strftime = yes; then
18652 cat >>confdefs.h <<\_ACEOF
18653 #define HAVE_STRFTIME 1
18654 _ACEOF
18655
18656 LIBS="-lintl $LIBS"
18657 fi
18658
18659 fi
18660 done
18661
18662
18663 # UNIX98 PTYs.
18664
18665 for ac_func in grantpt
18666 do
18667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673 cat >conftest.$ac_ext <<_ACEOF
18674 /* confdefs.h. */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18681 #define $ac_func innocuous_$ac_func
18682
18683 /* System header to define __stub macros and hopefully few prototypes,
18684 which can conflict with char $ac_func (); below.
18685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18686 <limits.h> exists even on freestanding compilers. */
18687
18688 #ifdef __STDC__
18689 # include <limits.h>
18690 #else
18691 # include <assert.h>
18692 #endif
18693
18694 #undef $ac_func
18695
18696 /* Override any GCC internal prototype to avoid an error.
18697 Use char because int might match the return type of a GCC
18698 builtin and then its argument prototype would still apply. */
18699 #ifdef __cplusplus
18700 extern "C"
18701 #endif
18702 char $ac_func ();
18703 /* The GNU C library defines this for functions which it implements
18704 to always fail with ENOSYS. Some functions are actually named
18705 something starting with __ and the normal name is an alias. */
18706 #if defined __stub_$ac_func || defined __stub___$ac_func
18707 choke me
18708 #endif
18709
18710 int
18711 main ()
18712 {
18713 return $ac_func ();
18714 ;
18715 return 0;
18716 }
18717 _ACEOF
18718 rm -f conftest.$ac_objext conftest$ac_exeext
18719 if { (ac_try="$ac_link"
18720 case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_link") 2>conftest.er1
18726 ac_status=$?
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } && {
18732 test -z "$ac_c_werror_flag" ||
18733 test ! -s conftest.err
18734 } && test -s conftest$ac_exeext &&
18735 $as_test_x conftest$ac_exeext; then
18736 eval "$as_ac_var=yes"
18737 else
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18740
18741 eval "$as_ac_var=no"
18742 fi
18743
18744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18745 conftest$ac_exeext conftest.$ac_ext
18746 fi
18747 ac_res=`eval echo '${'$as_ac_var'}'`
18748 { echo "$as_me:$LINENO: result: $ac_res" >&5
18749 echo "${ECHO_T}$ac_res" >&6; }
18750 if test `eval echo '${'$as_ac_var'}'` = yes; then
18751 cat >>confdefs.h <<_ACEOF
18752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18753 _ACEOF
18754
18755 fi
18756 done
18757
18758
18759 # PTY-related GNU extensions.
18760
18761 for ac_func in getpt
18762 do
18763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 else
18769 cat >conftest.$ac_ext <<_ACEOF
18770 /* confdefs.h. */
18771 _ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18777 #define $ac_func innocuous_$ac_func
18778
18779 /* System header to define __stub macros and hopefully few prototypes,
18780 which can conflict with char $ac_func (); below.
18781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18782 <limits.h> exists even on freestanding compilers. */
18783
18784 #ifdef __STDC__
18785 # include <limits.h>
18786 #else
18787 # include <assert.h>
18788 #endif
18789
18790 #undef $ac_func
18791
18792 /* Override any GCC internal prototype to avoid an error.
18793 Use char because int might match the return type of a GCC
18794 builtin and then its argument prototype would still apply. */
18795 #ifdef __cplusplus
18796 extern "C"
18797 #endif
18798 char $ac_func ();
18799 /* The GNU C library defines this for functions which it implements
18800 to always fail with ENOSYS. Some functions are actually named
18801 something starting with __ and the normal name is an alias. */
18802 #if defined __stub_$ac_func || defined __stub___$ac_func
18803 choke me
18804 #endif
18805
18806 int
18807 main ()
18808 {
18809 return $ac_func ();
18810 ;
18811 return 0;
18812 }
18813 _ACEOF
18814 rm -f conftest.$ac_objext conftest$ac_exeext
18815 if { (ac_try="$ac_link"
18816 case "(($ac_try" in
18817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818 *) ac_try_echo=$ac_try;;
18819 esac
18820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821 (eval "$ac_link") 2>conftest.er1
18822 ac_status=$?
18823 grep -v '^ *+' conftest.er1 >conftest.err
18824 rm -f conftest.er1
18825 cat conftest.err >&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); } && {
18828 test -z "$ac_c_werror_flag" ||
18829 test ! -s conftest.err
18830 } && test -s conftest$ac_exeext &&
18831 $as_test_x conftest$ac_exeext; then
18832 eval "$as_ac_var=yes"
18833 else
18834 echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18836
18837 eval "$as_ac_var=no"
18838 fi
18839
18840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18841 conftest$ac_exeext conftest.$ac_ext
18842 fi
18843 ac_res=`eval echo '${'$as_ac_var'}'`
18844 { echo "$as_me:$LINENO: result: $ac_res" >&5
18845 echo "${ECHO_T}$ac_res" >&6; }
18846 if test `eval echo '${'$as_ac_var'}'` = yes; then
18847 cat >>confdefs.h <<_ACEOF
18848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18849 _ACEOF
18850
18851 fi
18852 done
18853
18854
18855 # Check this now, so that we will NOT find the above functions in ncurses.
18856 # That is because we have not set up to link ncurses in lib-src.
18857 # It's better to believe a function is not available
18858 # than to expect to find it in ncurses.
18859
18860 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18861 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18862 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 else
18865 ac_check_lib_save_LIBS=$LIBS
18866 LIBS="-lncurses $LIBS"
18867 cat >conftest.$ac_ext <<_ACEOF
18868 /* confdefs.h. */
18869 _ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18873
18874 /* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18877 #ifdef __cplusplus
18878 extern "C"
18879 #endif
18880 char tparm ();
18881 int
18882 main ()
18883 {
18884 return tparm ();
18885 ;
18886 return 0;
18887 }
18888 _ACEOF
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } && {
18903 test -z "$ac_c_werror_flag" ||
18904 test ! -s conftest.err
18905 } && test -s conftest$ac_exeext &&
18906 $as_test_x conftest$ac_exeext; then
18907 ac_cv_lib_ncurses_tparm=yes
18908 else
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 ac_cv_lib_ncurses_tparm=no
18913 fi
18914
18915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916 conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18918 fi
18919 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18920 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18921 if test $ac_cv_lib_ncurses_tparm = yes; then
18922 cat >>confdefs.h <<_ACEOF
18923 #define HAVE_LIBNCURSES 1
18924 _ACEOF
18925
18926 LIBS="-lncurses $LIBS"
18927
18928 fi
18929
18930
18931 # Do we need the Hesiod library to provide the support routines?
18932 if test "$with_hesiod" = yes ; then
18933 # Don't set $LIBS here -- see comments above.
18934 resolv=no
18935 { echo "$as_me:$LINENO: checking for res_send" >&5
18936 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18937 if test "${ac_cv_func_res_send+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18939 else
18940 cat >conftest.$ac_ext <<_ACEOF
18941 /* confdefs.h. */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18948 #define res_send innocuous_res_send
18949
18950 /* System header to define __stub macros and hopefully few prototypes,
18951 which can conflict with char res_send (); below.
18952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18953 <limits.h> exists even on freestanding compilers. */
18954
18955 #ifdef __STDC__
18956 # include <limits.h>
18957 #else
18958 # include <assert.h>
18959 #endif
18960
18961 #undef res_send
18962
18963 /* Override any GCC internal prototype to avoid an error.
18964 Use char because int might match the return type of a GCC
18965 builtin and then its argument prototype would still apply. */
18966 #ifdef __cplusplus
18967 extern "C"
18968 #endif
18969 char res_send ();
18970 /* The GNU C library defines this for functions which it implements
18971 to always fail with ENOSYS. Some functions are actually named
18972 something starting with __ and the normal name is an alias. */
18973 #if defined __stub_res_send || defined __stub___res_send
18974 choke me
18975 #endif
18976
18977 int
18978 main ()
18979 {
18980 return res_send ();
18981 ;
18982 return 0;
18983 }
18984 _ACEOF
18985 rm -f conftest.$ac_objext conftest$ac_exeext
18986 if { (ac_try="$ac_link"
18987 case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18990 esac
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_link") 2>conftest.er1
18993 ac_status=$?
18994 grep -v '^ *+' conftest.er1 >conftest.err
18995 rm -f conftest.er1
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } && {
18999 test -z "$ac_c_werror_flag" ||
19000 test ! -s conftest.err
19001 } && test -s conftest$ac_exeext &&
19002 $as_test_x conftest$ac_exeext; then
19003 ac_cv_func_res_send=yes
19004 else
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19007
19008 ac_cv_func_res_send=no
19009 fi
19010
19011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19012 conftest$ac_exeext conftest.$ac_ext
19013 fi
19014 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19015 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19016 if test $ac_cv_func_res_send = yes; then
19017 :
19018 else
19019 { echo "$as_me:$LINENO: checking for __res_send" >&5
19020 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19021 if test "${ac_cv_func___res_send+set}" = set; then
19022 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 else
19024 cat >conftest.$ac_ext <<_ACEOF
19025 /* confdefs.h. */
19026 _ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19032 #define __res_send innocuous___res_send
19033
19034 /* System header to define __stub macros and hopefully few prototypes,
19035 which can conflict with char __res_send (); below.
19036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19037 <limits.h> exists even on freestanding compilers. */
19038
19039 #ifdef __STDC__
19040 # include <limits.h>
19041 #else
19042 # include <assert.h>
19043 #endif
19044
19045 #undef __res_send
19046
19047 /* Override any GCC internal prototype to avoid an error.
19048 Use char because int might match the return type of a GCC
19049 builtin and then its argument prototype would still apply. */
19050 #ifdef __cplusplus
19051 extern "C"
19052 #endif
19053 char __res_send ();
19054 /* The GNU C library defines this for functions which it implements
19055 to always fail with ENOSYS. Some functions are actually named
19056 something starting with __ and the normal name is an alias. */
19057 #if defined __stub___res_send || defined __stub_____res_send
19058 choke me
19059 #endif
19060
19061 int
19062 main ()
19063 {
19064 return __res_send ();
19065 ;
19066 return 0;
19067 }
19068 _ACEOF
19069 rm -f conftest.$ac_objext conftest$ac_exeext
19070 if { (ac_try="$ac_link"
19071 case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19074 esac
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_link") 2>conftest.er1
19077 ac_status=$?
19078 grep -v '^ *+' conftest.er1 >conftest.err
19079 rm -f conftest.er1
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest$ac_exeext &&
19086 $as_test_x conftest$ac_exeext; then
19087 ac_cv_func___res_send=yes
19088 else
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19091
19092 ac_cv_func___res_send=no
19093 fi
19094
19095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19096 conftest$ac_exeext conftest.$ac_ext
19097 fi
19098 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19099 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19100 if test $ac_cv_func___res_send = yes; then
19101 :
19102 else
19103 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19104 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19105 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108 ac_check_lib_save_LIBS=$LIBS
19109 LIBS="-lresolv $LIBS"
19110 cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h. */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116
19117 /* Override any GCC internal prototype to avoid an error.
19118 Use char because int might match the return type of a GCC
19119 builtin and then its argument prototype would still apply. */
19120 #ifdef __cplusplus
19121 extern "C"
19122 #endif
19123 char res_send ();
19124 int
19125 main ()
19126 {
19127 return res_send ();
19128 ;
19129 return 0;
19130 }
19131 _ACEOF
19132 rm -f conftest.$ac_objext conftest$ac_exeext
19133 if { (ac_try="$ac_link"
19134 case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_link") 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } && {
19146 test -z "$ac_c_werror_flag" ||
19147 test ! -s conftest.err
19148 } && test -s conftest$ac_exeext &&
19149 $as_test_x conftest$ac_exeext; then
19150 ac_cv_lib_resolv_res_send=yes
19151 else
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155 ac_cv_lib_resolv_res_send=no
19156 fi
19157
19158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19159 conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19161 fi
19162 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19163 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19164 if test $ac_cv_lib_resolv_res_send = yes; then
19165 resolv=yes
19166 else
19167 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19168 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19169 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19172 ac_check_lib_save_LIBS=$LIBS
19173 LIBS="-lresolv $LIBS"
19174 cat >conftest.$ac_ext <<_ACEOF
19175 /* confdefs.h. */
19176 _ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19180
19181 /* Override any GCC internal prototype to avoid an error.
19182 Use char because int might match the return type of a GCC
19183 builtin and then its argument prototype would still apply. */
19184 #ifdef __cplusplus
19185 extern "C"
19186 #endif
19187 char __res_send ();
19188 int
19189 main ()
19190 {
19191 return __res_send ();
19192 ;
19193 return 0;
19194 }
19195 _ACEOF
19196 rm -f conftest.$ac_objext conftest$ac_exeext
19197 if { (ac_try="$ac_link"
19198 case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19201 esac
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_link") 2>conftest.er1
19204 ac_status=$?
19205 grep -v '^ *+' conftest.er1 >conftest.err
19206 rm -f conftest.er1
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } && {
19210 test -z "$ac_c_werror_flag" ||
19211 test ! -s conftest.err
19212 } && test -s conftest$ac_exeext &&
19213 $as_test_x conftest$ac_exeext; then
19214 ac_cv_lib_resolv___res_send=yes
19215 else
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 ac_cv_lib_resolv___res_send=no
19220 fi
19221
19222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19223 conftest$ac_exeext conftest.$ac_ext
19224 LIBS=$ac_check_lib_save_LIBS
19225 fi
19226 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19227 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19228 if test $ac_cv_lib_resolv___res_send = yes; then
19229 resolv=yes
19230 fi
19231
19232 fi
19233
19234 fi
19235
19236 fi
19237
19238 if test "$resolv" = yes ; then
19239 RESOLVLIB=-lresolv
19240
19241 cat >>confdefs.h <<\_ACEOF
19242 #define HAVE_LIBRESOLV 1
19243 _ACEOF
19244
19245 else
19246 RESOLVLIB=
19247 fi
19248 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19249 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19250 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 else
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h. */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19261 #define hes_getmailhost innocuous_hes_getmailhost
19262
19263 /* System header to define __stub macros and hopefully few prototypes,
19264 which can conflict with char hes_getmailhost (); below.
19265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19266 <limits.h> exists even on freestanding compilers. */
19267
19268 #ifdef __STDC__
19269 # include <limits.h>
19270 #else
19271 # include <assert.h>
19272 #endif
19273
19274 #undef hes_getmailhost
19275
19276 /* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19279 #ifdef __cplusplus
19280 extern "C"
19281 #endif
19282 char hes_getmailhost ();
19283 /* The GNU C library defines this for functions which it implements
19284 to always fail with ENOSYS. Some functions are actually named
19285 something starting with __ and the normal name is an alias. */
19286 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19287 choke me
19288 #endif
19289
19290 int
19291 main ()
19292 {
19293 return hes_getmailhost ();
19294 ;
19295 return 0;
19296 }
19297 _ACEOF
19298 rm -f conftest.$ac_objext conftest$ac_exeext
19299 if { (ac_try="$ac_link"
19300 case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19303 esac
19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_link") 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } && {
19312 test -z "$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19314 } && test -s conftest$ac_exeext &&
19315 $as_test_x conftest$ac_exeext; then
19316 ac_cv_func_hes_getmailhost=yes
19317 else
19318 echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19320
19321 ac_cv_func_hes_getmailhost=no
19322 fi
19323
19324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19325 conftest$ac_exeext conftest.$ac_ext
19326 fi
19327 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19328 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19329 if test $ac_cv_func_hes_getmailhost = yes; then
19330 :
19331 else
19332 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19333 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19334 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337 ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lhesiod $RESOLVLIB $LIBS"
19339 cat >conftest.$ac_ext <<_ACEOF
19340 /* confdefs.h. */
19341 _ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19345
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 char hes_getmailhost ();
19353 int
19354 main ()
19355 {
19356 return hes_getmailhost ();
19357 ;
19358 return 0;
19359 }
19360 _ACEOF
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19366 esac
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_link") 2>conftest.er1
19369 ac_status=$?
19370 grep -v '^ *+' conftest.er1 >conftest.err
19371 rm -f conftest.er1
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } && {
19375 test -z "$ac_c_werror_flag" ||
19376 test ! -s conftest.err
19377 } && test -s conftest$ac_exeext &&
19378 $as_test_x conftest$ac_exeext; then
19379 ac_cv_lib_hesiod_hes_getmailhost=yes
19380 else
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_cv_lib_hesiod_hes_getmailhost=no
19385 fi
19386
19387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19388 conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19390 fi
19391 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19392 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19393 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19394
19395 cat >>confdefs.h <<\_ACEOF
19396 #define HAVE_LIBHESIOD 1
19397 _ACEOF
19398
19399 else
19400 :
19401 fi
19402
19403 fi
19404
19405 fi
19406
19407 # These tell us which Kerberos-related libraries to use.
19408 if test "${with_kerberos+set}" = set; then
19409
19410 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19411 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19412 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19413 echo $ECHO_N "(cached) $ECHO_C" >&6
19414 else
19415 ac_check_lib_save_LIBS=$LIBS
19416 LIBS="-lcom_err $LIBS"
19417 cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h. */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19423
19424 /* Override any GCC internal prototype to avoid an error.
19425 Use char because int might match the return type of a GCC
19426 builtin and then its argument prototype would still apply. */
19427 #ifdef __cplusplus
19428 extern "C"
19429 #endif
19430 char com_err ();
19431 int
19432 main ()
19433 {
19434 return com_err ();
19435 ;
19436 return 0;
19437 }
19438 _ACEOF
19439 rm -f conftest.$ac_objext conftest$ac_exeext
19440 if { (ac_try="$ac_link"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_link") 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } && {
19453 test -z "$ac_c_werror_flag" ||
19454 test ! -s conftest.err
19455 } && test -s conftest$ac_exeext &&
19456 $as_test_x conftest$ac_exeext; then
19457 ac_cv_lib_com_err_com_err=yes
19458 else
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19461
19462 ac_cv_lib_com_err_com_err=no
19463 fi
19464
19465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19466 conftest$ac_exeext conftest.$ac_ext
19467 LIBS=$ac_check_lib_save_LIBS
19468 fi
19469 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19470 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19471 if test $ac_cv_lib_com_err_com_err = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define HAVE_LIBCOM_ERR 1
19474 _ACEOF
19475
19476 LIBS="-lcom_err $LIBS"
19477
19478 fi
19479
19480
19481 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19482 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19483 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19485 else
19486 ac_check_lib_save_LIBS=$LIBS
19487 LIBS="-lk5crypto $LIBS"
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494
19495 /* Override any GCC internal prototype to avoid an error.
19496 Use char because int might match the return type of a GCC
19497 builtin and then its argument prototype would still apply. */
19498 #ifdef __cplusplus
19499 extern "C"
19500 #endif
19501 char mit_des_cbc_encrypt ();
19502 int
19503 main ()
19504 {
19505 return mit_des_cbc_encrypt ();
19506 ;
19507 return 0;
19508 }
19509 _ACEOF
19510 rm -f conftest.$ac_objext conftest$ac_exeext
19511 if { (ac_try="$ac_link"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_link") 2>conftest.er1
19518 ac_status=$?
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } && {
19524 test -z "$ac_c_werror_flag" ||
19525 test ! -s conftest.err
19526 } && test -s conftest$ac_exeext &&
19527 $as_test_x conftest$ac_exeext; then
19528 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19529 else
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19532
19533 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19534 fi
19535
19536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19539 fi
19540 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19541 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19542 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19543 cat >>confdefs.h <<_ACEOF
19544 #define HAVE_LIBK5CRYPTO 1
19545 _ACEOF
19546
19547 LIBS="-lk5crypto $LIBS"
19548
19549 fi
19550
19551
19552 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19553 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19554 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557 ac_check_lib_save_LIBS=$LIBS
19558 LIBS="-lcrypto $LIBS"
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h. */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565
19566 /* Override any GCC internal prototype to avoid an error.
19567 Use char because int might match the return type of a GCC
19568 builtin and then its argument prototype would still apply. */
19569 #ifdef __cplusplus
19570 extern "C"
19571 #endif
19572 char mit_des_cbc_encrypt ();
19573 int
19574 main ()
19575 {
19576 return mit_des_cbc_encrypt ();
19577 ;
19578 return 0;
19579 }
19580 _ACEOF
19581 rm -f conftest.$ac_objext conftest$ac_exeext
19582 if { (ac_try="$ac_link"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_link") 2>conftest.er1
19589 ac_status=$?
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } && {
19595 test -z "$ac_c_werror_flag" ||
19596 test ! -s conftest.err
19597 } && test -s conftest$ac_exeext &&
19598 $as_test_x conftest$ac_exeext; then
19599 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19600 else
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19603
19604 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19605 fi
19606
19607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19608 conftest$ac_exeext conftest.$ac_ext
19609 LIBS=$ac_check_lib_save_LIBS
19610 fi
19611 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19612 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19613 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19614 cat >>confdefs.h <<_ACEOF
19615 #define HAVE_LIBCRYPTO 1
19616 _ACEOF
19617
19618 LIBS="-lcrypto $LIBS"
19619
19620 fi
19621
19622
19623 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19624 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19625 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628 ac_check_lib_save_LIBS=$LIBS
19629 LIBS="-lkrb5 $LIBS"
19630 cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h. */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19636
19637 /* Override any GCC internal prototype to avoid an error.
19638 Use char because int might match the return type of a GCC
19639 builtin and then its argument prototype would still apply. */
19640 #ifdef __cplusplus
19641 extern "C"
19642 #endif
19643 char krb5_init_context ();
19644 int
19645 main ()
19646 {
19647 return krb5_init_context ();
19648 ;
19649 return 0;
19650 }
19651 _ACEOF
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (ac_try="$ac_link"
19654 case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19657 esac
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_link") 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest$ac_exeext &&
19669 $as_test_x conftest$ac_exeext; then
19670 ac_cv_lib_krb5_krb5_init_context=yes
19671 else
19672 echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19674
19675 ac_cv_lib_krb5_krb5_init_context=no
19676 fi
19677
19678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19679 conftest$ac_exeext conftest.$ac_ext
19680 LIBS=$ac_check_lib_save_LIBS
19681 fi
19682 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19683 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19684 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19685 cat >>confdefs.h <<_ACEOF
19686 #define HAVE_LIBKRB5 1
19687 _ACEOF
19688
19689 LIBS="-lkrb5 $LIBS"
19690
19691 fi
19692
19693 if test "${with_kerberos5+set}" != set; then
19694
19695 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19696 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19697 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 else
19700 ac_check_lib_save_LIBS=$LIBS
19701 LIBS="-ldes425 $LIBS"
19702 cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h. */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708
19709 /* Override any GCC internal prototype to avoid an error.
19710 Use char because int might match the return type of a GCC
19711 builtin and then its argument prototype would still apply. */
19712 #ifdef __cplusplus
19713 extern "C"
19714 #endif
19715 char des_cbc_encrypt ();
19716 int
19717 main ()
19718 {
19719 return des_cbc_encrypt ();
19720 ;
19721 return 0;
19722 }
19723 _ACEOF
19724 rm -f conftest.$ac_objext conftest$ac_exeext
19725 if { (ac_try="$ac_link"
19726 case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_link") 2>conftest.er1
19732 ac_status=$?
19733 grep -v '^ *+' conftest.er1 >conftest.err
19734 rm -f conftest.er1
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } && {
19738 test -z "$ac_c_werror_flag" ||
19739 test ! -s conftest.err
19740 } && test -s conftest$ac_exeext &&
19741 $as_test_x conftest$ac_exeext; then
19742 ac_cv_lib_des425_des_cbc_encrypt=yes
19743 else
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 ac_cv_lib_des425_des_cbc_encrypt=no
19748 fi
19749
19750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19751 conftest$ac_exeext conftest.$ac_ext
19752 LIBS=$ac_check_lib_save_LIBS
19753 fi
19754 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19755 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19756 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19757 cat >>confdefs.h <<_ACEOF
19758 #define HAVE_LIBDES425 1
19759 _ACEOF
19760
19761 LIBS="-ldes425 $LIBS"
19762
19763 else
19764
19765 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19766 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19767 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 else
19770 ac_check_lib_save_LIBS=$LIBS
19771 LIBS="-ldes $LIBS"
19772 cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h. */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19778
19779 /* Override any GCC internal prototype to avoid an error.
19780 Use char because int might match the return type of a GCC
19781 builtin and then its argument prototype would still apply. */
19782 #ifdef __cplusplus
19783 extern "C"
19784 #endif
19785 char des_cbc_encrypt ();
19786 int
19787 main ()
19788 {
19789 return des_cbc_encrypt ();
19790 ;
19791 return 0;
19792 }
19793 _ACEOF
19794 rm -f conftest.$ac_objext conftest$ac_exeext
19795 if { (ac_try="$ac_link"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_link") 2>conftest.er1
19802 ac_status=$?
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } && {
19808 test -z "$ac_c_werror_flag" ||
19809 test ! -s conftest.err
19810 } && test -s conftest$ac_exeext &&
19811 $as_test_x conftest$ac_exeext; then
19812 ac_cv_lib_des_des_cbc_encrypt=yes
19813 else
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19816
19817 ac_cv_lib_des_des_cbc_encrypt=no
19818 fi
19819
19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LIBS=$ac_check_lib_save_LIBS
19823 fi
19824 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19825 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19826 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19827 cat >>confdefs.h <<_ACEOF
19828 #define HAVE_LIBDES 1
19829 _ACEOF
19830
19831 LIBS="-ldes $LIBS"
19832
19833 fi
19834
19835 fi
19836
19837
19838 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19839 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19840 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843 ac_check_lib_save_LIBS=$LIBS
19844 LIBS="-lkrb4 $LIBS"
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h. */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851
19852 /* Override any GCC internal prototype to avoid an error.
19853 Use char because int might match the return type of a GCC
19854 builtin and then its argument prototype would still apply. */
19855 #ifdef __cplusplus
19856 extern "C"
19857 #endif
19858 char krb_get_cred ();
19859 int
19860 main ()
19861 {
19862 return krb_get_cred ();
19863 ;
19864 return 0;
19865 }
19866 _ACEOF
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (ac_try="$ac_link"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_link") 2>conftest.er1
19875 ac_status=$?
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest$ac_exeext &&
19884 $as_test_x conftest$ac_exeext; then
19885 ac_cv_lib_krb4_krb_get_cred=yes
19886 else
19887 echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19889
19890 ac_cv_lib_krb4_krb_get_cred=no
19891 fi
19892
19893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19894 conftest$ac_exeext conftest.$ac_ext
19895 LIBS=$ac_check_lib_save_LIBS
19896 fi
19897 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19898 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19899 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19900 cat >>confdefs.h <<_ACEOF
19901 #define HAVE_LIBKRB4 1
19902 _ACEOF
19903
19904 LIBS="-lkrb4 $LIBS"
19905
19906 else
19907
19908 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19909 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19910 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913 ac_check_lib_save_LIBS=$LIBS
19914 LIBS="-lkrb $LIBS"
19915 cat >conftest.$ac_ext <<_ACEOF
19916 /* confdefs.h. */
19917 _ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921
19922 /* Override any GCC internal prototype to avoid an error.
19923 Use char because int might match the return type of a GCC
19924 builtin and then its argument prototype would still apply. */
19925 #ifdef __cplusplus
19926 extern "C"
19927 #endif
19928 char krb_get_cred ();
19929 int
19930 main ()
19931 {
19932 return krb_get_cred ();
19933 ;
19934 return 0;
19935 }
19936 _ACEOF
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (ac_try="$ac_link"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_link") 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } && {
19951 test -z "$ac_c_werror_flag" ||
19952 test ! -s conftest.err
19953 } && test -s conftest$ac_exeext &&
19954 $as_test_x conftest$ac_exeext; then
19955 ac_cv_lib_krb_krb_get_cred=yes
19956 else
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19959
19960 ac_cv_lib_krb_krb_get_cred=no
19961 fi
19962
19963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19964 conftest$ac_exeext conftest.$ac_ext
19965 LIBS=$ac_check_lib_save_LIBS
19966 fi
19967 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19968 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19969 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19970 cat >>confdefs.h <<_ACEOF
19971 #define HAVE_LIBKRB 1
19972 _ACEOF
19973
19974 LIBS="-lkrb $LIBS"
19975
19976 fi
19977
19978 fi
19979
19980 fi
19981
19982 if test "${with_kerberos5+set}" = set; then
19983
19984 for ac_header in krb5.h
19985 do
19986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
19992 fi
19993 ac_res=`eval echo '${'$as_ac_Header'}'`
19994 { echo "$as_me:$LINENO: result: $ac_res" >&5
19995 echo "${ECHO_T}$ac_res" >&6; }
19996 else
19997 # Is the header compilable?
19998 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20000 cat >conftest.$ac_ext <<_ACEOF
20001 /* confdefs.h. */
20002 _ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20006 $ac_includes_default
20007 #include <$ac_header>
20008 _ACEOF
20009 rm -f conftest.$ac_objext
20010 if { (ac_try="$ac_compile"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20014 esac
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_compile") 2>conftest.er1
20017 ac_status=$?
20018 grep -v '^ *+' conftest.er1 >conftest.err
20019 rm -f conftest.er1
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest.$ac_objext; then
20026 ac_header_compiler=yes
20027 else
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031 ac_header_compiler=no
20032 fi
20033
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20036 echo "${ECHO_T}$ac_header_compiler" >&6; }
20037
20038 # Is the header present?
20039 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20041 cat >conftest.$ac_ext <<_ACEOF
20042 /* confdefs.h. */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h. */
20047 #include <$ac_header>
20048 _ACEOF
20049 if { (ac_try="$ac_cpp conftest.$ac_ext"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053 esac
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } >/dev/null && {
20062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 }; then
20065 ac_header_preproc=yes
20066 else
20067 echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20069
20070 ac_header_preproc=no
20071 fi
20072
20073 rm -f conftest.err conftest.$ac_ext
20074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20075 echo "${ECHO_T}$ac_header_preproc" >&6; }
20076
20077 # So? What about this header?
20078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20079 yes:no: )
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20084 ac_header_preproc=yes
20085 ;;
20086 no:yes:* )
20087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20099
20100 ;;
20101 esac
20102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 else
20107 eval "$as_ac_Header=\$ac_header_preproc"
20108 fi
20109 ac_res=`eval echo '${'$as_ac_Header'}'`
20110 { echo "$as_me:$LINENO: result: $ac_res" >&5
20111 echo "${ECHO_T}$ac_res" >&6; }
20112
20113 fi
20114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20115 cat >>confdefs.h <<_ACEOF
20116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20117 _ACEOF
20118
20119 fi
20120
20121 done
20122
20123 else
20124
20125 for ac_header in des.h
20126 do
20127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 fi
20134 ac_res=`eval echo '${'$as_ac_Header'}'`
20135 { echo "$as_me:$LINENO: result: $ac_res" >&5
20136 echo "${ECHO_T}$ac_res" >&6; }
20137 else
20138 # Is the header compilable?
20139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20141 cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h. */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 $ac_includes_default
20148 #include <$ac_header>
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155 esac
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_compile") 2>conftest.er1
20158 ac_status=$?
20159 grep -v '^ *+' conftest.er1 >conftest.err
20160 rm -f conftest.er1
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest.$ac_objext; then
20167 ac_header_compiler=yes
20168 else
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 ac_header_compiler=no
20173 fi
20174
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20177 echo "${ECHO_T}$ac_header_compiler" >&6; }
20178
20179 # Is the header present?
20180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
20189 _ACEOF
20190 if { (ac_try="$ac_cpp conftest.$ac_ext"
20191 case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20194 esac
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20197 ac_status=$?
20198 grep -v '^ *+' conftest.er1 >conftest.err
20199 rm -f conftest.er1
20200 cat conftest.err >&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } >/dev/null && {
20203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20204 test ! -s conftest.err
20205 }; then
20206 ac_header_preproc=yes
20207 else
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20210
20211 ac_header_preproc=no
20212 fi
20213
20214 rm -f conftest.err conftest.$ac_ext
20215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20216 echo "${ECHO_T}$ac_header_preproc" >&6; }
20217
20218 # So? What about this header?
20219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20220 yes:no: )
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20225 ac_header_preproc=yes
20226 ;;
20227 no:yes:* )
20228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20240
20241 ;;
20242 esac
20243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20246 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 else
20248 eval "$as_ac_Header=\$ac_header_preproc"
20249 fi
20250 ac_res=`eval echo '${'$as_ac_Header'}'`
20251 { echo "$as_me:$LINENO: result: $ac_res" >&5
20252 echo "${ECHO_T}$ac_res" >&6; }
20253
20254 fi
20255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20256 cat >>confdefs.h <<_ACEOF
20257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20258 _ACEOF
20259
20260 else
20261
20262 for ac_header in kerberosIV/des.h
20263 do
20264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 fi
20271 ac_res=`eval echo '${'$as_ac_Header'}'`
20272 { echo "$as_me:$LINENO: result: $ac_res" >&5
20273 echo "${ECHO_T}$ac_res" >&6; }
20274 else
20275 # Is the header compilable?
20276 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20278 cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h. */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 $ac_includes_default
20285 #include <$ac_header>
20286 _ACEOF
20287 rm -f conftest.$ac_objext
20288 if { (ac_try="$ac_compile"
20289 case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_compile") 2>conftest.er1
20295 ac_status=$?
20296 grep -v '^ *+' conftest.er1 >conftest.err
20297 rm -f conftest.er1
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } && {
20301 test -z "$ac_c_werror_flag" ||
20302 test ! -s conftest.err
20303 } && test -s conftest.$ac_objext; then
20304 ac_header_compiler=yes
20305 else
20306 echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20308
20309 ac_header_compiler=no
20310 fi
20311
20312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20314 echo "${ECHO_T}$ac_header_compiler" >&6; }
20315
20316 # Is the header present?
20317 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h. */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325 #include <$ac_header>
20326 _ACEOF
20327 if { (ac_try="$ac_cpp conftest.$ac_ext"
20328 case "(($ac_try" in
20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330 *) ac_try_echo=$ac_try;;
20331 esac
20332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20334 ac_status=$?
20335 grep -v '^ *+' conftest.er1 >conftest.err
20336 rm -f conftest.er1
20337 cat conftest.err >&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } >/dev/null && {
20340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20341 test ! -s conftest.err
20342 }; then
20343 ac_header_preproc=yes
20344 else
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20347
20348 ac_header_preproc=no
20349 fi
20350
20351 rm -f conftest.err conftest.$ac_ext
20352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20353 echo "${ECHO_T}$ac_header_preproc" >&6; }
20354
20355 # So? What about this header?
20356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20357 yes:no: )
20358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20362 ac_header_preproc=yes
20363 ;;
20364 no:yes:* )
20365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20377
20378 ;;
20379 esac
20380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20384 else
20385 eval "$as_ac_Header=\$ac_header_preproc"
20386 fi
20387 ac_res=`eval echo '${'$as_ac_Header'}'`
20388 { echo "$as_me:$LINENO: result: $ac_res" >&5
20389 echo "${ECHO_T}$ac_res" >&6; }
20390
20391 fi
20392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20393 cat >>confdefs.h <<_ACEOF
20394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20395 _ACEOF
20396
20397 else
20398
20399 for ac_header in kerberos/des.h
20400 do
20401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 fi
20408 ac_res=`eval echo '${'$as_ac_Header'}'`
20409 { echo "$as_me:$LINENO: result: $ac_res" >&5
20410 echo "${ECHO_T}$ac_res" >&6; }
20411 else
20412 # Is the header compilable?
20413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20415 cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h. */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20421 $ac_includes_default
20422 #include <$ac_header>
20423 _ACEOF
20424 rm -f conftest.$ac_objext
20425 if { (ac_try="$ac_compile"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_compile") 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } && {
20438 test -z "$ac_c_werror_flag" ||
20439 test ! -s conftest.err
20440 } && test -s conftest.$ac_objext; then
20441 ac_header_compiler=yes
20442 else
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 ac_header_compiler=no
20447 fi
20448
20449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20451 echo "${ECHO_T}$ac_header_compiler" >&6; }
20452
20453 # Is the header present?
20454 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20456 cat >conftest.$ac_ext <<_ACEOF
20457 /* confdefs.h. */
20458 _ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20462 #include <$ac_header>
20463 _ACEOF
20464 if { (ac_try="$ac_cpp conftest.$ac_ext"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20468 esac
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20471 ac_status=$?
20472 grep -v '^ *+' conftest.er1 >conftest.err
20473 rm -f conftest.er1
20474 cat conftest.err >&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } >/dev/null && {
20477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20479 }; then
20480 ac_header_preproc=yes
20481 else
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20484
20485 ac_header_preproc=no
20486 fi
20487
20488 rm -f conftest.err conftest.$ac_ext
20489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20490 echo "${ECHO_T}$ac_header_preproc" >&6; }
20491
20492 # So? What about this header?
20493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20494 yes:no: )
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20499 ac_header_preproc=yes
20500 ;;
20501 no:yes:* )
20502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20514
20515 ;;
20516 esac
20517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522 eval "$as_ac_Header=\$ac_header_preproc"
20523 fi
20524 ac_res=`eval echo '${'$as_ac_Header'}'`
20525 { echo "$as_me:$LINENO: result: $ac_res" >&5
20526 echo "${ECHO_T}$ac_res" >&6; }
20527
20528 fi
20529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20530 cat >>confdefs.h <<_ACEOF
20531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20532 _ACEOF
20533
20534 fi
20535
20536 done
20537
20538 fi
20539
20540 done
20541
20542 fi
20543
20544 done
20545
20546
20547 for ac_header in krb.h
20548 do
20549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20555 fi
20556 ac_res=`eval echo '${'$as_ac_Header'}'`
20557 { echo "$as_me:$LINENO: result: $ac_res" >&5
20558 echo "${ECHO_T}$ac_res" >&6; }
20559 else
20560 # Is the header compilable?
20561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20563 cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h. */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569 $ac_includes_default
20570 #include <$ac_header>
20571 _ACEOF
20572 rm -f conftest.$ac_objext
20573 if { (ac_try="$ac_compile"
20574 case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20577 esac
20578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_compile") 2>conftest.er1
20580 ac_status=$?
20581 grep -v '^ *+' conftest.er1 >conftest.err
20582 rm -f conftest.er1
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } && {
20586 test -z "$ac_c_werror_flag" ||
20587 test ! -s conftest.err
20588 } && test -s conftest.$ac_objext; then
20589 ac_header_compiler=yes
20590 else
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594 ac_header_compiler=no
20595 fi
20596
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20599 echo "${ECHO_T}$ac_header_compiler" >&6; }
20600
20601 # Is the header present?
20602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20604 cat >conftest.$ac_ext <<_ACEOF
20605 /* confdefs.h. */
20606 _ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20610 #include <$ac_header>
20611 _ACEOF
20612 if { (ac_try="$ac_cpp conftest.$ac_ext"
20613 case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20616 esac
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20619 ac_status=$?
20620 grep -v '^ *+' conftest.er1 >conftest.err
20621 rm -f conftest.er1
20622 cat conftest.err >&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } >/dev/null && {
20625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20626 test ! -s conftest.err
20627 }; then
20628 ac_header_preproc=yes
20629 else
20630 echo "$as_me: failed program was:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20632
20633 ac_header_preproc=no
20634 fi
20635
20636 rm -f conftest.err conftest.$ac_ext
20637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20638 echo "${ECHO_T}$ac_header_preproc" >&6; }
20639
20640 # So? What about this header?
20641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20642 yes:no: )
20643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20647 ac_header_preproc=yes
20648 ;;
20649 no:yes:* )
20650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20662
20663 ;;
20664 esac
20665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 else
20670 eval "$as_ac_Header=\$ac_header_preproc"
20671 fi
20672 ac_res=`eval echo '${'$as_ac_Header'}'`
20673 { echo "$as_me:$LINENO: result: $ac_res" >&5
20674 echo "${ECHO_T}$ac_res" >&6; }
20675
20676 fi
20677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20678 cat >>confdefs.h <<_ACEOF
20679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20680 _ACEOF
20681
20682 else
20683
20684 for ac_header in kerberosIV/krb.h
20685 do
20686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 fi
20693 ac_res=`eval echo '${'$as_ac_Header'}'`
20694 { echo "$as_me:$LINENO: result: $ac_res" >&5
20695 echo "${ECHO_T}$ac_res" >&6; }
20696 else
20697 # Is the header compilable?
20698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20700 cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h. */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 $ac_includes_default
20707 #include <$ac_header>
20708 _ACEOF
20709 rm -f conftest.$ac_objext
20710 if { (ac_try="$ac_compile"
20711 case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20714 esac
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_compile") 2>conftest.er1
20717 ac_status=$?
20718 grep -v '^ *+' conftest.er1 >conftest.err
20719 rm -f conftest.er1
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } && {
20723 test -z "$ac_c_werror_flag" ||
20724 test ! -s conftest.err
20725 } && test -s conftest.$ac_objext; then
20726 ac_header_compiler=yes
20727 else
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20730
20731 ac_header_compiler=no
20732 fi
20733
20734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20736 echo "${ECHO_T}$ac_header_compiler" >&6; }
20737
20738 # Is the header present?
20739 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h. */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 #include <$ac_header>
20748 _ACEOF
20749 if { (ac_try="$ac_cpp conftest.$ac_ext"
20750 case "(($ac_try" in
20751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752 *) ac_try_echo=$ac_try;;
20753 esac
20754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20756 ac_status=$?
20757 grep -v '^ *+' conftest.er1 >conftest.err
20758 rm -f conftest.er1
20759 cat conftest.err >&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } >/dev/null && {
20762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20763 test ! -s conftest.err
20764 }; then
20765 ac_header_preproc=yes
20766 else
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20769
20770 ac_header_preproc=no
20771 fi
20772
20773 rm -f conftest.err conftest.$ac_ext
20774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20775 echo "${ECHO_T}$ac_header_preproc" >&6; }
20776
20777 # So? What about this header?
20778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20779 yes:no: )
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20784 ac_header_preproc=yes
20785 ;;
20786 no:yes:* )
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20790 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20794 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20799
20800 ;;
20801 esac
20802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
20806 else
20807 eval "$as_ac_Header=\$ac_header_preproc"
20808 fi
20809 ac_res=`eval echo '${'$as_ac_Header'}'`
20810 { echo "$as_me:$LINENO: result: $ac_res" >&5
20811 echo "${ECHO_T}$ac_res" >&6; }
20812
20813 fi
20814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20815 cat >>confdefs.h <<_ACEOF
20816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20817 _ACEOF
20818
20819 else
20820
20821 for ac_header in kerberos/krb.h
20822 do
20823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20828 echo $ECHO_N "(cached) $ECHO_C" >&6
20829 fi
20830 ac_res=`eval echo '${'$as_ac_Header'}'`
20831 { echo "$as_me:$LINENO: result: $ac_res" >&5
20832 echo "${ECHO_T}$ac_res" >&6; }
20833 else
20834 # Is the header compilable?
20835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20837 cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h. */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 $ac_includes_default
20844 #include <$ac_header>
20845 _ACEOF
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_compile") 2>conftest.er1
20854 ac_status=$?
20855 grep -v '^ *+' conftest.er1 >conftest.err
20856 rm -f conftest.er1
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest.$ac_objext; then
20863 ac_header_compiler=yes
20864 else
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20867
20868 ac_header_compiler=no
20869 fi
20870
20871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20873 echo "${ECHO_T}$ac_header_compiler" >&6; }
20874
20875 # Is the header present?
20876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20878 cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h. */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 #include <$ac_header>
20885 _ACEOF
20886 if { (ac_try="$ac_cpp conftest.$ac_ext"
20887 case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20890 esac
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20893 ac_status=$?
20894 grep -v '^ *+' conftest.er1 >conftest.err
20895 rm -f conftest.er1
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } >/dev/null && {
20899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20901 }; then
20902 ac_header_preproc=yes
20903 else
20904 echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20906
20907 ac_header_preproc=no
20908 fi
20909
20910 rm -f conftest.err conftest.$ac_ext
20911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20912 echo "${ECHO_T}$ac_header_preproc" >&6; }
20913
20914 # So? What about this header?
20915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20916 yes:no: )
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20921 ac_header_preproc=yes
20922 ;;
20923 no:yes:* )
20924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20936
20937 ;;
20938 esac
20939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944 eval "$as_ac_Header=\$ac_header_preproc"
20945 fi
20946 ac_res=`eval echo '${'$as_ac_Header'}'`
20947 { echo "$as_me:$LINENO: result: $ac_res" >&5
20948 echo "${ECHO_T}$ac_res" >&6; }
20949
20950 fi
20951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20952 cat >>confdefs.h <<_ACEOF
20953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20954 _ACEOF
20955
20956 fi
20957
20958 done
20959
20960 fi
20961
20962 done
20963
20964 fi
20965
20966 done
20967
20968 fi
20969
20970 for ac_header in com_err.h
20971 do
20972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20977 echo $ECHO_N "(cached) $ECHO_C" >&6
20978 fi
20979 ac_res=`eval echo '${'$as_ac_Header'}'`
20980 { echo "$as_me:$LINENO: result: $ac_res" >&5
20981 echo "${ECHO_T}$ac_res" >&6; }
20982 else
20983 # Is the header compilable?
20984 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20986 cat >conftest.$ac_ext <<_ACEOF
20987 /* confdefs.h. */
20988 _ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 $ac_includes_default
20993 #include <$ac_header>
20994 _ACEOF
20995 rm -f conftest.$ac_objext
20996 if { (ac_try="$ac_compile"
20997 case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21000 esac
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_compile") 2>conftest.er1
21003 ac_status=$?
21004 grep -v '^ *+' conftest.er1 >conftest.err
21005 rm -f conftest.er1
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } && {
21009 test -z "$ac_c_werror_flag" ||
21010 test ! -s conftest.err
21011 } && test -s conftest.$ac_objext; then
21012 ac_header_compiler=yes
21013 else
21014 echo "$as_me: failed program was:" >&5
21015 sed 's/^/| /' conftest.$ac_ext >&5
21016
21017 ac_header_compiler=no
21018 fi
21019
21020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21022 echo "${ECHO_T}$ac_header_compiler" >&6; }
21023
21024 # Is the header present?
21025 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21027 cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h. */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 #include <$ac_header>
21034 _ACEOF
21035 if { (ac_try="$ac_cpp conftest.$ac_ext"
21036 case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21039 esac
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21042 ac_status=$?
21043 grep -v '^ *+' conftest.er1 >conftest.err
21044 rm -f conftest.er1
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } >/dev/null && {
21048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21049 test ! -s conftest.err
21050 }; then
21051 ac_header_preproc=yes
21052 else
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056 ac_header_preproc=no
21057 fi
21058
21059 rm -f conftest.err conftest.$ac_ext
21060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21061 echo "${ECHO_T}$ac_header_preproc" >&6; }
21062
21063 # So? What about this header?
21064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21065 yes:no: )
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21070 ac_header_preproc=yes
21071 ;;
21072 no:yes:* )
21073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21085
21086 ;;
21087 esac
21088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21091 echo $ECHO_N "(cached) $ECHO_C" >&6
21092 else
21093 eval "$as_ac_Header=\$ac_header_preproc"
21094 fi
21095 ac_res=`eval echo '${'$as_ac_Header'}'`
21096 { echo "$as_me:$LINENO: result: $ac_res" >&5
21097 echo "${ECHO_T}$ac_res" >&6; }
21098
21099 fi
21100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21101 cat >>confdefs.h <<_ACEOF
21102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21103 _ACEOF
21104
21105 fi
21106
21107 done
21108
21109 fi
21110
21111 # Solaris requires -lintl if you want strerror (which calls dgettext)
21112 # to return localized messages.
21113
21114 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21115 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21116 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21117 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 else
21119 ac_check_lib_save_LIBS=$LIBS
21120 LIBS="-lintl $LIBS"
21121 cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h. */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127
21128 /* Override any GCC internal prototype to avoid an error.
21129 Use char because int might match the return type of a GCC
21130 builtin and then its argument prototype would still apply. */
21131 #ifdef __cplusplus
21132 extern "C"
21133 #endif
21134 char dgettext ();
21135 int
21136 main ()
21137 {
21138 return dgettext ();
21139 ;
21140 return 0;
21141 }
21142 _ACEOF
21143 rm -f conftest.$ac_objext conftest$ac_exeext
21144 if { (ac_try="$ac_link"
21145 case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21148 esac
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_link") 2>conftest.er1
21151 ac_status=$?
21152 grep -v '^ *+' conftest.er1 >conftest.err
21153 rm -f conftest.er1
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } && {
21157 test -z "$ac_c_werror_flag" ||
21158 test ! -s conftest.err
21159 } && test -s conftest$ac_exeext &&
21160 $as_test_x conftest$ac_exeext; then
21161 ac_cv_lib_intl_dgettext=yes
21162 else
21163 echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21165
21166 ac_cv_lib_intl_dgettext=no
21167 fi
21168
21169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21170 conftest$ac_exeext conftest.$ac_ext
21171 LIBS=$ac_check_lib_save_LIBS
21172 fi
21173 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21174 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21175 if test $ac_cv_lib_intl_dgettext = yes; then
21176 cat >>confdefs.h <<_ACEOF
21177 #define HAVE_LIBINTL 1
21178 _ACEOF
21179
21180 LIBS="-lintl $LIBS"
21181
21182 fi
21183
21184
21185 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21186 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21187 if test "${emacs_cv_localtime_cache+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21189 else
21190 if test x$ac_cv_func_tzset = xyes; then
21191 if test "$cross_compiling" = yes; then
21192 # If we have tzset, assume the worst when cross-compiling.
21193 emacs_cv_localtime_cache=yes
21194 else
21195 cat >conftest.$ac_ext <<_ACEOF
21196 /* confdefs.h. */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 #include <time.h>
21202 extern char **environ;
21203 unset_TZ ()
21204 {
21205 char **from, **to;
21206 for (to = from = environ; (*to = *from); from++)
21207 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21208 to++;
21209 }
21210 char TZ_GMT0[] = "TZ=GMT0";
21211 char TZ_PST8[] = "TZ=PST8";
21212 main()
21213 {
21214 time_t now = time ((time_t *) 0);
21215 int hour_GMT0, hour_unset;
21216 if (putenv (TZ_GMT0) != 0)
21217 exit (1);
21218 hour_GMT0 = localtime (&now)->tm_hour;
21219 unset_TZ ();
21220 hour_unset = localtime (&now)->tm_hour;
21221 if (putenv (TZ_PST8) != 0)
21222 exit (1);
21223 if (localtime (&now)->tm_hour == hour_GMT0)
21224 exit (1);
21225 unset_TZ ();
21226 if (localtime (&now)->tm_hour != hour_unset)
21227 exit (1);
21228 exit (0);
21229 }
21230 _ACEOF
21231 rm -f conftest$ac_exeext
21232 if { (ac_try="$ac_link"
21233 case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21236 esac
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238 (eval "$ac_link") 2>&5
21239 ac_status=$?
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21242 { (case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_try") 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 emacs_cv_localtime_cache=no
21252 else
21253 echo "$as_me: program exited with status $ac_status" >&5
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21256
21257 ( exit $ac_status )
21258 emacs_cv_localtime_cache=yes
21259 fi
21260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21261 fi
21262
21263
21264 else
21265 # If we lack tzset, report that localtime does not cache TZ,
21266 # since we can't invalidate the cache if we don't have tzset.
21267 emacs_cv_localtime_cache=no
21268 fi
21269 fi
21270 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21271 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21272 if test $emacs_cv_localtime_cache = yes; then
21273
21274 cat >>confdefs.h <<\_ACEOF
21275 #define LOCALTIME_CACHE 1
21276 _ACEOF
21277
21278 fi
21279
21280 if test "x$HAVE_TIMEVAL" = xyes; then
21281
21282 for ac_func in gettimeofday
21283 do
21284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21288 echo $ECHO_N "(cached) $ECHO_C" >&6
21289 else
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h. */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21298 #define $ac_func innocuous_$ac_func
21299
21300 /* System header to define __stub macros and hopefully few prototypes,
21301 which can conflict with char $ac_func (); below.
21302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21303 <limits.h> exists even on freestanding compilers. */
21304
21305 #ifdef __STDC__
21306 # include <limits.h>
21307 #else
21308 # include <assert.h>
21309 #endif
21310
21311 #undef $ac_func
21312
21313 /* Override any GCC internal prototype to avoid an error.
21314 Use char because int might match the return type of a GCC
21315 builtin and then its argument prototype would still apply. */
21316 #ifdef __cplusplus
21317 extern "C"
21318 #endif
21319 char $ac_func ();
21320 /* The GNU C library defines this for functions which it implements
21321 to always fail with ENOSYS. Some functions are actually named
21322 something starting with __ and the normal name is an alias. */
21323 #if defined __stub_$ac_func || defined __stub___$ac_func
21324 choke me
21325 #endif
21326
21327 int
21328 main ()
21329 {
21330 return $ac_func ();
21331 ;
21332 return 0;
21333 }
21334 _ACEOF
21335 rm -f conftest.$ac_objext conftest$ac_exeext
21336 if { (ac_try="$ac_link"
21337 case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_link") 2>conftest.er1
21343 ac_status=$?
21344 grep -v '^ *+' conftest.er1 >conftest.err
21345 rm -f conftest.er1
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } && {
21349 test -z "$ac_c_werror_flag" ||
21350 test ! -s conftest.err
21351 } && test -s conftest$ac_exeext &&
21352 $as_test_x conftest$ac_exeext; then
21353 eval "$as_ac_var=yes"
21354 else
21355 echo "$as_me: failed program was:" >&5
21356 sed 's/^/| /' conftest.$ac_ext >&5
21357
21358 eval "$as_ac_var=no"
21359 fi
21360
21361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21362 conftest$ac_exeext conftest.$ac_ext
21363 fi
21364 ac_res=`eval echo '${'$as_ac_var'}'`
21365 { echo "$as_me:$LINENO: result: $ac_res" >&5
21366 echo "${ECHO_T}$ac_res" >&6; }
21367 if test `eval echo '${'$as_ac_var'}'` = yes; then
21368 cat >>confdefs.h <<_ACEOF
21369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21370 _ACEOF
21371
21372 fi
21373 done
21374
21375 if test $ac_cv_func_gettimeofday = yes; then
21376 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21377 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21378 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 else
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h. */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387
21388 #ifdef TIME_WITH_SYS_TIME
21389 #include <sys/time.h>
21390 #include <time.h>
21391 #else
21392 #ifdef HAVE_SYS_TIME_H
21393 #include <sys/time.h>
21394 #else
21395 #include <time.h>
21396 #endif
21397 #endif
21398 int
21399 main ()
21400 {
21401 struct timeval time;
21402 gettimeofday (&time, 0);
21403 ;
21404 return 0;
21405 }
21406 _ACEOF
21407 rm -f conftest.$ac_objext
21408 if { (ac_try="$ac_compile"
21409 case "(($ac_try" in
21410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411 *) ac_try_echo=$ac_try;;
21412 esac
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414 (eval "$ac_compile") 2>conftest.er1
21415 ac_status=$?
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest.$ac_objext; then
21424 emacs_cv_gettimeofday_two_arguments=yes
21425 else
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429 emacs_cv_gettimeofday_two_arguments=no
21430 fi
21431
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 fi
21434 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21435 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21436 if test $emacs_cv_gettimeofday_two_arguments = no; then
21437
21438 cat >>confdefs.h <<\_ACEOF
21439 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21440 _ACEOF
21441
21442 fi
21443 fi
21444 fi
21445
21446 ok_so_far=yes
21447 { echo "$as_me:$LINENO: checking for socket" >&5
21448 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21449 if test "${ac_cv_func_socket+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452 cat >conftest.$ac_ext <<_ACEOF
21453 /* confdefs.h. */
21454 _ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21460 #define socket innocuous_socket
21461
21462 /* System header to define __stub macros and hopefully few prototypes,
21463 which can conflict with char socket (); below.
21464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21465 <limits.h> exists even on freestanding compilers. */
21466
21467 #ifdef __STDC__
21468 # include <limits.h>
21469 #else
21470 # include <assert.h>
21471 #endif
21472
21473 #undef socket
21474
21475 /* Override any GCC internal prototype to avoid an error.
21476 Use char because int might match the return type of a GCC
21477 builtin and then its argument prototype would still apply. */
21478 #ifdef __cplusplus
21479 extern "C"
21480 #endif
21481 char socket ();
21482 /* The GNU C library defines this for functions which it implements
21483 to always fail with ENOSYS. Some functions are actually named
21484 something starting with __ and the normal name is an alias. */
21485 #if defined __stub_socket || defined __stub___socket
21486 choke me
21487 #endif
21488
21489 int
21490 main ()
21491 {
21492 return socket ();
21493 ;
21494 return 0;
21495 }
21496 _ACEOF
21497 rm -f conftest.$ac_objext conftest$ac_exeext
21498 if { (ac_try="$ac_link"
21499 case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21502 esac
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_link") 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest$ac_exeext &&
21514 $as_test_x conftest$ac_exeext; then
21515 ac_cv_func_socket=yes
21516 else
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520 ac_cv_func_socket=no
21521 fi
21522
21523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21524 conftest$ac_exeext conftest.$ac_ext
21525 fi
21526 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21527 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21528 if test $ac_cv_func_socket = yes; then
21529 :
21530 else
21531 ok_so_far=no
21532 fi
21533
21534 if test $ok_so_far = yes; then
21535 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21536 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21537 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21538 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21539 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 fi
21541 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21542 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21543 else
21544 # Is the header compilable?
21545 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21546 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21547 cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h. */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 $ac_includes_default
21554 #include <netinet/in.h>
21555 _ACEOF
21556 rm -f conftest.$ac_objext
21557 if { (ac_try="$ac_compile"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21561 esac
21562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_compile") 2>conftest.er1
21564 ac_status=$?
21565 grep -v '^ *+' conftest.er1 >conftest.err
21566 rm -f conftest.er1
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } && {
21570 test -z "$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 } && test -s conftest.$ac_objext; then
21573 ac_header_compiler=yes
21574 else
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21577
21578 ac_header_compiler=no
21579 fi
21580
21581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21583 echo "${ECHO_T}$ac_header_compiler" >&6; }
21584
21585 # Is the header present?
21586 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21587 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21588 cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h. */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 #include <netinet/in.h>
21595 _ACEOF
21596 if { (ac_try="$ac_cpp conftest.$ac_ext"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21603 ac_status=$?
21604 grep -v '^ *+' conftest.er1 >conftest.err
21605 rm -f conftest.er1
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } >/dev/null && {
21609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 }; then
21612 ac_header_preproc=yes
21613 else
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21616
21617 ac_header_preproc=no
21618 fi
21619
21620 rm -f conftest.err conftest.$ac_ext
21621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21622 echo "${ECHO_T}$ac_header_preproc" >&6; }
21623
21624 # So? What about this header?
21625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21626 yes:no: )
21627 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21628 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21630 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21631 ac_header_preproc=yes
21632 ;;
21633 no:yes:* )
21634 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21635 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21637 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21639 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21641 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21642 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21643 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21645 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21646
21647 ;;
21648 esac
21649 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21650 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21651 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21652 echo $ECHO_N "(cached) $ECHO_C" >&6
21653 else
21654 ac_cv_header_netinet_in_h=$ac_header_preproc
21655 fi
21656 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21657 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21658
21659 fi
21660 if test $ac_cv_header_netinet_in_h = yes; then
21661 :
21662 else
21663 ok_so_far=no
21664 fi
21665
21666
21667 fi
21668 if test $ok_so_far = yes; then
21669 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21670 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21671 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21672 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21674 fi
21675 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21676 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21677 else
21678 # Is the header compilable?
21679 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21680 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21681 cat >conftest.$ac_ext <<_ACEOF
21682 /* confdefs.h. */
21683 _ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21687 $ac_includes_default
21688 #include <arpa/inet.h>
21689 _ACEOF
21690 rm -f conftest.$ac_objext
21691 if { (ac_try="$ac_compile"
21692 case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21695 esac
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_compile") 2>conftest.er1
21698 ac_status=$?
21699 grep -v '^ *+' conftest.er1 >conftest.err
21700 rm -f conftest.er1
21701 cat conftest.err >&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } && {
21704 test -z "$ac_c_werror_flag" ||
21705 test ! -s conftest.err
21706 } && test -s conftest.$ac_objext; then
21707 ac_header_compiler=yes
21708 else
21709 echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21711
21712 ac_header_compiler=no
21713 fi
21714
21715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21717 echo "${ECHO_T}$ac_header_compiler" >&6; }
21718
21719 # Is the header present?
21720 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21721 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21722 cat >conftest.$ac_ext <<_ACEOF
21723 /* confdefs.h. */
21724 _ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h. */
21728 #include <arpa/inet.h>
21729 _ACEOF
21730 if { (ac_try="$ac_cpp conftest.$ac_ext"
21731 case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21734 esac
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21737 ac_status=$?
21738 grep -v '^ *+' conftest.er1 >conftest.err
21739 rm -f conftest.er1
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } >/dev/null && {
21743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21744 test ! -s conftest.err
21745 }; then
21746 ac_header_preproc=yes
21747 else
21748 echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21750
21751 ac_header_preproc=no
21752 fi
21753
21754 rm -f conftest.err conftest.$ac_ext
21755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21756 echo "${ECHO_T}$ac_header_preproc" >&6; }
21757
21758 # So? What about this header?
21759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21760 yes:no: )
21761 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21762 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21764 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21765 ac_header_preproc=yes
21766 ;;
21767 no:yes:* )
21768 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21769 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21770 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21771 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21772 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21773 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21774 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21775 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21776 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21777 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21778 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21779 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21780
21781 ;;
21782 esac
21783 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21784 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21785 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21786 echo $ECHO_N "(cached) $ECHO_C" >&6
21787 else
21788 ac_cv_header_arpa_inet_h=$ac_header_preproc
21789 fi
21790 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21791 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21792
21793 fi
21794 if test $ac_cv_header_arpa_inet_h = yes; then
21795 :
21796 else
21797 ok_so_far=no
21798 fi
21799
21800
21801 fi
21802 if test $ok_so_far = yes; then
21803
21804 cat >>confdefs.h <<\_ACEOF
21805 #define HAVE_INET_SOCKETS 1
21806 _ACEOF
21807
21808 fi
21809
21810
21811 for ac_header in sys/ioctl.h
21812 do
21813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 fi
21820 ac_res=`eval echo '${'$as_ac_Header'}'`
21821 { echo "$as_me:$LINENO: result: $ac_res" >&5
21822 echo "${ECHO_T}$ac_res" >&6; }
21823 else
21824 # Is the header compilable?
21825 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21827 cat >conftest.$ac_ext <<_ACEOF
21828 /* confdefs.h. */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 $ac_includes_default
21834 #include <$ac_header>
21835 _ACEOF
21836 rm -f conftest.$ac_objext
21837 if { (ac_try="$ac_compile"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21841 esac
21842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_compile") 2>conftest.er1
21844 ac_status=$?
21845 grep -v '^ *+' conftest.er1 >conftest.err
21846 rm -f conftest.er1
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } && {
21850 test -z "$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21852 } && test -s conftest.$ac_objext; then
21853 ac_header_compiler=yes
21854 else
21855 echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21857
21858 ac_header_compiler=no
21859 fi
21860
21861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21863 echo "${ECHO_T}$ac_header_compiler" >&6; }
21864
21865 # Is the header present?
21866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21868 cat >conftest.$ac_ext <<_ACEOF
21869 /* confdefs.h. */
21870 _ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21874 #include <$ac_header>
21875 _ACEOF
21876 if { (ac_try="$ac_cpp conftest.$ac_ext"
21877 case "(($ac_try" in
21878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 *) ac_try_echo=$ac_try;;
21880 esac
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21883 ac_status=$?
21884 grep -v '^ *+' conftest.er1 >conftest.err
21885 rm -f conftest.er1
21886 cat conftest.err >&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } >/dev/null && {
21889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21890 test ! -s conftest.err
21891 }; then
21892 ac_header_preproc=yes
21893 else
21894 echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21896
21897 ac_header_preproc=no
21898 fi
21899
21900 rm -f conftest.err conftest.$ac_ext
21901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21902 echo "${ECHO_T}$ac_header_preproc" >&6; }
21903
21904 # So? What about this header?
21905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21906 yes:no: )
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21911 ac_header_preproc=yes
21912 ;;
21913 no:yes:* )
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21926
21927 ;;
21928 esac
21929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21932 echo $ECHO_N "(cached) $ECHO_C" >&6
21933 else
21934 eval "$as_ac_Header=\$ac_header_preproc"
21935 fi
21936 ac_res=`eval echo '${'$as_ac_Header'}'`
21937 { echo "$as_me:$LINENO: result: $ac_res" >&5
21938 echo "${ECHO_T}$ac_res" >&6; }
21939
21940 fi
21941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21942 cat >>confdefs.h <<_ACEOF
21943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21944 _ACEOF
21945
21946 fi
21947
21948 done
21949
21950
21951 if test -f /usr/lpp/X11/bin/smt.exp; then
21952
21953 cat >>confdefs.h <<\_ACEOF
21954 #define HAVE_AIX_SMT_EXP 1
21955 _ACEOF
21956
21957 fi
21958
21959 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21960 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
21961 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21962 { echo "$as_me:$LINENO: result: yes" >&5
21963 echo "${ECHO_T}yes" >&6; }
21964
21965 cat >>confdefs.h <<\_ACEOF
21966 #define HAVE_DEV_PTMX 1
21967 _ACEOF
21968
21969 else
21970 { echo "$as_me:$LINENO: result: no" >&5
21971 echo "${ECHO_T}no" >&6; }
21972 fi
21973
21974 { echo "$as_me:$LINENO: checking for pid_t" >&5
21975 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21976 if test "${ac_cv_type_pid_t+set}" = set; then
21977 echo $ECHO_N "(cached) $ECHO_C" >&6
21978 else
21979 cat >conftest.$ac_ext <<_ACEOF
21980 /* confdefs.h. */
21981 _ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 $ac_includes_default
21986 typedef pid_t ac__type_new_;
21987 int
21988 main ()
21989 {
21990 if ((ac__type_new_ *) 0)
21991 return 0;
21992 if (sizeof (ac__type_new_))
21993 return 0;
21994 ;
21995 return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext
21999 if { (ac_try="$ac_compile"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22003 esac
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005 (eval "$ac_compile") 2>conftest.er1
22006 ac_status=$?
22007 grep -v '^ *+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest.$ac_objext; then
22015 ac_cv_type_pid_t=yes
22016 else
22017 echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22019
22020 ac_cv_type_pid_t=no
22021 fi
22022
22023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22024 fi
22025 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22026 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22027 if test $ac_cv_type_pid_t = yes; then
22028 :
22029 else
22030
22031 cat >>confdefs.h <<_ACEOF
22032 #define pid_t int
22033 _ACEOF
22034
22035 fi
22036
22037
22038 for ac_header in vfork.h
22039 do
22040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22045 echo $ECHO_N "(cached) $ECHO_C" >&6
22046 fi
22047 ac_res=`eval echo '${'$as_ac_Header'}'`
22048 { echo "$as_me:$LINENO: result: $ac_res" >&5
22049 echo "${ECHO_T}$ac_res" >&6; }
22050 else
22051 # Is the header compilable?
22052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22054 cat >conftest.$ac_ext <<_ACEOF
22055 /* confdefs.h. */
22056 _ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h. */
22060 $ac_includes_default
22061 #include <$ac_header>
22062 _ACEOF
22063 rm -f conftest.$ac_objext
22064 if { (ac_try="$ac_compile"
22065 case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22068 esac
22069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22070 (eval "$ac_compile") 2>conftest.er1
22071 ac_status=$?
22072 grep -v '^ *+' conftest.er1 >conftest.err
22073 rm -f conftest.er1
22074 cat conftest.err >&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } && {
22077 test -z "$ac_c_werror_flag" ||
22078 test ! -s conftest.err
22079 } && test -s conftest.$ac_objext; then
22080 ac_header_compiler=yes
22081 else
22082 echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22084
22085 ac_header_compiler=no
22086 fi
22087
22088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22090 echo "${ECHO_T}$ac_header_compiler" >&6; }
22091
22092 # Is the header present?
22093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22095 cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h. */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22101 #include <$ac_header>
22102 _ACEOF
22103 if { (ac_try="$ac_cpp conftest.$ac_ext"
22104 case "(($ac_try" in
22105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106 *) ac_try_echo=$ac_try;;
22107 esac
22108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22110 ac_status=$?
22111 grep -v '^ *+' conftest.er1 >conftest.err
22112 rm -f conftest.er1
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } >/dev/null && {
22116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22117 test ! -s conftest.err
22118 }; then
22119 ac_header_preproc=yes
22120 else
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22123
22124 ac_header_preproc=no
22125 fi
22126
22127 rm -f conftest.err conftest.$ac_ext
22128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22129 echo "${ECHO_T}$ac_header_preproc" >&6; }
22130
22131 # So? What about this header?
22132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22133 yes:no: )
22134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22138 ac_header_preproc=yes
22139 ;;
22140 no:yes:* )
22141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22153
22154 ;;
22155 esac
22156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22159 echo $ECHO_N "(cached) $ECHO_C" >&6
22160 else
22161 eval "$as_ac_Header=\$ac_header_preproc"
22162 fi
22163 ac_res=`eval echo '${'$as_ac_Header'}'`
22164 { echo "$as_me:$LINENO: result: $ac_res" >&5
22165 echo "${ECHO_T}$ac_res" >&6; }
22166
22167 fi
22168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22169 cat >>confdefs.h <<_ACEOF
22170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22171 _ACEOF
22172
22173 fi
22174
22175 done
22176
22177
22178
22179 for ac_func in fork vfork
22180 do
22181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22184 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22185 echo $ECHO_N "(cached) $ECHO_C" >&6
22186 else
22187 cat >conftest.$ac_ext <<_ACEOF
22188 /* confdefs.h. */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22195 #define $ac_func innocuous_$ac_func
22196
22197 /* System header to define __stub macros and hopefully few prototypes,
22198 which can conflict with char $ac_func (); below.
22199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22200 <limits.h> exists even on freestanding compilers. */
22201
22202 #ifdef __STDC__
22203 # include <limits.h>
22204 #else
22205 # include <assert.h>
22206 #endif
22207
22208 #undef $ac_func
22209
22210 /* Override any GCC internal prototype to avoid an error.
22211 Use char because int might match the return type of a GCC
22212 builtin and then its argument prototype would still apply. */
22213 #ifdef __cplusplus
22214 extern "C"
22215 #endif
22216 char $ac_func ();
22217 /* The GNU C library defines this for functions which it implements
22218 to always fail with ENOSYS. Some functions are actually named
22219 something starting with __ and the normal name is an alias. */
22220 #if defined __stub_$ac_func || defined __stub___$ac_func
22221 choke me
22222 #endif
22223
22224 int
22225 main ()
22226 {
22227 return $ac_func ();
22228 ;
22229 return 0;
22230 }
22231 _ACEOF
22232 rm -f conftest.$ac_objext conftest$ac_exeext
22233 if { (ac_try="$ac_link"
22234 case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22237 esac
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_link") 2>conftest.er1
22240 ac_status=$?
22241 grep -v '^ *+' conftest.er1 >conftest.err
22242 rm -f conftest.er1
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest$ac_exeext &&
22249 $as_test_x conftest$ac_exeext; then
22250 eval "$as_ac_var=yes"
22251 else
22252 echo "$as_me: failed program was:" >&5
22253 sed 's/^/| /' conftest.$ac_ext >&5
22254
22255 eval "$as_ac_var=no"
22256 fi
22257
22258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22259 conftest$ac_exeext conftest.$ac_ext
22260 fi
22261 ac_res=`eval echo '${'$as_ac_var'}'`
22262 { echo "$as_me:$LINENO: result: $ac_res" >&5
22263 echo "${ECHO_T}$ac_res" >&6; }
22264 if test `eval echo '${'$as_ac_var'}'` = yes; then
22265 cat >>confdefs.h <<_ACEOF
22266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22267 _ACEOF
22268
22269 fi
22270 done
22271
22272 if test "x$ac_cv_func_fork" = xyes; then
22273 { echo "$as_me:$LINENO: checking for working fork" >&5
22274 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22275 if test "${ac_cv_func_fork_works+set}" = set; then
22276 echo $ECHO_N "(cached) $ECHO_C" >&6
22277 else
22278 if test "$cross_compiling" = yes; then
22279 ac_cv_func_fork_works=cross
22280 else
22281 cat >conftest.$ac_ext <<_ACEOF
22282 /* confdefs.h. */
22283 _ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h. */
22287 $ac_includes_default
22288 int
22289 main ()
22290 {
22291
22292 /* By Ruediger Kuhlmann. */
22293 return fork () < 0;
22294
22295 ;
22296 return 0;
22297 }
22298 _ACEOF
22299 rm -f conftest$ac_exeext
22300 if { (ac_try="$ac_link"
22301 case "(($ac_try" in
22302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303 *) ac_try_echo=$ac_try;;
22304 esac
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306 (eval "$ac_link") 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22310 { (case "(($ac_try" in
22311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312 *) ac_try_echo=$ac_try;;
22313 esac
22314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22315 (eval "$ac_try") 2>&5
22316 ac_status=$?
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); }; }; then
22319 ac_cv_func_fork_works=yes
22320 else
22321 echo "$as_me: program exited with status $ac_status" >&5
22322 echo "$as_me: failed program was:" >&5
22323 sed 's/^/| /' conftest.$ac_ext >&5
22324
22325 ( exit $ac_status )
22326 ac_cv_func_fork_works=no
22327 fi
22328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22329 fi
22330
22331
22332 fi
22333 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22334 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22335
22336 else
22337 ac_cv_func_fork_works=$ac_cv_func_fork
22338 fi
22339 if test "x$ac_cv_func_fork_works" = xcross; then
22340 case $host in
22341 *-*-amigaos* | *-*-msdosdjgpp*)
22342 # Override, as these systems have only a dummy fork() stub
22343 ac_cv_func_fork_works=no
22344 ;;
22345 *)
22346 ac_cv_func_fork_works=yes
22347 ;;
22348 esac
22349 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22350 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22351 fi
22352 ac_cv_func_vfork_works=$ac_cv_func_vfork
22353 if test "x$ac_cv_func_vfork" = xyes; then
22354 { echo "$as_me:$LINENO: checking for working vfork" >&5
22355 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22356 if test "${ac_cv_func_vfork_works+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22358 else
22359 if test "$cross_compiling" = yes; then
22360 ac_cv_func_vfork_works=cross
22361 else
22362 cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h. */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22368 /* Thanks to Paul Eggert for this test. */
22369 $ac_includes_default
22370 #include <sys/wait.h>
22371 #ifdef HAVE_VFORK_H
22372 # include <vfork.h>
22373 #endif
22374 /* On some sparc systems, changes by the child to local and incoming
22375 argument registers are propagated back to the parent. The compiler
22376 is told about this with #include <vfork.h>, but some compilers
22377 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22378 static variable whose address is put into a register that is
22379 clobbered by the vfork. */
22380 static void
22381 #ifdef __cplusplus
22382 sparc_address_test (int arg)
22383 # else
22384 sparc_address_test (arg) int arg;
22385 #endif
22386 {
22387 static pid_t child;
22388 if (!child) {
22389 child = vfork ();
22390 if (child < 0) {
22391 perror ("vfork");
22392 _exit(2);
22393 }
22394 if (!child) {
22395 arg = getpid();
22396 write(-1, "", 0);
22397 _exit (arg);
22398 }
22399 }
22400 }
22401
22402 int
22403 main ()
22404 {
22405 pid_t parent = getpid ();
22406 pid_t child;
22407
22408 sparc_address_test (0);
22409
22410 child = vfork ();
22411
22412 if (child == 0) {
22413 /* Here is another test for sparc vfork register problems. This
22414 test uses lots of local variables, at least as many local
22415 variables as main has allocated so far including compiler
22416 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22417 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22418 reuse the register of parent for one of the local variables,
22419 since it will think that parent can't possibly be used any more
22420 in this routine. Assigning to the local variable will thus
22421 munge parent in the parent process. */
22422 pid_t
22423 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22424 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22425 /* Convince the compiler that p..p7 are live; otherwise, it might
22426 use the same hardware register for all 8 local variables. */
22427 if (p != p1 || p != p2 || p != p3 || p != p4
22428 || p != p5 || p != p6 || p != p7)
22429 _exit(1);
22430
22431 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22432 from child file descriptors. If the child closes a descriptor
22433 before it execs or exits, this munges the parent's descriptor
22434 as well. Test for this by closing stdout in the child. */
22435 _exit(close(fileno(stdout)) != 0);
22436 } else {
22437 int status;
22438 struct stat st;
22439
22440 while (wait(&status) != child)
22441 ;
22442 return (
22443 /* Was there some problem with vforking? */
22444 child < 0
22445
22446 /* Did the child fail? (This shouldn't happen.) */
22447 || status
22448
22449 /* Did the vfork/compiler bug occur? */
22450 || parent != getpid()
22451
22452 /* Did the file descriptor bug occur? */
22453 || fstat(fileno(stdout), &st) != 0
22454 );
22455 }
22456 }
22457 _ACEOF
22458 rm -f conftest$ac_exeext
22459 if { (ac_try="$ac_link"
22460 case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22463 esac
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_link") 2>&5
22466 ac_status=$?
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22469 { (case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_try") 2>&5
22475 ac_status=$?
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); }; }; then
22478 ac_cv_func_vfork_works=yes
22479 else
22480 echo "$as_me: program exited with status $ac_status" >&5
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22483
22484 ( exit $ac_status )
22485 ac_cv_func_vfork_works=no
22486 fi
22487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22488 fi
22489
22490
22491 fi
22492 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22493 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22494
22495 fi;
22496 if test "x$ac_cv_func_fork_works" = xcross; then
22497 ac_cv_func_vfork_works=$ac_cv_func_vfork
22498 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22499 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22500 fi
22501
22502 if test "x$ac_cv_func_vfork_works" = xyes; then
22503
22504 cat >>confdefs.h <<\_ACEOF
22505 #define HAVE_WORKING_VFORK 1
22506 _ACEOF
22507
22508 else
22509
22510 cat >>confdefs.h <<\_ACEOF
22511 #define vfork fork
22512 _ACEOF
22513
22514 fi
22515 if test "x$ac_cv_func_fork_works" = xyes; then
22516
22517 cat >>confdefs.h <<\_ACEOF
22518 #define HAVE_WORKING_FORK 1
22519 _ACEOF
22520
22521 fi
22522
22523
22524 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22525 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22526 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529 cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h. */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535 #include <langinfo.h>
22536 int
22537 main ()
22538 {
22539 char* cs = nl_langinfo(CODESET);
22540 ;
22541 return 0;
22542 }
22543 _ACEOF
22544 rm -f conftest.$ac_objext conftest$ac_exeext
22545 if { (ac_try="$ac_link"
22546 case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22549 esac
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551 (eval "$ac_link") 2>conftest.er1
22552 ac_status=$?
22553 grep -v '^ *+' conftest.er1 >conftest.err
22554 rm -f conftest.er1
22555 cat conftest.err >&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } && {
22558 test -z "$ac_c_werror_flag" ||
22559 test ! -s conftest.err
22560 } && test -s conftest$ac_exeext &&
22561 $as_test_x conftest$ac_exeext; then
22562 emacs_cv_langinfo_codeset=yes
22563 else
22564 echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567 emacs_cv_langinfo_codeset=no
22568 fi
22569
22570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22571 conftest$ac_exeext conftest.$ac_ext
22572
22573 fi
22574 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22575 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22576 if test $emacs_cv_langinfo_codeset = yes; then
22577
22578 cat >>confdefs.h <<\_ACEOF
22579 #define HAVE_LANGINFO_CODESET 1
22580 _ACEOF
22581
22582 fi
22583
22584 { echo "$as_me:$LINENO: checking for size_t" >&5
22585 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22586 if test "${ac_cv_type_size_t+set}" = set; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22588 else
22589 cat >conftest.$ac_ext <<_ACEOF
22590 /* confdefs.h. */
22591 _ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22595 $ac_includes_default
22596 typedef size_t ac__type_new_;
22597 int
22598 main ()
22599 {
22600 if ((ac__type_new_ *) 0)
22601 return 0;
22602 if (sizeof (ac__type_new_))
22603 return 0;
22604 ;
22605 return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext
22609 if { (ac_try="$ac_compile"
22610 case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_compile") 2>conftest.er1
22616 ac_status=$?
22617 grep -v '^ *+' conftest.er1 >conftest.err
22618 rm -f conftest.er1
22619 cat conftest.err >&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && {
22622 test -z "$ac_c_werror_flag" ||
22623 test ! -s conftest.err
22624 } && test -s conftest.$ac_objext; then
22625 ac_cv_type_size_t=yes
22626 else
22627 echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22629
22630 ac_cv_type_size_t=no
22631 fi
22632
22633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634 fi
22635 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22636 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22637 if test $ac_cv_type_size_t = yes; then
22638
22639 cat >>confdefs.h <<_ACEOF
22640 #define HAVE_SIZE_T 1
22641 _ACEOF
22642
22643
22644 fi
22645
22646
22647 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22648 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22649 if test "${ac_cv_type_mbstate_t+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652 cat >conftest.$ac_ext <<_ACEOF
22653 /* confdefs.h. */
22654 _ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 $ac_includes_default
22659 # include <wchar.h>
22660 int
22661 main ()
22662 {
22663 mbstate_t x; return sizeof x;
22664 ;
22665 return 0;
22666 }
22667 _ACEOF
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22673 esac
22674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_compile") 2>conftest.er1
22676 ac_status=$?
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } && {
22682 test -z "$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 } && test -s conftest.$ac_objext; then
22685 ac_cv_type_mbstate_t=yes
22686 else
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690 ac_cv_type_mbstate_t=no
22691 fi
22692
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694 fi
22695 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22696 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22697 if test $ac_cv_type_mbstate_t = yes; then
22698
22699 cat >>confdefs.h <<\_ACEOF
22700 #define HAVE_MBSTATE_T 1
22701 _ACEOF
22702
22703 else
22704
22705 cat >>confdefs.h <<\_ACEOF
22706 #define mbstate_t int
22707 _ACEOF
22708
22709 fi
22710
22711 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22712 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22713 if test "${emacs_cv_c_restrict+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22715 else
22716 cat >conftest.$ac_ext <<_ACEOF
22717 /* confdefs.h. */
22718 _ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 void fred (int *restrict x);
22723 int
22724 main ()
22725 {
22726
22727 ;
22728 return 0;
22729 }
22730 _ACEOF
22731 rm -f conftest.$ac_objext
22732 if { (ac_try="$ac_compile"
22733 case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22736 esac
22737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_compile") 2>conftest.er1
22739 ac_status=$?
22740 grep -v '^ *+' conftest.er1 >conftest.err
22741 rm -f conftest.er1
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } && {
22745 test -z "$ac_c_werror_flag" ||
22746 test ! -s conftest.err
22747 } && test -s conftest.$ac_objext; then
22748 emacs_cv_c_restrict=yes
22749 else
22750 echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22752
22753 cat >conftest.$ac_ext <<_ACEOF
22754 /* confdefs.h. */
22755 _ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h. */
22759 void fred (int *__restrict x);
22760 int
22761 main ()
22762 {
22763
22764 ;
22765 return 0;
22766 }
22767 _ACEOF
22768 rm -f conftest.$ac_objext
22769 if { (ac_try="$ac_compile"
22770 case "(($ac_try" in
22771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772 *) ac_try_echo=$ac_try;;
22773 esac
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775 (eval "$ac_compile") 2>conftest.er1
22776 ac_status=$?
22777 grep -v '^ *+' conftest.er1 >conftest.err
22778 rm -f conftest.er1
22779 cat conftest.err >&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } && {
22782 test -z "$ac_c_werror_flag" ||
22783 test ! -s conftest.err
22784 } && test -s conftest.$ac_objext; then
22785 emacs_cv_c_restrict=__restrict
22786 else
22787 echo "$as_me: failed program was:" >&5
22788 sed 's/^/| /' conftest.$ac_ext >&5
22789
22790 emacs_cv_c_restrict=no
22791 fi
22792
22793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794 fi
22795
22796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797 fi
22798 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22799 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22800 case "$emacs_cv_c_restrict" in
22801 yes) emacs_restrict=restrict;;
22802 no) emacs_restrict="";;
22803 *) emacs_restrict="$emacs_cv_c_restrict";;
22804 esac
22805 if test "$emacs_restrict" != __restrict; then
22806
22807 cat >>confdefs.h <<_ACEOF
22808 #define __restrict $emacs_restrict
22809 _ACEOF
22810
22811 fi
22812
22813 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22814 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22815 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22816 echo $ECHO_N "(cached) $ECHO_C" >&6
22817 else
22818 cat >conftest.$ac_ext <<_ACEOF
22819 /* confdefs.h. */
22820 _ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h. */
22824 void fred (int x[__restrict]);
22825 int
22826 main ()
22827 {
22828
22829 ;
22830 return 0;
22831 }
22832 _ACEOF
22833 rm -f conftest.$ac_objext
22834 if { (ac_try="$ac_compile"
22835 case "(($ac_try" in
22836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22838 esac
22839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22840 (eval "$ac_compile") 2>conftest.er1
22841 ac_status=$?
22842 grep -v '^ *+' conftest.er1 >conftest.err
22843 rm -f conftest.er1
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest.$ac_objext; then
22850 emacs_cv_c_restrict_arr=yes
22851 else
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22854
22855 emacs_cv_c_restrict_arr=no
22856 fi
22857
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859 fi
22860 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22861 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22862 if test "$emacs_cv_c_restrict_arr" = yes; then
22863
22864 cat >>confdefs.h <<\_ACEOF
22865 #define __restrict_arr __restrict
22866 _ACEOF
22867
22868 fi
22869
22870
22871
22872 # Set up the CFLAGS for real compilation, so we can substitute it.
22873 CFLAGS="$REAL_CFLAGS"
22874 CPPFLAGS="$REAL_CPPFLAGS"
22875
22876 #### Find out which version of Emacs this is.
22877 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22878 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22879 if test x"${version}" = x; then
22880 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22881 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22882 { (exit 1); exit 1; }; }
22883 fi
22884
22885 ### Specify what sort of things we'll be editing into Makefile and config.h.
22886 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922 cat >>confdefs.h <<_ACEOF
22923 #define EMACS_CONFIGURATION "${canonical}"
22924 _ACEOF
22925
22926
22927 cat >>confdefs.h <<_ACEOF
22928 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22929 _ACEOF
22930
22931
22932 cat >>confdefs.h <<_ACEOF
22933 #define config_machfile "${machfile}"
22934 _ACEOF
22935
22936
22937 cat >>confdefs.h <<_ACEOF
22938 #define config_opsysfile "${opsysfile}"
22939 _ACEOF
22940
22941
22942 cat >>confdefs.h <<_ACEOF
22943 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22944 _ACEOF
22945
22946
22947 cat >>confdefs.h <<_ACEOF
22948 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22949 _ACEOF
22950
22951
22952 cat >>confdefs.h <<_ACEOF
22953 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22954 _ACEOF
22955
22956
22957 cat >>confdefs.h <<_ACEOF
22958 #define UNEXEC_SRC ${UNEXEC_SRC}
22959 _ACEOF
22960
22961
22962 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22963
22964 cat >>confdefs.h <<\_ACEOF
22965 #define HAVE_X_WINDOWS 1
22966 _ACEOF
22967
22968 fi
22969 if test "${USE_X_TOOLKIT}" != "none" ; then
22970
22971 cat >>confdefs.h <<\_ACEOF
22972 #define USE_X_TOOLKIT 1
22973 _ACEOF
22974
22975 fi
22976 if test "${HAVE_X11}" = "yes" ; then
22977
22978 cat >>confdefs.h <<\_ACEOF
22979 #define HAVE_X11 1
22980 _ACEOF
22981
22982 fi
22983 if test "${HAVE_XFREE386}" = "yes" ; then
22984
22985 cat >>confdefs.h <<\_ACEOF
22986 #define HAVE_XFREE386 1
22987 _ACEOF
22988
22989 fi
22990 if test "${HAVE_MENUS}" = "yes" ; then
22991
22992 cat >>confdefs.h <<\_ACEOF
22993 #define HAVE_MENUS 1
22994 _ACEOF
22995
22996 fi
22997 if test "${GNU_MALLOC}" = "yes" ; then
22998
22999 cat >>confdefs.h <<\_ACEOF
23000 #define GNU_MALLOC 1
23001 _ACEOF
23002
23003 fi
23004 if test "${REL_ALLOC}" = "yes" ; then
23005
23006 cat >>confdefs.h <<\_ACEOF
23007 #define REL_ALLOC 1
23008 _ACEOF
23009
23010 fi
23011
23012
23013
23014
23015
23016 #### Report on what we decided to do.
23017 #### Report GTK as a toolkit, even if it doesn't use Xt.
23018 #### It makes printing result more understandable as using GTK sets
23019 #### toolkit_scroll_bars to yes by default.
23020 if test "${HAVE_GTK}" = "yes"; then
23021 USE_X_TOOLKIT=GTK
23022 fi
23023
23024 echo "
23025 Configured for \`${canonical}'.
23026
23027 Where should the build process find the source code? ${srcdir}
23028 What operating system and machine description files should Emacs use?
23029 \`${opsysfile}' and \`${machfile}'
23030 What compiler should emacs be built with? ${CC} ${CFLAGS}
23031 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23032 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23033 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23034 What window system should Emacs use? ${window_system}
23035 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23036
23037 if test -n "${x_includes}"; then
23038 echo " Where do we find X Windows header files? ${x_includes}"
23039 else
23040 echo " Where do we find X Windows header files? Standard dirs"
23041 fi
23042 if test -n "${x_libraries}"; then
23043 echo " Where do we find X Windows libraries? ${x_libraries}"
23044 else
23045 echo " Where do we find X Windows libraries? Standard dirs"
23046 fi
23047
23048 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23049 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23050 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23051 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23052 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23053 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23054 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23055 echo
23056
23057 if test $USE_XASSERTS = yes; then
23058 echo " Compiling with asserts turned on."
23059 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23060 echo
23061 fi
23062
23063 if test "$USE_X_TOOLKIT" = GTK; then
23064 case "$canonical" in
23065 *cygwin*)
23066 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23067 will probably get a crash on startup. If this happens, please use another
23068 toolkit for Emacs. See etc/PROBLEMS for more information."
23069 ;;
23070 esac
23071 fi
23072
23073
23074
23075 # Remove any trailing slashes in these variables.
23076 test "${prefix}" != NONE &&
23077 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23078 test "${exec_prefix}" != NONE &&
23079 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23080
23081 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23082 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23083 ## from Makefile.c can correctly provide the arg `-traditional' to the
23084 ## C preprocessor.
23085
23086 cat >conftest.$ac_ext <<_ACEOF
23087 /* confdefs.h. */
23088 _ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23092 yes..yes
23093 _ACEOF
23094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23095 $EGREP "yes..yes" >/dev/null 2>&1; then
23096 CPP_NEED_TRADITIONAL=no
23097 else
23098 CPP_NEED_TRADITIONAL=yes
23099 fi
23100 rm -f conftest*
23101
23102
23103 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"
23104
23105 ac_config_commands="$ac_config_commands default"
23106
23107 cat >confcache <<\_ACEOF
23108 # This file is a shell script that caches the results of configure
23109 # tests run on this system so they can be shared between configure
23110 # scripts and configure runs, see configure's option --config-cache.
23111 # It is not useful on other systems. If it contains results you don't
23112 # want to keep, you may remove or edit it.
23113 #
23114 # config.status only pays attention to the cache file if you give it
23115 # the --recheck option to rerun configure.
23116 #
23117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23119 # following values.
23120
23121 _ACEOF
23122
23123 # The following way of writing the cache mishandles newlines in values,
23124 # but we know of no workaround that is simple, portable, and efficient.
23125 # So, we kill variables containing newlines.
23126 # Ultrix sh set writes to stderr and can't be redirected directly,
23127 # and sets the high bit in the cache file unless we assign to the vars.
23128 (
23129 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23130 eval ac_val=\$$ac_var
23131 case $ac_val in #(
23132 *${as_nl}*)
23133 case $ac_var in #(
23134 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23135 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23136 esac
23137 case $ac_var in #(
23138 _ | IFS | as_nl) ;; #(
23139 *) $as_unset $ac_var ;;
23140 esac ;;
23141 esac
23142 done
23143
23144 (set) 2>&1 |
23145 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23146 *${as_nl}ac_space=\ *)
23147 # `set' does not quote correctly, so add quotes (double-quote
23148 # substitution turns \\\\ into \\, and sed turns \\ into \).
23149 sed -n \
23150 "s/'/'\\\\''/g;
23151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23152 ;; #(
23153 *)
23154 # `set' quotes correctly as required by POSIX, so do not add quotes.
23155 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23156 ;;
23157 esac |
23158 sort
23159 ) |
23160 sed '
23161 /^ac_cv_env_/b end
23162 t clear
23163 :clear
23164 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23165 t end
23166 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23167 :end' >>confcache
23168 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23169 if test -w "$cache_file"; then
23170 test "x$cache_file" != "x/dev/null" &&
23171 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23172 echo "$as_me: updating cache $cache_file" >&6;}
23173 cat confcache >$cache_file
23174 else
23175 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23176 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23177 fi
23178 fi
23179 rm -f confcache
23180
23181 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23182 # Let make expand exec_prefix.
23183 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23184
23185 DEFS=-DHAVE_CONFIG_H
23186
23187 ac_libobjs=
23188 ac_ltlibobjs=
23189 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23190 # 1. Remove the extension, and $U if already installed.
23191 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23192 ac_i=`echo "$ac_i" | sed "$ac_script"`
23193 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23194 # will be set to the directory where LIBOBJS objects are built.
23195 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23196 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23197 done
23198 LIBOBJS=$ac_libobjs
23199
23200 LTLIBOBJS=$ac_ltlibobjs
23201
23202
23203
23204 : ${CONFIG_STATUS=./config.status}
23205 ac_clean_files_save=$ac_clean_files
23206 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23207 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23208 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23209 cat >$CONFIG_STATUS <<_ACEOF
23210 #! $SHELL
23211 # Generated by $as_me.
23212 # Run this file to recreate the current configuration.
23213 # Compiler output produced by configure, useful for debugging
23214 # configure, is in config.log if it exists.
23215
23216 debug=false
23217 ac_cs_recheck=false
23218 ac_cs_silent=false
23219 SHELL=\${CONFIG_SHELL-$SHELL}
23220 _ACEOF
23221
23222 cat >>$CONFIG_STATUS <<\_ACEOF
23223 ## --------------------- ##
23224 ## M4sh Initialization. ##
23225 ## --------------------- ##
23226
23227 # Be more Bourne compatible
23228 DUALCASE=1; export DUALCASE # for MKS sh
23229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23230 emulate sh
23231 NULLCMD=:
23232 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23233 # is contrary to our usage. Disable this feature.
23234 alias -g '${1+"$@"}'='"$@"'
23235 setopt NO_GLOB_SUBST
23236 else
23237 case `(set -o) 2>/dev/null` in
23238 *posix*) set -o posix ;;
23239 esac
23240
23241 fi
23242
23243
23244
23245
23246 # PATH needs CR
23247 # Avoid depending upon Character Ranges.
23248 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23249 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23250 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23251 as_cr_digits='0123456789'
23252 as_cr_alnum=$as_cr_Letters$as_cr_digits
23253
23254 # The user is always right.
23255 if test "${PATH_SEPARATOR+set}" != set; then
23256 echo "#! /bin/sh" >conf$$.sh
23257 echo "exit 0" >>conf$$.sh
23258 chmod +x conf$$.sh
23259 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23260 PATH_SEPARATOR=';'
23261 else
23262 PATH_SEPARATOR=:
23263 fi
23264 rm -f conf$$.sh
23265 fi
23266
23267 # Support unset when possible.
23268 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23269 as_unset=unset
23270 else
23271 as_unset=false
23272 fi
23273
23274
23275 # IFS
23276 # We need space, tab and new line, in precisely that order. Quoting is
23277 # there to prevent editors from complaining about space-tab.
23278 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23279 # splitting by setting IFS to empty value.)
23280 as_nl='
23281 '
23282 IFS=" "" $as_nl"
23283
23284 # Find who we are. Look in the path if we contain no directory separator.
23285 case $0 in
23286 *[\\/]* ) as_myself=$0 ;;
23287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23288 for as_dir in $PATH
23289 do
23290 IFS=$as_save_IFS
23291 test -z "$as_dir" && as_dir=.
23292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23293 done
23294 IFS=$as_save_IFS
23295
23296 ;;
23297 esac
23298 # We did not find ourselves, most probably we were run as `sh COMMAND'
23299 # in which case we are not to be found in the path.
23300 if test "x$as_myself" = x; then
23301 as_myself=$0
23302 fi
23303 if test ! -f "$as_myself"; then
23304 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23305 { (exit 1); exit 1; }
23306 fi
23307
23308 # Work around bugs in pre-3.0 UWIN ksh.
23309 for as_var in ENV MAIL MAILPATH
23310 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23311 done
23312 PS1='$ '
23313 PS2='> '
23314 PS4='+ '
23315
23316 # NLS nuisances.
23317 for as_var in \
23318 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23319 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23320 LC_TELEPHONE LC_TIME
23321 do
23322 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23323 eval $as_var=C; export $as_var
23324 else
23325 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23326 fi
23327 done
23328
23329 # Required to use basename.
23330 if expr a : '\(a\)' >/dev/null 2>&1 &&
23331 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23332 as_expr=expr
23333 else
23334 as_expr=false
23335 fi
23336
23337 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23338 as_basename=basename
23339 else
23340 as_basename=false
23341 fi
23342
23343
23344 # Name of the executable.
23345 as_me=`$as_basename -- "$0" ||
23346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23347 X"$0" : 'X\(//\)$' \| \
23348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23349 echo X/"$0" |
23350 sed '/^.*\/\([^/][^/]*\)\/*$/{
23351 s//\1/
23352 q
23353 }
23354 /^X\/\(\/\/\)$/{
23355 s//\1/
23356 q
23357 }
23358 /^X\/\(\/\).*/{
23359 s//\1/
23360 q
23361 }
23362 s/.*/./; q'`
23363
23364 # CDPATH.
23365 $as_unset CDPATH
23366
23367
23368
23369 as_lineno_1=$LINENO
23370 as_lineno_2=$LINENO
23371 test "x$as_lineno_1" != "x$as_lineno_2" &&
23372 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23373
23374 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23375 # uniformly replaced by the line number. The first 'sed' inserts a
23376 # line-number line after each line using $LINENO; the second 'sed'
23377 # does the real work. The second script uses 'N' to pair each
23378 # line-number line with the line containing $LINENO, and appends
23379 # trailing '-' during substitution so that $LINENO is not a special
23380 # case at line end.
23381 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23382 # scripts with optimization help from Paolo Bonzini. Blame Lee
23383 # E. McMahon (1931-1989) for sed's syntax. :-)
23384 sed -n '
23385 p
23386 /[$]LINENO/=
23387 ' <$as_myself |
23388 sed '
23389 s/[$]LINENO.*/&-/
23390 t lineno
23391 b
23392 :lineno
23393 N
23394 :loop
23395 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23396 t loop
23397 s/-\n.*//
23398 ' >$as_me.lineno &&
23399 chmod +x "$as_me.lineno" ||
23400 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23401 { (exit 1); exit 1; }; }
23402
23403 # Don't try to exec as it changes $[0], causing all sort of problems
23404 # (the dirname of $[0] is not the place where we might find the
23405 # original and so on. Autoconf is especially sensitive to this).
23406 . "./$as_me.lineno"
23407 # Exit status is that of the last command.
23408 exit
23409 }
23410
23411
23412 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23413 as_dirname=dirname
23414 else
23415 as_dirname=false
23416 fi
23417
23418 ECHO_C= ECHO_N= ECHO_T=
23419 case `echo -n x` in
23420 -n*)
23421 case `echo 'x\c'` in
23422 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23423 *) ECHO_C='\c';;
23424 esac;;
23425 *)
23426 ECHO_N='-n';;
23427 esac
23428
23429 if expr a : '\(a\)' >/dev/null 2>&1 &&
23430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23431 as_expr=expr
23432 else
23433 as_expr=false
23434 fi
23435
23436 rm -f conf$$ conf$$.exe conf$$.file
23437 if test -d conf$$.dir; then
23438 rm -f conf$$.dir/conf$$.file
23439 else
23440 rm -f conf$$.dir
23441 mkdir conf$$.dir
23442 fi
23443 echo >conf$$.file
23444 if ln -s conf$$.file conf$$ 2>/dev/null; then
23445 as_ln_s='ln -s'
23446 # ... but there are two gotchas:
23447 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23448 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23449 # In both cases, we have to default to `cp -p'.
23450 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23451 as_ln_s='cp -p'
23452 elif ln conf$$.file conf$$ 2>/dev/null; then
23453 as_ln_s=ln
23454 else
23455 as_ln_s='cp -p'
23456 fi
23457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23458 rmdir conf$$.dir 2>/dev/null
23459
23460 if mkdir -p . 2>/dev/null; then
23461 as_mkdir_p=:
23462 else
23463 test -d ./-p && rmdir ./-p
23464 as_mkdir_p=false
23465 fi
23466
23467 if test -x / >/dev/null 2>&1; then
23468 as_test_x='test -x'
23469 else
23470 if ls -dL / >/dev/null 2>&1; then
23471 as_ls_L_option=L
23472 else
23473 as_ls_L_option=
23474 fi
23475 as_test_x='
23476 eval sh -c '\''
23477 if test -d "$1"; then
23478 test -d "$1/.";
23479 else
23480 case $1 in
23481 -*)set "./$1";;
23482 esac;
23483 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23484 ???[sx]*):;;*)false;;esac;fi
23485 '\'' sh
23486 '
23487 fi
23488 as_executable_p=$as_test_x
23489
23490 # Sed expression to map a string onto a valid CPP name.
23491 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23492
23493 # Sed expression to map a string onto a valid variable name.
23494 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23495
23496
23497 exec 6>&1
23498
23499 # Save the log message, to keep $[0] and so on meaningful, and to
23500 # report actual input values of CONFIG_FILES etc. instead of their
23501 # values after options handling.
23502 ac_log="
23503 This file was extended by $as_me, which was
23504 generated by GNU Autoconf 2.61. Invocation command line was
23505
23506 CONFIG_FILES = $CONFIG_FILES
23507 CONFIG_HEADERS = $CONFIG_HEADERS
23508 CONFIG_LINKS = $CONFIG_LINKS
23509 CONFIG_COMMANDS = $CONFIG_COMMANDS
23510 $ $0 $@
23511
23512 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23513 "
23514
23515 _ACEOF
23516
23517 cat >>$CONFIG_STATUS <<_ACEOF
23518 # Files that config.status was made for.
23519 config_files="$ac_config_files"
23520 config_headers="$ac_config_headers"
23521 config_commands="$ac_config_commands"
23522
23523 _ACEOF
23524
23525 cat >>$CONFIG_STATUS <<\_ACEOF
23526 ac_cs_usage="\
23527 \`$as_me' instantiates files from templates according to the
23528 current configuration.
23529
23530 Usage: $0 [OPTIONS] [FILE]...
23531
23532 -h, --help print this help, then exit
23533 -V, --version print version number and configuration settings, then exit
23534 -q, --quiet do not print progress messages
23535 -d, --debug don't remove temporary files
23536 --recheck update $as_me by reconfiguring in the same conditions
23537 --file=FILE[:TEMPLATE]
23538 instantiate the configuration file FILE
23539 --header=FILE[:TEMPLATE]
23540 instantiate the configuration header FILE
23541
23542 Configuration files:
23543 $config_files
23544
23545 Configuration headers:
23546 $config_headers
23547
23548 Configuration commands:
23549 $config_commands
23550
23551 Report bugs to <bug-autoconf@gnu.org>."
23552
23553 _ACEOF
23554 cat >>$CONFIG_STATUS <<_ACEOF
23555 ac_cs_version="\\
23556 config.status
23557 configured by $0, generated by GNU Autoconf 2.61,
23558 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23559
23560 Copyright (C) 2006 Free Software Foundation, Inc.
23561 This config.status script is free software; the Free Software Foundation
23562 gives unlimited permission to copy, distribute and modify it."
23563
23564 ac_pwd='$ac_pwd'
23565 srcdir='$srcdir'
23566 INSTALL='$INSTALL'
23567 _ACEOF
23568
23569 cat >>$CONFIG_STATUS <<\_ACEOF
23570 # If no file are specified by the user, then we need to provide default
23571 # value. By we need to know if files were specified by the user.
23572 ac_need_defaults=:
23573 while test $# != 0
23574 do
23575 case $1 in
23576 --*=*)
23577 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23578 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23579 ac_shift=:
23580 ;;
23581 *)
23582 ac_option=$1
23583 ac_optarg=$2
23584 ac_shift=shift
23585 ;;
23586 esac
23587
23588 case $ac_option in
23589 # Handling of the options.
23590 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23591 ac_cs_recheck=: ;;
23592 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23593 echo "$ac_cs_version"; exit ;;
23594 --debug | --debu | --deb | --de | --d | -d )
23595 debug=: ;;
23596 --file | --fil | --fi | --f )
23597 $ac_shift
23598 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23599 ac_need_defaults=false;;
23600 --header | --heade | --head | --hea )
23601 $ac_shift
23602 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23603 ac_need_defaults=false;;
23604 --he | --h)
23605 # Conflict between --help and --header
23606 { echo "$as_me: error: ambiguous option: $1
23607 Try \`$0 --help' for more information." >&2
23608 { (exit 1); exit 1; }; };;
23609 --help | --hel | -h )
23610 echo "$ac_cs_usage"; exit ;;
23611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23613 ac_cs_silent=: ;;
23614
23615 # This is an error.
23616 -*) { echo "$as_me: error: unrecognized option: $1
23617 Try \`$0 --help' for more information." >&2
23618 { (exit 1); exit 1; }; } ;;
23619
23620 *) ac_config_targets="$ac_config_targets $1"
23621 ac_need_defaults=false ;;
23622
23623 esac
23624 shift
23625 done
23626
23627 ac_configure_extra_args=
23628
23629 if $ac_cs_silent; then
23630 exec 6>/dev/null
23631 ac_configure_extra_args="$ac_configure_extra_args --silent"
23632 fi
23633
23634 _ACEOF
23635 cat >>$CONFIG_STATUS <<_ACEOF
23636 if \$ac_cs_recheck; then
23637 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23638 CONFIG_SHELL=$SHELL
23639 export CONFIG_SHELL
23640 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23641 fi
23642
23643 _ACEOF
23644 cat >>$CONFIG_STATUS <<\_ACEOF
23645 exec 5>>config.log
23646 {
23647 echo
23648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23649 ## Running $as_me. ##
23650 _ASBOX
23651 echo "$ac_log"
23652 } >&5
23653
23654 _ACEOF
23655 cat >>$CONFIG_STATUS <<_ACEOF
23656 #
23657 # INIT-COMMANDS
23658 #
23659 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23660
23661 _ACEOF
23662
23663 cat >>$CONFIG_STATUS <<\_ACEOF
23664
23665 # Handling of arguments.
23666 for ac_config_target in $ac_config_targets
23667 do
23668 case $ac_config_target in
23669 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23670 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23671 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23672 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23673 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23674 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23675 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23676 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23677 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23678 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23679 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23680 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23681
23682 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23683 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23684 { (exit 1); exit 1; }; };;
23685 esac
23686 done
23687
23688
23689 # If the user did not use the arguments to specify the items to instantiate,
23690 # then the envvar interface is used. Set only those that are not.
23691 # We use the long form for the default assignment because of an extremely
23692 # bizarre bug on SunOS 4.1.3.
23693 if $ac_need_defaults; then
23694 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23695 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23697 fi
23698
23699 # Have a temporary directory for convenience. Make it in the build tree
23700 # simply because there is no reason against having it here, and in addition,
23701 # creating and moving files from /tmp can sometimes cause problems.
23702 # Hook for its removal unless debugging.
23703 # Note that there is a small window in which the directory will not be cleaned:
23704 # after its creation but before its name has been assigned to `$tmp'.
23705 $debug ||
23706 {
23707 tmp=
23708 trap 'exit_status=$?
23709 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23710 ' 0
23711 trap '{ (exit 1); exit 1; }' 1 2 13 15
23712 }
23713 # Create a (secure) tmp directory for tmp files.
23714
23715 {
23716 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23717 test -n "$tmp" && test -d "$tmp"
23718 } ||
23719 {
23720 tmp=./conf$$-$RANDOM
23721 (umask 077 && mkdir "$tmp")
23722 } ||
23723 {
23724 echo "$me: cannot create a temporary directory in ." >&2
23725 { (exit 1); exit 1; }
23726 }
23727
23728 #
23729 # Set up the sed scripts for CONFIG_FILES section.
23730 #
23731
23732 # No need to generate the scripts if there are no CONFIG_FILES.
23733 # This happens for instance when ./config.status config.h
23734 if test -n "$CONFIG_FILES"; then
23735
23736 _ACEOF
23737
23738
23739
23740 ac_delim='%!_!# '
23741 for ac_last_try in false false false false false :; do
23742 cat >conf$$subs.sed <<_ACEOF
23743 SHELL!$SHELL$ac_delim
23744 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23745 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23746 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23747 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23748 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23749 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23750 exec_prefix!$exec_prefix$ac_delim
23751 prefix!$prefix$ac_delim
23752 program_transform_name!$program_transform_name$ac_delim
23753 bindir!$bindir$ac_delim
23754 sbindir!$sbindir$ac_delim
23755 libexecdir!$libexecdir$ac_delim
23756 datarootdir!$datarootdir$ac_delim
23757 datadir!$datadir$ac_delim
23758 sysconfdir!$sysconfdir$ac_delim
23759 sharedstatedir!$sharedstatedir$ac_delim
23760 localstatedir!$localstatedir$ac_delim
23761 includedir!$includedir$ac_delim
23762 oldincludedir!$oldincludedir$ac_delim
23763 docdir!$docdir$ac_delim
23764 infodir!$infodir$ac_delim
23765 htmldir!$htmldir$ac_delim
23766 dvidir!$dvidir$ac_delim
23767 pdfdir!$pdfdir$ac_delim
23768 psdir!$psdir$ac_delim
23769 libdir!$libdir$ac_delim
23770 localedir!$localedir$ac_delim
23771 mandir!$mandir$ac_delim
23772 DEFS!$DEFS$ac_delim
23773 ECHO_C!$ECHO_C$ac_delim
23774 ECHO_N!$ECHO_N$ac_delim
23775 ECHO_T!$ECHO_T$ac_delim
23776 LIBS!$LIBS$ac_delim
23777 build_alias!$build_alias$ac_delim
23778 host_alias!$host_alias$ac_delim
23779 target_alias!$target_alias$ac_delim
23780 MAINT!$MAINT$ac_delim
23781 build!$build$ac_delim
23782 build_cpu!$build_cpu$ac_delim
23783 build_vendor!$build_vendor$ac_delim
23784 build_os!$build_os$ac_delim
23785 host!$host$ac_delim
23786 host_cpu!$host_cpu$ac_delim
23787 host_vendor!$host_vendor$ac_delim
23788 host_os!$host_os$ac_delim
23789 CC!$CC$ac_delim
23790 CFLAGS!$CFLAGS$ac_delim
23791 LDFLAGS!$LDFLAGS$ac_delim
23792 CPPFLAGS!$CPPFLAGS$ac_delim
23793 ac_ct_CC!$ac_ct_CC$ac_delim
23794 EXEEXT!$EXEEXT$ac_delim
23795 OBJEXT!$OBJEXT$ac_delim
23796 CPP!$CPP$ac_delim
23797 GREP!$GREP$ac_delim
23798 EGREP!$EGREP$ac_delim
23799 LN_S!$LN_S$ac_delim
23800 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23801 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23802 INSTALL_DATA!$INSTALL_DATA$ac_delim
23803 RANLIB!$RANLIB$ac_delim
23804 INSTALL_INFO!$INSTALL_INFO$ac_delim
23805 GZIP_PROG!$GZIP_PROG$ac_delim
23806 LIBSOUND!$LIBSOUND$ac_delim
23807 PKG_CONFIG!$PKG_CONFIG$ac_delim
23808 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23809 ALSA_LIBS!$ALSA_LIBS$ac_delim
23810 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23811 SET_MAKE!$SET_MAKE$ac_delim
23812 XMKMF!$XMKMF$ac_delim
23813 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23814 GTK_LIBS!$GTK_LIBS$ac_delim
23815 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23816 XFT_LIBS!$XFT_LIBS$ac_delim
23817 ALLOCA!$ALLOCA$ac_delim
23818 liblockfile!$liblockfile$ac_delim
23819 LIBOBJS!$LIBOBJS$ac_delim
23820 NEED_SETGID!$NEED_SETGID$ac_delim
23821 KMEM_GROUP!$KMEM_GROUP$ac_delim
23822 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23823 GETOPT_H!$GETOPT_H$ac_delim
23824 GETOPTOBJS!$GETOPTOBJS$ac_delim
23825 version!$version$ac_delim
23826 configuration!$configuration$ac_delim
23827 canonical!$canonical$ac_delim
23828 srcdir!$srcdir$ac_delim
23829 lispdir!$lispdir$ac_delim
23830 locallisppath!$locallisppath$ac_delim
23831 lisppath!$lisppath$ac_delim
23832 x_default_search_path!$x_default_search_path$ac_delim
23833 etcdir!$etcdir$ac_delim
23834 archlibdir!$archlibdir$ac_delim
23835 bitmapdir!$bitmapdir$ac_delim
23836 gamedir!$gamedir$ac_delim
23837 gameuser!$gameuser$ac_delim
23838 c_switch_system!$c_switch_system$ac_delim
23839 c_switch_machine!$c_switch_machine$ac_delim
23840 _ACEOF
23841
23842 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23843 break
23844 elif $ac_last_try; then
23845 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23847 { (exit 1); exit 1; }; }
23848 else
23849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23850 fi
23851 done
23852
23853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23854 if test -n "$ac_eof"; then
23855 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23856 ac_eof=`expr $ac_eof + 1`
23857 fi
23858
23859 cat >>$CONFIG_STATUS <<_ACEOF
23860 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23862 _ACEOF
23863 sed '
23864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23865 s/^/s,@/; s/!/@,|#_!!_#|/
23866 :n
23867 t n
23868 s/'"$ac_delim"'$/,g/; t
23869 s/$/\\/; p
23870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23871 ' >>$CONFIG_STATUS <conf$$subs.sed
23872 rm -f conf$$subs.sed
23873 cat >>$CONFIG_STATUS <<_ACEOF
23874 CEOF$ac_eof
23875 _ACEOF
23876
23877
23878 ac_delim='%!_!# '
23879 for ac_last_try in false false false false false :; do
23880 cat >conf$$subs.sed <<_ACEOF
23881 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23882 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23883 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23884 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23885 machfile!$machfile$ac_delim
23886 opsysfile!$opsysfile$ac_delim
23887 carbon_appdir!$carbon_appdir$ac_delim
23888 LTLIBOBJS!$LTLIBOBJS$ac_delim
23889 _ACEOF
23890
23891 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23892 break
23893 elif $ac_last_try; then
23894 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23895 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23896 { (exit 1); exit 1; }; }
23897 else
23898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23899 fi
23900 done
23901
23902 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23903 if test -n "$ac_eof"; then
23904 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23905 ac_eof=`expr $ac_eof + 1`
23906 fi
23907
23908 cat >>$CONFIG_STATUS <<_ACEOF
23909 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23911 _ACEOF
23912 sed '
23913 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23914 s/^/s,@/; s/!/@,|#_!!_#|/
23915 :n
23916 t n
23917 s/'"$ac_delim"'$/,g/; t
23918 s/$/\\/; p
23919 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23920 ' >>$CONFIG_STATUS <conf$$subs.sed
23921 rm -f conf$$subs.sed
23922 cat >>$CONFIG_STATUS <<_ACEOF
23923 :end
23924 s/|#_!!_#|//g
23925 CEOF$ac_eof
23926 _ACEOF
23927
23928
23929 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23930 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23931 # trailing colons and then remove the whole line if VPATH becomes empty
23932 # (actually we leave an empty line to preserve line numbers).
23933 if test "x$srcdir" = x.; then
23934 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23935 s/:*\$(srcdir):*/:/
23936 s/:*\${srcdir}:*/:/
23937 s/:*@srcdir@:*/:/
23938 s/^\([^=]*=[ ]*\):*/\1/
23939 s/:*$//
23940 s/^[^=]*=[ ]*$//
23941 }'
23942 fi
23943
23944 cat >>$CONFIG_STATUS <<\_ACEOF
23945 fi # test -n "$CONFIG_FILES"
23946
23947
23948 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23949 do
23950 case $ac_tag in
23951 :[FHLC]) ac_mode=$ac_tag; continue;;
23952 esac
23953 case $ac_mode$ac_tag in
23954 :[FHL]*:*);;
23955 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23956 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23957 { (exit 1); exit 1; }; };;
23958 :[FH]-) ac_tag=-:-;;
23959 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23960 esac
23961 ac_save_IFS=$IFS
23962 IFS=:
23963 set x $ac_tag
23964 IFS=$ac_save_IFS
23965 shift
23966 ac_file=$1
23967 shift
23968
23969 case $ac_mode in
23970 :L) ac_source=$1;;
23971 :[FH])
23972 ac_file_inputs=
23973 for ac_f
23974 do
23975 case $ac_f in
23976 -) ac_f="$tmp/stdin";;
23977 *) # Look for the file first in the build tree, then in the source tree
23978 # (if the path is not absolute). The absolute path cannot be DOS-style,
23979 # because $ac_f cannot contain `:'.
23980 test -f "$ac_f" ||
23981 case $ac_f in
23982 [\\/$]*) false;;
23983 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23984 esac ||
23985 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23986 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23987 { (exit 1); exit 1; }; };;
23988 esac
23989 ac_file_inputs="$ac_file_inputs $ac_f"
23990 done
23991
23992 # Let's still pretend it is `configure' which instantiates (i.e., don't
23993 # use $as_me), people would be surprised to read:
23994 # /* config.h. Generated by config.status. */
23995 configure_input="Generated from "`IFS=:
23996 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23997 if test x"$ac_file" != x-; then
23998 configure_input="$ac_file. $configure_input"
23999 { echo "$as_me:$LINENO: creating $ac_file" >&5
24000 echo "$as_me: creating $ac_file" >&6;}
24001 fi
24002
24003 case $ac_tag in
24004 *:-:* | *:-) cat >"$tmp/stdin";;
24005 esac
24006 ;;
24007 esac
24008
24009 ac_dir=`$as_dirname -- "$ac_file" ||
24010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24011 X"$ac_file" : 'X\(//\)[^/]' \| \
24012 X"$ac_file" : 'X\(//\)$' \| \
24013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24014 echo X"$ac_file" |
24015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24016 s//\1/
24017 q
24018 }
24019 /^X\(\/\/\)[^/].*/{
24020 s//\1/
24021 q
24022 }
24023 /^X\(\/\/\)$/{
24024 s//\1/
24025 q
24026 }
24027 /^X\(\/\).*/{
24028 s//\1/
24029 q
24030 }
24031 s/.*/./; q'`
24032 { as_dir="$ac_dir"
24033 case $as_dir in #(
24034 -*) as_dir=./$as_dir;;
24035 esac
24036 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24037 as_dirs=
24038 while :; do
24039 case $as_dir in #(
24040 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24041 *) as_qdir=$as_dir;;
24042 esac
24043 as_dirs="'$as_qdir' $as_dirs"
24044 as_dir=`$as_dirname -- "$as_dir" ||
24045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24046 X"$as_dir" : 'X\(//\)[^/]' \| \
24047 X"$as_dir" : 'X\(//\)$' \| \
24048 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24049 echo X"$as_dir" |
24050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24051 s//\1/
24052 q
24053 }
24054 /^X\(\/\/\)[^/].*/{
24055 s//\1/
24056 q
24057 }
24058 /^X\(\/\/\)$/{
24059 s//\1/
24060 q
24061 }
24062 /^X\(\/\).*/{
24063 s//\1/
24064 q
24065 }
24066 s/.*/./; q'`
24067 test -d "$as_dir" && break
24068 done
24069 test -z "$as_dirs" || eval "mkdir $as_dirs"
24070 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24071 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24072 { (exit 1); exit 1; }; }; }
24073 ac_builddir=.
24074
24075 case "$ac_dir" in
24076 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24077 *)
24078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24079 # A ".." for each directory in $ac_dir_suffix.
24080 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24081 case $ac_top_builddir_sub in
24082 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24083 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24084 esac ;;
24085 esac
24086 ac_abs_top_builddir=$ac_pwd
24087 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24088 # for backward compatibility:
24089 ac_top_builddir=$ac_top_build_prefix
24090
24091 case $srcdir in
24092 .) # We are building in place.
24093 ac_srcdir=.
24094 ac_top_srcdir=$ac_top_builddir_sub
24095 ac_abs_top_srcdir=$ac_pwd ;;
24096 [\\/]* | ?:[\\/]* ) # Absolute name.
24097 ac_srcdir=$srcdir$ac_dir_suffix;
24098 ac_top_srcdir=$srcdir
24099 ac_abs_top_srcdir=$srcdir ;;
24100 *) # Relative name.
24101 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24102 ac_top_srcdir=$ac_top_build_prefix$srcdir
24103 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24104 esac
24105 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24106
24107
24108 case $ac_mode in
24109 :F)
24110 #
24111 # CONFIG_FILE
24112 #
24113
24114 case $INSTALL in
24115 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24116 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24117 esac
24118 _ACEOF
24119
24120 cat >>$CONFIG_STATUS <<\_ACEOF
24121 # If the template does not know about datarootdir, expand it.
24122 # FIXME: This hack should be removed a few years after 2.60.
24123 ac_datarootdir_hack=; ac_datarootdir_seen=
24124
24125 case `sed -n '/datarootdir/ {
24126 p
24127 q
24128 }
24129 /@datadir@/p
24130 /@docdir@/p
24131 /@infodir@/p
24132 /@localedir@/p
24133 /@mandir@/p
24134 ' $ac_file_inputs` in
24135 *datarootdir*) ac_datarootdir_seen=yes;;
24136 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24137 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24138 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24139 _ACEOF
24140 cat >>$CONFIG_STATUS <<_ACEOF
24141 ac_datarootdir_hack='
24142 s&@datadir@&$datadir&g
24143 s&@docdir@&$docdir&g
24144 s&@infodir@&$infodir&g
24145 s&@localedir@&$localedir&g
24146 s&@mandir@&$mandir&g
24147 s&\\\${datarootdir}&$datarootdir&g' ;;
24148 esac
24149 _ACEOF
24150
24151 # Neutralize VPATH when `$srcdir' = `.'.
24152 # Shell code in configure.ac might set extrasub.
24153 # FIXME: do we really want to maintain this feature?
24154 cat >>$CONFIG_STATUS <<_ACEOF
24155 sed "$ac_vpsub
24156 $extrasub
24157 _ACEOF
24158 cat >>$CONFIG_STATUS <<\_ACEOF
24159 :t
24160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24161 s&@configure_input@&$configure_input&;t t
24162 s&@top_builddir@&$ac_top_builddir_sub&;t t
24163 s&@srcdir@&$ac_srcdir&;t t
24164 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24165 s&@top_srcdir@&$ac_top_srcdir&;t t
24166 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24167 s&@builddir@&$ac_builddir&;t t
24168 s&@abs_builddir@&$ac_abs_builddir&;t t
24169 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24170 s&@INSTALL@&$ac_INSTALL&;t t
24171 $ac_datarootdir_hack
24172 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24173
24174 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24175 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24176 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24177 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24178 which seems to be undefined. Please make sure it is defined." >&5
24179 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24180 which seems to be undefined. Please make sure it is defined." >&2;}
24181
24182 rm -f "$tmp/stdin"
24183 case $ac_file in
24184 -) cat "$tmp/out"; rm -f "$tmp/out";;
24185 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24186 esac
24187 ;;
24188 :H)
24189 #
24190 # CONFIG_HEADER
24191 #
24192 _ACEOF
24193
24194 # Transform confdefs.h into a sed script `conftest.defines', that
24195 # substitutes the proper values into config.h.in to produce config.h.
24196 rm -f conftest.defines conftest.tail
24197 # First, append a space to every undef/define line, to ease matching.
24198 echo 's/$/ /' >conftest.defines
24199 # Then, protect against being on the right side of a sed subst, or in
24200 # an unquoted here document, in config.status. If some macros were
24201 # called several times there might be several #defines for the same
24202 # symbol, which is useless. But do not sort them, since the last
24203 # AC_DEFINE must be honored.
24204 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24205 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24206 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24207 # PARAMS is the parameter list in the macro definition--in most cases, it's
24208 # just an empty string.
24209 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24210 ac_dB='\\)[ (].*,\\1define\\2'
24211 ac_dC=' '
24212 ac_dD=' ,'
24213
24214 uniq confdefs.h |
24215 sed -n '
24216 t rset
24217 :rset
24218 s/^[ ]*#[ ]*define[ ][ ]*//
24219 t ok
24220 d
24221 :ok
24222 s/[\\&,]/\\&/g
24223 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24224 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24225 ' >>conftest.defines
24226
24227 # Remove the space that was appended to ease matching.
24228 # Then replace #undef with comments. This is necessary, for
24229 # example, in the case of _POSIX_SOURCE, which is predefined and required
24230 # on some systems where configure will not decide to define it.
24231 # (The regexp can be short, since the line contains either #define or #undef.)
24232 echo 's/ $//
24233 s,^[ #]*u.*,/* & */,' >>conftest.defines
24234
24235 # Break up conftest.defines:
24236 ac_max_sed_lines=50
24237
24238 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24239 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24240 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24241 # et cetera.
24242 ac_in='$ac_file_inputs'
24243 ac_out='"$tmp/out1"'
24244 ac_nxt='"$tmp/out2"'
24245
24246 while :
24247 do
24248 # Write a here document:
24249 cat >>$CONFIG_STATUS <<_ACEOF
24250 # First, check the format of the line:
24251 cat >"\$tmp/defines.sed" <<\\CEOF
24252 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24253 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24254 b
24255 :def
24256 _ACEOF
24257 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24258 echo 'CEOF
24259 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24260 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24261 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24262 grep . conftest.tail >/dev/null || break
24263 rm -f conftest.defines
24264 mv conftest.tail conftest.defines
24265 done
24266 rm -f conftest.defines conftest.tail
24267
24268 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24269 cat >>$CONFIG_STATUS <<\_ACEOF
24270 if test x"$ac_file" != x-; then
24271 echo "/* $configure_input */" >"$tmp/config.h"
24272 cat "$ac_result" >>"$tmp/config.h"
24273 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24274 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24275 echo "$as_me: $ac_file is unchanged" >&6;}
24276 else
24277 rm -f $ac_file
24278 mv "$tmp/config.h" $ac_file
24279 fi
24280 else
24281 echo "/* $configure_input */"
24282 cat "$ac_result"
24283 fi
24284 rm -f "$tmp/out12"
24285 ;;
24286
24287 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24288 echo "$as_me: executing $ac_file commands" >&6;}
24289 ;;
24290 esac
24291
24292
24293 case $ac_file$ac_mode in
24294 "default":C)
24295
24296 ### Make the necessary directories, if they don't exist.
24297 for dir in etc lisp ; do
24298 test -d ${dir} || mkdir ${dir}
24299 done
24300
24301 # Build src/Makefile from ${srcdir}/src/Makefile.c
24302 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24303 # This must be done after src/config.h is built, since we rely on that file.
24304
24305 # Now get this: Some word that is part of the ${srcdir} directory name
24306 # or the ${configuration} value might, just might, happen to be an
24307 # identifier like `sun4' or `i386' or something, and be predefined by
24308 # the C preprocessor to some helpful value like 1, or maybe the empty
24309 # string. Needless to say consequent macro substitutions are less
24310 # than conducive to the makefile finding the correct directory.
24311 undefs="`echo $top_srcdir $configuration $canonical |
24312 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24313 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24314 `"
24315
24316 echo creating src/epaths.h
24317 ${MAKE-make} epaths-force
24318
24319 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24320 # `..' to `. .' unless invoked with -traditional
24321
24322 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24323 CPPFLAGS="$CPPFLAGS -traditional"
24324 fi
24325
24326 echo creating lib-src/Makefile
24327 ( cd lib-src
24328 rm -f junk.c junk1.c junk2.c
24329 sed -e '/start of cpp stuff/q' \
24330 < Makefile.c > junk1.c
24331 sed -e '1,/start of cpp stuff/d'\
24332 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24333 < Makefile.c > junk.c
24334 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24335 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24336 cat junk1.c junk2.c > Makefile.new
24337 rm -f junk.c junk1.c junk2.c
24338 chmod 444 Makefile.new
24339 mv -f Makefile.new Makefile
24340 )
24341
24342 echo creating src/Makefile
24343 ( cd src
24344 rm -f junk.c junk1.c junk2.c
24345 sed -e '/start of cpp stuff/q' \
24346 < Makefile.c > junk1.c
24347 sed -e '1,/start of cpp stuff/d'\
24348 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24349 < Makefile.c > junk.c
24350 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24351 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24352 cat junk1.c junk2.c > Makefile.new
24353 rm -f junk.c junk1.c junk2.c
24354 chmod 444 Makefile.new
24355 mv -f Makefile.new Makefile
24356 )
24357
24358 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24359 echo creating src/.gdbinit
24360 echo source $srcdir/src/.gdbinit > src/.gdbinit
24361 fi
24362
24363 # This is how we know whether to re-run configure in certain cases.
24364 touch src/config.stamp
24365
24366 ;;
24367
24368 esac
24369 done # for ac_tag
24370
24371
24372 { (exit 0); exit 0; }
24373 _ACEOF
24374 chmod +x $CONFIG_STATUS
24375 ac_clean_files=$ac_clean_files_save
24376
24377
24378 # configure is writing to config.log, and then calls config.status.
24379 # config.status does its own redirection, appending to config.log.
24380 # Unfortunately, on DOS this fails, as config.log is still kept open
24381 # by configure, so config.status won't be able to write to it; its
24382 # output is simply discarded. So we exec the FD to /dev/null,
24383 # effectively closing config.log, so it can be properly (re)opened and
24384 # appended to by config.status. When coming back to configure, we
24385 # need to make the FD available again.
24386 if test "$no_create" != yes; then
24387 ac_cs_success=:
24388 ac_config_status_args=
24389 test "$silent" = yes &&
24390 ac_config_status_args="$ac_config_status_args --quiet"
24391 exec 5>/dev/null
24392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24393 exec 5>>config.log
24394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24395 # would make configure fail if this is the last instruction.
24396 $ac_cs_success || { (exit 1); exit 1; }
24397 fi
24398
24399