]> code.delx.au - gnu-emacs/blob - configure
(\metax): Tweak \hsize to avoid overfull columns.
[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 i386-*-openbsd*) machine=intel386 ;;
2264 x86_64-*-openbsd*) machine=amdx86-64 ;;
2265 m68k-*-openbsd*) machine=hp9000s300 ;;
2266 mipsel-*-openbsd*) machine=pmax ;;
2267 ns32k-*-openbsd*) machine=ns32000 ;;
2268 sparc-*-openbsd*) machine=sparc ;;
2269 vax-*-openbsd*) machine=vax ;;
2270 esac
2271 ;;
2272
2273 ## LynxOS ports
2274 *-*-lynxos* )
2275 opsys=lynxos
2276 case "${canonical}" in
2277 i[3456]86-*-lynxos*) machine=intel386 ;;
2278 powerpc-*-lynxos*) machine=powerpc ;;
2279 esac
2280 ;;
2281
2282 ## Acorn RISCiX:
2283 arm-acorn-riscix1.1* )
2284 machine=acorn opsys=riscix1-1
2285 ;;
2286 arm-acorn-riscix1.2* | arm-acorn-riscix )
2287 ## This name is riscix12 instead of riscix1.2
2288 ## to avoid a file name conflict on MSDOS.
2289 machine=acorn opsys=riscix12
2290 ;;
2291
2292 ## BSDI ports
2293 *-*-bsdi* )
2294 opsys=bsdi
2295 case "${canonical}" in
2296 i[345]86-*-bsdi*) machine=intel386 ;;
2297 sparc-*-bsdi*) machine=sparc ;;
2298 powerpc-*-bsdi*) machine=macppc ;;
2299 esac
2300 case "${canonical}" in
2301 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2302 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2303 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2304 *-*-bsdi3* ) opsys=bsdos3 ;;
2305 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2306 esac
2307 ;;
2308
2309 ## Alliant machines
2310 ## Strictly speaking, we need the version of the alliant operating
2311 ## system to choose the right machine file, but currently the
2312 ## configuration name doesn't tell us enough to choose the right
2313 ## one; we need to give alliants their own operating system name to
2314 ## do this right. When someone cares, they can help us.
2315 fx80-alliant-* )
2316 machine=alliant4 opsys=bsd4-2
2317 ;;
2318 i860-alliant-* )
2319 machine=alliant-2800 opsys=bsd4-3
2320 ;;
2321
2322 ## Alpha (DEC) machines.
2323 alpha*-dec-osf* )
2324 machine=alpha opsys=osf1
2325 # This is needed to find X11R6.1 libraries for certain tests.
2326 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2327 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2328 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2329 # due to non-traditional preprocessing with the current compiler
2330 # defaults. OSF 4 can also have that compiler version, and there
2331 # seems always to have been a usable /usr/bin/cpp.
2332 NON_GNU_CPP=/usr/bin/cpp
2333 case "${canonical}" in
2334 alpha*-dec-osf[5-9]*)
2335 opsys=osf5-0 ;;
2336 esac
2337 ;;
2338
2339 alpha*-*-linux-gnu* )
2340 machine=alpha opsys=gnu-linux
2341 ;;
2342
2343 arm*-*-linux-gnu* )
2344 machine=arm opsys=gnu-linux
2345 ;;
2346
2347 ## Altos 3068
2348 m68*-altos-sysv* )
2349 machine=altos opsys=usg5-2
2350 ;;
2351
2352 ## Amdahl UTS
2353 580-amdahl-sysv* )
2354 machine=amdahl opsys=usg5-2-2
2355 ;;
2356
2357 ## Apollo, Domain/OS
2358 m68*-apollo-* )
2359 machine=apollo opsys=bsd4-3
2360 ;;
2361
2362 ## Apple Darwin / Mac OS X
2363 *-apple-darwin* )
2364 case "${canonical}" in
2365 i[3456]86-* ) machine=intel386 ;;
2366 powerpc-* ) machine=powermac ;;
2367 * ) unported=yes ;;
2368 esac
2369 opsys=darwin
2370 # Define CPP as follows to make autoconf work correctly.
2371 CPP="${CC-cc} -E -no-cpp-precomp"
2372 # Use fink packages if available.
2373 if test -d /sw/include && test -d /sw/lib; then
2374 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2375 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2376 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2377 fi
2378 ;;
2379
2380 ## AT&T 3b2, 3b5, 3b15, 3b20
2381 we32k-att-sysv* )
2382 machine=att3b opsys=usg5-2-2
2383 ;;
2384
2385 ## AT&T 3b1 - The Mighty Unix PC!
2386 m68*-att-sysv* )
2387 machine=7300 opsys=usg5-2-2
2388 ;;
2389
2390 ## Bull dpx20
2391 rs6000-bull-bosx* )
2392 machine=ibmrs6000 opsys=aix3-2
2393 ;;
2394
2395 ## Bull dpx2
2396 m68*-bull-sysv3* )
2397 machine=dpx2 opsys=usg5-3
2398 ;;
2399
2400 ## Bull sps7
2401 m68*-bull-sysv2* )
2402 machine=sps7 opsys=usg5-2
2403 ;;
2404
2405 ## CCI 5/32, 6/32 -- see "Tahoe".
2406
2407 ## Celerity
2408 ## I don't know what configuration name to use for this; config.sub
2409 ## doesn't seem to know anything about it. Hey, Celerity users, get
2410 ## in touch with us!
2411 celerity-celerity-bsd* )
2412 machine=celerity opsys=bsd4-2
2413 ;;
2414
2415 ## Clipper
2416 ## What operating systems does this chip run that Emacs has been
2417 ## tested on?
2418 clipper-* )
2419 machine=clipper
2420 ## We'll use the catch-all code at the bottom to guess the
2421 ## operating system.
2422 ;;
2423
2424 ## Compaq Nonstop
2425 mips-compaq-nonstopux* )
2426 machine=nonstopux opsys=nonstopux
2427 ;;
2428
2429 ## Convex
2430 *-convex-bsd* | *-convex-convexos* )
2431 machine=convex opsys=bsd4-3
2432 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2433 NON_GNU_CPP="cc -E -P"
2434 ;;
2435
2436 ## Cubix QBx/386
2437 i[3456]86-cubix-sysv* )
2438 machine=intel386 opsys=usg5-3
2439 ;;
2440
2441 ## Cydra 5
2442 cydra*-cydrome-sysv* )
2443 machine=cydra5 opsys=usg5-3
2444 ;;
2445
2446 ## Data General AViiON Machines
2447 ## DG changed naming conventions with the release of 5.4.4.10, they
2448 ## dropped the initial 5.4 but left the intervening R. Because of the
2449 ## R this shouldn't conflict with older versions of the OS (which I
2450 ## think were named like dgux4.*). In addition, DG new AViiONs series
2451 ## uses either Motorola M88k or Intel Pentium CPUs.
2452 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2453 machine=aviion opsys=dgux4
2454 ;;
2455 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2456 ## This name is dgux5-4-3 instead of dgux5-4r3
2457 ## to avoid a file name conflict on MSDOS.
2458 machine=aviion opsys=dgux5-4-3
2459 ;;
2460 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2461 machine=aviion opsys=dgux5-4r2
2462 ;;
2463 m88k-dg-dgux* )
2464 machine=aviion opsys=dgux
2465 ;;
2466
2467 ## Data General AViiON Intel (x86) Machines
2468 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2469 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2470 i[345]86-dg-dguxR4* )
2471 machine=aviion-intel opsys=dgux4
2472 ;;
2473
2474 ## DECstations
2475 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2476 machine=pmax opsys=bsd4-2
2477 ;;
2478 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2479 machine=pmax opsys=bsd4-3
2480 ;;
2481 mips-dec-ultrix* )
2482 machine=pmax opsys=ultrix4-3
2483 ;;
2484 mips-dec-osf* )
2485 machine=pmax opsys=osf1
2486 ;;
2487 mips-dec-mach_bsd4.3* )
2488 machine=pmax opsys=mach-bsd4-3
2489 ;;
2490
2491 ## Motorola Delta machines
2492 m68k-motorola-sysv* | m68000-motorola-sysv* )
2493 machine=delta opsys=usg5-3
2494 if test -z "`type gnucc | grep 'not found'`"
2495 then
2496 if test -s /etc/167config
2497 then CC="gnucc -m68040"
2498 else CC="gnucc -m68881"
2499 fi
2500 else
2501 if test -z "`type gcc | grep 'not found'`"
2502 then CC=gcc
2503 else CC=cc
2504 fi
2505 fi
2506 ;;
2507 m88k-motorola-sysv4* )
2508 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2509 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2510 # I hope there are not other 4.0 versions for this machine
2511 # which really need usg5-4 instead.
2512 machine=delta88k opsys=usg5-4-2
2513 ;;
2514 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2515 machine=delta88k opsys=usg5-3
2516 ;;
2517
2518 ## Dual machines
2519 m68*-dual-sysv* )
2520 machine=dual opsys=usg5-2
2521 ;;
2522 m68*-dual-uniplus* )
2523 machine=dual opsys=unipl5-2
2524 ;;
2525
2526 ## Elxsi 6400
2527 elxsi-elxsi-sysv* )
2528 machine=elxsi opsys=usg5-2
2529 ;;
2530
2531 ## Encore machines
2532 ns16k-encore-bsd* )
2533 machine=ns16000 opsys=umax
2534 ;;
2535
2536 ## The GEC 63 - apparently, this port isn't really finished yet.
2537 # I'm sure we finished off the last of the machines, though. -- fx
2538
2539 ## Gould Power Node and NP1
2540 pn-gould-bsd4.2* )
2541 machine=gould opsys=bsd4-2
2542 ;;
2543 pn-gould-bsd4.3* )
2544 machine=gould opsys=bsd4-3
2545 ;;
2546 np1-gould-bsd* )
2547 machine=gould-np1 opsys=bsd4-3
2548 ;;
2549
2550 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2551 ## as far as Emacs is concerned).
2552 m88k-harris-cxux* )
2553 # Build needs to be different on 7.0 and later releases
2554 case "`uname -r`" in
2555 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2556 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2557 esac
2558 NON_GNU_CPP="/lib/cpp"
2559 ;;
2560 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2561 m68k-harris-cxux* )
2562 machine=nh3000 opsys=cxux
2563 ;;
2564 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2565 powerpc-harris-powerunix )
2566 machine=nh6000 opsys=powerunix
2567 NON_GNU_CPP="cc -Xo -E -P"
2568 ;;
2569 ## Honeywell XPS100
2570 xps*-honeywell-sysv* )
2571 machine=xps100 opsys=usg5-2
2572 ;;
2573
2574 ## HP 9000 series 200 or 300
2575 m68*-hp-bsd* )
2576 machine=hp9000s300 opsys=bsd4-3
2577 ;;
2578 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2579 m68*-hp-hpux* )
2580 case "`uname -r`" in
2581 ## Someone's system reports A.B8.05 for this.
2582 ## I wonder what other possibilities there are.
2583 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2584 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2585 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2586 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2587 *) machine=hp9000s300 opsys=hpux ;;
2588 esac
2589 ;;
2590
2591 hppa*-*-linux-gnu* )
2592 machine=hp800 opsys=gnu-linux
2593 ;;
2594
2595 hppa*-*-nextstep* )
2596 machine=hp800 opsys=nextstep
2597 ;;
2598
2599 ## Orion machines
2600 orion-orion-bsd* )
2601 machine=orion opsys=bsd4-2
2602 ;;
2603 clipper-orion-bsd* )
2604 machine=orion105 opsys=bsd4-2
2605 ;;
2606
2607 ## IBM machines
2608 i[3456]86-ibm-aix1.1* )
2609 machine=ibmps2-aix opsys=usg5-2-2
2610 ;;
2611 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2612 machine=ibmps2-aix opsys=usg5-3
2613 ;;
2614 i370-ibm-aix*)
2615 machine=ibm370aix opsys=usg5-3
2616 ;;
2617 s390-*-linux-gnu* )
2618 machine=ibms390 opsys=gnu-linux
2619 ;;
2620 s390x-*-linux-gnu* )
2621 machine=ibms390x opsys=gnu-linux
2622 ;;
2623 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2624 machine=ibmrs6000 opsys=aix3-1
2625 ;;
2626 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2627 machine=ibmrs6000 opsys=aix3-2-5
2628 ;;
2629 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2630 machine=ibmrs6000 opsys=aix4-1
2631 ;;
2632 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2633 machine=ibmrs6000 opsys=aix4-2
2634 ;;
2635 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2636 machine=ibmrs6000 opsys=aix4-2
2637 ;;
2638 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2639 machine=ibmrs6000 opsys=aix4
2640 ;;
2641 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2642 machine=ibmrs6000 opsys=aix4-1
2643 ;;
2644 rs6000-ibm-aix* | powerpc-ibm-aix* )
2645 machine=ibmrs6000 opsys=aix3-2
2646 ;;
2647 romp-ibm-bsd4.3* )
2648 machine=ibmrt opsys=bsd4-3
2649 ;;
2650 romp-ibm-bsd4.2* )
2651 machine=ibmrt opsys=bsd4-2
2652 ;;
2653 romp-ibm-aos4.3* )
2654 machine=ibmrt opsys=bsd4-3
2655 ;;
2656 romp-ibm-aos4.2* )
2657 machine=ibmrt opsys=bsd4-2
2658 ;;
2659 romp-ibm-aos* )
2660 machine=ibmrt opsys=bsd4-3
2661 ;;
2662 romp-ibm-bsd* )
2663 machine=ibmrt opsys=bsd4-3
2664 ;;
2665 romp-ibm-aix* )
2666 machine=ibmrt-aix opsys=usg5-2-2
2667 ;;
2668
2669 ## Integrated Solutions `Optimum V'
2670 m68*-isi-bsd4.2* )
2671 machine=isi-ov opsys=bsd4-2
2672 ;;
2673 m68*-isi-bsd4.3* )
2674 machine=isi-ov opsys=bsd4-3
2675 ;;
2676
2677 ## Intel 386 machines where we do care about the manufacturer
2678 i[3456]86-intsys-sysv* )
2679 machine=is386 opsys=usg5-2-2
2680 ;;
2681
2682 ## Prime EXL
2683 i[3456]86-prime-sysv* )
2684 machine=i386 opsys=usg5-3
2685 ;;
2686
2687 ## Sequent Symmetry running Dynix
2688 i[3456]86-sequent-bsd* )
2689 machine=symmetry opsys=bsd4-3
2690 ;;
2691
2692 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2693 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2694 machine=sequent-ptx opsys=ptx4
2695 NON_GNU_CPP=/lib/cpp
2696 ;;
2697
2698 ## Sequent Symmetry running DYNIX/ptx
2699 ## Use the old cpp rather than the newer ANSI one.
2700 i[3456]86-sequent-ptx* )
2701 machine=sequent-ptx opsys=ptx
2702 NON_GNU_CPP="/lib/cpp"
2703 ;;
2704
2705 ## ncr machine running svr4.3.
2706 i[3456]86-ncr-sysv4.3 )
2707 machine=ncr386 opsys=usg5-4-3
2708 ;;
2709
2710 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2711 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2712 i[3456]86-ncr-sysv* )
2713 machine=ncr386 opsys=usg5-4-2
2714 ;;
2715
2716 ## Intel Paragon OSF/1
2717 i860-intel-osf1* )
2718 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2719 ;;
2720
2721 ## Intel 860
2722 i860-*-sysv4* )
2723 machine=i860 opsys=usg5-4
2724 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2725 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2726 ;;
2727
2728 ## Macintosh PowerPC
2729 powerpc*-*-linux-gnu* )
2730 machine=macppc opsys=gnu-linux
2731 ;;
2732
2733 ## Masscomp machines
2734 m68*-masscomp-rtu* )
2735 machine=masscomp opsys=rtu
2736 ;;
2737
2738 ## Megatest machines
2739 m68*-megatest-bsd* )
2740 machine=mega68 opsys=bsd4-2
2741 ;;
2742
2743 ## Workstations sold by MIPS
2744 ## This is not necessarily all workstations using the MIPS processor -
2745 ## Irises are produced by SGI, and DECstations by DEC.
2746
2747 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2748 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2749 ## it gives for choosing between the alternatives seems to be "Use
2750 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2751 ## the BSD world." I'll assume that these are instructions for
2752 ## handling two odd situations, and that every other situation
2753 ## should use mips.h and usg5-2-2, they being listed first.
2754 mips-mips-usg* )
2755 machine=mips4
2756 ## Fall through to the general code at the bottom to decide on the OS.
2757 ;;
2758 mips-mips-riscos4* )
2759 machine=mips4 opsys=bsd4-3
2760 NON_GNU_CC="cc -systype bsd43"
2761 NON_GNU_CPP="cc -systype bsd43 -E"
2762 ;;
2763 mips-mips-riscos5* )
2764 machine=mips4 opsys=riscos5
2765 NON_GNU_CC="cc -systype bsd43"
2766 NON_GNU_CPP="cc -systype bsd43 -E"
2767 ;;
2768 mips-mips-bsd* )
2769 machine=mips opsys=bsd4-3
2770 ;;
2771 mips-mips-* )
2772 machine=mips opsys=usg5-2-2
2773 ;;
2774
2775 ## NeXT
2776 m68*-next-* | m68k-*-nextstep* )
2777 machine=m68k opsys=nextstep
2778 ;;
2779
2780 ## The complete machine from National Semiconductor
2781 ns32k-ns-genix* )
2782 machine=ns32000 opsys=usg5-2
2783 ;;
2784
2785 ## NCR machines
2786 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2787 machine=tower32 opsys=usg5-2-2
2788 ;;
2789 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2790 machine=tower32v3 opsys=usg5-3
2791 ;;
2792
2793 ## NEC EWS4800
2794 mips-nec-sysv4*)
2795 machine=ews4800 opsys=ux4800
2796 ;;
2797
2798 ## Nixdorf Targon 31
2799 m68*-nixdorf-sysv* )
2800 machine=targon31 opsys=usg5-2-2
2801 ;;
2802
2803 ## Nu (TI or LMI)
2804 m68*-nu-sysv* )
2805 machine=nu opsys=usg5-2
2806 ;;
2807
2808 ## Plexus
2809 m68*-plexus-sysv* )
2810 machine=plexus opsys=usg5-2
2811 ;;
2812
2813 ## Pyramid machines
2814 ## I don't really have any idea what sort of processor the Pyramid has,
2815 ## so I'm assuming it is its own architecture.
2816 pyramid-pyramid-bsd* )
2817 machine=pyramid opsys=bsd4-2
2818 ;;
2819
2820 ## Sequent Balance
2821 ns32k-sequent-bsd4.2* )
2822 machine=sequent opsys=bsd4-2
2823 ;;
2824 ns32k-sequent-bsd4.3* )
2825 machine=sequent opsys=bsd4-3
2826 ;;
2827
2828 ## Siemens Nixdorf
2829 mips-siemens-sysv* | mips-sni-sysv*)
2830 machine=mips-siemens opsys=usg5-4
2831 NON_GNU_CC=/usr/ccs/bin/cc
2832 NON_GNU_CPP=/usr/ccs/lib/cpp
2833 ;;
2834
2835 ## Silicon Graphics machines
2836 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2837 m68*-sgi-iris3.5* )
2838 machine=irist opsys=iris3-5
2839 ;;
2840 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2841 machine=irist opsys=iris3-6
2842 ;;
2843 ## Iris 4D
2844 mips-sgi-irix3* )
2845 machine=iris4d opsys=irix3-3
2846 ;;
2847 mips-sgi-irix4* )
2848 machine=iris4d opsys=irix4-0
2849 ;;
2850 mips-sgi-irix6.5 )
2851 machine=iris4d opsys=irix6-5
2852 # Without defining _LANGUAGE_C, things get masked out in the headers
2853 # so that, for instance, grepping for `free' in stdlib.h fails and
2854 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2855 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2856 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2857 ;;
2858 mips-sgi-irix6* )
2859 machine=iris4d opsys=irix6-0
2860 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2861 # but presumably it does no harm.
2862 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2863 # -32 probably isn't necessary in later v.6s -- anyone know which?
2864 NON_GCC_TEST_OPTIONS=-32
2865 ;;
2866 mips-sgi-irix5.[01]* )
2867 machine=iris4d opsys=irix5-0
2868 ;;
2869 mips-sgi-irix5* | mips-sgi-irix* )
2870 machine=iris4d opsys=irix5-2
2871 ;;
2872
2873 ## SONY machines
2874 m68*-sony-bsd4.2* )
2875 machine=news opsys=bsd4-2
2876 ;;
2877 m68*-sony-bsd4.3* )
2878 machine=news opsys=bsd4-3
2879 ;;
2880 m68*-sony-newsos3* | m68*-sony-news3*)
2881 machine=news opsys=bsd4-3
2882 ;;
2883 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2884 machine=news-risc opsys=bsd4-3
2885 ;;
2886 mips-sony-newsos6* )
2887 machine=news-r6 opsys=newsos6
2888 ;;
2889 mips-sony-news* )
2890 machine=news-risc opsys=newsos5
2891 ;;
2892
2893 ## Stride
2894 m68*-stride-sysv* )
2895 machine=stride opsys=usg5-2
2896 ;;
2897
2898 ## Suns
2899 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2900 machine=sparc opsys=gnu-linux
2901 ;;
2902
2903 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2904 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2905 | rs6000-*-solaris2*)
2906 case "${canonical}" in
2907 m68*-sunos1* ) machine=sun1 ;;
2908 m68*-sunos2* ) machine=sun2 ;;
2909 m68* ) machine=sun3 ;;
2910 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2911 i[3456]86-*-* ) machine=intel386 ;;
2912 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2913 powerpcle* ) machine=powerpcle ;;
2914 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2915 sparc* ) machine=sparc ;;
2916 * ) unported=yes ;;
2917 esac
2918 case "${canonical}" in
2919 ## The Sun386 didn't get past 4.0.
2920 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2921 *-sunos4.0* ) opsys=sunos4-0 ;;
2922 *-sunos4.1.[3-9]*noshare )
2923 ## This name is sunos413 instead of sunos4-1-3
2924 ## to avoid a file name conflict on MSDOS.
2925 opsys=sunos413
2926 NON_GNU_CPP=/usr/lib/cpp
2927 NON_GCC_TEST_OPTIONS=-Bstatic
2928 GCC_TEST_OPTIONS=-static
2929 ;;
2930 *-sunos4.1.[3-9]* | *-sunos4shr*)
2931 opsys=sunos4shr
2932 NON_GNU_CPP=/usr/lib/cpp
2933 ;;
2934 *-sunos4* | *-sunos )
2935 opsys=sunos4-1
2936 NON_GCC_TEST_OPTIONS=-Bstatic
2937 GCC_TEST_OPTIONS=-static
2938 ;;
2939 *-sunos5.3* | *-solaris2.3* )
2940 opsys=sol2-3
2941 NON_GNU_CPP=/usr/ccs/lib/cpp
2942 ;;
2943 *-sunos5.4* | *-solaris2.4* )
2944 opsys=sol2-4
2945 NON_GNU_CPP=/usr/ccs/lib/cpp
2946 RANLIB="ar -ts"
2947 ;;
2948 *-sunos5.5* | *-solaris2.5* )
2949 opsys=sol2-5
2950 NON_GNU_CPP=/usr/ccs/lib/cpp
2951 RANLIB="ar -ts"
2952 ;;
2953 *-sunos5.6* | *-solaris2.6* )
2954 opsys=sol2-6
2955 NON_GNU_CPP=/usr/ccs/lib/cpp
2956 RANLIB="ar -ts"
2957 ;;
2958 *-sunos5* | *-solaris* )
2959 opsys=sol2-6
2960 NON_GNU_CPP=/usr/ccs/lib/cpp
2961 ;;
2962 * ) opsys=bsd4-2 ;;
2963 esac
2964 ## Watch out for a compiler that we know will not work.
2965 case "${canonical}" in
2966 *-solaris* | *-sunos5* )
2967 if [ "x$CC" = x/usr/ucb/cc ]; then
2968 ## /usr/ucb/cc doesn't work;
2969 ## we should find some other compiler that does work.
2970 unset CC
2971 fi
2972 ;;
2973 *) ;;
2974 esac
2975 ;;
2976 sparc-*-nextstep* )
2977 machine=sparc opsys=nextstep
2978 ;;
2979
2980 ## Tadpole 68k
2981 m68*-tadpole-sysv* )
2982 machine=tad68k opsys=usg5-3
2983 ;;
2984
2985 ## Tahoe machines
2986 tahoe-tahoe-bsd4.2* )
2987 machine=tahoe opsys=bsd4-2
2988 ;;
2989 tahoe-tahoe-bsd4.3* )
2990 machine=tahoe opsys=bsd4-3
2991 ;;
2992
2993 ## Tandem Integrity S2
2994 mips-tandem-sysv* )
2995 machine=tandem-s2 opsys=usg5-3
2996 ;;
2997
2998 ## Tektronix XD88
2999 m88k-tektronix-sysv3* )
3000 machine=tekxd88 opsys=usg5-3
3001 ;;
3002
3003 ## Tektronix 16000 box (6130?)
3004 ns16k-tektronix-bsd* )
3005 machine=ns16000 opsys=bsd4-2
3006 ;;
3007 ## Tektronix 4300
3008 ## src/m/tek4300.h hints that this is a m68k machine.
3009 m68*-tektronix-bsd* )
3010 machine=tek4300 opsys=bsd4-3
3011 ;;
3012
3013 ## Titan P2 or P3
3014 ## We seem to have lost the machine-description file titan.h!
3015 titan-titan-sysv* )
3016 machine=titan opsys=usg5-3
3017 ;;
3018
3019 ## Ustation E30 (SS5E)
3020 m68*-unisys-uniplus* )
3021 machine=ustation opsystem=unipl5-2
3022 ;;
3023
3024 ## Vaxen.
3025 vax-dec-* )
3026 machine=vax
3027 case "${canonical}" in
3028 *-bsd4.1* ) opsys=bsd4-1 ;;
3029 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3030 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3031 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3032 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3033 *-vms* ) opsys=vms ;;
3034 * ) unported=yes
3035 esac
3036 ;;
3037
3038 ## Whitechapel MG1
3039 ns16k-whitechapel-* )
3040 machine=mg1
3041 ## We don't know what sort of OS runs on these; we'll let the
3042 ## operating system guessing code below try.
3043 ;;
3044
3045 ## Wicat
3046 m68*-wicat-sysv* )
3047 machine=wicat opsys=usg5-2
3048 ;;
3049
3050 ## IA-64
3051 ia64*-*-linux* )
3052 machine=ia64 opsys=gnu-linux
3053 ;;
3054
3055 ## Intel 386 machines where we don't care about the manufacturer
3056 i[3456]86-*-* )
3057 machine=intel386
3058 case "${canonical}" in
3059 *-cygwin ) opsys=cygwin ;;
3060 *-darwin* ) opsys=darwin
3061 CPP="${CC-cc} -E -no-cpp-precomp"
3062 ;;
3063 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3064 *-isc2.2* ) opsys=isc2-2 ;;
3065 *-isc4.0* ) opsys=isc4-0 ;;
3066 *-isc4.* ) opsys=isc4-1
3067 GCC_TEST_OPTIONS=-posix
3068 NON_GCC_TEST_OPTIONS=-Xp
3069 ;;
3070 *-isc* ) opsys=isc3-0 ;;
3071 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3072 *-esix* ) opsys=esix ;;
3073 *-xenix* ) opsys=xenix ;;
3074 *-linux-gnu* ) opsys=gnu-linux ;;
3075 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3076 *-sco3.2v5* ) opsys=sco5
3077 NON_GNU_CPP=/lib/cpp
3078 # Prevent -belf from being passed to $CPP.
3079 # /lib/cpp does not accept it.
3080 OVERRIDE_CPPFLAGS=" "
3081 ;;
3082 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3083 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3084 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3085 *-386bsd* ) opsys=386bsd ;;
3086 *-nextstep* ) opsys=nextstep ;;
3087 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3088 esac
3089 ;;
3090
3091 ## m68k Linux-based GNU system
3092 m68k-*-linux-gnu* )
3093 machine=m68k opsys=gnu-linux
3094 ;;
3095
3096 ## Mips Linux-based GNU system
3097 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3098 machine=mips opsys=gnu-linux
3099 ;;
3100
3101 ## UXP/DS
3102 sparc-fujitsu-sysv4* )
3103 machine=sparc opsys=uxpds
3104 NON_GNU_CPP=/usr/ccs/lib/cpp
3105 RANLIB="ar -ts"
3106 ;;
3107
3108 ## UXP/V
3109 f301-fujitsu-uxpv4.1)
3110 machine=f301 opsys=uxpv
3111 ;;
3112
3113 ## AMD x86-64 Linux-based GNU system
3114 x86_64-*-linux-gnu* )
3115 machine=amdx86-64 opsys=gnu-linux
3116 ;;
3117
3118 ## Tensilica Xtensa Linux-based GNU system
3119 xtensa-*-linux-gnu* )
3120 machine=xtensa opsys=gnu-linux
3121 ;;
3122
3123 * )
3124 unported=yes
3125 ;;
3126 esac
3127
3128 ### If the code above didn't choose an operating system, just choose
3129 ### an operating system based on the configuration name. You really
3130 ### only want to use this when you have no idea what the right
3131 ### operating system is; if you know what operating systems a machine
3132 ### runs, it's cleaner to make it explicit in the case statement
3133 ### above.
3134 if test x"${opsys}" = x; then
3135 case "${canonical}" in
3136 *-gnu* ) opsys=gnu ;;
3137 *-bsd4.[01] ) opsys=bsd4-1 ;;
3138 *-bsd4.2 ) opsys=bsd4-2 ;;
3139 *-bsd4.3 ) opsys=bsd4-3 ;;
3140 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3141 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3142 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3143 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3144 *-sysv4.2uw* ) opsys=unixware ;;
3145 *-sysv5uw* ) opsys=unixware ;;
3146 *-sysv5OpenUNIX* ) opsys=unixware ;;
3147 *-sysv4.1* | *-sysvr4.1* )
3148 NON_GNU_CPP=/usr/lib/cpp
3149 opsys=usg5-4 ;;
3150 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3151 if [ x$NON_GNU_CPP = x ]; then
3152 if [ -f /usr/ccs/lib/cpp ]; then
3153 NON_GNU_CPP=/usr/ccs/lib/cpp
3154 else
3155 NON_GNU_CPP=/lib/cpp
3156 fi
3157 fi
3158 opsys=usg5-4-2 ;;
3159 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3160 * )
3161 unported=yes
3162 ;;
3163 esac
3164 fi
3165
3166
3167
3168 if test $unported = yes; then
3169 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3170 Check \`etc/MACHINES' for recognized configuration names." >&5
3171 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3172 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3173 { (exit 1); exit 1; }; }
3174 fi
3175
3176 machfile="m/${machine}.h"
3177 opsysfile="s/${opsys}.h"
3178
3179
3180 #### Choose a compiler.
3181 test -n "$CC" && cc_specified=yes
3182
3183 # Save the value of CFLAGS that the user specified.
3184 SPECIFIED_CFLAGS="$CFLAGS"
3185
3186 case ${with_gcc} in
3187 "yes" ) CC="gcc" GCC=yes ;;
3188 "no" ) : ${CC=cc} ;;
3189 * )
3190 esac
3191 ac_ext=c
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 if test -n "$ac_tool_prefix"; then
3197 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3198 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3201 if test "${ac_cv_prog_CC+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 if test -n "$CC"; then
3205 ac_cv_prog_CC="$CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218 done
3219 done
3220 IFS=$as_save_IFS
3221
3222 fi
3223 fi
3224 CC=$ac_cv_prog_CC
3225 if test -n "$CC"; then
3226 { echo "$as_me:$LINENO: result: $CC" >&5
3227 echo "${ECHO_T}$CC" >&6; }
3228 else
3229 { echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6; }
3231 fi
3232
3233
3234 fi
3235 if test -z "$ac_cv_prog_CC"; then
3236 ac_ct_CC=$CC
3237 # Extract the first word of "gcc", so it can be a program name with args.
3238 set dummy gcc; ac_word=$2
3239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_ac_ct_CC="gcc"
3255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3267 echo "${ECHO_T}$ac_ct_CC" >&6; }
3268 else
3269 { echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6; }
3271 fi
3272
3273 if test "x$ac_ct_CC" = x; then
3274 CC=""
3275 else
3276 case $cross_compiling:$ac_tool_warned in
3277 yes:)
3278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3279 whose name does not start with the host triplet. If you think this
3280 configuration is useful to you, please write to autoconf@gnu.org." >&5
3281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3282 whose name does not start with the host triplet. If you think this
3283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3284 ac_tool_warned=yes ;;
3285 esac
3286 CC=$ac_ct_CC
3287 fi
3288 else
3289 CC="$ac_cv_prog_CC"
3290 fi
3291
3292 if test -z "$CC"; then
3293 if test -n "$ac_tool_prefix"; then
3294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3295 set dummy ${ac_tool_prefix}cc; ac_word=$2
3296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3298 if test "${ac_cv_prog_CC+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC="$CC" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311 ac_cv_prog_CC="${ac_tool_prefix}cc"
3312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3314 fi
3315 done
3316 done
3317 IFS=$as_save_IFS
3318
3319 fi
3320 fi
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323 { echo "$as_me:$LINENO: result: $CC" >&5
3324 echo "${ECHO_T}$CC" >&6; }
3325 else
3326 { echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6; }
3328 fi
3329
3330
3331 fi
3332 fi
3333 if test -z "$CC"; then
3334 # Extract the first word of "cc", so it can be a program name with args.
3335 set dummy cc; ac_word=$2
3336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3338 if test "${ac_cv_prog_CC+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 ac_prog_rejected=no
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3353 ac_prog_rejected=yes
3354 continue
3355 fi
3356 ac_cv_prog_CC="cc"
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360 done
3361 done
3362 IFS=$as_save_IFS
3363
3364 if test $ac_prog_rejected = yes; then
3365 # We found a bogon in the path, so make sure we never use it.
3366 set dummy $ac_cv_prog_CC
3367 shift
3368 if test $# != 0; then
3369 # We chose a different compiler from the bogus one.
3370 # However, it has the same basename, so the bogon will be chosen
3371 # first if we set CC to just the basename; use the full file name.
3372 shift
3373 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3374 fi
3375 fi
3376 fi
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380 { echo "$as_me:$LINENO: result: $CC" >&5
3381 echo "${ECHO_T}$CC" >&6; }
3382 else
3383 { echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6; }
3385 fi
3386
3387
3388 fi
3389 if test -z "$CC"; then
3390 if test -n "$ac_tool_prefix"; then
3391 for ac_prog in cl.exe
3392 do
3393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_CC+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { echo "$as_me:$LINENO: result: $CC" >&5
3423 echo "${ECHO_T}$CC" >&6; }
3424 else
3425 { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3427 fi
3428
3429
3430 test -n "$CC" && break
3431 done
3432 fi
3433 if test -z "$CC"; then
3434 ac_ct_CC=$CC
3435 for ac_prog in cl.exe
3436 do
3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy $ac_prog; ac_word=$2
3439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 if test -n "$ac_ct_CC"; then
3445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 ac_cv_prog_ac_ct_CC="$ac_prog"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3465 if test -n "$ac_ct_CC"; then
3466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3467 echo "${ECHO_T}$ac_ct_CC" >&6; }
3468 else
3469 { echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6; }
3471 fi
3472
3473
3474 test -n "$ac_ct_CC" && break
3475 done
3476
3477 if test "x$ac_ct_CC" = x; then
3478 CC=""
3479 else
3480 case $cross_compiling:$ac_tool_warned in
3481 yes:)
3482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3483 whose name does not start with the host triplet. If you think this
3484 configuration is useful to you, please write to autoconf@gnu.org." >&5
3485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3486 whose name does not start with the host triplet. If you think this
3487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3488 ac_tool_warned=yes ;;
3489 esac
3490 CC=$ac_ct_CC
3491 fi
3492 fi
3493
3494 fi
3495
3496
3497 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3498 See \`config.log' for more details." >&5
3499 echo "$as_me: error: no acceptable C compiler found in \$PATH
3500 See \`config.log' for more details." >&2;}
3501 { (exit 1); exit 1; }; }
3502
3503 # Provide some information about the compiler.
3504 echo "$as_me:$LINENO: checking for C compiler version" >&5
3505 ac_compiler=`set X $ac_compile; echo $2`
3506 { (ac_try="$ac_compiler --version >&5"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_compiler --version >&5") 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }
3516 { (ac_try="$ac_compiler -v >&5"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_compiler -v >&5") 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }
3526 { (ac_try="$ac_compiler -V >&5"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compiler -V >&5") 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }
3536
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543
3544 int
3545 main ()
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 ac_clean_files_save=$ac_clean_files
3553 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3554 # Try to create an executable without -o first, disregard a.out.
3555 # It will help us diagnose broken compilers, and finding out an intuition
3556 # of exeext.
3557 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3558 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3559 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3560 #
3561 # List of possible output files, starting from the most likely.
3562 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3563 # only as a last resort. b.out is created by i960 compilers.
3564 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3565 #
3566 # The IRIX 6 linker writes into existing files which may not be
3567 # executable, retaining their permissions. Remove them first so a
3568 # subsequent execution test works.
3569 ac_rmfiles=
3570 for ac_file in $ac_files
3571 do
3572 case $ac_file in
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3574 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3575 esac
3576 done
3577 rm -f $ac_rmfiles
3578
3579 if { (ac_try="$ac_link_default"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_link_default") 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; then
3589 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3590 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3591 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3592 # so that the user can short-circuit this test for compilers unknown to
3593 # Autoconf.
3594 for ac_file in $ac_files ''
3595 do
3596 test -f "$ac_file" || continue
3597 case $ac_file in
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3599 ;;
3600 [ab].out )
3601 # We found the default executable, but exeext='' is most
3602 # certainly right.
3603 break;;
3604 *.* )
3605 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3606 then :; else
3607 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3608 fi
3609 # We set ac_cv_exeext here because the later test for it is not
3610 # safe: cross compilers may not add the suffix if given an `-o'
3611 # argument, so we may need to know it at that point already.
3612 # Even if this section looks crufty: it has the advantage of
3613 # actually working.
3614 break;;
3615 * )
3616 break;;
3617 esac
3618 done
3619 test "$ac_cv_exeext" = no && ac_cv_exeext=
3620
3621 else
3622 ac_file=''
3623 fi
3624
3625 { echo "$as_me:$LINENO: result: $ac_file" >&5
3626 echo "${ECHO_T}$ac_file" >&6; }
3627 if test -z "$ac_file"; then
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3632 See \`config.log' for more details." >&5
3633 echo "$as_me: error: C compiler cannot create executables
3634 See \`config.log' for more details." >&2;}
3635 { (exit 77); exit 77; }; }
3636 fi
3637
3638 ac_exeext=$ac_cv_exeext
3639
3640 # Check that the compiler produces executables we can run. If not, either
3641 # the compiler is broken, or we cross compile.
3642 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3643 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3644 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3645 # If not cross compiling, check that we can run a simple program.
3646 if test "$cross_compiling" != yes; then
3647 if { ac_try='./$ac_file'
3648 { (case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_try") 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 cross_compiling=no
3658 else
3659 if test "$cross_compiling" = maybe; then
3660 cross_compiling=yes
3661 else
3662 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3663 If you meant to cross compile, use \`--host'.
3664 See \`config.log' for more details." >&5
3665 echo "$as_me: error: cannot run C compiled programs.
3666 If you meant to cross compile, use \`--host'.
3667 See \`config.log' for more details." >&2;}
3668 { (exit 1); exit 1; }; }
3669 fi
3670 fi
3671 fi
3672 { echo "$as_me:$LINENO: result: yes" >&5
3673 echo "${ECHO_T}yes" >&6; }
3674
3675 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3676 ac_clean_files=$ac_clean_files_save
3677 # Check that the compiler produces executables we can run. If not, either
3678 # the compiler is broken, or we cross compile.
3679 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3680 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3681 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3682 echo "${ECHO_T}$cross_compiling" >&6; }
3683
3684 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3685 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3686 if { (ac_try="$ac_link"
3687 case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_link") 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; then
3696 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3697 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3698 # work properly (i.e., refer to `conftest.exe'), while it won't with
3699 # `rm'.
3700 for ac_file in conftest.exe conftest conftest.*; do
3701 test -f "$ac_file" || continue
3702 case $ac_file in
3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705 break;;
3706 * ) break;;
3707 esac
3708 done
3709 else
3710 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3711 See \`config.log' for more details." >&5
3712 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3713 See \`config.log' for more details." >&2;}
3714 { (exit 1); exit 1; }; }
3715 fi
3716
3717 rm -f conftest$ac_cv_exeext
3718 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3719 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3720
3721 rm -f conftest.$ac_ext
3722 EXEEXT=$ac_cv_exeext
3723 ac_exeext=$EXEEXT
3724 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3725 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3726 if test "${ac_cv_objext+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 cat >conftest.$ac_ext <<_ACEOF
3730 /* confdefs.h. */
3731 _ACEOF
3732 cat confdefs.h >>conftest.$ac_ext
3733 cat >>conftest.$ac_ext <<_ACEOF
3734 /* end confdefs.h. */
3735
3736 int
3737 main ()
3738 {
3739
3740 ;
3741 return 0;
3742 }
3743 _ACEOF
3744 rm -f conftest.o conftest.obj
3745 if { (ac_try="$ac_compile"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_compile") 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; then
3755 for ac_file in conftest.o conftest.obj conftest.*; do
3756 test -f "$ac_file" || continue;
3757 case $ac_file in
3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3759 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3760 break;;
3761 esac
3762 done
3763 else
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3768 See \`config.log' for more details." >&5
3769 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3770 See \`config.log' for more details." >&2;}
3771 { (exit 1); exit 1; }; }
3772 fi
3773
3774 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3775 fi
3776 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3777 echo "${ECHO_T}$ac_cv_objext" >&6; }
3778 OBJEXT=$ac_cv_objext
3779 ac_objext=$OBJEXT
3780 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3781 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3782 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785 cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h. */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3791
3792 int
3793 main ()
3794 {
3795 #ifndef __GNUC__
3796 choke me
3797 #endif
3798
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 rm -f conftest.$ac_objext
3804 if { (ac_try="$ac_compile"
3805 case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_compile") 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } && {
3817 test -z "$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3819 } && test -s conftest.$ac_objext; then
3820 ac_compiler_gnu=yes
3821 else
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 ac_compiler_gnu=no
3826 fi
3827
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3830
3831 fi
3832 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3833 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3834 GCC=`test $ac_compiler_gnu = yes && echo yes`
3835 ac_test_CFLAGS=${CFLAGS+set}
3836 ac_save_CFLAGS=$CFLAGS
3837 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3838 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3839 if test "${ac_cv_prog_cc_g+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842 ac_save_c_werror_flag=$ac_c_werror_flag
3843 ac_c_werror_flag=yes
3844 ac_cv_prog_cc_g=no
3845 CFLAGS="-g"
3846 cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h. */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852
3853 int
3854 main ()
3855 {
3856
3857 ;
3858 return 0;
3859 }
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (ac_try="$ac_compile"
3863 case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_compile") 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } && {
3875 test -z "$ac_c_werror_flag" ||
3876 test ! -s conftest.err
3877 } && test -s conftest.$ac_objext; then
3878 ac_cv_prog_cc_g=yes
3879 else
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 CFLAGS=""
3884 cat >conftest.$ac_ext <<_ACEOF
3885 /* confdefs.h. */
3886 _ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890
3891 int
3892 main ()
3893 {
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 rm -f conftest.$ac_objext
3900 if { (ac_try="$ac_compile"
3901 case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_compile") 2>conftest.er1
3907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest.$ac_objext; then
3916 :
3917 else
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3920
3921 ac_c_werror_flag=$ac_save_c_werror_flag
3922 CFLAGS="-g"
3923 cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h. */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929
3930 int
3931 main ()
3932 {
3933
3934 ;
3935 return 0;
3936 }
3937 _ACEOF
3938 rm -f conftest.$ac_objext
3939 if { (ac_try="$ac_compile"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_compile") 2>conftest.er1
3946 ac_status=$?
3947 grep -v '^ *+' conftest.er1 >conftest.err
3948 rm -f conftest.er1
3949 cat conftest.err >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } && {
3952 test -z "$ac_c_werror_flag" ||
3953 test ! -s conftest.err
3954 } && test -s conftest.$ac_objext; then
3955 ac_cv_prog_cc_g=yes
3956 else
3957 echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3959
3960
3961 fi
3962
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 fi
3965
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 fi
3968
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_c_werror_flag=$ac_save_c_werror_flag
3971 fi
3972 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3973 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3974 if test "$ac_test_CFLAGS" = set; then
3975 CFLAGS=$ac_save_CFLAGS
3976 elif test $ac_cv_prog_cc_g = yes; then
3977 if test "$GCC" = yes; then
3978 CFLAGS="-g -O2"
3979 else
3980 CFLAGS="-g"
3981 fi
3982 else
3983 if test "$GCC" = yes; then
3984 CFLAGS="-O2"
3985 else
3986 CFLAGS=
3987 fi
3988 fi
3989 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3990 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3991 if test "${ac_cv_prog_cc_c89+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 ac_cv_prog_cc_c89=no
3995 ac_save_CC=$CC
3996 cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h. */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4002 #include <stdarg.h>
4003 #include <stdio.h>
4004 #include <sys/types.h>
4005 #include <sys/stat.h>
4006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4007 struct buf { int x; };
4008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4009 static char *e (p, i)
4010 char **p;
4011 int i;
4012 {
4013 return p[i];
4014 }
4015 static char *f (char * (*g) (char **, int), char **p, ...)
4016 {
4017 char *s;
4018 va_list v;
4019 va_start (v,p);
4020 s = g (p, va_arg (v,int));
4021 va_end (v);
4022 return s;
4023 }
4024
4025 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4026 function prototypes and stuff, but not '\xHH' hex character constants.
4027 These don't provoke an error unfortunately, instead are silently treated
4028 as 'x'. The following induces an error, until -std is added to get
4029 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4030 array size at least. It's necessary to write '\x00'==0 to get something
4031 that's true only with -std. */
4032 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4033
4034 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4035 inside strings and character constants. */
4036 #define FOO(x) 'x'
4037 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4038
4039 int test (int i, double x);
4040 struct s1 {int (*f) (int a);};
4041 struct s2 {int (*f) (double a);};
4042 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4043 int argc;
4044 char **argv;
4045 int
4046 main ()
4047 {
4048 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4049 ;
4050 return 0;
4051 }
4052 _ACEOF
4053 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4054 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4055 do
4056 CC="$ac_save_CC $ac_arg"
4057 rm -f conftest.$ac_objext
4058 if { (ac_try="$ac_compile"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_compile") 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && {
4071 test -z "$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4073 } && test -s conftest.$ac_objext; then
4074 ac_cv_prog_cc_c89=$ac_arg
4075 else
4076 echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4078
4079
4080 fi
4081
4082 rm -f core conftest.err conftest.$ac_objext
4083 test "x$ac_cv_prog_cc_c89" != "xno" && break
4084 done
4085 rm -f conftest.$ac_ext
4086 CC=$ac_save_CC
4087
4088 fi
4089 # AC_CACHE_VAL
4090 case "x$ac_cv_prog_cc_c89" in
4091 x)
4092 { echo "$as_me:$LINENO: result: none needed" >&5
4093 echo "${ECHO_T}none needed" >&6; } ;;
4094 xno)
4095 { echo "$as_me:$LINENO: result: unsupported" >&5
4096 echo "${ECHO_T}unsupported" >&6; } ;;
4097 *)
4098 CC="$CC $ac_cv_prog_cc_c89"
4099 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4100 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4101 esac
4102
4103
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109
4110
4111 # On Suns, sometimes $CPP names a directory.
4112 if test -n "$CPP" && test -d "$CPP"; then
4113 CPP=
4114 fi
4115
4116 #### Some systems specify a CPP to use unless we are using GCC.
4117 #### Now that we know whether we are using GCC, we can decide whether
4118 #### to use that one.
4119 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4120 then
4121 CPP="$NON_GNU_CPP"
4122 fi
4123
4124 #### Some systems specify a CC to use unless we are using GCC.
4125 #### Now that we know whether we are using GCC, we can decide whether
4126 #### to use that one.
4127 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4128 test x$cc_specified != xyes
4129 then
4130 CC="$NON_GNU_CC"
4131 fi
4132
4133 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4134 then
4135 CC="$CC $GCC_TEST_OPTIONS"
4136 fi
4137
4138 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4139 then
4140 CC="$CC $NON_GCC_TEST_OPTIONS"
4141 fi
4142
4143
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4150 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4151 # On Suns, sometimes $CPP names a directory.
4152 if test -n "$CPP" && test -d "$CPP"; then
4153 CPP=
4154 fi
4155 if test -z "$CPP"; then
4156 if test "${ac_cv_prog_CPP+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159 # Double quotes because CPP needs to be expanded
4160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4161 do
4162 ac_preproc_ok=false
4163 for ac_c_preproc_warn_flag in '' yes
4164 do
4165 # Use a header file that comes with gcc, so configuring glibc
4166 # with a fresh cross-compiler works.
4167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4168 # <limits.h> exists even on freestanding compilers.
4169 # On the NeXT, cc -E runs the code through the compiler's parser,
4170 # not just through cpp. "Syntax error" is here to catch this case.
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 #ifdef __STDC__
4178 # include <limits.h>
4179 #else
4180 # include <assert.h>
4181 #endif
4182 Syntax error
4183 _ACEOF
4184 if { (ac_try="$ac_cpp conftest.$ac_ext"
4185 case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188 esac
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } >/dev/null && {
4197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4198 test ! -s conftest.err
4199 }; then
4200 :
4201 else
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205 # Broken: fails on valid input.
4206 continue
4207 fi
4208
4209 rm -f conftest.err conftest.$ac_ext
4210
4211 # OK, works on sane cases. Now check whether nonexistent headers
4212 # can be detected and how.
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h. */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 #include <ac_nonexistent.h>
4220 _ACEOF
4221 if { (ac_try="$ac_cpp conftest.$ac_ext"
4222 case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } >/dev/null && {
4234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 }; then
4237 # Broken: success on invalid input.
4238 continue
4239 else
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243 # Passes both tests.
4244 ac_preproc_ok=:
4245 break
4246 fi
4247
4248 rm -f conftest.err conftest.$ac_ext
4249
4250 done
4251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4252 rm -f conftest.err conftest.$ac_ext
4253 if $ac_preproc_ok; then
4254 break
4255 fi
4256
4257 done
4258 ac_cv_prog_CPP=$CPP
4259
4260 fi
4261 CPP=$ac_cv_prog_CPP
4262 else
4263 ac_cv_prog_CPP=$CPP
4264 fi
4265 { echo "$as_me:$LINENO: result: $CPP" >&5
4266 echo "${ECHO_T}$CPP" >&6; }
4267 ac_preproc_ok=false
4268 for ac_c_preproc_warn_flag in '' yes
4269 do
4270 # Use a header file that comes with gcc, so configuring glibc
4271 # with a fresh cross-compiler works.
4272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273 # <limits.h> exists even on freestanding compilers.
4274 # On the NeXT, cc -E runs the code through the compiler's parser,
4275 # not just through cpp. "Syntax error" is here to catch this case.
4276 cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h. */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4282 #ifdef __STDC__
4283 # include <limits.h>
4284 #else
4285 # include <assert.h>
4286 #endif
4287 Syntax error
4288 _ACEOF
4289 if { (ac_try="$ac_cpp conftest.$ac_ext"
4290 case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4296 ac_status=$?
4297 grep -v '^ *+' conftest.er1 >conftest.err
4298 rm -f conftest.er1
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } >/dev/null && {
4302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4303 test ! -s conftest.err
4304 }; then
4305 :
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 # Broken: fails on valid input.
4311 continue
4312 fi
4313
4314 rm -f conftest.err conftest.$ac_ext
4315
4316 # OK, works on sane cases. Now check whether nonexistent headers
4317 # can be detected and how.
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h. */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 #include <ac_nonexistent.h>
4325 _ACEOF
4326 if { (ac_try="$ac_cpp conftest.$ac_ext"
4327 case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } >/dev/null && {
4339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 }; then
4342 # Broken: success on invalid input.
4343 continue
4344 else
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348 # Passes both tests.
4349 ac_preproc_ok=:
4350 break
4351 fi
4352
4353 rm -f conftest.err conftest.$ac_ext
4354
4355 done
4356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4357 rm -f conftest.err conftest.$ac_ext
4358 if $ac_preproc_ok; then
4359 :
4360 else
4361 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4362 See \`config.log' for more details." >&5
4363 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4364 See \`config.log' for more details." >&2;}
4365 { (exit 1); exit 1; }; }
4366 fi
4367
4368 ac_ext=c
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373
4374
4375 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4376 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4377 if test "${ac_cv_path_GREP+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 # Extract the first word of "grep ggrep" to use in msg output
4381 if test -z "$GREP"; then
4382 set dummy grep ggrep; ac_prog_name=$2
4383 if test "${ac_cv_path_GREP+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386 ac_path_GREP_found=false
4387 # Loop through the user's path and test for each of PROGNAME-LIST
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4390 do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_prog in grep ggrep; do
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4396 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4397 # Check for GNU ac_path_GREP and select it if it is found.
4398 # Check for GNU $ac_path_GREP
4399 case `"$ac_path_GREP" --version 2>&1` in
4400 *GNU*)
4401 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4402 *)
4403 ac_count=0
4404 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4405 while :
4406 do
4407 cat "conftest.in" "conftest.in" >"conftest.tmp"
4408 mv "conftest.tmp" "conftest.in"
4409 cp "conftest.in" "conftest.nl"
4410 echo 'GREP' >> "conftest.nl"
4411 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413 ac_count=`expr $ac_count + 1`
4414 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4415 # Best one so far, save it but keep looking for a better one
4416 ac_cv_path_GREP="$ac_path_GREP"
4417 ac_path_GREP_max=$ac_count
4418 fi
4419 # 10*(2^10) chars as input seems more than enough
4420 test $ac_count -gt 10 && break
4421 done
4422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423 esac
4424
4425
4426 $ac_path_GREP_found && break 3
4427 done
4428 done
4429
4430 done
4431 IFS=$as_save_IFS
4432
4433
4434 fi
4435
4436 GREP="$ac_cv_path_GREP"
4437 if test -z "$GREP"; then
4438 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4439 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4440 { (exit 1); exit 1; }; }
4441 fi
4442
4443 else
4444 ac_cv_path_GREP=$GREP
4445 fi
4446
4447
4448 fi
4449 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4450 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4451 GREP="$ac_cv_path_GREP"
4452
4453
4454 { echo "$as_me:$LINENO: checking for egrep" >&5
4455 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4456 if test "${ac_cv_path_EGREP+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4460 then ac_cv_path_EGREP="$GREP -E"
4461 else
4462 # Extract the first word of "egrep" to use in msg output
4463 if test -z "$EGREP"; then
4464 set dummy egrep; ac_prog_name=$2
4465 if test "${ac_cv_path_EGREP+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 ac_path_EGREP_found=false
4469 # Loop through the user's path and test for each of PROGNAME-LIST
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4472 do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_prog in egrep; do
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4478 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4479 # Check for GNU ac_path_EGREP and select it if it is found.
4480 # Check for GNU $ac_path_EGREP
4481 case `"$ac_path_EGREP" --version 2>&1` in
4482 *GNU*)
4483 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4484 *)
4485 ac_count=0
4486 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4487 while :
4488 do
4489 cat "conftest.in" "conftest.in" >"conftest.tmp"
4490 mv "conftest.tmp" "conftest.in"
4491 cp "conftest.in" "conftest.nl"
4492 echo 'EGREP' >> "conftest.nl"
4493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4495 ac_count=`expr $ac_count + 1`
4496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4497 # Best one so far, save it but keep looking for a better one
4498 ac_cv_path_EGREP="$ac_path_EGREP"
4499 ac_path_EGREP_max=$ac_count
4500 fi
4501 # 10*(2^10) chars as input seems more than enough
4502 test $ac_count -gt 10 && break
4503 done
4504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4505 esac
4506
4507
4508 $ac_path_EGREP_found && break 3
4509 done
4510 done
4511
4512 done
4513 IFS=$as_save_IFS
4514
4515
4516 fi
4517
4518 EGREP="$ac_cv_path_EGREP"
4519 if test -z "$EGREP"; then
4520 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4521 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4522 { (exit 1); exit 1; }; }
4523 fi
4524
4525 else
4526 ac_cv_path_EGREP=$EGREP
4527 fi
4528
4529
4530 fi
4531 fi
4532 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4533 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4534 EGREP="$ac_cv_path_EGREP"
4535
4536
4537
4538 { echo "$as_me:$LINENO: checking for AIX" >&5
4539 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4540 cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h. */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4546 #ifdef _AIX
4547 yes
4548 #endif
4549
4550 _ACEOF
4551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4552 $EGREP "yes" >/dev/null 2>&1; then
4553 { echo "$as_me:$LINENO: result: yes" >&5
4554 echo "${ECHO_T}yes" >&6; }
4555 cat >>confdefs.h <<\_ACEOF
4556 #define _ALL_SOURCE 1
4557 _ACEOF
4558
4559 else
4560 { echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6; }
4562 fi
4563 rm -f conftest*
4564
4565
4566
4567 cat >>confdefs.h <<\_ACEOF
4568 #define _GNU_SOURCE 1
4569 _ACEOF
4570
4571
4572
4573 ### Use -Wno-pointer-sign if the compiler supports it
4574 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4575 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4576 SAVE_CFLAGS="$CFLAGS"
4577 CFLAGS="$CFLAGS -Wno-pointer-sign"
4578 cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h. */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4584
4585 int
4586 main ()
4587 {
4588
4589 ;
4590 return 0;
4591 }
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4595 case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598 esac
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_compile") 2>conftest.er1
4601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && {
4607 test -z "$ac_c_werror_flag" ||
4608 test ! -s conftest.err
4609 } && test -s conftest.$ac_objext; then
4610 has_option=yes
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 has_option=no
4616 fi
4617
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 if test $has_option = yes; then
4620 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4621 fi
4622 { echo "$as_me:$LINENO: result: $has_option" >&5
4623 echo "${ECHO_T}$has_option" >&6; }
4624 CFLAGS="$SAVE_CFLAGS"
4625 unset has_option
4626 unset SAVE_CFLAGS
4627
4628 #### Some other nice autoconf tests.
4629
4630 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4631 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4632 LN_S=$as_ln_s
4633 if test "$LN_S" = "ln -s"; then
4634 { echo "$as_me:$LINENO: result: yes" >&5
4635 echo "${ECHO_T}yes" >&6; }
4636 else
4637 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4638 echo "${ECHO_T}no, using $LN_S" >&6; }
4639 fi
4640
4641 ac_ext=c
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4647 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4648 # On Suns, sometimes $CPP names a directory.
4649 if test -n "$CPP" && test -d "$CPP"; then
4650 CPP=
4651 fi
4652 if test -z "$CPP"; then
4653 if test "${ac_cv_prog_CPP+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656 # Double quotes because CPP needs to be expanded
4657 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4658 do
4659 ac_preproc_ok=false
4660 for ac_c_preproc_warn_flag in '' yes
4661 do
4662 # Use a header file that comes with gcc, so configuring glibc
4663 # with a fresh cross-compiler works.
4664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 # <limits.h> exists even on freestanding compilers.
4666 # On the NeXT, cc -E runs the code through the compiler's parser,
4667 # not just through cpp. "Syntax error" is here to catch this case.
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #ifdef __STDC__
4675 # include <limits.h>
4676 #else
4677 # include <assert.h>
4678 #endif
4679 Syntax error
4680 _ACEOF
4681 if { (ac_try="$ac_cpp conftest.$ac_ext"
4682 case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4688 ac_status=$?
4689 grep -v '^ *+' conftest.er1 >conftest.err
4690 rm -f conftest.er1
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } >/dev/null && {
4694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4695 test ! -s conftest.err
4696 }; then
4697 :
4698 else
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702 # Broken: fails on valid input.
4703 continue
4704 fi
4705
4706 rm -f conftest.err conftest.$ac_ext
4707
4708 # OK, works on sane cases. Now check whether nonexistent headers
4709 # can be detected and how.
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h. */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #include <ac_nonexistent.h>
4717 _ACEOF
4718 if { (ac_try="$ac_cpp conftest.$ac_ext"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } >/dev/null && {
4731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4733 }; then
4734 # Broken: success on invalid input.
4735 continue
4736 else
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 # Passes both tests.
4741 ac_preproc_ok=:
4742 break
4743 fi
4744
4745 rm -f conftest.err conftest.$ac_ext
4746
4747 done
4748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4749 rm -f conftest.err conftest.$ac_ext
4750 if $ac_preproc_ok; then
4751 break
4752 fi
4753
4754 done
4755 ac_cv_prog_CPP=$CPP
4756
4757 fi
4758 CPP=$ac_cv_prog_CPP
4759 else
4760 ac_cv_prog_CPP=$CPP
4761 fi
4762 { echo "$as_me:$LINENO: result: $CPP" >&5
4763 echo "${ECHO_T}$CPP" >&6; }
4764 ac_preproc_ok=false
4765 for ac_c_preproc_warn_flag in '' yes
4766 do
4767 # Use a header file that comes with gcc, so configuring glibc
4768 # with a fresh cross-compiler works.
4769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4770 # <limits.h> exists even on freestanding compilers.
4771 # On the NeXT, cc -E runs the code through the compiler's parser,
4772 # not just through cpp. "Syntax error" is here to catch this case.
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 #ifdef __STDC__
4780 # include <limits.h>
4781 #else
4782 # include <assert.h>
4783 #endif
4784 Syntax error
4785 _ACEOF
4786 if { (ac_try="$ac_cpp conftest.$ac_ext"
4787 case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790 esac
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4793 ac_status=$?
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } >/dev/null && {
4799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4800 test ! -s conftest.err
4801 }; then
4802 :
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807 # Broken: fails on valid input.
4808 continue
4809 fi
4810
4811 rm -f conftest.err conftest.$ac_ext
4812
4813 # OK, works on sane cases. Now check whether nonexistent headers
4814 # can be detected and how.
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 #include <ac_nonexistent.h>
4822 _ACEOF
4823 if { (ac_try="$ac_cpp conftest.$ac_ext"
4824 case "(($ac_try" in
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4827 esac
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } >/dev/null && {
4836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4838 }; then
4839 # Broken: success on invalid input.
4840 continue
4841 else
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 # Passes both tests.
4846 ac_preproc_ok=:
4847 break
4848 fi
4849
4850 rm -f conftest.err conftest.$ac_ext
4851
4852 done
4853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4854 rm -f conftest.err conftest.$ac_ext
4855 if $ac_preproc_ok; then
4856 :
4857 else
4858 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4859 See \`config.log' for more details." >&5
4860 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4861 See \`config.log' for more details." >&2;}
4862 { (exit 1); exit 1; }; }
4863 fi
4864
4865 ac_ext=c
4866 ac_cpp='$CPP $CPPFLAGS'
4867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870
4871 # Find a good install program. We prefer a C program (faster),
4872 # so one script is as good as another. But avoid the broken or
4873 # incompatible versions:
4874 # SysV /etc/install, /usr/sbin/install
4875 # SunOS /usr/etc/install
4876 # IRIX /sbin/install
4877 # AIX /bin/install
4878 # AmigaOS /C/install, which installs bootblocks on floppy discs
4879 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4880 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4881 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4882 # OS/2's system install, which has a completely different semantic
4883 # ./install, which can be erroneously created by make from ./install.sh.
4884 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4885 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4886 if test -z "$INSTALL"; then
4887 if test "${ac_cv_path_install+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 # Account for people who put trailing slashes in PATH elements.
4896 case $as_dir/ in
4897 ./ | .// | /cC/* | \
4898 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4899 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4900 /usr/ucb/* ) ;;
4901 *)
4902 # OSF1 and SCO ODT 3.0 have their own names for install.
4903 # Don't use installbsd from OSF since it installs stuff as root
4904 # by default.
4905 for ac_prog in ginstall scoinst install; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4908 if test $ac_prog = install &&
4909 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4910 # AIX install. It has an incompatible calling convention.
4911 :
4912 elif test $ac_prog = install &&
4913 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4914 # program-specific install script used by HP pwplus--don't use.
4915 :
4916 else
4917 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4918 break 3
4919 fi
4920 fi
4921 done
4922 done
4923 ;;
4924 esac
4925 done
4926 IFS=$as_save_IFS
4927
4928
4929 fi
4930 if test "${ac_cv_path_install+set}" = set; then
4931 INSTALL=$ac_cv_path_install
4932 else
4933 # As a last resort, use the slow shell script. Don't cache a
4934 # value for INSTALL within a source directory, because that will
4935 # break other packages using the cache if that directory is
4936 # removed, or if the value is a relative name.
4937 INSTALL=$ac_install_sh
4938 fi
4939 fi
4940 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4941 echo "${ECHO_T}$INSTALL" >&6; }
4942
4943 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4944 # It thinks the first close brace ends the variable substitution.
4945 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4946
4947 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4948
4949 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4950
4951 if test "x$RANLIB" = x; then
4952 if test -n "$ac_tool_prefix"; then
4953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957 if test "${ac_cv_prog_RANLIB+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960 if test -n "$RANLIB"; then
4961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4962 else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4973 fi
4974 done
4975 done
4976 IFS=$as_save_IFS
4977
4978 fi
4979 fi
4980 RANLIB=$ac_cv_prog_RANLIB
4981 if test -n "$RANLIB"; then
4982 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4983 echo "${ECHO_T}$RANLIB" >&6; }
4984 else
4985 { echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6; }
4987 fi
4988
4989
4990 fi
4991 if test -z "$ac_cv_prog_RANLIB"; then
4992 ac_ct_RANLIB=$RANLIB
4993 # Extract the first word of "ranlib", so it can be a program name with args.
4994 set dummy ranlib; ac_word=$2
4995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4997 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 if test -n "$ac_ct_RANLIB"; then
5001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006 IFS=$as_save_IFS
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010 ac_cv_prog_ac_ct_RANLIB="ranlib"
5011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 break 2
5013 fi
5014 done
5015 done
5016 IFS=$as_save_IFS
5017
5018 fi
5019 fi
5020 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5021 if test -n "$ac_ct_RANLIB"; then
5022 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5023 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5024 else
5025 { echo "$as_me:$LINENO: result: no" >&5
5026 echo "${ECHO_T}no" >&6; }
5027 fi
5028
5029 if test "x$ac_ct_RANLIB" = x; then
5030 RANLIB=":"
5031 else
5032 case $cross_compiling:$ac_tool_warned in
5033 yes:)
5034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5035 whose name does not start with the host triplet. If you think this
5036 configuration is useful to you, please write to autoconf@gnu.org." >&5
5037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5038 whose name does not start with the host triplet. If you think this
5039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5040 ac_tool_warned=yes ;;
5041 esac
5042 RANLIB=$ac_ct_RANLIB
5043 fi
5044 else
5045 RANLIB="$ac_cv_prog_RANLIB"
5046 fi
5047
5048 fi
5049 # Extract the first word of "install-info", so it can be a program name with args.
5050 set dummy install-info; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 case $INSTALL_INFO in
5057 [\\/]* | ?:[\\/]*)
5058 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5059 ;;
5060 *)
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5071 fi
5072 done
5073 done
5074 IFS=$as_save_IFS
5075
5076 ;;
5077 esac
5078 fi
5079 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5080 if test -n "$INSTALL_INFO"; then
5081 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5082 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5083 else
5084 { echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6; }
5086 fi
5087
5088
5089 # Extract the first word of "install-info", so it can be a program name with args.
5090 set dummy install-info; ac_word=$2
5091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5093 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096 case $INSTALL_INFO in
5097 [\\/]* | ?:[\\/]*)
5098 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5099 ;;
5100 *)
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in /usr/sbin
5103 do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5111 fi
5112 done
5113 done
5114 IFS=$as_save_IFS
5115
5116 ;;
5117 esac
5118 fi
5119 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5120 if test -n "$INSTALL_INFO"; then
5121 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5122 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5123 else
5124 { echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6; }
5126 fi
5127
5128
5129 # Extract the first word of "install-info", so it can be a program name with args.
5130 set dummy install-info; ac_word=$2
5131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5133 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 case $INSTALL_INFO in
5137 [\\/]* | ?:[\\/]*)
5138 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5139 ;;
5140 *)
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in /sbin
5143 do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152 done
5153 done
5154 IFS=$as_save_IFS
5155
5156 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5157 ;;
5158 esac
5159 fi
5160 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5161 if test -n "$INSTALL_INFO"; then
5162 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5163 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5164 else
5165 { echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6; }
5167 fi
5168
5169
5170 # Extract the first word of "gzip", so it can be a program name with args.
5171 set dummy gzip; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 case $GZIP_PROG in
5178 [\\/]* | ?:[\\/]*)
5179 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5180 ;;
5181 *)
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197 ;;
5198 esac
5199 fi
5200 GZIP_PROG=$ac_cv_path_GZIP_PROG
5201 if test -n "$GZIP_PROG"; then
5202 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5203 echo "${ECHO_T}$GZIP_PROG" >&6; }
5204 else
5205 { echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6; }
5207 fi
5208
5209
5210
5211
5212 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5213 then
5214 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5215 fi
5216
5217 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5218 then
5219 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5220 fi
5221
5222
5223 late_LDFLAGS=$LDFLAGS
5224 if test "$GCC" = yes; then
5225 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5226 else
5227 LDFLAGS="$LDFLAGS -znocombreloc"
5228 fi
5229
5230 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5231 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5232 cat >conftest.$ac_ext <<_ACEOF
5233 main(){return 0;}
5234 _ACEOF
5235 rm -f conftest.$ac_objext conftest$ac_exeext
5236 if { (ac_try="$ac_link"
5237 case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240 esac
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_link") 2>conftest.er1
5243 ac_status=$?
5244 grep -v '^ *+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && {
5249 test -z "$ac_c_werror_flag" ||
5250 test ! -s conftest.err
5251 } && test -s conftest$ac_exeext &&
5252 $as_test_x conftest$ac_exeext; then
5253 { echo "$as_me:$LINENO: result: yes" >&5
5254 echo "${ECHO_T}yes" >&6; }
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 LDFLAGS=$late_LDFLAGS
5260 { echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6; }
5262 fi
5263
5264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5265 conftest$ac_exeext conftest.$ac_ext
5266
5267 #### Extract some information from the operating system and machine files.
5268
5269 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5270 - which libraries the lib-src programs will want, and
5271 - whether the GNU malloc routines are usable..." >&5
5272 echo "$as_me: checking the machine- and system-dependent files to find out
5273 - which libraries the lib-src programs will want, and
5274 - whether the GNU malloc routines are usable..." >&6;}
5275
5276 ### First figure out CFLAGS (which we use for running the compiler here)
5277 ### and REAL_CFLAGS (which we use for real compilation).
5278 ### The two are the same except on a few systems, where they are made
5279 ### different to work around various lossages. For example,
5280 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5281 ### as implying static linking.
5282
5283 ### If the CFLAGS env var is specified, we use that value
5284 ### instead of the default.
5285
5286 ### It's not important that this name contain the PID; you can't run
5287 ### two configures in the same directory and have anything work
5288 ### anyway.
5289 tempcname="conftest.c"
5290
5291 echo '
5292 #include "'${srcdir}'/src/'${opsysfile}'"
5293 #include "'${srcdir}'/src/'${machfile}'"
5294 #ifndef LIBS_MACHINE
5295 #define LIBS_MACHINE
5296 #endif
5297 #ifndef LIBS_SYSTEM
5298 #define LIBS_SYSTEM
5299 #endif
5300 #ifndef C_SWITCH_SYSTEM
5301 #define C_SWITCH_SYSTEM
5302 #endif
5303 #ifndef C_SWITCH_MACHINE
5304 #define C_SWITCH_MACHINE
5305 #endif
5306 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5307 configure___ c_switch_system=C_SWITCH_SYSTEM
5308 configure___ c_switch_machine=C_SWITCH_MACHINE
5309
5310 #ifndef LIB_X11_LIB
5311 #define LIB_X11_LIB -lX11
5312 #endif
5313
5314 #ifndef LIBX11_MACHINE
5315 #define LIBX11_MACHINE
5316 #endif
5317
5318 #ifndef LIBX11_SYSTEM
5319 #define LIBX11_SYSTEM
5320 #endif
5321 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5322
5323 #ifdef UNEXEC
5324 configure___ unexec=UNEXEC
5325 #else
5326 configure___ unexec=unexec.o
5327 #endif
5328
5329 #ifdef SYSTEM_MALLOC
5330 configure___ system_malloc=yes
5331 #else
5332 configure___ system_malloc=no
5333 #endif
5334
5335 #ifdef USE_MMAP_FOR_BUFFERS
5336 configure___ use_mmap_for_buffers=yes
5337 #else
5338 configure___ use_mmap_for_buffers=no
5339 #endif
5340
5341 #ifndef C_DEBUG_SWITCH
5342 #define C_DEBUG_SWITCH -g
5343 #endif
5344
5345 #ifndef C_OPTIMIZE_SWITCH
5346 #ifdef __GNUC__
5347 #define C_OPTIMIZE_SWITCH -O2
5348 #else
5349 #define C_OPTIMIZE_SWITCH -O
5350 #endif
5351 #endif
5352
5353 #ifndef C_WARNINGS_SWITCH
5354 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5355 #endif
5356
5357 #ifndef LD_SWITCH_MACHINE
5358 #define LD_SWITCH_MACHINE
5359 #endif
5360
5361 #ifndef LD_SWITCH_SYSTEM
5362 #define LD_SWITCH_SYSTEM
5363 #endif
5364
5365 #ifndef LD_SWITCH_X_SITE_AUX
5366 #define LD_SWITCH_X_SITE_AUX
5367 #endif
5368
5369 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5370 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5371
5372 #ifdef THIS_IS_CONFIGURE
5373
5374 /* Get the CFLAGS for tests in configure. */
5375 #ifdef __GNUC__
5376 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5377 #else
5378 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5379 #endif
5380
5381 #else /* not THIS_IS_CONFIGURE */
5382
5383 /* Get the CFLAGS for real compilation. */
5384 #ifdef __GNUC__
5385 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5386 #else
5387 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5388 #endif
5389
5390 #endif /* not THIS_IS_CONFIGURE */
5391 ' > ${tempcname}
5392
5393 # The value of CPP is a quoted variable reference, so we need to do this
5394 # to get its actual value...
5395 CPP=`eval "echo $CPP"`
5396 eval `${CPP} -Isrc ${tempcname} \
5397 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5398 if test "x$SPECIFIED_CFLAGS" = x; then
5399 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5400 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5401 else
5402 REAL_CFLAGS="$CFLAGS"
5403 fi
5404 rm ${tempcname}
5405
5406 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5407
5408 ### Make sure subsequent tests use flags consistent with the build flags.
5409
5410 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5411 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5412 else
5413 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5414 fi
5415
5416
5417
5418 # Check whether --enable-largefile was given.
5419 if test "${enable_largefile+set}" = set; then
5420 enableval=$enable_largefile;
5421 fi
5422
5423 if test "$enable_largefile" != no; then
5424
5425 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5426 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5427 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 ac_cv_sys_largefile_CC=no
5431 if test "$GCC" != yes; then
5432 ac_save_CC=$CC
5433 while :; do
5434 # IRIX 6.2 and later do not support large files by default,
5435 # so use the C compiler's -n32 option if that helps.
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <sys/types.h>
5443 /* Check that off_t can represent 2**63 - 1 correctly.
5444 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5445 since some C++ compilers masquerading as C compilers
5446 incorrectly reject 9223372036854775807. */
5447 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5448 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5449 && LARGE_OFF_T % 2147483647 == 1)
5450 ? 1 : -1];
5451 int
5452 main ()
5453 {
5454
5455 ;
5456 return 0;
5457 }
5458 _ACEOF
5459 rm -f conftest.$ac_objext
5460 if { (ac_try="$ac_compile"
5461 case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compile") 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } && {
5473 test -z "$ac_c_werror_flag" ||
5474 test ! -s conftest.err
5475 } && test -s conftest.$ac_objext; then
5476 break
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481
5482 fi
5483
5484 rm -f core conftest.err conftest.$ac_objext
5485 CC="$CC -n32"
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5488 case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5503 ac_cv_sys_largefile_CC=' -n32'; break
5504 else
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5507
5508
5509 fi
5510
5511 rm -f core conftest.err conftest.$ac_objext
5512 break
5513 done
5514 CC=$ac_save_CC
5515 rm -f conftest.$ac_ext
5516 fi
5517 fi
5518 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5519 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5520 if test "$ac_cv_sys_largefile_CC" != no; then
5521 CC=$CC$ac_cv_sys_largefile_CC
5522 fi
5523
5524 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5525 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5526 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529 while :; do
5530 cat >conftest.$ac_ext <<_ACEOF
5531 /* confdefs.h. */
5532 _ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 #include <sys/types.h>
5537 /* Check that off_t can represent 2**63 - 1 correctly.
5538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5539 since some C++ compilers masquerading as C compilers
5540 incorrectly reject 9223372036854775807. */
5541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5543 && LARGE_OFF_T % 2147483647 == 1)
5544 ? 1 : -1];
5545 int
5546 main ()
5547 {
5548
5549 ;
5550 return 0;
5551 }
5552 _ACEOF
5553 rm -f conftest.$ac_objext
5554 if { (ac_try="$ac_compile"
5555 case "(($ac_try" in
5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5558 esac
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_compile") 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && {
5567 test -z "$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.$ac_objext; then
5570 ac_cv_sys_file_offset_bits=no; break
5571 else
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5574
5575
5576 fi
5577
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #define _FILE_OFFSET_BITS 64
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5594 ? 1 : -1];
5595 int
5596 main ()
5597 {
5598
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (ac_try="$ac_compile"
5605 case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608 esac
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_compile") 2>conftest.er1
5611 ac_status=$?
5612 grep -v '^ *+' conftest.er1 >conftest.err
5613 rm -f conftest.er1
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && {
5617 test -z "$ac_c_werror_flag" ||
5618 test ! -s conftest.err
5619 } && test -s conftest.$ac_objext; then
5620 ac_cv_sys_file_offset_bits=64; break
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5624
5625
5626 fi
5627
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 ac_cv_sys_file_offset_bits=unknown
5630 break
5631 done
5632 fi
5633 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5634 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5635 case $ac_cv_sys_file_offset_bits in #(
5636 no | unknown) ;;
5637 *)
5638 cat >>confdefs.h <<_ACEOF
5639 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5640 _ACEOF
5641 ;;
5642 esac
5643 rm -f conftest*
5644 if test $ac_cv_sys_file_offset_bits = unknown; then
5645 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5646 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5647 if test "${ac_cv_sys_large_files+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 while :; do
5651 cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #include <sys/types.h>
5658 /* Check that off_t can represent 2**63 - 1 correctly.
5659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5660 since some C++ compilers masquerading as C compilers
5661 incorrectly reject 9223372036854775807. */
5662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5664 && LARGE_OFF_T % 2147483647 == 1)
5665 ? 1 : -1];
5666 int
5667 main ()
5668 {
5669
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 rm -f conftest.$ac_objext
5675 if { (ac_try="$ac_compile"
5676 case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && {
5688 test -z "$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 } && test -s conftest.$ac_objext; then
5691 ac_cv_sys_large_files=no; break
5692 else
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5695
5696
5697 fi
5698
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #define _LARGE_FILES 1
5707 #include <sys/types.h>
5708 /* Check that off_t can represent 2**63 - 1 correctly.
5709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5710 since some C++ compilers masquerading as C compilers
5711 incorrectly reject 9223372036854775807. */
5712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5714 && LARGE_OFF_T % 2147483647 == 1)
5715 ? 1 : -1];
5716 int
5717 main ()
5718 {
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (ac_try="$ac_compile"
5726 case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_compile") 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && {
5738 test -z "$ac_c_werror_flag" ||
5739 test ! -s conftest.err
5740 } && test -s conftest.$ac_objext; then
5741 ac_cv_sys_large_files=1; break
5742 else
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5745
5746
5747 fi
5748
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 ac_cv_sys_large_files=unknown
5751 break
5752 done
5753 fi
5754 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5755 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5756 case $ac_cv_sys_large_files in #(
5757 no | unknown) ;;
5758 *)
5759 cat >>confdefs.h <<_ACEOF
5760 #define _LARGE_FILES $ac_cv_sys_large_files
5761 _ACEOF
5762 ;;
5763 esac
5764 rm -f conftest*
5765 fi
5766 fi
5767
5768
5769
5770 ### The standard library on x86-64 GNU/Linux distributions can
5771 ### be located in either /usr/lib64 or /usr/lib.
5772 case "${canonical}" in
5773 x86_64-*-linux-gnu* )
5774 if test -d /usr/lib64; then
5775
5776 cat >>confdefs.h <<\_ACEOF
5777 #define HAVE_X86_64_LIB64_DIR 1
5778 _ACEOF
5779
5780 fi
5781 esac
5782
5783
5784
5785
5786 if test "${with_sound}" != "no"; then
5787 # Sound support for GNU/Linux and the free BSDs.
5788 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5789 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5790 if test "${ac_cv_header_stdc+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #include <stdlib.h>
5800 #include <stdarg.h>
5801 #include <string.h>
5802 #include <float.h>
5803
5804 int
5805 main ()
5806 {
5807
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (ac_try="$ac_compile"
5814 case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compile") 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest.$ac_objext; then
5829 ac_cv_header_stdc=yes
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834 ac_cv_header_stdc=no
5835 fi
5836
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838
5839 if test $ac_cv_header_stdc = yes; then
5840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 #include <string.h>
5848
5849 _ACEOF
5850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5851 $EGREP "memchr" >/dev/null 2>&1; then
5852 :
5853 else
5854 ac_cv_header_stdc=no
5855 fi
5856 rm -f conftest*
5857
5858 fi
5859
5860 if test $ac_cv_header_stdc = yes; then
5861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 #include <stdlib.h>
5869
5870 _ACEOF
5871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5872 $EGREP "free" >/dev/null 2>&1; then
5873 :
5874 else
5875 ac_cv_header_stdc=no
5876 fi
5877 rm -f conftest*
5878
5879 fi
5880
5881 if test $ac_cv_header_stdc = yes; then
5882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5883 if test "$cross_compiling" = yes; then
5884 :
5885 else
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 #include <ctype.h>
5893 #include <stdlib.h>
5894 #if ((' ' & 0x0FF) == 0x020)
5895 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5896 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5897 #else
5898 # define ISLOWER(c) \
5899 (('a' <= (c) && (c) <= 'i') \
5900 || ('j' <= (c) && (c) <= 'r') \
5901 || ('s' <= (c) && (c) <= 'z'))
5902 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5903 #endif
5904
5905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5906 int
5907 main ()
5908 {
5909 int i;
5910 for (i = 0; i < 256; i++)
5911 if (XOR (islower (i), ISLOWER (i))
5912 || toupper (i) != TOUPPER (i))
5913 return 2;
5914 return 0;
5915 }
5916 _ACEOF
5917 rm -f conftest$ac_exeext
5918 if { (ac_try="$ac_link"
5919 case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_link") 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 :
5938 else
5939 echo "$as_me: program exited with status $ac_status" >&5
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5942
5943 ( exit $ac_status )
5944 ac_cv_header_stdc=no
5945 fi
5946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5947 fi
5948
5949
5950 fi
5951 fi
5952 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5953 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5954 if test $ac_cv_header_stdc = yes; then
5955
5956 cat >>confdefs.h <<\_ACEOF
5957 #define STDC_HEADERS 1
5958 _ACEOF
5959
5960 fi
5961
5962 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5973 inttypes.h stdint.h unistd.h
5974 do
5975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 cat >conftest.$ac_ext <<_ACEOF
5982 /* confdefs.h. */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 $ac_includes_default
5988
5989 #include <$ac_header>
5990 _ACEOF
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest.$ac_objext; then
6008 eval "$as_ac_Header=yes"
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 eval "$as_ac_Header=no"
6014 fi
6015
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 fi
6018 ac_res=`eval echo '${'$as_ac_Header'}'`
6019 { echo "$as_me:$LINENO: result: $ac_res" >&5
6020 echo "${ECHO_T}$ac_res" >&6; }
6021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6022 cat >>confdefs.h <<_ACEOF
6023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6024 _ACEOF
6025
6026 fi
6027
6028 done
6029
6030
6031
6032
6033
6034 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6035 do
6036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 fi
6043 ac_res=`eval echo '${'$as_ac_Header'}'`
6044 { echo "$as_me:$LINENO: result: $ac_res" >&5
6045 echo "${ECHO_T}$ac_res" >&6; }
6046 else
6047 # Is the header compilable?
6048 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 $ac_includes_default
6057 #include <$ac_header>
6058 _ACEOF
6059 rm -f conftest.$ac_objext
6060 if { (ac_try="$ac_compile"
6061 case "(($ac_try" in
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6064 esac
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_compile") 2>conftest.er1
6067 ac_status=$?
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && {
6073 test -z "$ac_c_werror_flag" ||
6074 test ! -s conftest.err
6075 } && test -s conftest.$ac_objext; then
6076 ac_header_compiler=yes
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081 ac_header_compiler=no
6082 fi
6083
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6086 echo "${ECHO_T}$ac_header_compiler" >&6; }
6087
6088 # Is the header present?
6089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6091 cat >conftest.$ac_ext <<_ACEOF
6092 /* confdefs.h. */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 #include <$ac_header>
6098 _ACEOF
6099 if { (ac_try="$ac_cpp conftest.$ac_ext"
6100 case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103 esac
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6106 ac_status=$?
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } >/dev/null && {
6112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 }; then
6115 ac_header_preproc=yes
6116 else
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120 ac_header_preproc=no
6121 fi
6122
6123 rm -f conftest.err conftest.$ac_ext
6124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6125 echo "${ECHO_T}$ac_header_preproc" >&6; }
6126
6127 # So? What about this header?
6128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6129 yes:no: )
6130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6134 ac_header_preproc=yes
6135 ;;
6136 no:yes:* )
6137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6149
6150 ;;
6151 esac
6152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157 eval "$as_ac_Header=\$ac_header_preproc"
6158 fi
6159 ac_res=`eval echo '${'$as_ac_Header'}'`
6160 { echo "$as_me:$LINENO: result: $ac_res" >&5
6161 echo "${ECHO_T}$ac_res" >&6; }
6162
6163 fi
6164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6165 cat >>confdefs.h <<_ACEOF
6166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6167 _ACEOF
6168
6169 fi
6170
6171 done
6172
6173 # Emulation library used on NetBSD.
6174 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6175 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6176 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179 ac_check_lib_save_LIBS=$LIBS
6180 LIBS="-lossaudio $LIBS"
6181 cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h. */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187
6188 /* Override any GCC internal prototype to avoid an error.
6189 Use char because int might match the return type of a GCC
6190 builtin and then its argument prototype would still apply. */
6191 #ifdef __cplusplus
6192 extern "C"
6193 #endif
6194 char _oss_ioctl ();
6195 int
6196 main ()
6197 {
6198 return _oss_ioctl ();
6199 ;
6200 return 0;
6201 }
6202 _ACEOF
6203 rm -f conftest.$ac_objext conftest$ac_exeext
6204 if { (ac_try="$ac_link"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_link") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest$ac_exeext &&
6220 $as_test_x conftest$ac_exeext; then
6221 ac_cv_lib_ossaudio__oss_ioctl=yes
6222 else
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6225
6226 ac_cv_lib_ossaudio__oss_ioctl=no
6227 fi
6228
6229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6230 conftest$ac_exeext conftest.$ac_ext
6231 LIBS=$ac_check_lib_save_LIBS
6232 fi
6233 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6234 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6235 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6236 LIBSOUND=-lossaudio
6237 else
6238 LIBSOUND=
6239 fi
6240
6241
6242
6243 ALSA_REQUIRED=1.0.0
6244 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6245 if test "X${with_pkg_config_prog}" != X; then
6246 PKG_CONFIG="${with_pkg_config_prog}"
6247 fi
6248
6249 succeeded=no
6250
6251 if test -z "$PKG_CONFIG"; then
6252 # Extract the first word of "pkg-config", so it can be a program name with args.
6253 set dummy pkg-config; ac_word=$2
6254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6256 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259 case $PKG_CONFIG in
6260 [\\/]* | ?:[\\/]*)
6261 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6262 ;;
6263 *)
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275 done
6276 done
6277 IFS=$as_save_IFS
6278
6279 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6280 ;;
6281 esac
6282 fi
6283 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6284 if test -n "$PKG_CONFIG"; then
6285 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6286 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6287 else
6288 { echo "$as_me:$LINENO: result: no" >&5
6289 echo "${ECHO_T}no" >&6; }
6290 fi
6291
6292
6293 fi
6294
6295 if test "$PKG_CONFIG" = "no" ; then
6296 HAVE_ALSA=no
6297 else
6298 PKG_CONFIG_MIN_VERSION=0.9.0
6299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6300 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6301 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6302
6303 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6304 { echo "$as_me:$LINENO: result: yes" >&5
6305 echo "${ECHO_T}yes" >&6; }
6306 succeeded=yes
6307
6308 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6309 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6310 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6311 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6312 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6313
6314 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6315 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6316 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6317 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6318 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6319 else
6320 { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6322 ALSA_CFLAGS=""
6323 ALSA_LIBS=""
6324 ## If we have a custom action on failure, don't print errors, but
6325 ## do set a variable so people can do so.
6326 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6327
6328 fi
6329
6330
6331
6332 else
6333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6335 fi
6336 fi
6337
6338 if test $succeeded = yes; then
6339 HAVE_ALSA=yes
6340 else
6341 HAVE_ALSA=no
6342 fi
6343
6344 if test $HAVE_ALSA = yes; then
6345 SAVE_CFLAGS="$CFLAGS"
6346 SAVE_LDFLAGS="$LDFLAGS"
6347 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6348 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #include <asoundlib.h>
6356 int
6357 main ()
6358 {
6359 snd_lib_error_set_handler (0);
6360 ;
6361 return 0;
6362 }
6363 _ACEOF
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6366 case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compile") 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
6381 emacs_alsa_normal=yes
6382 else
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 emacs_alsa_normal=no
6387 fi
6388
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 if test "$emacs_alsa_normal" != yes; then
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 #include <alsa/asoundlib.h>
6398 int
6399 main ()
6400 {
6401 snd_lib_error_set_handler (0);
6402 ;
6403 return 0;
6404 }
6405 _ACEOF
6406 rm -f conftest.$ac_objext
6407 if { (ac_try="$ac_compile"
6408 case "(($ac_try" in
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6411 esac
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$ac_compile") 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && {
6420 test -z "$ac_c_werror_flag" ||
6421 test ! -s conftest.err
6422 } && test -s conftest.$ac_objext; then
6423 emacs_alsa_subdir=yes
6424 else
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428 emacs_alsa_subdir=no
6429 fi
6430
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 if test "$emacs_alsa_subdir" != yes; then
6433 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6434 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6435 { (exit 1); exit 1; }; }
6436 fi
6437 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6438 fi
6439
6440 CFLAGS="$SAVE_CFLAGS"
6441 LDFLAGS="$SAVE_LDFLAGS"
6442 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6443 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6444
6445 cat >>confdefs.h <<\_ACEOF
6446 #define HAVE_ALSA 1
6447 _ACEOF
6448
6449
6450 fi
6451
6452 fi
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6480 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6481 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6482 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6483 sys/utsname.h pwd.h
6484 do
6485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 fi
6492 ac_res=`eval echo '${'$as_ac_Header'}'`
6493 { echo "$as_me:$LINENO: result: $ac_res" >&5
6494 echo "${ECHO_T}$ac_res" >&6; }
6495 else
6496 # Is the header compilable?
6497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6499 cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h. */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 $ac_includes_default
6506 #include <$ac_header>
6507 _ACEOF
6508 rm -f conftest.$ac_objext
6509 if { (ac_try="$ac_compile"
6510 case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513 esac
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest.$ac_objext; then
6525 ac_header_compiler=yes
6526 else
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_header_compiler=no
6531 fi
6532
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6535 echo "${ECHO_T}$ac_header_compiler" >&6; }
6536
6537 # Is the header present?
6538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6540 cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h. */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #include <$ac_header>
6547 _ACEOF
6548 if { (ac_try="$ac_cpp conftest.$ac_ext"
6549 case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } >/dev/null && {
6561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6563 }; then
6564 ac_header_preproc=yes
6565 else
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6568
6569 ac_header_preproc=no
6570 fi
6571
6572 rm -f conftest.err conftest.$ac_ext
6573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6574 echo "${ECHO_T}$ac_header_preproc" >&6; }
6575
6576 # So? What about this header?
6577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6578 yes:no: )
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6583 ac_header_preproc=yes
6584 ;;
6585 no:yes:* )
6586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6598
6599 ;;
6600 esac
6601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606 eval "$as_ac_Header=\$ac_header_preproc"
6607 fi
6608 ac_res=`eval echo '${'$as_ac_Header'}'`
6609 { echo "$as_me:$LINENO: result: $ac_res" >&5
6610 echo "${ECHO_T}$ac_res" >&6; }
6611
6612 fi
6613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6614 cat >>confdefs.h <<_ACEOF
6615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6616 _ACEOF
6617
6618 fi
6619
6620 done
6621
6622
6623 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6624 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 #include <sys/personality.h>
6632 int
6633 main ()
6634 {
6635 personality (PER_LINUX32)
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (ac_try="$ac_compile"
6642 case "(($ac_try" in
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6645 esac
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_compile") 2>conftest.er1
6648 ac_status=$?
6649 grep -v '^ *+' conftest.er1 >conftest.err
6650 rm -f conftest.er1
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && {
6654 test -z "$ac_c_werror_flag" ||
6655 test ! -s conftest.err
6656 } && test -s conftest.$ac_objext; then
6657 emacs_cv_personality_linux32=yes
6658 else
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6661
6662 emacs_cv_personality_linux32=no
6663 fi
6664
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6667 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6668
6669 if test $emacs_cv_personality_linux32 = yes; then
6670
6671 cat >>confdefs.h <<\_ACEOF
6672 #define HAVE_PERSONALITY_LINUX32 1
6673 _ACEOF
6674
6675 fi
6676
6677
6678 for ac_header in term.h
6679 do
6680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <$ac_header>
6693 _ACEOF
6694 if { (ac_try="$ac_cpp conftest.$ac_ext"
6695 case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } >/dev/null && {
6707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 }; then
6710 eval "$as_ac_Header=yes"
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 eval "$as_ac_Header=no"
6716 fi
6717
6718 rm -f conftest.err conftest.$ac_ext
6719 fi
6720 ac_res=`eval echo '${'$as_ac_Header'}'`
6721 { echo "$as_me:$LINENO: result: $ac_res" >&5
6722 echo "${ECHO_T}$ac_res" >&6; }
6723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6724 cat >>confdefs.h <<_ACEOF
6725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6726 _ACEOF
6727
6728 fi
6729
6730 done
6731
6732 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6733 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6734 if test "${ac_cv_header_stdc+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #include <stdlib.h>
6744 #include <stdarg.h>
6745 #include <string.h>
6746 #include <float.h>
6747
6748 int
6749 main ()
6750 {
6751
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (ac_try="$ac_compile"
6758 case "(($ac_try" in
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6761 esac
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_compile") 2>conftest.er1
6764 ac_status=$?
6765 grep -v '^ *+' conftest.er1 >conftest.err
6766 rm -f conftest.er1
6767 cat conftest.err >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } && {
6770 test -z "$ac_c_werror_flag" ||
6771 test ! -s conftest.err
6772 } && test -s conftest.$ac_objext; then
6773 ac_cv_header_stdc=yes
6774 else
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6777
6778 ac_cv_header_stdc=no
6779 fi
6780
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782
6783 if test $ac_cv_header_stdc = yes; then
6784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6785 cat >conftest.$ac_ext <<_ACEOF
6786 /* confdefs.h. */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 #include <string.h>
6792
6793 _ACEOF
6794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6795 $EGREP "memchr" >/dev/null 2>&1; then
6796 :
6797 else
6798 ac_cv_header_stdc=no
6799 fi
6800 rm -f conftest*
6801
6802 fi
6803
6804 if test $ac_cv_header_stdc = yes; then
6805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <stdlib.h>
6813
6814 _ACEOF
6815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6816 $EGREP "free" >/dev/null 2>&1; then
6817 :
6818 else
6819 ac_cv_header_stdc=no
6820 fi
6821 rm -f conftest*
6822
6823 fi
6824
6825 if test $ac_cv_header_stdc = yes; then
6826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6827 if test "$cross_compiling" = yes; then
6828 :
6829 else
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <ctype.h>
6837 #include <stdlib.h>
6838 #if ((' ' & 0x0FF) == 0x020)
6839 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6840 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6841 #else
6842 # define ISLOWER(c) \
6843 (('a' <= (c) && (c) <= 'i') \
6844 || ('j' <= (c) && (c) <= 'r') \
6845 || ('s' <= (c) && (c) <= 'z'))
6846 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6847 #endif
6848
6849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6850 int
6851 main ()
6852 {
6853 int i;
6854 for (i = 0; i < 256; i++)
6855 if (XOR (islower (i), ISLOWER (i))
6856 || toupper (i) != TOUPPER (i))
6857 return 2;
6858 return 0;
6859 }
6860 _ACEOF
6861 rm -f conftest$ac_exeext
6862 if { (ac_try="$ac_link"
6863 case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866 esac
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_link") 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6872 { (case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875 esac
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877 (eval "$ac_try") 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 :
6882 else
6883 echo "$as_me: program exited with status $ac_status" >&5
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 ( exit $ac_status )
6888 ac_cv_header_stdc=no
6889 fi
6890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6891 fi
6892
6893
6894 fi
6895 fi
6896 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6897 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6898 if test $ac_cv_header_stdc = yes; then
6899
6900 cat >>confdefs.h <<\_ACEOF
6901 #define STDC_HEADERS 1
6902 _ACEOF
6903
6904 fi
6905
6906 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6907 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6908 if test "${ac_cv_header_time+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <sys/types.h>
6918 #include <sys/time.h>
6919 #include <time.h>
6920
6921 int
6922 main ()
6923 {
6924 if ((struct tm *) 0)
6925 return 0;
6926 ;
6927 return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext
6931 if { (ac_try="$ac_compile"
6932 case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6935 esac
6936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937 (eval "$ac_compile") 2>conftest.er1
6938 ac_status=$?
6939 grep -v '^ *+' conftest.er1 >conftest.err
6940 rm -f conftest.er1
6941 cat conftest.err >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && {
6944 test -z "$ac_c_werror_flag" ||
6945 test ! -s conftest.err
6946 } && test -s conftest.$ac_objext; then
6947 ac_cv_header_time=yes
6948 else
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6951
6952 ac_cv_header_time=no
6953 fi
6954
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 fi
6957 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6958 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6959 if test $ac_cv_header_time = yes; then
6960
6961 cat >>confdefs.h <<\_ACEOF
6962 #define TIME_WITH_SYS_TIME 1
6963 _ACEOF
6964
6965 fi
6966
6967 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6968 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6969 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 else
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 $ac_includes_default
6979 int
6980 main ()
6981 {
6982 #ifndef sys_siglist
6983 (void) sys_siglist;
6984 #endif
6985
6986 ;
6987 return 0;
6988 }
6989 _ACEOF
6990 rm -f conftest.$ac_objext
6991 if { (ac_try="$ac_compile"
6992 case "(($ac_try" in
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_compile") 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && {
7004 test -z "$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 } && test -s conftest.$ac_objext; then
7007 ac_cv_have_decl_sys_siglist=yes
7008 else
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7011
7012 ac_cv_have_decl_sys_siglist=no
7013 fi
7014
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 fi
7017 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7018 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7019 if test $ac_cv_have_decl_sys_siglist = yes; then
7020
7021 cat >>confdefs.h <<_ACEOF
7022 #define HAVE_DECL_SYS_SIGLIST 1
7023 _ACEOF
7024
7025
7026 else
7027 cat >>confdefs.h <<_ACEOF
7028 #define HAVE_DECL_SYS_SIGLIST 0
7029 _ACEOF
7030
7031
7032 fi
7033
7034
7035 if test $ac_cv_have_decl_sys_siglist != yes; then
7036 # For Tru64, at least:
7037 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7038 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7039 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042 cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h. */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 $ac_includes_default
7049 int
7050 main ()
7051 {
7052 #ifndef __sys_siglist
7053 (void) __sys_siglist;
7054 #endif
7055
7056 ;
7057 return 0;
7058 }
7059 _ACEOF
7060 rm -f conftest.$ac_objext
7061 if { (ac_try="$ac_compile"
7062 case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065 esac
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_compile") 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest.$ac_objext; then
7077 ac_cv_have_decl___sys_siglist=yes
7078 else
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082 ac_cv_have_decl___sys_siglist=no
7083 fi
7084
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 fi
7087 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7088 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7089 if test $ac_cv_have_decl___sys_siglist = yes; then
7090
7091 cat >>confdefs.h <<_ACEOF
7092 #define HAVE_DECL___SYS_SIGLIST 1
7093 _ACEOF
7094
7095
7096 else
7097 cat >>confdefs.h <<_ACEOF
7098 #define HAVE_DECL___SYS_SIGLIST 0
7099 _ACEOF
7100
7101
7102 fi
7103
7104
7105 if test $ac_cv_have_decl___sys_siglist = yes; then
7106
7107 cat >>confdefs.h <<\_ACEOF
7108 #define sys_siglist __sys_siglist
7109 _ACEOF
7110
7111 fi
7112 fi
7113 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7114 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7115 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <sys/types.h>
7125 #include <sys/wait.h>
7126 #ifndef WEXITSTATUS
7127 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7128 #endif
7129 #ifndef WIFEXITED
7130 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7131 #endif
7132
7133 int
7134 main ()
7135 {
7136 int s;
7137 wait (&s);
7138 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7139 ;
7140 return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7145 case "(($ac_try" in
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7148 esac
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
7151 ac_status=$?
7152 grep -v '^ *+' conftest.er1 >conftest.err
7153 rm -f conftest.er1
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
7160 ac_cv_header_sys_wait_h=yes
7161 else
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165 ac_cv_header_sys_wait_h=no
7166 fi
7167
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 fi
7170 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7171 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7172 if test $ac_cv_header_sys_wait_h = yes; then
7173
7174 cat >>confdefs.h <<\_ACEOF
7175 #define HAVE_SYS_WAIT_H 1
7176 _ACEOF
7177
7178 fi
7179
7180
7181 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7182 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7183 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186 cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 #ifdef TIME_WITH_SYS_TIME
7193 #include <sys/time.h>
7194 #include <time.h>
7195 #else
7196 #ifdef HAVE_SYS_TIME_H
7197 #include <sys/time.h>
7198 #else
7199 #include <time.h>
7200 #endif
7201 #endif
7202 #ifdef HAVE_UTIME_H
7203 #include <utime.h>
7204 #endif
7205 int
7206 main ()
7207 {
7208 static struct utimbuf x; x.actime = x.modtime;
7209 ;
7210 return 0;
7211 }
7212 _ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (ac_try="$ac_compile"
7215 case "(($ac_try" in
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7218 esac
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_compile") 2>conftest.er1
7221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && {
7227 test -z "$ac_c_werror_flag" ||
7228 test ! -s conftest.err
7229 } && test -s conftest.$ac_objext; then
7230 emacs_cv_struct_utimbuf=yes
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 emacs_cv_struct_utimbuf=no
7236 fi
7237
7238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239 fi
7240 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7241 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7242 if test $emacs_cv_struct_utimbuf = yes; then
7243
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_STRUCT_UTIMBUF 1
7246 _ACEOF
7247
7248 fi
7249
7250 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7251 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7252 if test "${ac_cv_type_signal+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 #include <sys/types.h>
7262 #include <signal.h>
7263
7264 int
7265 main ()
7266 {
7267 return *(signal (0, 0)) (0) == 1;
7268 ;
7269 return 0;
7270 }
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (ac_try="$ac_compile"
7274 case "(($ac_try" in
7275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276 *) ac_try_echo=$ac_try;;
7277 esac
7278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7280 ac_status=$?
7281 grep -v '^ *+' conftest.er1 >conftest.err
7282 rm -f conftest.er1
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_c_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.$ac_objext; then
7289 ac_cv_type_signal=int
7290 else
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7293
7294 ac_cv_type_signal=void
7295 fi
7296
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 fi
7299 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7300 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7301
7302 cat >>confdefs.h <<_ACEOF
7303 #define RETSIGTYPE $ac_cv_type_signal
7304 _ACEOF
7305
7306
7307
7308 { echo "$as_me:$LINENO: checking for speed_t" >&5
7309 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7310 if test "${emacs_cv_speed_t+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 #include <termios.h>
7320 int
7321 main ()
7322 {
7323 speed_t x = 1;
7324 ;
7325 return 0;
7326 }
7327 _ACEOF
7328 rm -f conftest.$ac_objext
7329 if { (ac_try="$ac_compile"
7330 case "(($ac_try" in
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7333 esac
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335 (eval "$ac_compile") 2>conftest.er1
7336 ac_status=$?
7337 grep -v '^ *+' conftest.er1 >conftest.err
7338 rm -f conftest.er1
7339 cat conftest.err >&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } && {
7342 test -z "$ac_c_werror_flag" ||
7343 test ! -s conftest.err
7344 } && test -s conftest.$ac_objext; then
7345 emacs_cv_speed_t=yes
7346 else
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7349
7350 emacs_cv_speed_t=no
7351 fi
7352
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 fi
7355 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7356 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7357 if test $emacs_cv_speed_t = yes; then
7358
7359 cat >>confdefs.h <<\_ACEOF
7360 #define HAVE_SPEED_T 1
7361 _ACEOF
7362
7363 fi
7364
7365 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7366 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7367 if test "${emacs_cv_struct_timeval+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 else
7370 cat >conftest.$ac_ext <<_ACEOF
7371 /* confdefs.h. */
7372 _ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 #ifdef TIME_WITH_SYS_TIME
7377 #include <sys/time.h>
7378 #include <time.h>
7379 #else
7380 #ifdef HAVE_SYS_TIME_H
7381 #include <sys/time.h>
7382 #else
7383 #include <time.h>
7384 #endif
7385 #endif
7386 int
7387 main ()
7388 {
7389 static struct timeval x; x.tv_sec = x.tv_usec;
7390 ;
7391 return 0;
7392 }
7393 _ACEOF
7394 rm -f conftest.$ac_objext
7395 if { (ac_try="$ac_compile"
7396 case "(($ac_try" in
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7399 esac
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_compile") 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest.$ac_objext; then
7411 emacs_cv_struct_timeval=yes
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7415
7416 emacs_cv_struct_timeval=no
7417 fi
7418
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 fi
7421 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7422 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7423 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7424 if test $emacs_cv_struct_timeval = yes; then
7425
7426 cat >>confdefs.h <<\_ACEOF
7427 #define HAVE_TIMEVAL 1
7428 _ACEOF
7429
7430 fi
7431
7432 { echo "$as_me:$LINENO: checking for struct exception" >&5
7433 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7434 if test "${emacs_cv_struct_exception+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 #include <math.h>
7444 int
7445 main ()
7446 {
7447 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7448 ;
7449 return 0;
7450 }
7451 _ACEOF
7452 rm -f conftest.$ac_objext
7453 if { (ac_try="$ac_compile"
7454 case "(($ac_try" in
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7457 esac
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_compile") 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest.$ac_objext; then
7469 emacs_cv_struct_exception=yes
7470 else
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474 emacs_cv_struct_exception=no
7475 fi
7476
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 fi
7479 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7480 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7481 HAVE_EXCEPTION=$emacs_cv_struct_exception
7482 if test $emacs_cv_struct_exception != yes; then
7483
7484 cat >>confdefs.h <<\_ACEOF
7485 #define NO_MATHERR 1
7486 _ACEOF
7487
7488 fi
7489
7490
7491 for ac_header in sys/socket.h
7492 do
7493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 fi
7500 ac_res=`eval echo '${'$as_ac_Header'}'`
7501 { echo "$as_me:$LINENO: result: $ac_res" >&5
7502 echo "${ECHO_T}$ac_res" >&6; }
7503 else
7504 # Is the header compilable?
7505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7507 cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h. */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 $ac_includes_default
7514 #include <$ac_header>
7515 _ACEOF
7516 rm -f conftest.$ac_objext
7517 if { (ac_try="$ac_compile"
7518 case "(($ac_try" in
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521 esac
7522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7523 (eval "$ac_compile") 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } && {
7530 test -z "$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 } && test -s conftest.$ac_objext; then
7533 ac_header_compiler=yes
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 ac_header_compiler=no
7539 fi
7540
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7543 echo "${ECHO_T}$ac_header_compiler" >&6; }
7544
7545 # Is the header present?
7546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <$ac_header>
7555 _ACEOF
7556 if { (ac_try="$ac_cpp conftest.$ac_ext"
7557 case "(($ac_try" in
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7560 esac
7561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7563 ac_status=$?
7564 grep -v '^ *+' conftest.er1 >conftest.err
7565 rm -f conftest.er1
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } >/dev/null && {
7569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 }; then
7572 ac_header_preproc=yes
7573 else
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7576
7577 ac_header_preproc=no
7578 fi
7579
7580 rm -f conftest.err conftest.$ac_ext
7581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7582 echo "${ECHO_T}$ac_header_preproc" >&6; }
7583
7584 # So? What about this header?
7585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7586 yes:no: )
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7591 ac_header_preproc=yes
7592 ;;
7593 no:yes:* )
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7606
7607 ;;
7608 esac
7609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614 eval "$as_ac_Header=\$ac_header_preproc"
7615 fi
7616 ac_res=`eval echo '${'$as_ac_Header'}'`
7617 { echo "$as_me:$LINENO: result: $ac_res" >&5
7618 echo "${ECHO_T}$ac_res" >&6; }
7619
7620 fi
7621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7622 cat >>confdefs.h <<_ACEOF
7623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7624 _ACEOF
7625
7626 fi
7627
7628 done
7629
7630
7631 for ac_header in net/if.h
7632 do
7633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639 cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h. */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 $ac_includes_default
7646 #if HAVE_SYS_SOCKET_H
7647 #include <sys/socket.h>
7648 #endif
7649
7650 #include <$ac_header>
7651 _ACEOF
7652 rm -f conftest.$ac_objext
7653 if { (ac_try="$ac_compile"
7654 case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_compile") 2>conftest.er1
7660 ac_status=$?
7661 grep -v '^ *+' conftest.er1 >conftest.err
7662 rm -f conftest.er1
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && {
7666 test -z "$ac_c_werror_flag" ||
7667 test ! -s conftest.err
7668 } && test -s conftest.$ac_objext; then
7669 eval "$as_ac_Header=yes"
7670 else
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674 eval "$as_ac_Header=no"
7675 fi
7676
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678 fi
7679 ac_res=`eval echo '${'$as_ac_Header'}'`
7680 { echo "$as_me:$LINENO: result: $ac_res" >&5
7681 echo "${ECHO_T}$ac_res" >&6; }
7682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7683 cat >>confdefs.h <<_ACEOF
7684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7685 _ACEOF
7686
7687 fi
7688
7689 done
7690
7691
7692 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7693 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7694 if test "${ac_cv_struct_tm+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697 cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 #include <sys/types.h>
7704 #include <time.h>
7705
7706 int
7707 main ()
7708 {
7709 struct tm tm;
7710 int *p = &tm.tm_sec;
7711 return !p;
7712 ;
7713 return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7718 case "(($ac_try" in
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7721 esac
7722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723 (eval "$ac_compile") 2>conftest.er1
7724 ac_status=$?
7725 grep -v '^ *+' conftest.er1 >conftest.err
7726 rm -f conftest.er1
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } && {
7730 test -z "$ac_c_werror_flag" ||
7731 test ! -s conftest.err
7732 } && test -s conftest.$ac_objext; then
7733 ac_cv_struct_tm=time.h
7734 else
7735 echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7737
7738 ac_cv_struct_tm=sys/time.h
7739 fi
7740
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 fi
7743 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7744 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7745 if test $ac_cv_struct_tm = sys/time.h; then
7746
7747 cat >>confdefs.h <<\_ACEOF
7748 #define TM_IN_SYS_TIME 1
7749 _ACEOF
7750
7751 fi
7752
7753 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7754 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7755 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 else
7758 cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h. */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 #include <sys/types.h>
7765 #include <$ac_cv_struct_tm>
7766
7767
7768 int
7769 main ()
7770 {
7771 static struct tm ac_aggr;
7772 if (ac_aggr.tm_zone)
7773 return 0;
7774 ;
7775 return 0;
7776 }
7777 _ACEOF
7778 rm -f conftest.$ac_objext
7779 if { (ac_try="$ac_compile"
7780 case "(($ac_try" in
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7783 esac
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_compile") 2>conftest.er1
7786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } && {
7792 test -z "$ac_c_werror_flag" ||
7793 test ! -s conftest.err
7794 } && test -s conftest.$ac_objext; then
7795 ac_cv_member_struct_tm_tm_zone=yes
7796 else
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7799
7800 cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h. */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7806 #include <sys/types.h>
7807 #include <$ac_cv_struct_tm>
7808
7809
7810 int
7811 main ()
7812 {
7813 static struct tm ac_aggr;
7814 if (sizeof ac_aggr.tm_zone)
7815 return 0;
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7822 case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7837 ac_cv_member_struct_tm_tm_zone=yes
7838 else
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842 ac_cv_member_struct_tm_tm_zone=no
7843 fi
7844
7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846 fi
7847
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849 fi
7850 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7851 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7852 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7853
7854 cat >>confdefs.h <<_ACEOF
7855 #define HAVE_STRUCT_TM_TM_ZONE 1
7856 _ACEOF
7857
7858
7859 fi
7860
7861 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7862
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_TM_ZONE 1
7865 _ACEOF
7866
7867 else
7868 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7869 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7870 if test "${ac_cv_have_decl_tzname+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 cat >conftest.$ac_ext <<_ACEOF
7874 /* confdefs.h. */
7875 _ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7879 #include <time.h>
7880
7881 int
7882 main ()
7883 {
7884 #ifndef tzname
7885 (void) tzname;
7886 #endif
7887
7888 ;
7889 return 0;
7890 }
7891 _ACEOF
7892 rm -f conftest.$ac_objext
7893 if { (ac_try="$ac_compile"
7894 case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897 esac
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_compile") 2>conftest.er1
7900 ac_status=$?
7901 grep -v '^ *+' conftest.er1 >conftest.err
7902 rm -f conftest.er1
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } && {
7906 test -z "$ac_c_werror_flag" ||
7907 test ! -s conftest.err
7908 } && test -s conftest.$ac_objext; then
7909 ac_cv_have_decl_tzname=yes
7910 else
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7913
7914 ac_cv_have_decl_tzname=no
7915 fi
7916
7917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 fi
7919 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7920 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7921 if test $ac_cv_have_decl_tzname = yes; then
7922
7923 cat >>confdefs.h <<_ACEOF
7924 #define HAVE_DECL_TZNAME 1
7925 _ACEOF
7926
7927
7928 else
7929 cat >>confdefs.h <<_ACEOF
7930 #define HAVE_DECL_TZNAME 0
7931 _ACEOF
7932
7933
7934 fi
7935
7936
7937 { echo "$as_me:$LINENO: checking for tzname" >&5
7938 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7939 if test "${ac_cv_var_tzname+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942 cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h. */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 #include <time.h>
7949 #if !HAVE_DECL_TZNAME
7950 extern char *tzname[];
7951 #endif
7952
7953 int
7954 main ()
7955 {
7956 return tzname[0][0];
7957 ;
7958 return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7963 case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_link") 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest$ac_exeext &&
7978 $as_test_x conftest$ac_exeext; then
7979 ac_cv_var_tzname=yes
7980 else
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7983
7984 ac_cv_var_tzname=no
7985 fi
7986
7987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7988 conftest$ac_exeext conftest.$ac_ext
7989 fi
7990 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7991 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7992 if test $ac_cv_var_tzname = yes; then
7993
7994 cat >>confdefs.h <<\_ACEOF
7995 #define HAVE_TZNAME 1
7996 _ACEOF
7997
7998 fi
7999 fi
8000
8001 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8002 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8003 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <time.h>
8013
8014 int
8015 main ()
8016 {
8017 static struct tm ac_aggr;
8018 if (ac_aggr.tm_gmtoff)
8019 return 0;
8020 ;
8021 return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8026 case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029 esac
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 ac_cv_member_struct_tm_tm_gmtoff=yes
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8045
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 #include <time.h>
8053
8054 int
8055 main ()
8056 {
8057 static struct tm ac_aggr;
8058 if (sizeof ac_aggr.tm_gmtoff)
8059 return 0;
8060 ;
8061 return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext
8065 if { (ac_try="$ac_compile"
8066 case "(($ac_try" in
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8069 esac
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_compile") 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest.$ac_objext; then
8081 ac_cv_member_struct_tm_tm_gmtoff=yes
8082 else
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086 ac_cv_member_struct_tm_tm_gmtoff=no
8087 fi
8088
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 fi
8091
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 fi
8094 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8095 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8096 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8097
8098 cat >>confdefs.h <<\_ACEOF
8099 #define HAVE_TM_GMTOFF 1
8100 _ACEOF
8101
8102 fi
8103
8104 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8105 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8106 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 $ac_includes_default
8116 #if HAVE_SYS_SOCKET_H
8117 #include <sys/socket.h>
8118 #endif
8119 #if HAVE_NET_IF_H
8120 #include <net/if.h>
8121 #endif
8122
8123 int
8124 main ()
8125 {
8126 static struct ifreq ac_aggr;
8127 if (ac_aggr.ifr_flags)
8128 return 0;
8129 ;
8130 return 0;
8131 }
8132 _ACEOF
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8135 case "(($ac_try" in
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8138 esac
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_compile") 2>conftest.er1
8141 ac_status=$?
8142 grep -v '^ *+' conftest.er1 >conftest.err
8143 rm -f conftest.er1
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } && {
8147 test -z "$ac_c_werror_flag" ||
8148 test ! -s conftest.err
8149 } && test -s conftest.$ac_objext; then
8150 ac_cv_member_struct_ifreq_ifr_flags=yes
8151 else
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155 cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h. */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 $ac_includes_default
8162 #if HAVE_SYS_SOCKET_H
8163 #include <sys/socket.h>
8164 #endif
8165 #if HAVE_NET_IF_H
8166 #include <net/if.h>
8167 #endif
8168
8169 int
8170 main ()
8171 {
8172 static struct ifreq ac_aggr;
8173 if (sizeof ac_aggr.ifr_flags)
8174 return 0;
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8181 case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_member_struct_ifreq_ifr_flags=yes
8197 else
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 ac_cv_member_struct_ifreq_ifr_flags=no
8202 fi
8203
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 fi
8206
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 fi
8209 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8210 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8211 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8212
8213 cat >>confdefs.h <<_ACEOF
8214 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8215 _ACEOF
8216
8217
8218 fi
8219 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8220 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8221 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224 cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h. */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8230 $ac_includes_default
8231 #if HAVE_SYS_SOCKET_H
8232 #include <sys/socket.h>
8233 #endif
8234 #if HAVE_NET_IF_H
8235 #include <net/if.h>
8236 #endif
8237
8238 int
8239 main ()
8240 {
8241 static struct ifreq ac_aggr;
8242 if (ac_aggr.ifr_hwaddr)
8243 return 0;
8244 ;
8245 return 0;
8246 }
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8250 case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253 esac
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_c_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest.$ac_objext; then
8265 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8266 else
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 #if HAVE_SYS_SOCKET_H
8278 #include <sys/socket.h>
8279 #endif
8280 #if HAVE_NET_IF_H
8281 #include <net/if.h>
8282 #endif
8283
8284 int
8285 main ()
8286 {
8287 static struct ifreq ac_aggr;
8288 if (sizeof ac_aggr.ifr_hwaddr)
8289 return 0;
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8296 case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8302 ac_status=$?
8303 grep -v '^ *+' conftest.er1 >conftest.err
8304 rm -f conftest.er1
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.$ac_objext; then
8311 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8312 else
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8317 fi
8318
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 fi
8321
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 fi
8324 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8325 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8326 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8327
8328 cat >>confdefs.h <<_ACEOF
8329 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8330 _ACEOF
8331
8332
8333 fi
8334 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8335 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8336 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339 cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h. */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 $ac_includes_default
8346 #if HAVE_SYS_SOCKET_H
8347 #include <sys/socket.h>
8348 #endif
8349 #if HAVE_NET_IF_H
8350 #include <net/if.h>
8351 #endif
8352
8353 int
8354 main ()
8355 {
8356 static struct ifreq ac_aggr;
8357 if (ac_aggr.ifr_netmask)
8358 return 0;
8359 ;
8360 return 0;
8361 }
8362 _ACEOF
8363 rm -f conftest.$ac_objext
8364 if { (ac_try="$ac_compile"
8365 case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8368 esac
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 ac_cv_member_struct_ifreq_ifr_netmask=yes
8381 else
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h. */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391 $ac_includes_default
8392 #if HAVE_SYS_SOCKET_H
8393 #include <sys/socket.h>
8394 #endif
8395 #if HAVE_NET_IF_H
8396 #include <net/if.h>
8397 #endif
8398
8399 int
8400 main ()
8401 {
8402 static struct ifreq ac_aggr;
8403 if (sizeof ac_aggr.ifr_netmask)
8404 return 0;
8405 ;
8406 return 0;
8407 }
8408 _ACEOF
8409 rm -f conftest.$ac_objext
8410 if { (ac_try="$ac_compile"
8411 case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_compile") 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } && {
8423 test -z "$ac_c_werror_flag" ||
8424 test ! -s conftest.err
8425 } && test -s conftest.$ac_objext; then
8426 ac_cv_member_struct_ifreq_ifr_netmask=yes
8427 else
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 ac_cv_member_struct_ifreq_ifr_netmask=no
8432 fi
8433
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 fi
8436
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8440 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8441 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8442
8443 cat >>confdefs.h <<_ACEOF
8444 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8445 _ACEOF
8446
8447
8448 fi
8449 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8450 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8451 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h. */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 $ac_includes_default
8461 #if HAVE_SYS_SOCKET_H
8462 #include <sys/socket.h>
8463 #endif
8464 #if HAVE_NET_IF_H
8465 #include <net/if.h>
8466 #endif
8467
8468 int
8469 main ()
8470 {
8471 static struct ifreq ac_aggr;
8472 if (ac_aggr.ifr_broadaddr)
8473 return 0;
8474 ;
8475 return 0;
8476 }
8477 _ACEOF
8478 rm -f conftest.$ac_objext
8479 if { (ac_try="$ac_compile"
8480 case "(($ac_try" in
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8483 esac
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_compile") 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } && {
8492 test -z "$ac_c_werror_flag" ||
8493 test ! -s conftest.err
8494 } && test -s conftest.$ac_objext; then
8495 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8496 else
8497 echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8507 #if HAVE_SYS_SOCKET_H
8508 #include <sys/socket.h>
8509 #endif
8510 #if HAVE_NET_IF_H
8511 #include <net/if.h>
8512 #endif
8513
8514 int
8515 main ()
8516 {
8517 static struct ifreq ac_aggr;
8518 if (sizeof ac_aggr.ifr_broadaddr)
8519 return 0;
8520 ;
8521 return 0;
8522 }
8523 _ACEOF
8524 rm -f conftest.$ac_objext
8525 if { (ac_try="$ac_compile"
8526 case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_compile") 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest.$ac_objext; then
8541 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8542 else
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8547 fi
8548
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 fi
8551
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 fi
8554 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8555 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8556 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8557
8558 cat >>confdefs.h <<_ACEOF
8559 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8560 _ACEOF
8561
8562
8563 fi
8564 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8565 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8566 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h. */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 $ac_includes_default
8576 #if HAVE_SYS_SOCKET_H
8577 #include <sys/socket.h>
8578 #endif
8579 #if HAVE_NET_IF_H
8580 #include <net/if.h>
8581 #endif
8582
8583 int
8584 main ()
8585 {
8586 static struct ifreq ac_aggr;
8587 if (ac_aggr.ifr_addr)
8588 return 0;
8589 ;
8590 return 0;
8591 }
8592 _ACEOF
8593 rm -f conftest.$ac_objext
8594 if { (ac_try="$ac_compile"
8595 case "(($ac_try" in
8596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8598 esac
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_compile") 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } && {
8607 test -z "$ac_c_werror_flag" ||
8608 test ! -s conftest.err
8609 } && test -s conftest.$ac_objext; then
8610 ac_cv_member_struct_ifreq_ifr_addr=yes
8611 else
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h. */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 $ac_includes_default
8622 #if HAVE_SYS_SOCKET_H
8623 #include <sys/socket.h>
8624 #endif
8625 #if HAVE_NET_IF_H
8626 #include <net/if.h>
8627 #endif
8628
8629 int
8630 main ()
8631 {
8632 static struct ifreq ac_aggr;
8633 if (sizeof ac_aggr.ifr_addr)
8634 return 0;
8635 ;
8636 return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext
8640 if { (ac_try="$ac_compile"
8641 case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8644 esac
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_compile") 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest.$ac_objext; then
8656 ac_cv_member_struct_ifreq_ifr_addr=yes
8657 else
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661 ac_cv_member_struct_ifreq_ifr_addr=no
8662 fi
8663
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 fi
8666
8667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 fi
8669 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8670 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8671 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8672
8673 cat >>confdefs.h <<_ACEOF
8674 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8675 _ACEOF
8676
8677
8678 fi
8679
8680
8681
8682 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8683 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8684 if test "$ac_cv_prog_cc_c89" != no; then
8685 { echo "$as_me:$LINENO: result: yes" >&5
8686 echo "${ECHO_T}yes" >&6; }
8687
8688 cat >>confdefs.h <<\_ACEOF
8689 #define PROTOTYPES 1
8690 _ACEOF
8691
8692
8693 cat >>confdefs.h <<\_ACEOF
8694 #define __PROTOTYPES 1
8695 _ACEOF
8696
8697 else
8698 { echo "$as_me:$LINENO: result: no" >&5
8699 echo "${ECHO_T}no" >&6; }
8700 fi
8701
8702 { echo "$as_me:$LINENO: checking for working volatile" >&5
8703 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8704 if test "${ac_cv_c_volatile+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707 cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h. */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8713
8714 int
8715 main ()
8716 {
8717
8718 volatile int x;
8719 int * volatile y = (int *) 0;
8720 return !x && !y;
8721 ;
8722 return 0;
8723 }
8724 _ACEOF
8725 rm -f conftest.$ac_objext
8726 if { (ac_try="$ac_compile"
8727 case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_compile") 2>conftest.er1
8733 ac_status=$?
8734 grep -v '^ *+' conftest.er1 >conftest.err
8735 rm -f conftest.er1
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && {
8739 test -z "$ac_c_werror_flag" ||
8740 test ! -s conftest.err
8741 } && test -s conftest.$ac_objext; then
8742 ac_cv_c_volatile=yes
8743 else
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8746
8747 ac_cv_c_volatile=no
8748 fi
8749
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 fi
8752 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8753 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8754 if test $ac_cv_c_volatile = no; then
8755
8756 cat >>confdefs.h <<\_ACEOF
8757 #define volatile
8758 _ACEOF
8759
8760 fi
8761
8762 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8763 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8764 if test "${ac_cv_c_const+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 else
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h. */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773
8774 int
8775 main ()
8776 {
8777 /* FIXME: Include the comments suggested by Paul. */
8778 #ifndef __cplusplus
8779 /* Ultrix mips cc rejects this. */
8780 typedef int charset[2];
8781 const charset cs;
8782 /* SunOS 4.1.1 cc rejects this. */
8783 char const *const *pcpcc;
8784 char **ppc;
8785 /* NEC SVR4.0.2 mips cc rejects this. */
8786 struct point {int x, y;};
8787 static struct point const zero = {0,0};
8788 /* AIX XL C 1.02.0.0 rejects this.
8789 It does not let you subtract one const X* pointer from another in
8790 an arm of an if-expression whose if-part is not a constant
8791 expression */
8792 const char *g = "string";
8793 pcpcc = &g + (g ? g-g : 0);
8794 /* HPUX 7.0 cc rejects these. */
8795 ++pcpcc;
8796 ppc = (char**) pcpcc;
8797 pcpcc = (char const *const *) ppc;
8798 { /* SCO 3.2v4 cc rejects this. */
8799 char *t;
8800 char const *s = 0 ? (char *) 0 : (char const *) 0;
8801
8802 *t++ = 0;
8803 if (s) return 0;
8804 }
8805 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8806 int x[] = {25, 17};
8807 const int *foo = &x[0];
8808 ++foo;
8809 }
8810 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8811 typedef const int *iptr;
8812 iptr p = 0;
8813 ++p;
8814 }
8815 { /* AIX XL C 1.02.0.0 rejects this saying
8816 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8817 struct s { int j; const int *ap[3]; };
8818 struct s *b; b->j = 5;
8819 }
8820 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8821 const int foo = 10;
8822 if (!foo) return 0;
8823 }
8824 return !cs[0] && !zero.x;
8825 #endif
8826
8827 ;
8828 return 0;
8829 }
8830 _ACEOF
8831 rm -f conftest.$ac_objext
8832 if { (ac_try="$ac_compile"
8833 case "(($ac_try" in
8834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835 *) ac_try_echo=$ac_try;;
8836 esac
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838 (eval "$ac_compile") 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && {
8845 test -z "$ac_c_werror_flag" ||
8846 test ! -s conftest.err
8847 } && test -s conftest.$ac_objext; then
8848 ac_cv_c_const=yes
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 ac_cv_c_const=no
8854 fi
8855
8856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 fi
8858 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8859 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8860 if test $ac_cv_c_const = no; then
8861
8862 cat >>confdefs.h <<\_ACEOF
8863 #define const
8864 _ACEOF
8865
8866 fi
8867
8868 { echo "$as_me:$LINENO: checking for void * support" >&5
8869 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8870 if test "${emacs_cv_void_star+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 else
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h. */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879
8880 int
8881 main ()
8882 {
8883 void * foo;
8884 ;
8885 return 0;
8886 }
8887 _ACEOF
8888 rm -f conftest.$ac_objext
8889 if { (ac_try="$ac_compile"
8890 case "(($ac_try" in
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8893 esac
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_compile") 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } && {
8902 test -z "$ac_c_werror_flag" ||
8903 test ! -s conftest.err
8904 } && test -s conftest.$ac_objext; then
8905 emacs_cv_void_star=yes
8906 else
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8909
8910 emacs_cv_void_star=no
8911 fi
8912
8913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914 fi
8915 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8916 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8917 if test $emacs_cv_void_star = yes; then
8918 cat >>confdefs.h <<\_ACEOF
8919 #define POINTER_TYPE void
8920 _ACEOF
8921
8922 else
8923 cat >>confdefs.h <<\_ACEOF
8924 #define POINTER_TYPE char
8925 _ACEOF
8926
8927 fi
8928
8929
8930
8931
8932
8933 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8934 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8935 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8936 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 cat >conftest.make <<\_ACEOF
8940 SHELL = /bin/sh
8941 all:
8942 @echo '@@@%%%=$(MAKE)=@@@%%%'
8943 _ACEOF
8944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8945 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8946 *@@@%%%=?*=@@@%%%*)
8947 eval ac_cv_prog_make_${ac_make}_set=yes;;
8948 *)
8949 eval ac_cv_prog_make_${ac_make}_set=no;;
8950 esac
8951 rm -f conftest.make
8952 fi
8953 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8954 { echo "$as_me:$LINENO: result: yes" >&5
8955 echo "${ECHO_T}yes" >&6; }
8956 SET_MAKE=
8957 else
8958 { echo "$as_me:$LINENO: result: no" >&5
8959 echo "${ECHO_T}no" >&6; }
8960 SET_MAKE="MAKE=${MAKE-make}"
8961 fi
8962
8963
8964 { echo "$as_me:$LINENO: checking for long file names" >&5
8965 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8966 if test "${ac_cv_sys_long_file_names+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 else
8969 ac_cv_sys_long_file_names=yes
8970 # Test for long file names in all the places we know might matter:
8971 # . the current directory, where building will happen
8972 # $prefix/lib where we will be installing things
8973 # $exec_prefix/lib likewise
8974 # $TMPDIR if set, where it might want to write temporary files
8975 # /tmp where it might want to write temporary files
8976 # /var/tmp likewise
8977 # /usr/tmp likewise
8978 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8979 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8980 # in the usual case where exec_prefix is '${prefix}'.
8981 case $ac_dir in #(
8982 . | /* | ?:[\\/]*) ;; #(
8983 *) continue;;
8984 esac
8985 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8986 ac_xdir=$ac_dir/cf$$
8987 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8988 ac_tf1=$ac_xdir/conftest9012345
8989 ac_tf2=$ac_xdir/conftest9012346
8990 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8991 ac_cv_sys_long_file_names=no
8992 rm -f -r "$ac_xdir" 2>/dev/null
8993 test $ac_cv_sys_long_file_names = no && break
8994 done
8995 fi
8996 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8997 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8998 if test $ac_cv_sys_long_file_names = yes; then
8999
9000 cat >>confdefs.h <<\_ACEOF
9001 #define HAVE_LONG_FILE_NAMES 1
9002 _ACEOF
9003
9004 fi
9005
9006
9007 #### Choose a window system.
9008
9009 { echo "$as_me:$LINENO: checking for X" >&5
9010 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9011
9012
9013 # Check whether --with-x was given.
9014 if test "${with_x+set}" = set; then
9015 withval=$with_x;
9016 fi
9017
9018 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9019 if test "x$with_x" = xno; then
9020 # The user explicitly disabled X.
9021 have_x=disabled
9022 else
9023 case $x_includes,$x_libraries in #(
9024 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9025 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9026 { (exit 1); exit 1; }; };; #(
9027 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030 # One or both of the vars are not set, and there is no cached value.
9031 ac_x_includes=no ac_x_libraries=no
9032 rm -f -r conftest.dir
9033 if mkdir conftest.dir; then
9034 cd conftest.dir
9035 cat >Imakefile <<'_ACEOF'
9036 incroot:
9037 @echo incroot='${INCROOT}'
9038 usrlibdir:
9039 @echo usrlibdir='${USRLIBDIR}'
9040 libdir:
9041 @echo libdir='${LIBDIR}'
9042 _ACEOF
9043 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9044 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9045 for ac_var in incroot usrlibdir libdir; do
9046 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9047 done
9048 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9049 for ac_extension in a so sl; do
9050 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9051 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9052 ac_im_usrlibdir=$ac_im_libdir; break
9053 fi
9054 done
9055 # Screen out bogus values from the imake configuration. They are
9056 # bogus both because they are the default anyway, and because
9057 # using them would break gcc on systems where it needs fixed includes.
9058 case $ac_im_incroot in
9059 /usr/include) ac_x_includes= ;;
9060 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9061 esac
9062 case $ac_im_usrlibdir in
9063 /usr/lib | /lib) ;;
9064 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9065 esac
9066 fi
9067 cd ..
9068 rm -f -r conftest.dir
9069 fi
9070
9071 # Standard set of common directories for X headers.
9072 # Check X11 before X11Rn because it is often a symlink to the current release.
9073 ac_x_header_dirs='
9074 /usr/X11/include
9075 /usr/X11R6/include
9076 /usr/X11R5/include
9077 /usr/X11R4/include
9078
9079 /usr/include/X11
9080 /usr/include/X11R6
9081 /usr/include/X11R5
9082 /usr/include/X11R4
9083
9084 /usr/local/X11/include
9085 /usr/local/X11R6/include
9086 /usr/local/X11R5/include
9087 /usr/local/X11R4/include
9088
9089 /usr/local/include/X11
9090 /usr/local/include/X11R6
9091 /usr/local/include/X11R5
9092 /usr/local/include/X11R4
9093
9094 /usr/X386/include
9095 /usr/x386/include
9096 /usr/XFree86/include/X11
9097
9098 /usr/include
9099 /usr/local/include
9100 /usr/unsupported/include
9101 /usr/athena/include
9102 /usr/local/x11r5/include
9103 /usr/lpp/Xamples/include
9104
9105 /usr/openwin/include
9106 /usr/openwin/share/include'
9107
9108 if test "$ac_x_includes" = no; then
9109 # Guess where to find include files, by looking for Xlib.h.
9110 # First, try using that file with no special directory specified.
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h. */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 #include <X11/Xlib.h>
9118 _ACEOF
9119 if { (ac_try="$ac_cpp conftest.$ac_ext"
9120 case "(($ac_try" in
9121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122 *) ac_try_echo=$ac_try;;
9123 esac
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } >/dev/null && {
9132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 }; then
9135 # We can compile using X headers with no special include directory.
9136 ac_x_includes=
9137 else
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9140
9141 for ac_dir in $ac_x_header_dirs; do
9142 if test -r "$ac_dir/X11/Xlib.h"; then
9143 ac_x_includes=$ac_dir
9144 break
9145 fi
9146 done
9147 fi
9148
9149 rm -f conftest.err conftest.$ac_ext
9150 fi # $ac_x_includes = no
9151
9152 if test "$ac_x_libraries" = no; then
9153 # Check for the libraries.
9154 # See if we find them without any special options.
9155 # Don't add to $LIBS permanently.
9156 ac_save_LIBS=$LIBS
9157 LIBS="-lX11 $LIBS"
9158 cat >conftest.$ac_ext <<_ACEOF
9159 /* confdefs.h. */
9160 _ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 #include <X11/Xlib.h>
9165 int
9166 main ()
9167 {
9168 XrmInitialize ()
9169 ;
9170 return 0;
9171 }
9172 _ACEOF
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (ac_try="$ac_link"
9175 case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178 esac
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_link") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_c_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest$ac_exeext &&
9190 $as_test_x conftest$ac_exeext; then
9191 LIBS=$ac_save_LIBS
9192 # We can link X programs with no special library path.
9193 ac_x_libraries=
9194 else
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9197
9198 LIBS=$ac_save_LIBS
9199 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9200 do
9201 # Don't even attempt the hair of trying to link an X program!
9202 for ac_extension in a so sl; do
9203 if test -r "$ac_dir/libX11.$ac_extension"; then
9204 ac_x_libraries=$ac_dir
9205 break 2
9206 fi
9207 done
9208 done
9209 fi
9210
9211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9212 conftest$ac_exeext conftest.$ac_ext
9213 fi # $ac_x_libraries = no
9214
9215 case $ac_x_includes,$ac_x_libraries in #(
9216 no,* | *,no | *\'*)
9217 # Didn't find X, or a directory has "'" in its name.
9218 ac_cv_have_x="have_x=no";; #(
9219 *)
9220 # Record where we found X for the cache.
9221 ac_cv_have_x="have_x=yes\
9222 ac_x_includes='$ac_x_includes'\
9223 ac_x_libraries='$ac_x_libraries'"
9224 esac
9225 fi
9226 ;; #(
9227 *) have_x=yes;;
9228 esac
9229 eval "$ac_cv_have_x"
9230 fi # $with_x != no
9231
9232 if test "$have_x" != yes; then
9233 { echo "$as_me:$LINENO: result: $have_x" >&5
9234 echo "${ECHO_T}$have_x" >&6; }
9235 no_x=yes
9236 else
9237 # If each of the values was on the command line, it overrides each guess.
9238 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9239 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9240 # Update the cache value to reflect the command line values.
9241 ac_cv_have_x="have_x=yes\
9242 ac_x_includes='$x_includes'\
9243 ac_x_libraries='$x_libraries'"
9244 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9245 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9246 fi
9247
9248 if test "$no_x" = yes; then
9249 window_system=none
9250 else
9251 window_system=x11
9252 fi
9253
9254 if test "${x_libraries}" != NONE; then
9255 if test -n "${x_libraries}"; then
9256 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9257 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9258 fi
9259 x_default_search_path=""
9260 x_search_path=${x_libraries}
9261 if test -z "${x_search_path}"; then
9262 x_search_path=/usr/lib
9263 fi
9264 for x_library in `echo ${x_search_path}: | \
9265 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9266 x_search_path="\
9267 ${x_library}/X11/%L/%T/%N%C%S:\
9268 ${x_library}/X11/%l/%T/%N%C%S:\
9269 ${x_library}/X11/%T/%N%C%S:\
9270 ${x_library}/X11/%L/%T/%N%S:\
9271 ${x_library}/X11/%l/%T/%N%S:\
9272 ${x_library}/X11/%T/%N%S"
9273 if test x"${x_default_search_path}" = x; then
9274 x_default_search_path=${x_search_path}
9275 else
9276 x_default_search_path="${x_search_path}:${x_default_search_path}"
9277 fi
9278 done
9279 fi
9280 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9281 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9282 fi
9283
9284 if test x"${x_includes}" = x; then
9285 bitmapdir=/usr/include/X11/bitmaps
9286 else
9287 # accumulate include directories that have X11 bitmap subdirectories
9288 bmd_acc="dummyval"
9289 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9290 if test -d "${bmd}/X11/bitmaps"; then
9291 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9292 fi
9293 if test -d "${bmd}/bitmaps"; then
9294 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9295 fi
9296 done
9297 if test ${bmd_acc} != "dummyval"; then
9298 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9299 fi
9300 fi
9301
9302 HAVE_CARBON=no
9303 if test "${with_carbon}" != no; then
9304 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9305 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9306 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9307 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 fi
9310 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9311 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9312 else
9313 # Is the header compilable?
9314 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9315 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h. */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9322 $ac_includes_default
9323 #include <Carbon/Carbon.h>
9324 _ACEOF
9325 rm -f conftest.$ac_objext
9326 if { (ac_try="$ac_compile"
9327 case "(($ac_try" in
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9330 esac
9331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332 (eval "$ac_compile") 2>conftest.er1
9333 ac_status=$?
9334 grep -v '^ *+' conftest.er1 >conftest.err
9335 rm -f conftest.er1
9336 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && {
9339 test -z "$ac_c_werror_flag" ||
9340 test ! -s conftest.err
9341 } && test -s conftest.$ac_objext; then
9342 ac_header_compiler=yes
9343 else
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9346
9347 ac_header_compiler=no
9348 fi
9349
9350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9352 echo "${ECHO_T}$ac_header_compiler" >&6; }
9353
9354 # Is the header present?
9355 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9356 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9357 cat >conftest.$ac_ext <<_ACEOF
9358 /* confdefs.h. */
9359 _ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9363 #include <Carbon/Carbon.h>
9364 _ACEOF
9365 if { (ac_try="$ac_cpp conftest.$ac_ext"
9366 case "(($ac_try" in
9367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9369 esac
9370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9372 ac_status=$?
9373 grep -v '^ *+' conftest.er1 >conftest.err
9374 rm -f conftest.er1
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } >/dev/null && {
9378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9379 test ! -s conftest.err
9380 }; then
9381 ac_header_preproc=yes
9382 else
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9385
9386 ac_header_preproc=no
9387 fi
9388
9389 rm -f conftest.err conftest.$ac_ext
9390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9391 echo "${ECHO_T}$ac_header_preproc" >&6; }
9392
9393 # So? What about this header?
9394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9395 yes:no: )
9396 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9397 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9399 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9400 ac_header_preproc=yes
9401 ;;
9402 no:yes:* )
9403 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9404 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9406 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9408 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9410 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9412 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9414 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9415
9416 ;;
9417 esac
9418 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9419 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9420 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9424 fi
9425 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9426 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9427
9428 fi
9429 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9430 HAVE_CARBON=yes
9431 fi
9432
9433
9434 fi
9435 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9436 if test "${with_carbon+set}" != set \
9437 && test "${carbon_appdir_x+set}" != set; then
9438 for var in with_x with_x_toolkit with_gtk with_xim \
9439 with_xpm with_jpeg with_tiff with_gif with_png; do
9440 if eval test \"\${$var+set}\" = set; then
9441 HAVE_CARBON=no
9442 break
9443 fi
9444 done
9445 fi
9446 fi
9447 if test "${HAVE_CARBON}" = yes; then
9448 window_system=mac
9449 fi
9450
9451 case "${window_system}" in
9452 x11 )
9453 HAVE_X_WINDOWS=yes
9454 HAVE_X11=yes
9455 case "${with_x_toolkit}" in
9456 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9457 motif ) USE_X_TOOLKIT=MOTIF ;;
9458 gtk ) with_gtk=yes
9459 USE_X_TOOLKIT=none ;;
9460 no ) USE_X_TOOLKIT=none ;;
9461 * ) USE_X_TOOLKIT=maybe ;;
9462 esac
9463 ;;
9464 mac | none )
9465 HAVE_X_WINDOWS=no
9466 HAVE_X11=no
9467 USE_X_TOOLKIT=none
9468 ;;
9469 esac
9470
9471 ### If we're using X11, we should use the X menu package.
9472 HAVE_MENUS=no
9473 case ${HAVE_X11} in
9474 yes ) HAVE_MENUS=yes ;;
9475 esac
9476
9477 if test "${opsys}" = "hpux9"; then
9478 case "${x_libraries}" in
9479 *X11R4* )
9480 opsysfile="s/hpux9-x11r4.h"
9481 ;;
9482 esac
9483 fi
9484
9485 if test "${opsys}" = "hpux9shr"; then
9486 case "${x_libraries}" in
9487 *X11R4* )
9488 opsysfile="s/hpux9shxr4.h"
9489 ;;
9490 esac
9491 fi
9492
9493 ### Compute the unexec source name from the object name.
9494 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9495
9496 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9497 # Assume not, until told otherwise.
9498 GNU_MALLOC=yes
9499 doug_lea_malloc=yes
9500 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9501 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9502 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505 cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h. */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9513 #define malloc_get_state innocuous_malloc_get_state
9514
9515 /* System header to define __stub macros and hopefully few prototypes,
9516 which can conflict with char malloc_get_state (); below.
9517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9518 <limits.h> exists even on freestanding compilers. */
9519
9520 #ifdef __STDC__
9521 # include <limits.h>
9522 #else
9523 # include <assert.h>
9524 #endif
9525
9526 #undef malloc_get_state
9527
9528 /* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9531 #ifdef __cplusplus
9532 extern "C"
9533 #endif
9534 char malloc_get_state ();
9535 /* The GNU C library defines this for functions which it implements
9536 to always fail with ENOSYS. Some functions are actually named
9537 something starting with __ and the normal name is an alias. */
9538 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9539 choke me
9540 #endif
9541
9542 int
9543 main ()
9544 {
9545 return malloc_get_state ();
9546 ;
9547 return 0;
9548 }
9549 _ACEOF
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (ac_try="$ac_link"
9552 case "(($ac_try" in
9553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554 *) ac_try_echo=$ac_try;;
9555 esac
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_link") 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest$ac_exeext &&
9567 $as_test_x conftest$ac_exeext; then
9568 ac_cv_func_malloc_get_state=yes
9569 else
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573 ac_cv_func_malloc_get_state=no
9574 fi
9575
9576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9577 conftest$ac_exeext conftest.$ac_ext
9578 fi
9579 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9580 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9581 if test $ac_cv_func_malloc_get_state = yes; then
9582 :
9583 else
9584 doug_lea_malloc=no
9585 fi
9586
9587 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9588 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9589 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592 cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h. */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9598 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9600 #define malloc_set_state innocuous_malloc_set_state
9601
9602 /* System header to define __stub macros and hopefully few prototypes,
9603 which can conflict with char malloc_set_state (); below.
9604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9605 <limits.h> exists even on freestanding compilers. */
9606
9607 #ifdef __STDC__
9608 # include <limits.h>
9609 #else
9610 # include <assert.h>
9611 #endif
9612
9613 #undef malloc_set_state
9614
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9618 #ifdef __cplusplus
9619 extern "C"
9620 #endif
9621 char malloc_set_state ();
9622 /* The GNU C library defines this for functions which it implements
9623 to always fail with ENOSYS. Some functions are actually named
9624 something starting with __ and the normal name is an alias. */
9625 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9626 choke me
9627 #endif
9628
9629 int
9630 main ()
9631 {
9632 return malloc_set_state ();
9633 ;
9634 return 0;
9635 }
9636 _ACEOF
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (ac_try="$ac_link"
9639 case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_link") 2>conftest.er1
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } && {
9651 test -z "$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 } && test -s conftest$ac_exeext &&
9654 $as_test_x conftest$ac_exeext; then
9655 ac_cv_func_malloc_set_state=yes
9656 else
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 ac_cv_func_malloc_set_state=no
9661 fi
9662
9663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9664 conftest$ac_exeext conftest.$ac_ext
9665 fi
9666 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9667 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9668 if test $ac_cv_func_malloc_set_state = yes; then
9669 :
9670 else
9671 doug_lea_malloc=no
9672 fi
9673
9674 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9675 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9676 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679 cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h. */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9685 extern void (* __after_morecore_hook)();
9686 int
9687 main ()
9688 {
9689 __after_morecore_hook = 0
9690 ;
9691 return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest.$ac_objext conftest$ac_exeext
9695 if { (ac_try="$ac_link"
9696 case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_link") 2>conftest.er1
9702 ac_status=$?
9703 grep -v '^ *+' conftest.er1 >conftest.err
9704 rm -f conftest.er1
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && {
9708 test -z "$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9710 } && test -s conftest$ac_exeext &&
9711 $as_test_x conftest$ac_exeext; then
9712 emacs_cv_var___after_morecore_hook=yes
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 emacs_cv_var___after_morecore_hook=no
9718 fi
9719
9720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9721 conftest$ac_exeext conftest.$ac_ext
9722 fi
9723 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9724 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9725 if test $emacs_cv_var___after_morecore_hook = no; then
9726 doug_lea_malloc=no
9727 fi
9728 if test "${system_malloc}" = "yes"; then
9729 GNU_MALLOC=no
9730 GNU_MALLOC_reason="
9731 (The GNU allocators don't work with this system configuration.)"
9732 fi
9733 if test "$doug_lea_malloc" = "yes" ; then
9734 if test "$GNU_MALLOC" = yes ; then
9735 GNU_MALLOC_reason="
9736 (Using Doug Lea's new malloc from the GNU C Library.)"
9737 fi
9738
9739 cat >>confdefs.h <<\_ACEOF
9740 #define DOUG_LEA_MALLOC 1
9741 _ACEOF
9742
9743 fi
9744
9745 if test x"${REL_ALLOC}" = x; then
9746 REL_ALLOC=${GNU_MALLOC}
9747 fi
9748
9749
9750
9751
9752 for ac_header in stdlib.h unistd.h
9753 do
9754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 fi
9761 ac_res=`eval echo '${'$as_ac_Header'}'`
9762 { echo "$as_me:$LINENO: result: $ac_res" >&5
9763 echo "${ECHO_T}$ac_res" >&6; }
9764 else
9765 # Is the header compilable?
9766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9768 cat >conftest.$ac_ext <<_ACEOF
9769 /* confdefs.h. */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 $ac_includes_default
9775 #include <$ac_header>
9776 _ACEOF
9777 rm -f conftest.$ac_objext
9778 if { (ac_try="$ac_compile"
9779 case "(($ac_try" in
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9782 esac
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_compile") 2>conftest.er1
9785 ac_status=$?
9786 grep -v '^ *+' conftest.er1 >conftest.err
9787 rm -f conftest.er1
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && {
9791 test -z "$ac_c_werror_flag" ||
9792 test ! -s conftest.err
9793 } && test -s conftest.$ac_objext; then
9794 ac_header_compiler=yes
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799 ac_header_compiler=no
9800 fi
9801
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9804 echo "${ECHO_T}$ac_header_compiler" >&6; }
9805
9806 # Is the header present?
9807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h. */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 #include <$ac_header>
9816 _ACEOF
9817 if { (ac_try="$ac_cpp conftest.$ac_ext"
9818 case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } >/dev/null && {
9830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 }; then
9833 ac_header_preproc=yes
9834 else
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9837
9838 ac_header_preproc=no
9839 fi
9840
9841 rm -f conftest.err conftest.$ac_ext
9842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9843 echo "${ECHO_T}$ac_header_preproc" >&6; }
9844
9845 # So? What about this header?
9846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9847 yes:no: )
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9852 ac_header_preproc=yes
9853 ;;
9854 no:yes:* )
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9867
9868 ;;
9869 esac
9870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875 eval "$as_ac_Header=\$ac_header_preproc"
9876 fi
9877 ac_res=`eval echo '${'$as_ac_Header'}'`
9878 { echo "$as_me:$LINENO: result: $ac_res" >&5
9879 echo "${ECHO_T}$ac_res" >&6; }
9880
9881 fi
9882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9883 cat >>confdefs.h <<_ACEOF
9884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9885 _ACEOF
9886
9887 fi
9888
9889 done
9890
9891
9892 for ac_func in getpagesize
9893 do
9894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h. */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9908 #define $ac_func innocuous_$ac_func
9909
9910 /* System header to define __stub macros and hopefully few prototypes,
9911 which can conflict with char $ac_func (); below.
9912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9913 <limits.h> exists even on freestanding compilers. */
9914
9915 #ifdef __STDC__
9916 # include <limits.h>
9917 #else
9918 # include <assert.h>
9919 #endif
9920
9921 #undef $ac_func
9922
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char $ac_func ();
9930 /* The GNU C library defines this for functions which it implements
9931 to always fail with ENOSYS. Some functions are actually named
9932 something starting with __ and the normal name is an alias. */
9933 #if defined __stub_$ac_func || defined __stub___$ac_func
9934 choke me
9935 #endif
9936
9937 int
9938 main ()
9939 {
9940 return $ac_func ();
9941 ;
9942 return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (ac_try="$ac_link"
9947 case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_link") 2>conftest.er1
9953 ac_status=$?
9954 grep -v '^ *+' conftest.er1 >conftest.err
9955 rm -f conftest.er1
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } && {
9959 test -z "$ac_c_werror_flag" ||
9960 test ! -s conftest.err
9961 } && test -s conftest$ac_exeext &&
9962 $as_test_x conftest$ac_exeext; then
9963 eval "$as_ac_var=yes"
9964 else
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9967
9968 eval "$as_ac_var=no"
9969 fi
9970
9971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9972 conftest$ac_exeext conftest.$ac_ext
9973 fi
9974 ac_res=`eval echo '${'$as_ac_var'}'`
9975 { echo "$as_me:$LINENO: result: $ac_res" >&5
9976 echo "${ECHO_T}$ac_res" >&6; }
9977 if test `eval echo '${'$as_ac_var'}'` = yes; then
9978 cat >>confdefs.h <<_ACEOF
9979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9980 _ACEOF
9981
9982 fi
9983 done
9984
9985 { echo "$as_me:$LINENO: checking for working mmap" >&5
9986 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9987 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990 if test "$cross_compiling" = yes; then
9991 ac_cv_func_mmap_fixed_mapped=no
9992 else
9993 cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h. */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 $ac_includes_default
10000 /* malloc might have been renamed as rpl_malloc. */
10001 #undef malloc
10002
10003 /* Thanks to Mike Haertel and Jim Avera for this test.
10004 Here is a matrix of mmap possibilities:
10005 mmap private not fixed
10006 mmap private fixed at somewhere currently unmapped
10007 mmap private fixed at somewhere already mapped
10008 mmap shared not fixed
10009 mmap shared fixed at somewhere currently unmapped
10010 mmap shared fixed at somewhere already mapped
10011 For private mappings, we should verify that changes cannot be read()
10012 back from the file, nor mmap's back from the file at a different
10013 address. (There have been systems where private was not correctly
10014 implemented like the infamous i386 svr4.0, and systems where the
10015 VM page cache was not coherent with the file system buffer cache
10016 like early versions of FreeBSD and possibly contemporary NetBSD.)
10017 For shared mappings, we should conversely verify that changes get
10018 propagated back to all the places they're supposed to be.
10019
10020 Grep wants private fixed already mapped.
10021 The main things grep needs to know about mmap are:
10022 * does it exist and is it safe to write into the mmap'd area
10023 * how to use it (BSD variants) */
10024
10025 #include <fcntl.h>
10026 #include <sys/mman.h>
10027
10028 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10029 char *malloc ();
10030 #endif
10031
10032 /* This mess was copied from the GNU getpagesize.h. */
10033 #ifndef HAVE_GETPAGESIZE
10034 /* Assume that all systems that can run configure have sys/param.h. */
10035 # ifndef HAVE_SYS_PARAM_H
10036 # define HAVE_SYS_PARAM_H 1
10037 # endif
10038
10039 # ifdef _SC_PAGESIZE
10040 # define getpagesize() sysconf(_SC_PAGESIZE)
10041 # else /* no _SC_PAGESIZE */
10042 # ifdef HAVE_SYS_PARAM_H
10043 # include <sys/param.h>
10044 # ifdef EXEC_PAGESIZE
10045 # define getpagesize() EXEC_PAGESIZE
10046 # else /* no EXEC_PAGESIZE */
10047 # ifdef NBPG
10048 # define getpagesize() NBPG * CLSIZE
10049 # ifndef CLSIZE
10050 # define CLSIZE 1
10051 # endif /* no CLSIZE */
10052 # else /* no NBPG */
10053 # ifdef NBPC
10054 # define getpagesize() NBPC
10055 # else /* no NBPC */
10056 # ifdef PAGESIZE
10057 # define getpagesize() PAGESIZE
10058 # endif /* PAGESIZE */
10059 # endif /* no NBPC */
10060 # endif /* no NBPG */
10061 # endif /* no EXEC_PAGESIZE */
10062 # else /* no HAVE_SYS_PARAM_H */
10063 # define getpagesize() 8192 /* punt totally */
10064 # endif /* no HAVE_SYS_PARAM_H */
10065 # endif /* no _SC_PAGESIZE */
10066
10067 #endif /* no HAVE_GETPAGESIZE */
10068
10069 int
10070 main ()
10071 {
10072 char *data, *data2, *data3;
10073 int i, pagesize;
10074 int fd;
10075
10076 pagesize = getpagesize ();
10077
10078 /* First, make a file with some known garbage in it. */
10079 data = (char *) malloc (pagesize);
10080 if (!data)
10081 return 1;
10082 for (i = 0; i < pagesize; ++i)
10083 *(data + i) = rand ();
10084 umask (0);
10085 fd = creat ("conftest.mmap", 0600);
10086 if (fd < 0)
10087 return 1;
10088 if (write (fd, data, pagesize) != pagesize)
10089 return 1;
10090 close (fd);
10091
10092 /* Next, try to mmap the file at a fixed address which already has
10093 something else allocated at it. If we can, also make sure that
10094 we see the same garbage. */
10095 fd = open ("conftest.mmap", O_RDWR);
10096 if (fd < 0)
10097 return 1;
10098 data2 = (char *) malloc (2 * pagesize);
10099 if (!data2)
10100 return 1;
10101 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10102 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10103 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10104 return 1;
10105 for (i = 0; i < pagesize; ++i)
10106 if (*(data + i) != *(data2 + i))
10107 return 1;
10108
10109 /* Finally, make sure that changes to the mapped area do not
10110 percolate back to the file as seen by read(). (This is a bug on
10111 some variants of i386 svr4.0.) */
10112 for (i = 0; i < pagesize; ++i)
10113 *(data2 + i) = *(data2 + i) + 1;
10114 data3 = (char *) malloc (pagesize);
10115 if (!data3)
10116 return 1;
10117 if (read (fd, data3, pagesize) != pagesize)
10118 return 1;
10119 for (i = 0; i < pagesize; ++i)
10120 if (*(data + i) != *(data3 + i))
10121 return 1;
10122 close (fd);
10123 return 0;
10124 }
10125 _ACEOF
10126 rm -f conftest$ac_exeext
10127 if { (ac_try="$ac_link"
10128 case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131 esac
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_link") 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10137 { (case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_try") 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; }; then
10146 ac_cv_func_mmap_fixed_mapped=yes
10147 else
10148 echo "$as_me: program exited with status $ac_status" >&5
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10151
10152 ( exit $ac_status )
10153 ac_cv_func_mmap_fixed_mapped=no
10154 fi
10155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10156 fi
10157
10158
10159 fi
10160 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10161 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10162 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10163
10164 cat >>confdefs.h <<\_ACEOF
10165 #define HAVE_MMAP 1
10166 _ACEOF
10167
10168 fi
10169 rm -f conftest.mmap
10170
10171 if test $use_mmap_for_buffers = yes; then
10172 REL_ALLOC=no
10173 fi
10174
10175 LIBS="$libsrc_libs $LIBS"
10176
10177
10178 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10179 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10180 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 ac_check_lib_save_LIBS=$LIBS
10184 LIBS="-ldnet $LIBS"
10185 cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h. */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191
10192 /* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10195 #ifdef __cplusplus
10196 extern "C"
10197 #endif
10198 char dnet_ntoa ();
10199 int
10200 main ()
10201 {
10202 return dnet_ntoa ();
10203 ;
10204 return 0;
10205 }
10206 _ACEOF
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (ac_try="$ac_link"
10209 case "(($ac_try" in
10210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211 *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_link") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && {
10221 test -z "$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 } && test -s conftest$ac_exeext &&
10224 $as_test_x conftest$ac_exeext; then
10225 ac_cv_lib_dnet_dnet_ntoa=yes
10226 else
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_lib_dnet_dnet_ntoa=no
10231 fi
10232
10233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10234 conftest$ac_exeext conftest.$ac_ext
10235 LIBS=$ac_check_lib_save_LIBS
10236 fi
10237 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10238 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10239 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10240 cat >>confdefs.h <<_ACEOF
10241 #define HAVE_LIBDNET 1
10242 _ACEOF
10243
10244 LIBS="-ldnet $LIBS"
10245
10246 fi
10247
10248
10249 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10250 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10251 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254 ac_check_lib_save_LIBS=$LIBS
10255 LIBS="-lXbsd $LIBS"
10256 cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h. */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262
10263
10264 int
10265 main ()
10266 {
10267 return main ();
10268 ;
10269 return 0;
10270 }
10271 _ACEOF
10272 rm -f conftest.$ac_objext conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10277 esac
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_link") 2>conftest.er1
10280 ac_status=$?
10281 grep -v '^ *+' conftest.er1 >conftest.err
10282 rm -f conftest.er1
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && {
10286 test -z "$ac_c_werror_flag" ||
10287 test ! -s conftest.err
10288 } && test -s conftest$ac_exeext &&
10289 $as_test_x conftest$ac_exeext; then
10290 ac_cv_lib_Xbsd_main=yes
10291 else
10292 echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10294
10295 ac_cv_lib_Xbsd_main=no
10296 fi
10297
10298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299 conftest$ac_exeext conftest.$ac_ext
10300 LIBS=$ac_check_lib_save_LIBS
10301 fi
10302 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10303 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10304 if test $ac_cv_lib_Xbsd_main = yes; then
10305 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10306 fi
10307
10308
10309
10310 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10311 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10312 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315 ac_check_lib_save_LIBS=$LIBS
10316 LIBS="-lpthreads $LIBS"
10317 cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h. */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323
10324 /* Override any GCC internal prototype to avoid an error.
10325 Use char because int might match the return type of a GCC
10326 builtin and then its argument prototype would still apply. */
10327 #ifdef __cplusplus
10328 extern "C"
10329 #endif
10330 char cma_open ();
10331 int
10332 main ()
10333 {
10334 return cma_open ();
10335 ;
10336 return 0;
10337 }
10338 _ACEOF
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (ac_try="$ac_link"
10341 case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10344 esac
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_link") 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } && {
10353 test -z "$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10355 } && test -s conftest$ac_exeext &&
10356 $as_test_x conftest$ac_exeext; then
10357 ac_cv_lib_pthreads_cma_open=yes
10358 else
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362 ac_cv_lib_pthreads_cma_open=no
10363 fi
10364
10365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10366 conftest$ac_exeext conftest.$ac_ext
10367 LIBS=$ac_check_lib_save_LIBS
10368 fi
10369 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10370 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10371 if test $ac_cv_lib_pthreads_cma_open = yes; then
10372 cat >>confdefs.h <<_ACEOF
10373 #define HAVE_LIBPTHREADS 1
10374 _ACEOF
10375
10376 LIBS="-lpthreads $LIBS"
10377
10378 fi
10379
10380
10381 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10382 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10383 if test -d /usr/X386/include; then
10384 HAVE_XFREE386=yes
10385 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10386 else
10387 HAVE_XFREE386=no
10388 fi
10389 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10390 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10391
10392
10393 case ${host_os} in
10394 aix*)
10395 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10396 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10397 if test "${gdb_cv_bigtoc+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400
10401 case $GCC in
10402 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10403 *) gdb_cv_bigtoc=-bbigtoc ;;
10404 esac
10405
10406 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10407 cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h. */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413
10414 int
10415 main ()
10416 {
10417 int i;
10418 ;
10419 return 0;
10420 }
10421 _ACEOF
10422 rm -f conftest.$ac_objext conftest$ac_exeext
10423 if { (ac_try="$ac_link"
10424 case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10427 esac
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_link") 2>conftest.er1
10430 ac_status=$?
10431 grep -v '^ *+' conftest.er1 >conftest.err
10432 rm -f conftest.er1
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && {
10436 test -z "$ac_c_werror_flag" ||
10437 test ! -s conftest.err
10438 } && test -s conftest$ac_exeext &&
10439 $as_test_x conftest$ac_exeext; then
10440 :
10441 else
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10444
10445 gdb_cv_bigtoc=
10446 fi
10447
10448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10449 conftest$ac_exeext conftest.$ac_ext
10450
10451 fi
10452 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10453 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10454 ;;
10455 esac
10456
10457 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10458 # used for the tests that follow. We set them back to REAL_CFLAGS and
10459 # REAL_CPPFLAGS later on.
10460
10461 REAL_CPPFLAGS="$CPPFLAGS"
10462
10463 if test "${HAVE_X11}" = "yes"; then
10464 DEFS="$C_SWITCH_X_SITE $DEFS"
10465 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10466 LIBS="$LIBX $LIBS"
10467 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10468 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10469
10470 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10471 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10472 # but it's more convenient here to set LD_RUN_PATH
10473 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10474 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10475 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10476 export LD_RUN_PATH
10477 fi
10478
10479 if test "${opsys}" = "gnu-linux"; then
10480 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10481 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h. */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488
10489 int
10490 main ()
10491 {
10492 XOpenDisplay ("foo");
10493 ;
10494 return 0;
10495 }
10496 _ACEOF
10497 rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (ac_try="$ac_link"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_link") 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } && {
10511 test -z "$ac_c_werror_flag" ||
10512 test ! -s conftest.err
10513 } && test -s conftest$ac_exeext &&
10514 $as_test_x conftest$ac_exeext; then
10515 xlinux_first_failure=no
10516 else
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520 xlinux_first_failure=yes
10521 fi
10522
10523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10524 conftest$ac_exeext conftest.$ac_ext
10525 if test "${xlinux_first_failure}" = "yes"; then
10526 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10527 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10528 OLD_CPPFLAGS="$CPPFLAGS"
10529 OLD_LIBS="$LIBS"
10530 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10531 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10532 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10533 LIBS="$LIBS -b i486-linuxaout"
10534 cat >conftest.$ac_ext <<_ACEOF
10535 /* confdefs.h. */
10536 _ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10540
10541 int
10542 main ()
10543 {
10544 XOpenDisplay ("foo");
10545 ;
10546 return 0;
10547 }
10548 _ACEOF
10549 rm -f conftest.$ac_objext conftest$ac_exeext
10550 if { (ac_try="$ac_link"
10551 case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554 esac
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_link") 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && {
10563 test -z "$ac_c_werror_flag" ||
10564 test ! -s conftest.err
10565 } && test -s conftest$ac_exeext &&
10566 $as_test_x conftest$ac_exeext; then
10567 xlinux_second_failure=no
10568 else
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572 xlinux_second_failure=yes
10573 fi
10574
10575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10576 conftest$ac_exeext conftest.$ac_ext
10577 if test "${xlinux_second_failure}" = "yes"; then
10578 # If we get the same failure with -b, there is no use adding -b.
10579 # So take it out. This plays safe.
10580 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10581 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10582 CPPFLAGS="$OLD_CPPFLAGS"
10583 LIBS="$OLD_LIBS"
10584 { echo "$as_me:$LINENO: result: no" >&5
10585 echo "${ECHO_T}no" >&6; }
10586 else
10587 { echo "$as_me:$LINENO: result: yes" >&5
10588 echo "${ECHO_T}yes" >&6; }
10589 fi
10590 else
10591 { echo "$as_me:$LINENO: result: no" >&5
10592 echo "${ECHO_T}no" >&6; }
10593 fi
10594 fi
10595
10596 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10597 # header files included from there.
10598 { echo "$as_me:$LINENO: checking for Xkb" >&5
10599 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h. */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 #include <X11/Xlib.h>
10607 #include <X11/XKBlib.h>
10608 int
10609 main ()
10610 {
10611 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10612 ;
10613 return 0;
10614 }
10615 _ACEOF
10616 rm -f conftest.$ac_objext conftest$ac_exeext
10617 if { (ac_try="$ac_link"
10618 case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_link") 2>conftest.er1
10624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } && {
10630 test -z "$ac_c_werror_flag" ||
10631 test ! -s conftest.err
10632 } && test -s conftest$ac_exeext &&
10633 $as_test_x conftest$ac_exeext; then
10634 emacs_xkb=yes
10635 else
10636 echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639 emacs_xkb=no
10640 fi
10641
10642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10643 conftest$ac_exeext conftest.$ac_ext
10644 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10645 echo "${ECHO_T}$emacs_xkb" >&6; }
10646 if test $emacs_xkb = yes; then
10647
10648 cat >>confdefs.h <<\_ACEOF
10649 #define HAVE_XKBGETKEYBOARD 1
10650 _ACEOF
10651
10652 fi
10653
10654
10655
10656
10657
10658 for ac_func in XrmSetDatabase XScreenResourceString \
10659 XScreenNumberOfScreen XSetWMProtocols
10660 do
10661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667 cat >conftest.$ac_ext <<_ACEOF
10668 /* confdefs.h. */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10675 #define $ac_func innocuous_$ac_func
10676
10677 /* System header to define __stub macros and hopefully few prototypes,
10678 which can conflict with char $ac_func (); below.
10679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10680 <limits.h> exists even on freestanding compilers. */
10681
10682 #ifdef __STDC__
10683 # include <limits.h>
10684 #else
10685 # include <assert.h>
10686 #endif
10687
10688 #undef $ac_func
10689
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 char $ac_func ();
10697 /* The GNU C library defines this for functions which it implements
10698 to always fail with ENOSYS. Some functions are actually named
10699 something starting with __ and the normal name is an alias. */
10700 #if defined __stub_$ac_func || defined __stub___$ac_func
10701 choke me
10702 #endif
10703
10704 int
10705 main ()
10706 {
10707 return $ac_func ();
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717 esac
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest$ac_exeext &&
10729 $as_test_x conftest$ac_exeext; then
10730 eval "$as_ac_var=yes"
10731 else
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735 eval "$as_ac_var=no"
10736 fi
10737
10738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739 conftest$ac_exeext conftest.$ac_ext
10740 fi
10741 ac_res=`eval echo '${'$as_ac_var'}'`
10742 { echo "$as_me:$LINENO: result: $ac_res" >&5
10743 echo "${ECHO_T}$ac_res" >&6; }
10744 if test `eval echo '${'$as_ac_var'}'` = yes; then
10745 cat >>confdefs.h <<_ACEOF
10746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10747 _ACEOF
10748
10749 fi
10750 done
10751
10752 fi
10753
10754 if test "${window_system}" = "x11"; then
10755 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10756 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10757 if test "${emacs_cv_x11_version_6+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 else
10760 cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h. */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 #include <X11/Xlib.h>
10767 int
10768 main ()
10769 {
10770 #if XlibSpecificationRelease < 6
10771 fail;
10772 #endif
10773
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (ac_try="$ac_link"
10780 case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10783 esac
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_link") 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest$ac_exeext &&
10795 $as_test_x conftest$ac_exeext; then
10796 emacs_cv_x11_version_6=yes
10797 else
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801 emacs_cv_x11_version_6=no
10802 fi
10803
10804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10805 conftest$ac_exeext conftest.$ac_ext
10806 fi
10807
10808 if test $emacs_cv_x11_version_6 = yes; then
10809 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10810 echo "${ECHO_T}6 or newer" >&6; }
10811
10812 cat >>confdefs.h <<\_ACEOF
10813 #define HAVE_X11R6 1
10814 _ACEOF
10815
10816 else
10817 { echo "$as_me:$LINENO: result: before 6" >&5
10818 echo "${ECHO_T}before 6" >&6; }
10819 fi
10820 fi
10821
10822 if test "${window_system}" = "x11"; then
10823 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10824 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10825 if test "${emacs_cv_x11_version_5+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828 cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h. */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 #include <X11/Xlib.h>
10835 int
10836 main ()
10837 {
10838 #if XlibSpecificationRelease < 5
10839 fail;
10840 #endif
10841
10842 ;
10843 return 0;
10844 }
10845 _ACEOF
10846 rm -f conftest.$ac_objext conftest$ac_exeext
10847 if { (ac_try="$ac_link"
10848 case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_link") 2>conftest.er1
10854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } && {
10860 test -z "$ac_c_werror_flag" ||
10861 test ! -s conftest.err
10862 } && test -s conftest$ac_exeext &&
10863 $as_test_x conftest$ac_exeext; then
10864 emacs_cv_x11_version_5=yes
10865 else
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869 emacs_cv_x11_version_5=no
10870 fi
10871
10872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10873 conftest$ac_exeext conftest.$ac_ext
10874 fi
10875
10876 if test $emacs_cv_x11_version_5 = yes; then
10877 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10878 echo "${ECHO_T}5 or newer" >&6; }
10879 HAVE_X11R5=yes
10880
10881 cat >>confdefs.h <<\_ACEOF
10882 #define HAVE_X11R5 1
10883 _ACEOF
10884
10885 else
10886 HAVE_X11R5=no
10887 { echo "$as_me:$LINENO: result: before 5" >&5
10888 echo "${ECHO_T}before 5" >&6; }
10889 fi
10890 fi
10891
10892 HAVE_GTK=no
10893 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10894 USE_X_TOOLKIT=none
10895 fi
10896 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10897 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10898 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10899 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10900 { (exit 1); exit 1; }; };
10901 fi
10902 GLIB_REQUIRED=2.4
10903 GTK_REQUIRED=2.4
10904 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10905
10906 if test "X${with_pkg_config_prog}" != X; then
10907 PKG_CONFIG="${with_pkg_config_prog}"
10908 fi
10909
10910 succeeded=no
10911
10912 if test -z "$PKG_CONFIG"; then
10913 # Extract the first word of "pkg-config", so it can be a program name with args.
10914 set dummy pkg-config; ac_word=$2
10915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10917 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920 case $PKG_CONFIG in
10921 [\\/]* | ?:[\\/]*)
10922 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10923 ;;
10924 *)
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10927 do
10928 IFS=$as_save_IFS
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10932 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10934 break 2
10935 fi
10936 done
10937 done
10938 IFS=$as_save_IFS
10939
10940 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10941 ;;
10942 esac
10943 fi
10944 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10945 if test -n "$PKG_CONFIG"; then
10946 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10947 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10948 else
10949 { echo "$as_me:$LINENO: result: no" >&5
10950 echo "${ECHO_T}no" >&6; }
10951 fi
10952
10953
10954 fi
10955
10956 if test "$PKG_CONFIG" = "no" ; then
10957 { { echo "$as_me:$LINENO: error:
10958 *** 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
10959 echo "$as_me: error:
10960 *** 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;}
10961 { (exit 1); exit 1; }; }
10962 else
10963 PKG_CONFIG_MIN_VERSION=0.9.0
10964 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10965 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10966 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10967
10968 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10969 { echo "$as_me:$LINENO: result: yes" >&5
10970 echo "${ECHO_T}yes" >&6; }
10971 succeeded=yes
10972
10973 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10974 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10975 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10976 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10977 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10978
10979 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10980 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10981 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10982 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10983 echo "${ECHO_T}$GTK_LIBS" >&6; }
10984 else
10985 { echo "$as_me:$LINENO: result: no" >&5
10986 echo "${ECHO_T}no" >&6; }
10987 GTK_CFLAGS=""
10988 GTK_LIBS=""
10989 ## If we have a custom action on failure, don't print errors, but
10990 ## do set a variable so people can do so.
10991 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10992 echo $GTK_PKG_ERRORS
10993 fi
10994
10995
10996
10997 else
10998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11000 fi
11001 fi
11002
11003 if test $succeeded = yes; then
11004 :
11005 else
11006 { { 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
11007 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;}
11008 { (exit 1); exit 1; }; }
11009 fi
11010
11011
11012
11013 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11014 CFLAGS="$CFLAGS $GTK_CFLAGS"
11015 LIBS="$GTK_LIBS $LIBS"
11016 GTK_COMPILES=no
11017
11018 for ac_func in gtk_main
11019 do
11020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026 cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h. */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11034 #define $ac_func innocuous_$ac_func
11035
11036 /* System header to define __stub macros and hopefully few prototypes,
11037 which can conflict with char $ac_func (); below.
11038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11039 <limits.h> exists even on freestanding compilers. */
11040
11041 #ifdef __STDC__
11042 # include <limits.h>
11043 #else
11044 # include <assert.h>
11045 #endif
11046
11047 #undef $ac_func
11048
11049 /* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11052 #ifdef __cplusplus
11053 extern "C"
11054 #endif
11055 char $ac_func ();
11056 /* The GNU C library defines this for functions which it implements
11057 to always fail with ENOSYS. Some functions are actually named
11058 something starting with __ and the normal name is an alias. */
11059 #if defined __stub_$ac_func || defined __stub___$ac_func
11060 choke me
11061 #endif
11062
11063 int
11064 main ()
11065 {
11066 return $ac_func ();
11067 ;
11068 return 0;
11069 }
11070 _ACEOF
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (ac_try="$ac_link"
11073 case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11076 esac
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_link") 2>conftest.er1
11079 ac_status=$?
11080 grep -v '^ *+' conftest.er1 >conftest.err
11081 rm -f conftest.er1
11082 cat conftest.err >&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && {
11085 test -z "$ac_c_werror_flag" ||
11086 test ! -s conftest.err
11087 } && test -s conftest$ac_exeext &&
11088 $as_test_x conftest$ac_exeext; then
11089 eval "$as_ac_var=yes"
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 eval "$as_ac_var=no"
11095 fi
11096
11097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11098 conftest$ac_exeext conftest.$ac_ext
11099 fi
11100 ac_res=`eval echo '${'$as_ac_var'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11103 if test `eval echo '${'$as_ac_var'}'` = yes; then
11104 cat >>confdefs.h <<_ACEOF
11105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11106 _ACEOF
11107 GTK_COMPILES=yes
11108 fi
11109 done
11110
11111 if test "${GTK_COMPILES}" != "yes"; then
11112 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11113 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11114 { (exit 1); exit 1; }; };
11115 fi
11116
11117 HAVE_GTK=yes
11118
11119 cat >>confdefs.h <<\_ACEOF
11120 #define HAVE_GTK 1
11121 _ACEOF
11122
11123 USE_X_TOOLKIT=none
11124
11125 if test "$with_toolkit_scroll_bars" != no; then
11126 with_toolkit_scroll_bars=yes
11127 fi
11128
11129 HAVE_GTK_MULTIDISPLAY=no
11130
11131 for ac_func in gdk_display_open
11132 do
11133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11147 #define $ac_func innocuous_$ac_func
11148
11149 /* System header to define __stub macros and hopefully few prototypes,
11150 which can conflict with char $ac_func (); below.
11151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11152 <limits.h> exists even on freestanding compilers. */
11153
11154 #ifdef __STDC__
11155 # include <limits.h>
11156 #else
11157 # include <assert.h>
11158 #endif
11159
11160 #undef $ac_func
11161
11162 /* Override any GCC internal prototype to avoid an error.
11163 Use char because int might match the return type of a GCC
11164 builtin and then its argument prototype would still apply. */
11165 #ifdef __cplusplus
11166 extern "C"
11167 #endif
11168 char $ac_func ();
11169 /* The GNU C library defines this for functions which it implements
11170 to always fail with ENOSYS. Some functions are actually named
11171 something starting with __ and the normal name is an alias. */
11172 #if defined __stub_$ac_func || defined __stub___$ac_func
11173 choke me
11174 #endif
11175
11176 int
11177 main ()
11178 {
11179 return $ac_func ();
11180 ;
11181 return 0;
11182 }
11183 _ACEOF
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (ac_try="$ac_link"
11186 case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189 esac
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_link") 2>conftest.er1
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && {
11198 test -z "$ac_c_werror_flag" ||
11199 test ! -s conftest.err
11200 } && test -s conftest$ac_exeext &&
11201 $as_test_x conftest$ac_exeext; then
11202 eval "$as_ac_var=yes"
11203 else
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11206
11207 eval "$as_ac_var=no"
11208 fi
11209
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211 conftest$ac_exeext conftest.$ac_ext
11212 fi
11213 ac_res=`eval echo '${'$as_ac_var'}'`
11214 { echo "$as_me:$LINENO: result: $ac_res" >&5
11215 echo "${ECHO_T}$ac_res" >&6; }
11216 if test `eval echo '${'$as_ac_var'}'` = yes; then
11217 cat >>confdefs.h <<_ACEOF
11218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11219 _ACEOF
11220 HAVE_GTK_MULTIDISPLAY=yes
11221 fi
11222 done
11223
11224 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11225
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_GTK_MULTIDISPLAY 1
11228 _ACEOF
11229
11230 fi
11231 HAVE_GTK_FILE_SELECTION=no
11232
11233 for ac_func in gtk_file_selection_new
11234 do
11235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11249 #define $ac_func innocuous_$ac_func
11250
11251 /* System header to define __stub macros and hopefully few prototypes,
11252 which can conflict with char $ac_func (); below.
11253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11254 <limits.h> exists even on freestanding compilers. */
11255
11256 #ifdef __STDC__
11257 # include <limits.h>
11258 #else
11259 # include <assert.h>
11260 #endif
11261
11262 #undef $ac_func
11263
11264 /* Override any GCC internal prototype to avoid an error.
11265 Use char because int might match the return type of a GCC
11266 builtin and then its argument prototype would still apply. */
11267 #ifdef __cplusplus
11268 extern "C"
11269 #endif
11270 char $ac_func ();
11271 /* The GNU C library defines this for functions which it implements
11272 to always fail with ENOSYS. Some functions are actually named
11273 something starting with __ and the normal name is an alias. */
11274 #if defined __stub_$ac_func || defined __stub___$ac_func
11275 choke me
11276 #endif
11277
11278 int
11279 main ()
11280 {
11281 return $ac_func ();
11282 ;
11283 return 0;
11284 }
11285 _ACEOF
11286 rm -f conftest.$ac_objext conftest$ac_exeext
11287 if { (ac_try="$ac_link"
11288 case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291 esac
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_link") 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } && {
11300 test -z "$ac_c_werror_flag" ||
11301 test ! -s conftest.err
11302 } && test -s conftest$ac_exeext &&
11303 $as_test_x conftest$ac_exeext; then
11304 eval "$as_ac_var=yes"
11305 else
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11308
11309 eval "$as_ac_var=no"
11310 fi
11311
11312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11313 conftest$ac_exeext conftest.$ac_ext
11314 fi
11315 ac_res=`eval echo '${'$as_ac_var'}'`
11316 { echo "$as_me:$LINENO: result: $ac_res" >&5
11317 echo "${ECHO_T}$ac_res" >&6; }
11318 if test `eval echo '${'$as_ac_var'}'` = yes; then
11319 cat >>confdefs.h <<_ACEOF
11320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11321 _ACEOF
11322 HAVE_GTK_FILE_SELECTION=yes
11323 fi
11324 done
11325
11326
11327 HAVE_GTK_FILE_CHOOSER=no
11328
11329 for ac_func in gtk_file_chooser_dialog_new
11330 do
11331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337 cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h. */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11345 #define $ac_func innocuous_$ac_func
11346
11347 /* System header to define __stub macros and hopefully few prototypes,
11348 which can conflict with char $ac_func (); below.
11349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11350 <limits.h> exists even on freestanding compilers. */
11351
11352 #ifdef __STDC__
11353 # include <limits.h>
11354 #else
11355 # include <assert.h>
11356 #endif
11357
11358 #undef $ac_func
11359
11360 /* Override any GCC internal prototype to avoid an error.
11361 Use char because int might match the return type of a GCC
11362 builtin and then its argument prototype would still apply. */
11363 #ifdef __cplusplus
11364 extern "C"
11365 #endif
11366 char $ac_func ();
11367 /* The GNU C library defines this for functions which it implements
11368 to always fail with ENOSYS. Some functions are actually named
11369 something starting with __ and the normal name is an alias. */
11370 #if defined __stub_$ac_func || defined __stub___$ac_func
11371 choke me
11372 #endif
11373
11374 int
11375 main ()
11376 {
11377 return $ac_func ();
11378 ;
11379 return 0;
11380 }
11381 _ACEOF
11382 rm -f conftest.$ac_objext conftest$ac_exeext
11383 if { (ac_try="$ac_link"
11384 case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387 esac
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_link") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest$ac_exeext &&
11399 $as_test_x conftest$ac_exeext; then
11400 eval "$as_ac_var=yes"
11401 else
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 eval "$as_ac_var=no"
11406 fi
11407
11408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11409 conftest$ac_exeext conftest.$ac_ext
11410 fi
11411 ac_res=`eval echo '${'$as_ac_var'}'`
11412 { echo "$as_me:$LINENO: result: $ac_res" >&5
11413 echo "${ECHO_T}$ac_res" >&6; }
11414 if test `eval echo '${'$as_ac_var'}'` = yes; then
11415 cat >>confdefs.h <<_ACEOF
11416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11417 _ACEOF
11418 HAVE_GTK_FILE_CHOOSER=yes
11419 fi
11420 done
11421
11422
11423 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11424 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11425
11426 cat >>confdefs.h <<\_ACEOF
11427 #define HAVE_GTK_FILE_BOTH 1
11428 _ACEOF
11429
11430 fi
11431
11432 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11433 HAVE_GTK_AND_PTHREAD=no
11434
11435 for ac_header in pthread.h
11436 do
11437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 fi
11444 ac_res=`eval echo '${'$as_ac_Header'}'`
11445 { echo "$as_me:$LINENO: result: $ac_res" >&5
11446 echo "${ECHO_T}$ac_res" >&6; }
11447 else
11448 # Is the header compilable?
11449 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 $ac_includes_default
11458 #include <$ac_header>
11459 _ACEOF
11460 rm -f conftest.$ac_objext
11461 if { (ac_try="$ac_compile"
11462 case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465 esac
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_compile") 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest.$ac_objext; then
11477 ac_header_compiler=yes
11478 else
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11481
11482 ac_header_compiler=no
11483 fi
11484
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11487 echo "${ECHO_T}$ac_header_compiler" >&6; }
11488
11489 # Is the header present?
11490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h. */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 #include <$ac_header>
11499 _ACEOF
11500 if { (ac_try="$ac_cpp conftest.$ac_ext"
11501 case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } >/dev/null && {
11513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 }; then
11516 ac_header_preproc=yes
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521 ac_header_preproc=no
11522 fi
11523
11524 rm -f conftest.err conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11526 echo "${ECHO_T}$ac_header_preproc" >&6; }
11527
11528 # So? What about this header?
11529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11530 yes:no: )
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11535 ac_header_preproc=yes
11536 ;;
11537 no:yes:* )
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11545 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11550
11551 ;;
11552 esac
11553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558 eval "$as_ac_Header=\$ac_header_preproc"
11559 fi
11560 ac_res=`eval echo '${'$as_ac_Header'}'`
11561 { echo "$as_me:$LINENO: result: $ac_res" >&5
11562 echo "${ECHO_T}$ac_res" >&6; }
11563
11564 fi
11565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11566 cat >>confdefs.h <<_ACEOF
11567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11568 _ACEOF
11569
11570 fi
11571
11572 done
11573
11574 if test "$ac_cv_header_pthread_h"; then
11575 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11576 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11577 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580 ac_check_lib_save_LIBS=$LIBS
11581 LIBS="-lpthread $LIBS"
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h. */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588
11589 /* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11592 #ifdef __cplusplus
11593 extern "C"
11594 #endif
11595 char pthread_self ();
11596 int
11597 main ()
11598 {
11599 return pthread_self ();
11600 ;
11601 return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext conftest$ac_exeext
11605 if { (ac_try="$ac_link"
11606 case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609 esac
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_link") 2>conftest.er1
11612 ac_status=$?
11613 grep -v '^ *+' conftest.er1 >conftest.err
11614 rm -f conftest.er1
11615 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } && {
11618 test -z "$ac_c_werror_flag" ||
11619 test ! -s conftest.err
11620 } && test -s conftest$ac_exeext &&
11621 $as_test_x conftest$ac_exeext; then
11622 ac_cv_lib_pthread_pthread_self=yes
11623 else
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 ac_cv_lib_pthread_pthread_self=no
11628 fi
11629
11630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11631 conftest$ac_exeext conftest.$ac_ext
11632 LIBS=$ac_check_lib_save_LIBS
11633 fi
11634 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11635 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11636 if test $ac_cv_lib_pthread_pthread_self = yes; then
11637 HAVE_GTK_AND_PTHREAD=yes
11638 fi
11639
11640 fi
11641 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11642 GTK_LIBS="$GTK_LIBS -lpthread"
11643
11644 cat >>confdefs.h <<\_ACEOF
11645 #define HAVE_GTK_AND_PTHREAD 1
11646 _ACEOF
11647
11648 fi
11649 fi
11650 fi
11651
11652 ### Link with -lXft if available to work around a bug.
11653 HAVE_XFT=maybe
11654 if test "${HAVE_GTK}" = "yes"; then
11655 if test "X${with_pkg_config_prog}" != X; then
11656 PKG_CONFIG="${with_pkg_config_prog}"
11657 fi
11658
11659
11660 succeeded=no
11661
11662 if test -z "$PKG_CONFIG"; then
11663 # Extract the first word of "pkg-config", so it can be a program name with args.
11664 set dummy pkg-config; ac_word=$2
11665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670 case $PKG_CONFIG in
11671 [\\/]* | ?:[\\/]*)
11672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11673 ;;
11674 *)
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11677 do
11678 IFS=$as_save_IFS
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11684 break 2
11685 fi
11686 done
11687 done
11688 IFS=$as_save_IFS
11689
11690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11691 ;;
11692 esac
11693 fi
11694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11695 if test -n "$PKG_CONFIG"; then
11696 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11697 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11698 else
11699 { echo "$as_me:$LINENO: result: no" >&5
11700 echo "${ECHO_T}no" >&6; }
11701 fi
11702
11703
11704 fi
11705
11706 if test "$PKG_CONFIG" = "no" ; then
11707 HAVE_XFT=no
11708 else
11709 PKG_CONFIG_MIN_VERSION=0.9.0
11710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11711 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11712 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11713
11714 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11715 { echo "$as_me:$LINENO: result: yes" >&5
11716 echo "${ECHO_T}yes" >&6; }
11717 succeeded=yes
11718
11719 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11720 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11721 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11722 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11723 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11724
11725 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11726 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11727 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11728 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11729 echo "${ECHO_T}$XFT_LIBS" >&6; }
11730 else
11731 { echo "$as_me:$LINENO: result: no" >&5
11732 echo "${ECHO_T}no" >&6; }
11733 XFT_CFLAGS=""
11734 XFT_LIBS=""
11735 ## If we have a custom action on failure, don't print errors, but
11736 ## do set a variable so people can do so.
11737 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11738
11739 fi
11740
11741
11742
11743 else
11744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11746 fi
11747 fi
11748
11749 if test $succeeded = yes; then
11750 :
11751 else
11752 HAVE_XFT=no
11753 fi
11754
11755 if test "$HAVE_XFT" != no; then
11756 OLD_CFLAGS="$CPPFLAGS"
11757 OLD_CPPFLAGS="$CFLAGS"
11758 OLD_LIBS="$LIBS"
11759 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11760 CFLAGS="$CFLAGS $XFT_CFLAGS"
11761 LIBS="$XFT_LIBS $LIBS"
11762 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11763 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11764 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11765 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767 fi
11768 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11769 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11770 else
11771 # Is the header compilable?
11772 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11773 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 $ac_includes_default
11781 #include <X11/Xft/Xft.h>
11782 _ACEOF
11783 rm -f conftest.$ac_objext
11784 if { (ac_try="$ac_compile"
11785 case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_compile") 2>conftest.er1
11791 ac_status=$?
11792 grep -v '^ *+' conftest.er1 >conftest.err
11793 rm -f conftest.er1
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } && {
11797 test -z "$ac_c_werror_flag" ||
11798 test ! -s conftest.err
11799 } && test -s conftest.$ac_objext; then
11800 ac_header_compiler=yes
11801 else
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 ac_header_compiler=no
11806 fi
11807
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11810 echo "${ECHO_T}$ac_header_compiler" >&6; }
11811
11812 # Is the header present?
11813 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11814 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11815 cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h. */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 #include <X11/Xft/Xft.h>
11822 _ACEOF
11823 if { (ac_try="$ac_cpp conftest.$ac_ext"
11824 case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827 esac
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } >/dev/null && {
11836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11837 test ! -s conftest.err
11838 }; then
11839 ac_header_preproc=yes
11840 else
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11843
11844 ac_header_preproc=no
11845 fi
11846
11847 rm -f conftest.err conftest.$ac_ext
11848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11849 echo "${ECHO_T}$ac_header_preproc" >&6; }
11850
11851 # So? What about this header?
11852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11853 yes:no: )
11854 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11855 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11857 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11858 ac_header_preproc=yes
11859 ;;
11860 no:yes:* )
11861 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11862 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11864 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11866 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11868 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11870 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11872 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11873
11874 ;;
11875 esac
11876 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11877 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11878 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11882 fi
11883 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11884 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11885
11886 fi
11887 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11888 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11889 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11890 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893 ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-lXft $XFT_LIBS $LIBS"
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h. */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901
11902 /* Override any GCC internal prototype to avoid an error.
11903 Use char because int might match the return type of a GCC
11904 builtin and then its argument prototype would still apply. */
11905 #ifdef __cplusplus
11906 extern "C"
11907 #endif
11908 char XftFontOpen ();
11909 int
11910 main ()
11911 {
11912 return XftFontOpen ();
11913 ;
11914 return 0;
11915 }
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest$ac_exeext &&
11934 $as_test_x conftest$ac_exeext; then
11935 ac_cv_lib_Xft_XftFontOpen=yes
11936 else
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940 ac_cv_lib_Xft_XftFontOpen=no
11941 fi
11942
11943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11944 conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11946 fi
11947 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11948 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11949 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11950 HAVE_XFT=yes
11951 fi
11952
11953 fi
11954
11955
11956
11957 if test "${HAVE_XFT}" = "yes"; then
11958
11959 cat >>confdefs.h <<\_ACEOF
11960 #define HAVE_XFT 1
11961 _ACEOF
11962
11963
11964 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11965 else
11966 CFLAGS="$OLD_CPPFLAGS"
11967 CFLAGS="$OLD_CFLAGS"
11968 LIBS="$OLD_LIBS"
11969 fi
11970 fi
11971 fi
11972
11973 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11974 if test x"${HAVE_X11R5}" = xyes; then
11975 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11976 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11977 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h. */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986
11987 #include <X11/Intrinsic.h>
11988 #include <X11/Xaw/Simple.h>
11989 int
11990 main ()
11991 {
11992
11993 ;
11994 return 0;
11995 }
11996 _ACEOF
11997 rm -f conftest.$ac_objext conftest$ac_exeext
11998 if { (ac_try="$ac_link"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002 esac
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_link") 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest$ac_exeext &&
12014 $as_test_x conftest$ac_exeext; then
12015 emacs_cv_x11_version_5_with_xaw=yes
12016 else
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12019
12020 emacs_cv_x11_version_5_with_xaw=no
12021 fi
12022
12023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12024 conftest$ac_exeext conftest.$ac_ext
12025 fi
12026
12027 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12028 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12029 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12030 USE_X_TOOLKIT=LUCID
12031 else
12032 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12033 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12034 USE_X_TOOLKIT=none
12035 fi
12036 else
12037 USE_X_TOOLKIT=none
12038 fi
12039 fi
12040
12041 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12042
12043 if test "${USE_X_TOOLKIT}" != "none"; then
12044 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12045 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12046 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h. */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 #include <X11/Intrinsic.h>
12056 int
12057 main ()
12058 {
12059 #if XtSpecificationRelease < 6
12060 fail;
12061 #endif
12062
12063 ;
12064 return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072 esac
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest$ac_exeext &&
12084 $as_test_x conftest$ac_exeext; then
12085 emacs_cv_x11_toolkit_version_6=yes
12086 else
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12089
12090 emacs_cv_x11_toolkit_version_6=no
12091 fi
12092
12093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12094 conftest$ac_exeext conftest.$ac_ext
12095 fi
12096
12097 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12098 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12099 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12100 echo "${ECHO_T}6 or newer" >&6; }
12101
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_X11XTR6 1
12104 _ACEOF
12105
12106 else
12107 { echo "$as_me:$LINENO: result: before 6" >&5
12108 echo "${ECHO_T}before 6" >&6; }
12109 fi
12110
12111 OLDLIBS="$LIBS"
12112 if test x$HAVE_X11XTR6 = xyes; then
12113 LIBS="-lXt -lSM -lICE $LIBS"
12114 else
12115 LIBS="-lXt $LIBS"
12116 fi
12117
12118 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12119 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12120 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 else
12123 ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-lXmu $LIBS"
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12135 #ifdef __cplusplus
12136 extern "C"
12137 #endif
12138 char XmuConvertStandardSelection ();
12139 int
12140 main ()
12141 {
12142 return XmuConvertStandardSelection ();
12143 ;
12144 return 0;
12145 }
12146 _ACEOF
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (ac_try="$ac_link"
12149 case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152 esac
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_link") 2>conftest.er1
12155 ac_status=$?
12156 grep -v '^ *+' conftest.er1 >conftest.err
12157 rm -f conftest.er1
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } && {
12161 test -z "$ac_c_werror_flag" ||
12162 test ! -s conftest.err
12163 } && test -s conftest$ac_exeext &&
12164 $as_test_x conftest$ac_exeext; then
12165 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12166 else
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12169
12170 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12171 fi
12172
12173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12174 conftest$ac_exeext conftest.$ac_ext
12175 LIBS=$ac_check_lib_save_LIBS
12176 fi
12177 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12178 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12179 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12180 cat >>confdefs.h <<_ACEOF
12181 #define HAVE_LIBXMU 1
12182 _ACEOF
12183
12184 LIBS="-lXmu $LIBS"
12185
12186 fi
12187
12188 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12189 fi
12190
12191 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12192 if test "${HAVE_X11}" = "yes"; then
12193 if test "${USE_X_TOOLKIT}" != "none"; then
12194
12195 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12196 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12197 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200 ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-lXext $LIBS"
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12212 #ifdef __cplusplus
12213 extern "C"
12214 #endif
12215 char XShapeQueryExtension ();
12216 int
12217 main ()
12218 {
12219 return XShapeQueryExtension ();
12220 ;
12221 return 0;
12222 }
12223 _ACEOF
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (ac_try="$ac_link"
12226 case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_link") 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest$ac_exeext &&
12241 $as_test_x conftest$ac_exeext; then
12242 ac_cv_lib_Xext_XShapeQueryExtension=yes
12243 else
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12246
12247 ac_cv_lib_Xext_XShapeQueryExtension=no
12248 fi
12249
12250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12251 conftest$ac_exeext conftest.$ac_ext
12252 LIBS=$ac_check_lib_save_LIBS
12253 fi
12254 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12255 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12256 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12257 cat >>confdefs.h <<_ACEOF
12258 #define HAVE_LIBXEXT 1
12259 _ACEOF
12260
12261 LIBS="-lXext $LIBS"
12262
12263 fi
12264
12265 fi
12266 fi
12267
12268 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12269 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12270 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12271 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 #include <Xm/Xm.h>
12281 int
12282 main ()
12283 {
12284 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12285 int x = 5;
12286 #else
12287 Motif version prior to 2.1.
12288 #endif
12289 ;
12290 return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext
12294 if { (ac_try="$ac_compile"
12295 case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_compile") 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } && {
12307 test -z "$ac_c_werror_flag" ||
12308 test ! -s conftest.err
12309 } && test -s conftest.$ac_objext; then
12310 emacs_cv_motif_version_2_1=yes
12311 else
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315 emacs_cv_motif_version_2_1=no
12316 fi
12317
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 fi
12320 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12321 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12322 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12323 if test $emacs_cv_motif_version_2_1 = yes; then
12324 HAVE_LIBXP=no
12325
12326 cat >>confdefs.h <<\_ACEOF
12327 #define HAVE_MOTIF_2_1 1
12328 _ACEOF
12329
12330 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12331 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12332 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 else
12335 ac_check_lib_save_LIBS=$LIBS
12336 LIBS="-lXp $LIBS"
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h. */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 char XpCreateContext ();
12351 int
12352 main ()
12353 {
12354 return XpCreateContext ();
12355 ;
12356 return 0;
12357 }
12358 _ACEOF
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_link") 2>conftest.er1
12367 ac_status=$?
12368 grep -v '^ *+' conftest.er1 >conftest.err
12369 rm -f conftest.er1
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest$ac_exeext &&
12376 $as_test_x conftest$ac_exeext; then
12377 ac_cv_lib_Xp_XpCreateContext=yes
12378 else
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382 ac_cv_lib_Xp_XpCreateContext=no
12383 fi
12384
12385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12386 conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12388 fi
12389 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12390 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12391 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12392 HAVE_LIBXP=yes
12393 fi
12394
12395 if test ${HAVE_LIBXP} = yes; then
12396
12397 cat >>confdefs.h <<\_ACEOF
12398 #define HAVE_LIBXP 1
12399 _ACEOF
12400
12401 fi
12402 else
12403 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12404 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12405 if test "${emacs_cv_lesstif+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 else
12408 # We put this in CFLAGS temporarily to precede other -I options
12409 # that might be in CFLAGS temporarily.
12410 # We put this in CPPFLAGS where it precedes the other -I options.
12411 OLD_CPPFLAGS=$CPPFLAGS
12412 OLD_CFLAGS=$CFLAGS
12413 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12414 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12415 cat >conftest.$ac_ext <<_ACEOF
12416 /* confdefs.h. */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12422 int
12423 main ()
12424 {
12425 int x = 5;
12426 ;
12427 return 0;
12428 }
12429 _ACEOF
12430 rm -f conftest.$ac_objext
12431 if { (ac_try="$ac_compile"
12432 case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12435 esac
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_compile") 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } && {
12444 test -z "$ac_c_werror_flag" ||
12445 test ! -s conftest.err
12446 } && test -s conftest.$ac_objext; then
12447 emacs_cv_lesstif=yes
12448 else
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452 emacs_cv_lesstif=no
12453 fi
12454
12455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12456 fi
12457 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12458 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12459 if test $emacs_cv_lesstif = yes; then
12460 # Make sure this -I option remains in CPPFLAGS after it is set
12461 # back to REAL_CPPFLAGS.
12462 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12463 # have those other -I options anyway. Ultimately, having this
12464 # directory ultimately in CPPFLAGS will be enough.
12465 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12466 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12467 else
12468 CFLAGS=$OLD_CFLAGS
12469 CPPFLAGS=$OLD_CPPFLAGS
12470 fi
12471 fi
12472 fi
12473
12474 ### Is -lXaw3d available?
12475 HAVE_XAW3D=no
12476 if test "${HAVE_X11}" = "yes"; then
12477 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12478 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12479 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12480 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 else
12483 cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h. */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 #include <X11/Xaw3d/Scrollbar.h>
12490 _ACEOF
12491 if { (ac_try="$ac_cpp conftest.$ac_ext"
12492 case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12495 esac
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12498 ac_status=$?
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } >/dev/null && {
12504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12505 test ! -s conftest.err
12506 }; then
12507 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12508 else
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12511
12512 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12513 fi
12514
12515 rm -f conftest.err conftest.$ac_ext
12516 fi
12517 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12518 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12519 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12520 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12521 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525 ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lXaw3d $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12537 #ifdef __cplusplus
12538 extern "C"
12539 #endif
12540 char XawScrollbarSetThumb ();
12541 int
12542 main ()
12543 {
12544 return XawScrollbarSetThumb ();
12545 ;
12546 return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest$ac_exeext &&
12566 $as_test_x conftest$ac_exeext; then
12567 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12568 else
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12573 fi
12574
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12578 fi
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12580 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12581 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12582 HAVE_XAW3D=yes
12583 fi
12584
12585 fi
12586
12587
12588 if test "${HAVE_XAW3D}" = "yes"; then
12589
12590 cat >>confdefs.h <<\_ACEOF
12591 #define HAVE_XAW3D 1
12592 _ACEOF
12593
12594 fi
12595 fi
12596 fi
12597
12598
12599
12600 USE_TOOLKIT_SCROLL_BARS=no
12601 if test "${with_toolkit_scroll_bars}" != "no"; then
12602 if test "${USE_X_TOOLKIT}" != "none"; then
12603 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12604 cat >>confdefs.h <<\_ACEOF
12605 #define USE_TOOLKIT_SCROLL_BARS 1
12606 _ACEOF
12607
12608 HAVE_XAW3D=no
12609 USE_TOOLKIT_SCROLL_BARS=yes
12610 elif test "${HAVE_XAW3D}" = "yes"; then
12611 cat >>confdefs.h <<\_ACEOF
12612 #define USE_TOOLKIT_SCROLL_BARS 1
12613 _ACEOF
12614
12615 USE_TOOLKIT_SCROLL_BARS=yes
12616 fi
12617 elif test "${HAVE_GTK}" = "yes"; then
12618 cat >>confdefs.h <<\_ACEOF
12619 #define USE_TOOLKIT_SCROLL_BARS 1
12620 _ACEOF
12621
12622 USE_TOOLKIT_SCROLL_BARS=yes
12623 elif test "${HAVE_CARBON}" = "yes"; then
12624 cat >>confdefs.h <<\_ACEOF
12625 #define USE_TOOLKIT_SCROLL_BARS 1
12626 _ACEOF
12627
12628 USE_TOOLKIT_SCROLL_BARS=yes
12629 fi
12630 fi
12631
12632 cat >conftest.$ac_ext <<_ACEOF
12633 /* confdefs.h. */
12634 _ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12638
12639 #include <X11/Xlib.h>
12640 #include <X11/Xresource.h>
12641 int
12642 main ()
12643 {
12644 XIMProc callback;
12645 ;
12646 return 0;
12647 }
12648 _ACEOF
12649 rm -f conftest.$ac_objext
12650 if { (ac_try="$ac_compile"
12651 case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12654 esac
12655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_compile") 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } && {
12663 test -z "$ac_c_werror_flag" ||
12664 test ! -s conftest.err
12665 } && test -s conftest.$ac_objext; then
12666 HAVE_XIM=yes
12667
12668 cat >>confdefs.h <<\_ACEOF
12669 #define HAVE_XIM 1
12670 _ACEOF
12671
12672 else
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676 HAVE_XIM=no
12677 fi
12678
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680
12681
12682 if test "${with_xim}" != "no"; then
12683
12684 cat >>confdefs.h <<\_ACEOF
12685 #define USE_XIM 1
12686 _ACEOF
12687
12688 fi
12689
12690
12691 if test "${HAVE_XIM}" != "no"; then
12692 late_CFLAGS=$CFLAGS
12693 if test "$GCC" = yes; then
12694 CFLAGS="$CFLAGS --pedantic-errors"
12695 fi
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h. */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12702
12703 #include <X11/Xlib.h>
12704 #include <X11/Xresource.h>
12705 int
12706 main ()
12707 {
12708 Display *display;
12709 XrmDatabase db;
12710 char *res_name;
12711 char *res_class;
12712 XIMProc callback;
12713 XPointer *client_data;
12714 #ifndef __GNUC__
12715 /* If we're not using GCC, it's probably not XFree86, and this is
12716 probably right, but we can't use something like --pedantic-errors. */
12717 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12718 char*, XIMProc, XPointer*);
12719 #endif
12720 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12721 client_data);
12722 ;
12723 return 0;
12724 }
12725 _ACEOF
12726 rm -f conftest.$ac_objext
12727 if { (ac_try="$ac_compile"
12728 case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12731 esac
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_compile") 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && {
12740 test -z "$ac_c_werror_flag" ||
12741 test ! -s conftest.err
12742 } && test -s conftest.$ac_objext; then
12743 emacs_cv_arg6_star=yes
12744 else
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12747
12748
12749 fi
12750
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752
12753 if test "$emacs_cv_arg6_star" = yes; then
12754 cat >>confdefs.h <<\_ACEOF
12755 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12756 _ACEOF
12757
12758 else
12759 cat >>confdefs.h <<\_ACEOF
12760 #define XRegisterIMInstantiateCallback_arg6 XPointer
12761 _ACEOF
12762
12763 fi
12764 CFLAGS=$late_CFLAGS
12765 fi
12766
12767 ### Use -lXpm if available, unless `--with-xpm=no'.
12768 HAVE_XPM=no
12769 if test "${HAVE_X11}" = "yes"; then
12770 if test "${with_xpm}" != "no"; then
12771 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12772 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12773 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12774 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 fi
12777 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12778 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12779 else
12780 # Is the header compilable?
12781 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12782 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12783 cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h. */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 $ac_includes_default
12790 #include <X11/xpm.h>
12791 _ACEOF
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_compile") 2>conftest.er1
12800 ac_status=$?
12801 grep -v '^ *+' conftest.er1 >conftest.err
12802 rm -f conftest.er1
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest.$ac_objext; then
12809 ac_header_compiler=yes
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12813
12814 ac_header_compiler=no
12815 fi
12816
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12819 echo "${ECHO_T}$ac_header_compiler" >&6; }
12820
12821 # Is the header present?
12822 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12823 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12824 cat >conftest.$ac_ext <<_ACEOF
12825 /* confdefs.h. */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12830 #include <X11/xpm.h>
12831 _ACEOF
12832 if { (ac_try="$ac_cpp conftest.$ac_ext"
12833 case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12836 esac
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } >/dev/null && {
12845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 }; then
12848 ac_header_preproc=yes
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_header_preproc=no
12854 fi
12855
12856 rm -f conftest.err conftest.$ac_ext
12857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12858 echo "${ECHO_T}$ac_header_preproc" >&6; }
12859
12860 # So? What about this header?
12861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12862 yes:no: )
12863 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12864 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12866 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12867 ac_header_preproc=yes
12868 ;;
12869 no:yes:* )
12870 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12871 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12873 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12875 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12877 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12879 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12881 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12882
12883 ;;
12884 esac
12885 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12886 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12887 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 else
12890 ac_cv_header_X11_xpm_h=$ac_header_preproc
12891 fi
12892 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12893 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12894
12895 fi
12896 if test $ac_cv_header_X11_xpm_h = yes; then
12897 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12898 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12899 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902 ac_check_lib_save_LIBS=$LIBS
12903 LIBS="-lXpm -lX11 $LIBS"
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h. */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910
12911 /* Override any GCC internal prototype to avoid an error.
12912 Use char because int might match the return type of a GCC
12913 builtin and then its argument prototype would still apply. */
12914 #ifdef __cplusplus
12915 extern "C"
12916 #endif
12917 char XpmReadFileToPixmap ();
12918 int
12919 main ()
12920 {
12921 return XpmReadFileToPixmap ();
12922 ;
12923 return 0;
12924 }
12925 _ACEOF
12926 rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (ac_try="$ac_link"
12928 case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12931 esac
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_link") 2>conftest.er1
12934 ac_status=$?
12935 grep -v '^ *+' conftest.er1 >conftest.err
12936 rm -f conftest.er1
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } && {
12940 test -z "$ac_c_werror_flag" ||
12941 test ! -s conftest.err
12942 } && test -s conftest$ac_exeext &&
12943 $as_test_x conftest$ac_exeext; then
12944 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12945 else
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12950 fi
12951
12952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_check_lib_save_LIBS
12955 fi
12956 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12957 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12958 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12959 HAVE_XPM=yes
12960 fi
12961
12962 fi
12963
12964
12965 if test "${HAVE_XPM}" = "yes"; then
12966 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12967 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12968 cat >conftest.$ac_ext <<_ACEOF
12969 /* confdefs.h. */
12970 _ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h. */
12974 #include "X11/xpm.h"
12975 #ifndef XpmReturnAllocPixels
12976 no_return_alloc_pixels
12977 #endif
12978
12979 _ACEOF
12980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12981 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12982 HAVE_XPM=no
12983 else
12984 HAVE_XPM=yes
12985 fi
12986 rm -f conftest*
12987
12988
12989 if test "${HAVE_XPM}" = "yes"; then
12990 { echo "$as_me:$LINENO: result: yes" >&5
12991 echo "${ECHO_T}yes" >&6; }
12992 else
12993 { echo "$as_me:$LINENO: result: no" >&5
12994 echo "${ECHO_T}no" >&6; }
12995 fi
12996 fi
12997 fi
12998
12999 if test "${HAVE_XPM}" = "yes"; then
13000
13001 cat >>confdefs.h <<\_ACEOF
13002 #define HAVE_XPM 1
13003 _ACEOF
13004
13005 fi
13006 fi
13007
13008 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13009 HAVE_JPEG=no
13010 if test "${HAVE_X11}" = "yes"; then
13011 if test "${with_jpeg}" != "no"; then
13012 if test "${ac_cv_header_jerror_h+set}" = set; then
13013 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13014 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13015 if test "${ac_cv_header_jerror_h+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 fi
13018 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13019 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13020 else
13021 # Is the header compilable?
13022 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13023 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13024 cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h. */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13030 $ac_includes_default
13031 #include <jerror.h>
13032 _ACEOF
13033 rm -f conftest.$ac_objext
13034 if { (ac_try="$ac_compile"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_compile") 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && {
13047 test -z "$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 } && test -s conftest.$ac_objext; then
13050 ac_header_compiler=yes
13051 else
13052 echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13054
13055 ac_header_compiler=no
13056 fi
13057
13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13060 echo "${ECHO_T}$ac_header_compiler" >&6; }
13061
13062 # Is the header present?
13063 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13064 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13065 cat >conftest.$ac_ext <<_ACEOF
13066 /* confdefs.h. */
13067 _ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13071 #include <jerror.h>
13072 _ACEOF
13073 if { (ac_try="$ac_cpp conftest.$ac_ext"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } >/dev/null && {
13086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13087 test ! -s conftest.err
13088 }; then
13089 ac_header_preproc=yes
13090 else
13091 echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094 ac_header_preproc=no
13095 fi
13096
13097 rm -f conftest.err conftest.$ac_ext
13098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13099 echo "${ECHO_T}$ac_header_preproc" >&6; }
13100
13101 # So? What about this header?
13102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13103 yes:no: )
13104 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13105 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13107 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13108 ac_header_preproc=yes
13109 ;;
13110 no:yes:* )
13111 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13112 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13114 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13116 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13117 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13118 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13120 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13121 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13122 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13123
13124 ;;
13125 esac
13126 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13127 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13128 if test "${ac_cv_header_jerror_h+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131 ac_cv_header_jerror_h=$ac_header_preproc
13132 fi
13133 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13134 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13135
13136 fi
13137 if test $ac_cv_header_jerror_h = yes; then
13138 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13139 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13140 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 else
13143 ac_check_lib_save_LIBS=$LIBS
13144 LIBS="-ljpeg $LIBS"
13145 cat >conftest.$ac_ext <<_ACEOF
13146 /* confdefs.h. */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13151
13152 /* Override any GCC internal prototype to avoid an error.
13153 Use char because int might match the return type of a GCC
13154 builtin and then its argument prototype would still apply. */
13155 #ifdef __cplusplus
13156 extern "C"
13157 #endif
13158 char jpeg_destroy_compress ();
13159 int
13160 main ()
13161 {
13162 return jpeg_destroy_compress ();
13163 ;
13164 return 0;
13165 }
13166 _ACEOF
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_link") 2>conftest.er1
13175 ac_status=$?
13176 grep -v '^ *+' conftest.er1 >conftest.err
13177 rm -f conftest.er1
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } && {
13181 test -z "$ac_c_werror_flag" ||
13182 test ! -s conftest.err
13183 } && test -s conftest$ac_exeext &&
13184 $as_test_x conftest$ac_exeext; then
13185 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13186 else
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13191 fi
13192
13193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13194 conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13196 fi
13197 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13198 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13199 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13200 HAVE_JPEG=yes
13201 fi
13202
13203 fi
13204
13205
13206 fi
13207
13208
13209 if test "${HAVE_JPEG}" = "yes"; then
13210 cat >>confdefs.h <<\_ACEOF
13211 #define HAVE_JPEG 1
13212 _ACEOF
13213
13214 cat >conftest.$ac_ext <<_ACEOF
13215 /* confdefs.h. */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 #include <jpeglib.h>
13221 version=JPEG_LIB_VERSION
13222
13223 _ACEOF
13224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13225 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13226 cat >>confdefs.h <<\_ACEOF
13227 #define HAVE_JPEG 1
13228 _ACEOF
13229
13230 else
13231 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13232 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13233 HAVE_JPEG=no
13234 fi
13235 rm -f conftest*
13236
13237 fi
13238 fi
13239
13240 ### Use -lpng if available, unless `--with-png=no'.
13241 HAVE_PNG=no
13242 if test "${HAVE_X11}" = "yes"; then
13243 if test "${with_png}" != "no"; then
13244 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13245 # in /usr/include/libpng.
13246
13247
13248 for ac_header in png.h libpng/png.h
13249 do
13250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 fi
13257 ac_res=`eval echo '${'$as_ac_Header'}'`
13258 { echo "$as_me:$LINENO: result: $ac_res" >&5
13259 echo "${ECHO_T}$ac_res" >&6; }
13260 else
13261 # Is the header compilable?
13262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13264 cat >conftest.$ac_ext <<_ACEOF
13265 /* confdefs.h. */
13266 _ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 $ac_includes_default
13271 #include <$ac_header>
13272 _ACEOF
13273 rm -f conftest.$ac_objext
13274 if { (ac_try="$ac_compile"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_compile") 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } && {
13287 test -z "$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13289 } && test -s conftest.$ac_objext; then
13290 ac_header_compiler=yes
13291 else
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13294
13295 ac_header_compiler=no
13296 fi
13297
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13300 echo "${ECHO_T}$ac_header_compiler" >&6; }
13301
13302 # Is the header present?
13303 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h. */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #include <$ac_header>
13312 _ACEOF
13313 if { (ac_try="$ac_cpp conftest.$ac_ext"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } >/dev/null && {
13326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13328 }; then
13329 ac_header_preproc=yes
13330 else
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13333
13334 ac_header_preproc=no
13335 fi
13336
13337 rm -f conftest.err conftest.$ac_ext
13338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13339 echo "${ECHO_T}$ac_header_preproc" >&6; }
13340
13341 # So? What about this header?
13342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13343 yes:no: )
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13348 ac_header_preproc=yes
13349 ;;
13350 no:yes:* )
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13363
13364 ;;
13365 esac
13366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 else
13371 eval "$as_ac_Header=\$ac_header_preproc"
13372 fi
13373 ac_res=`eval echo '${'$as_ac_Header'}'`
13374 { echo "$as_me:$LINENO: result: $ac_res" >&5
13375 echo "${ECHO_T}$ac_res" >&6; }
13376
13377 fi
13378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13379 cat >>confdefs.h <<_ACEOF
13380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13381 _ACEOF
13382
13383 fi
13384
13385 done
13386
13387 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13388 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13389 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13390 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 else
13393 ac_check_lib_save_LIBS=$LIBS
13394 LIBS="-lpng -lz -lm $LIBS"
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h. */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401
13402 /* Override any GCC internal prototype to avoid an error.
13403 Use char because int might match the return type of a GCC
13404 builtin and then its argument prototype would still apply. */
13405 #ifdef __cplusplus
13406 extern "C"
13407 #endif
13408 char png_get_channels ();
13409 int
13410 main ()
13411 {
13412 return png_get_channels ();
13413 ;
13414 return 0;
13415 }
13416 _ACEOF
13417 rm -f conftest.$ac_objext conftest$ac_exeext
13418 if { (ac_try="$ac_link"
13419 case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422 esac
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_link") 2>conftest.er1
13425 ac_status=$?
13426 grep -v '^ *+' conftest.er1 >conftest.err
13427 rm -f conftest.er1
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } && {
13431 test -z "$ac_c_werror_flag" ||
13432 test ! -s conftest.err
13433 } && test -s conftest$ac_exeext &&
13434 $as_test_x conftest$ac_exeext; then
13435 ac_cv_lib_png_png_get_channels=yes
13436 else
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13439
13440 ac_cv_lib_png_png_get_channels=no
13441 fi
13442
13443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13444 conftest$ac_exeext conftest.$ac_ext
13445 LIBS=$ac_check_lib_save_LIBS
13446 fi
13447 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13448 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13449 if test $ac_cv_lib_png_png_get_channels = yes; then
13450 HAVE_PNG=yes
13451 fi
13452
13453 fi
13454 fi
13455
13456 if test "${HAVE_PNG}" = "yes"; then
13457
13458 cat >>confdefs.h <<\_ACEOF
13459 #define HAVE_PNG 1
13460 _ACEOF
13461
13462 fi
13463 fi
13464
13465 ### Use -ltiff if available, unless `--with-tiff=no'.
13466 HAVE_TIFF=no
13467 if test "${HAVE_X11}" = "yes"; then
13468 if test "${with_tiff}" != "no"; then
13469 if test "${ac_cv_header_tiffio_h+set}" = set; then
13470 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13471 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13472 if test "${ac_cv_header_tiffio_h+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 fi
13475 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13476 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13477 else
13478 # Is the header compilable?
13479 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13480 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13481 cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h. */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 $ac_includes_default
13488 #include <tiffio.h>
13489 _ACEOF
13490 rm -f conftest.$ac_objext
13491 if { (ac_try="$ac_compile"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_compile") 2>conftest.er1
13498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest.$ac_objext; then
13507 ac_header_compiler=yes
13508 else
13509 echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13511
13512 ac_header_compiler=no
13513 fi
13514
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13517 echo "${ECHO_T}$ac_header_compiler" >&6; }
13518
13519 # Is the header present?
13520 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13521 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13522 cat >conftest.$ac_ext <<_ACEOF
13523 /* confdefs.h. */
13524 _ACEOF
13525 cat confdefs.h >>conftest.$ac_ext
13526 cat >>conftest.$ac_ext <<_ACEOF
13527 /* end confdefs.h. */
13528 #include <tiffio.h>
13529 _ACEOF
13530 if { (ac_try="$ac_cpp conftest.$ac_ext"
13531 case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13534 esac
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13537 ac_status=$?
13538 grep -v '^ *+' conftest.er1 >conftest.err
13539 rm -f conftest.er1
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } >/dev/null && {
13543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13544 test ! -s conftest.err
13545 }; then
13546 ac_header_preproc=yes
13547 else
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551 ac_header_preproc=no
13552 fi
13553
13554 rm -f conftest.err conftest.$ac_ext
13555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13556 echo "${ECHO_T}$ac_header_preproc" >&6; }
13557
13558 # So? What about this header?
13559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13560 yes:no: )
13561 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13562 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13564 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13565 ac_header_preproc=yes
13566 ;;
13567 no:yes:* )
13568 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13569 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13571 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13572 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13573 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13575 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13577 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13579 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13580
13581 ;;
13582 esac
13583 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13584 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13585 if test "${ac_cv_header_tiffio_h+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588 ac_cv_header_tiffio_h=$ac_header_preproc
13589 fi
13590 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13591 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13592
13593 fi
13594 if test $ac_cv_header_tiffio_h = yes; then
13595 tifflibs="-lz -lm"
13596 # At least one tiff package requires the jpeg library.
13597 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13598 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13599 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13600 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 else
13603 ac_check_lib_save_LIBS=$LIBS
13604 LIBS="-ltiff $tifflibs $LIBS"
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h. */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611
13612 /* Override any GCC internal prototype to avoid an error.
13613 Use char because int might match the return type of a GCC
13614 builtin and then its argument prototype would still apply. */
13615 #ifdef __cplusplus
13616 extern "C"
13617 #endif
13618 char TIFFGetVersion ();
13619 int
13620 main ()
13621 {
13622 return TIFFGetVersion ();
13623 ;
13624 return 0;
13625 }
13626 _ACEOF
13627 rm -f conftest.$ac_objext conftest$ac_exeext
13628 if { (ac_try="$ac_link"
13629 case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13632 esac
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_link") 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } && {
13641 test -z "$ac_c_werror_flag" ||
13642 test ! -s conftest.err
13643 } && test -s conftest$ac_exeext &&
13644 $as_test_x conftest$ac_exeext; then
13645 ac_cv_lib_tiff_TIFFGetVersion=yes
13646 else
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13649
13650 ac_cv_lib_tiff_TIFFGetVersion=no
13651 fi
13652
13653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13654 conftest$ac_exeext conftest.$ac_ext
13655 LIBS=$ac_check_lib_save_LIBS
13656 fi
13657 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13658 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13659 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13660 HAVE_TIFF=yes
13661 fi
13662
13663 fi
13664
13665
13666 fi
13667
13668 if test "${HAVE_TIFF}" = "yes"; then
13669
13670 cat >>confdefs.h <<\_ACEOF
13671 #define HAVE_TIFF 1
13672 _ACEOF
13673
13674 fi
13675 fi
13676
13677 ### Use -lgif if available, unless `--with-gif=no'.
13678 HAVE_GIF=no
13679 if test "${HAVE_X11}" = "yes"; then
13680 if test "${with_gif}" != "no"; then
13681 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13682 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13683 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13684 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 fi
13687 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13688 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13689 else
13690 # Is the header compilable?
13691 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13692 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13693 cat >conftest.$ac_ext <<_ACEOF
13694 /* confdefs.h. */
13695 _ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 $ac_includes_default
13700 #include <gif_lib.h>
13701 _ACEOF
13702 rm -f conftest.$ac_objext
13703 if { (ac_try="$ac_compile"
13704 case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_compile") 2>conftest.er1
13710 ac_status=$?
13711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest.$ac_objext; then
13719 ac_header_compiler=yes
13720 else
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13723
13724 ac_header_compiler=no
13725 fi
13726
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13729 echo "${ECHO_T}$ac_header_compiler" >&6; }
13730
13731 # Is the header present?
13732 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13733 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13734 cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h. */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13740 #include <gif_lib.h>
13741 _ACEOF
13742 if { (ac_try="$ac_cpp conftest.$ac_ext"
13743 case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13749 ac_status=$?
13750 grep -v '^ *+' conftest.er1 >conftest.err
13751 rm -f conftest.er1
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } >/dev/null && {
13755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13756 test ! -s conftest.err
13757 }; then
13758 ac_header_preproc=yes
13759 else
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 ac_header_preproc=no
13764 fi
13765
13766 rm -f conftest.err conftest.$ac_ext
13767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13768 echo "${ECHO_T}$ac_header_preproc" >&6; }
13769
13770 # So? What about this header?
13771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13772 yes:no: )
13773 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13774 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13776 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13777 ac_header_preproc=yes
13778 ;;
13779 no:yes:* )
13780 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13781 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13782 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13783 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13784 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13785 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13787 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13789 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13790 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13791 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13792
13793 ;;
13794 esac
13795 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13796 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13797 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800 ac_cv_header_gif_lib_h=$ac_header_preproc
13801 fi
13802 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13803 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13804
13805 fi
13806 if test $ac_cv_header_gif_lib_h = yes; then
13807 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13808 # Earlier versions can crash Emacs.
13809 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13810 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13811 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814 ac_check_lib_save_LIBS=$LIBS
13815 LIBS="-lungif $LIBS"
13816 cat >conftest.$ac_ext <<_ACEOF
13817 /* confdefs.h. */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13826 #ifdef __cplusplus
13827 extern "C"
13828 #endif
13829 char EGifPutExtensionLast ();
13830 int
13831 main ()
13832 {
13833 return EGifPutExtensionLast ();
13834 ;
13835 return 0;
13836 }
13837 _ACEOF
13838 rm -f conftest.$ac_objext conftest$ac_exeext
13839 if { (ac_try="$ac_link"
13840 case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843 esac
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_link") 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } && {
13852 test -z "$ac_c_werror_flag" ||
13853 test ! -s conftest.err
13854 } && test -s conftest$ac_exeext &&
13855 $as_test_x conftest$ac_exeext; then
13856 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 ac_cv_lib_ungif_EGifPutExtensionLast=no
13862 fi
13863
13864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13865 conftest$ac_exeext conftest.$ac_ext
13866 LIBS=$ac_check_lib_save_LIBS
13867 fi
13868 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13869 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13870 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13871 HAVE_GIF=yes
13872 fi
13873
13874 fi
13875
13876
13877 fi
13878
13879 if test "${HAVE_GIF}" = "yes"; then
13880
13881 cat >>confdefs.h <<\_ACEOF
13882 #define HAVE_GIF 1
13883 _ACEOF
13884
13885 fi
13886 fi
13887
13888 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13889 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13890 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13891 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 fi
13894 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13895 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13896 else
13897 # Is the header compilable?
13898 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13899 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13900 cat >conftest.$ac_ext <<_ACEOF
13901 /* confdefs.h. */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906 $ac_includes_default
13907 #include <malloc/malloc.h>
13908 _ACEOF
13909 rm -f conftest.$ac_objext
13910 if { (ac_try="$ac_compile"
13911 case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13914 esac
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_compile") 2>conftest.er1
13917 ac_status=$?
13918 grep -v '^ *+' conftest.er1 >conftest.err
13919 rm -f conftest.er1
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } && {
13923 test -z "$ac_c_werror_flag" ||
13924 test ! -s conftest.err
13925 } && test -s conftest.$ac_objext; then
13926 ac_header_compiler=yes
13927 else
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13930
13931 ac_header_compiler=no
13932 fi
13933
13934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13936 echo "${ECHO_T}$ac_header_compiler" >&6; }
13937
13938 # Is the header present?
13939 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13940 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13941 cat >conftest.$ac_ext <<_ACEOF
13942 /* confdefs.h. */
13943 _ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13947 #include <malloc/malloc.h>
13948 _ACEOF
13949 if { (ac_try="$ac_cpp conftest.$ac_ext"
13950 case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13953 esac
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13956 ac_status=$?
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } >/dev/null && {
13962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13963 test ! -s conftest.err
13964 }; then
13965 ac_header_preproc=yes
13966 else
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 ac_header_preproc=no
13971 fi
13972
13973 rm -f conftest.err conftest.$ac_ext
13974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13975 echo "${ECHO_T}$ac_header_preproc" >&6; }
13976
13977 # So? What about this header?
13978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13979 yes:no: )
13980 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13981 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13982 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13983 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13984 ac_header_preproc=yes
13985 ;;
13986 no:yes:* )
13987 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13988 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13990 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13992 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13994 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13996 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13998 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13999
14000 ;;
14001 esac
14002 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14003 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14004 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14008 fi
14009 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14010 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14011
14012 fi
14013 if test $ac_cv_header_malloc_malloc_h = yes; then
14014
14015 cat >>confdefs.h <<\_ACEOF
14016 #define HAVE_MALLOC_MALLOC_H 1
14017 _ACEOF
14018
14019 fi
14020
14021
14022
14023 ### Use Mac OS X Carbon API to implement GUI.
14024 if test "${HAVE_CARBON}" = "yes"; then
14025
14026 cat >>confdefs.h <<\_ACEOF
14027 #define HAVE_CARBON 1
14028 _ACEOF
14029
14030 ## Specify the install directory
14031 carbon_appdir=
14032 if test "${carbon_appdir_x}" != ""; then
14033 case ${carbon_appdir_x} in
14034 y | ye | yes) carbon_appdir=/Applications ;;
14035 * ) carbon_appdir=${carbon_appdir_x} ;;
14036 esac
14037 fi
14038 # We also have mouse menus.
14039 HAVE_MENUS=yes
14040 fi
14041
14042 ### Use session management (-lSM -lICE) if available
14043 HAVE_X_SM=no
14044 if test "${HAVE_X11}" = "yes"; then
14045 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14046 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14047 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14048 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 fi
14051 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14052 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14053 else
14054 # Is the header compilable?
14055 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14056 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h. */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 $ac_includes_default
14064 #include <X11/SM/SMlib.h>
14065 _ACEOF
14066 rm -f conftest.$ac_objext
14067 if { (ac_try="$ac_compile"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14071 esac
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_compile") 2>conftest.er1
14074 ac_status=$?
14075 grep -v '^ *+' conftest.er1 >conftest.err
14076 rm -f conftest.er1
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } && {
14080 test -z "$ac_c_werror_flag" ||
14081 test ! -s conftest.err
14082 } && test -s conftest.$ac_objext; then
14083 ac_header_compiler=yes
14084 else
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14087
14088 ac_header_compiler=no
14089 fi
14090
14091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14093 echo "${ECHO_T}$ac_header_compiler" >&6; }
14094
14095 # Is the header present?
14096 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14097 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14098 cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h. */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14104 #include <X11/SM/SMlib.h>
14105 _ACEOF
14106 if { (ac_try="$ac_cpp conftest.$ac_ext"
14107 case "(($ac_try" in
14108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14110 esac
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14113 ac_status=$?
14114 grep -v '^ *+' conftest.er1 >conftest.err
14115 rm -f conftest.er1
14116 cat conftest.err >&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } >/dev/null && {
14119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14120 test ! -s conftest.err
14121 }; then
14122 ac_header_preproc=yes
14123 else
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14126
14127 ac_header_preproc=no
14128 fi
14129
14130 rm -f conftest.err conftest.$ac_ext
14131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14132 echo "${ECHO_T}$ac_header_preproc" >&6; }
14133
14134 # So? What about this header?
14135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14136 yes:no: )
14137 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14138 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14140 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14141 ac_header_preproc=yes
14142 ;;
14143 no:yes:* )
14144 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14145 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14146 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14147 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14148 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14149 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14150 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14151 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14152 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14153 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14154 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14155 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14156
14157 ;;
14158 esac
14159 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14160 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14161 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 else
14164 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14165 fi
14166 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14167 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14168
14169 fi
14170 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14171 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14172 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14173 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176 ac_check_lib_save_LIBS=$LIBS
14177 LIBS="-lSM -lICE $LIBS"
14178 cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h. */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184
14185 /* Override any GCC internal prototype to avoid an error.
14186 Use char because int might match the return type of a GCC
14187 builtin and then its argument prototype would still apply. */
14188 #ifdef __cplusplus
14189 extern "C"
14190 #endif
14191 char SmcOpenConnection ();
14192 int
14193 main ()
14194 {
14195 return SmcOpenConnection ();
14196 ;
14197 return 0;
14198 }
14199 _ACEOF
14200 rm -f conftest.$ac_objext conftest$ac_exeext
14201 if { (ac_try="$ac_link"
14202 case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_link") 2>conftest.er1
14208 ac_status=$?
14209 grep -v '^ *+' conftest.er1 >conftest.err
14210 rm -f conftest.er1
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } && {
14214 test -z "$ac_c_werror_flag" ||
14215 test ! -s conftest.err
14216 } && test -s conftest$ac_exeext &&
14217 $as_test_x conftest$ac_exeext; then
14218 ac_cv_lib_SM_SmcOpenConnection=yes
14219 else
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14222
14223 ac_cv_lib_SM_SmcOpenConnection=no
14224 fi
14225
14226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14227 conftest$ac_exeext conftest.$ac_ext
14228 LIBS=$ac_check_lib_save_LIBS
14229 fi
14230 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14231 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14232 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14233 HAVE_X_SM=yes
14234 fi
14235
14236 fi
14237
14238
14239
14240 if test "${HAVE_X_SM}" = "yes"; then
14241
14242 cat >>confdefs.h <<\_ACEOF
14243 #define HAVE_X_SM 1
14244 _ACEOF
14245
14246 case "$LIBS" in
14247 *-lSM*) ;;
14248 *) LIBS="-lSM -lICE $LIBS" ;;
14249 esac
14250 fi
14251 fi
14252
14253 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14254 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14255 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14256 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 else
14259 cat >conftest.$ac_ext <<_ACEOF
14260 /* confdefs.h. */
14261 _ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 #include <netdb.h>
14266 int
14267 main ()
14268 {
14269 return h_errno;
14270 ;
14271 return 0;
14272 }
14273 _ACEOF
14274 rm -f conftest.$ac_objext conftest$ac_exeext
14275 if { (ac_try="$ac_link"
14276 case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14279 esac
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_link") 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } && {
14288 test -z "$ac_c_werror_flag" ||
14289 test ! -s conftest.err
14290 } && test -s conftest$ac_exeext &&
14291 $as_test_x conftest$ac_exeext; then
14292 emacs_cv_netdb_declares_h_errno=yes
14293 else
14294 echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297 emacs_cv_netdb_declares_h_errno=no
14298 fi
14299
14300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14301 conftest$ac_exeext conftest.$ac_ext
14302 fi
14303 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14304 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14305 if test $emacs_cv_netdb_declares_h_errno = yes; then
14306
14307 cat >>confdefs.h <<\_ACEOF
14308 #define HAVE_H_ERRNO 1
14309 _ACEOF
14310
14311 fi
14312
14313 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14314 # for constant arguments. Useless!
14315 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14316 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14317 if test "${ac_cv_working_alloca_h+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320 cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h. */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 #include <alloca.h>
14327 int
14328 main ()
14329 {
14330 char *p = (char *) alloca (2 * sizeof (int));
14331 if (p) return 0;
14332 ;
14333 return 0;
14334 }
14335 _ACEOF
14336 rm -f conftest.$ac_objext conftest$ac_exeext
14337 if { (ac_try="$ac_link"
14338 case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14341 esac
14342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343 (eval "$ac_link") 2>conftest.er1
14344 ac_status=$?
14345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } && {
14350 test -z "$ac_c_werror_flag" ||
14351 test ! -s conftest.err
14352 } && test -s conftest$ac_exeext &&
14353 $as_test_x conftest$ac_exeext; then
14354 ac_cv_working_alloca_h=yes
14355 else
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359 ac_cv_working_alloca_h=no
14360 fi
14361
14362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14363 conftest$ac_exeext conftest.$ac_ext
14364 fi
14365 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14366 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14367 if test $ac_cv_working_alloca_h = yes; then
14368
14369 cat >>confdefs.h <<\_ACEOF
14370 #define HAVE_ALLOCA_H 1
14371 _ACEOF
14372
14373 fi
14374
14375 { echo "$as_me:$LINENO: checking for alloca" >&5
14376 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14377 if test "${ac_cv_func_alloca_works+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380 cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h. */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386 #ifdef __GNUC__
14387 # define alloca __builtin_alloca
14388 #else
14389 # ifdef _MSC_VER
14390 # include <malloc.h>
14391 # define alloca _alloca
14392 # else
14393 # ifdef HAVE_ALLOCA_H
14394 # include <alloca.h>
14395 # else
14396 # ifdef _AIX
14397 #pragma alloca
14398 # else
14399 # ifndef alloca /* predefined by HP cc +Olibcalls */
14400 char *alloca ();
14401 # endif
14402 # endif
14403 # endif
14404 # endif
14405 #endif
14406
14407 int
14408 main ()
14409 {
14410 char *p = (char *) alloca (1);
14411 if (p) return 0;
14412 ;
14413 return 0;
14414 }
14415 _ACEOF
14416 rm -f conftest.$ac_objext conftest$ac_exeext
14417 if { (ac_try="$ac_link"
14418 case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14421 esac
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_link") 2>conftest.er1
14424 ac_status=$?
14425 grep -v '^ *+' conftest.er1 >conftest.err
14426 rm -f conftest.er1
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } && {
14430 test -z "$ac_c_werror_flag" ||
14431 test ! -s conftest.err
14432 } && test -s conftest$ac_exeext &&
14433 $as_test_x conftest$ac_exeext; then
14434 ac_cv_func_alloca_works=yes
14435 else
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439 ac_cv_func_alloca_works=no
14440 fi
14441
14442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14443 conftest$ac_exeext conftest.$ac_ext
14444 fi
14445 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14446 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14447
14448 if test $ac_cv_func_alloca_works = yes; then
14449
14450 cat >>confdefs.h <<\_ACEOF
14451 #define HAVE_ALLOCA 1
14452 _ACEOF
14453
14454 else
14455 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14456 # that cause trouble. Some versions do not even contain alloca or
14457 # contain a buggy version. If you still want to use their alloca,
14458 # use ar to extract alloca.o from them instead of compiling alloca.c.
14459
14460 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14461
14462 cat >>confdefs.h <<\_ACEOF
14463 #define C_ALLOCA 1
14464 _ACEOF
14465
14466
14467 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14468 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14469 if test "${ac_cv_os_cray+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #if defined CRAY && ! defined CRAY2
14479 webecray
14480 #else
14481 wenotbecray
14482 #endif
14483
14484 _ACEOF
14485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14486 $EGREP "webecray" >/dev/null 2>&1; then
14487 ac_cv_os_cray=yes
14488 else
14489 ac_cv_os_cray=no
14490 fi
14491 rm -f conftest*
14492
14493 fi
14494 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14495 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14496 if test $ac_cv_os_cray = yes; then
14497 for ac_func in _getb67 GETB67 getb67; do
14498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 else
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14512 #define $ac_func innocuous_$ac_func
14513
14514 /* System header to define __stub macros and hopefully few prototypes,
14515 which can conflict with char $ac_func (); below.
14516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14517 <limits.h> exists even on freestanding compilers. */
14518
14519 #ifdef __STDC__
14520 # include <limits.h>
14521 #else
14522 # include <assert.h>
14523 #endif
14524
14525 #undef $ac_func
14526
14527 /* Override any GCC internal prototype to avoid an error.
14528 Use char because int might match the return type of a GCC
14529 builtin and then its argument prototype would still apply. */
14530 #ifdef __cplusplus
14531 extern "C"
14532 #endif
14533 char $ac_func ();
14534 /* The GNU C library defines this for functions which it implements
14535 to always fail with ENOSYS. Some functions are actually named
14536 something starting with __ and the normal name is an alias. */
14537 #if defined __stub_$ac_func || defined __stub___$ac_func
14538 choke me
14539 #endif
14540
14541 int
14542 main ()
14543 {
14544 return $ac_func ();
14545 ;
14546 return 0;
14547 }
14548 _ACEOF
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (ac_try="$ac_link"
14551 case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_link") 2>conftest.er1
14557 ac_status=$?
14558 grep -v '^ *+' conftest.er1 >conftest.err
14559 rm -f conftest.er1
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } && {
14563 test -z "$ac_c_werror_flag" ||
14564 test ! -s conftest.err
14565 } && test -s conftest$ac_exeext &&
14566 $as_test_x conftest$ac_exeext; then
14567 eval "$as_ac_var=yes"
14568 else
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572 eval "$as_ac_var=no"
14573 fi
14574
14575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14576 conftest$ac_exeext conftest.$ac_ext
14577 fi
14578 ac_res=`eval echo '${'$as_ac_var'}'`
14579 { echo "$as_me:$LINENO: result: $ac_res" >&5
14580 echo "${ECHO_T}$ac_res" >&6; }
14581 if test `eval echo '${'$as_ac_var'}'` = yes; then
14582
14583 cat >>confdefs.h <<_ACEOF
14584 #define CRAY_STACKSEG_END $ac_func
14585 _ACEOF
14586
14587 break
14588 fi
14589
14590 done
14591 fi
14592
14593 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14594 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14595 if test "${ac_cv_c_stack_direction+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 else
14598 if test "$cross_compiling" = yes; then
14599 ac_cv_c_stack_direction=0
14600 else
14601 cat >conftest.$ac_ext <<_ACEOF
14602 /* confdefs.h. */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 $ac_includes_default
14608 int
14609 find_stack_direction ()
14610 {
14611 static char *addr = 0;
14612 auto char dummy;
14613 if (addr == 0)
14614 {
14615 addr = &dummy;
14616 return find_stack_direction ();
14617 }
14618 else
14619 return (&dummy > addr) ? 1 : -1;
14620 }
14621
14622 int
14623 main ()
14624 {
14625 return find_stack_direction () < 0;
14626 }
14627 _ACEOF
14628 rm -f conftest$ac_exeext
14629 if { (ac_try="$ac_link"
14630 case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633 esac
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_link") 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14639 { (case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14642 esac
14643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644 (eval "$ac_try") 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 ac_cv_c_stack_direction=1
14649 else
14650 echo "$as_me: program exited with status $ac_status" >&5
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14653
14654 ( exit $ac_status )
14655 ac_cv_c_stack_direction=-1
14656 fi
14657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14658 fi
14659
14660
14661 fi
14662 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14663 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14664
14665 cat >>confdefs.h <<_ACEOF
14666 #define STACK_DIRECTION $ac_cv_c_stack_direction
14667 _ACEOF
14668
14669
14670 fi
14671
14672
14673 # fmod, logb, and frexp are found in -lm on most systems.
14674 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14675
14676 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14677 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14678 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 else
14681 ac_check_lib_save_LIBS=$LIBS
14682 LIBS="-lm $LIBS"
14683 cat >conftest.$ac_ext <<_ACEOF
14684 /* confdefs.h. */
14685 _ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14689
14690 /* Override any GCC internal prototype to avoid an error.
14691 Use char because int might match the return type of a GCC
14692 builtin and then its argument prototype would still apply. */
14693 #ifdef __cplusplus
14694 extern "C"
14695 #endif
14696 char sqrt ();
14697 int
14698 main ()
14699 {
14700 return sqrt ();
14701 ;
14702 return 0;
14703 }
14704 _ACEOF
14705 rm -f conftest.$ac_objext conftest$ac_exeext
14706 if { (ac_try="$ac_link"
14707 case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14710 esac
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_link") 2>conftest.er1
14713 ac_status=$?
14714 grep -v '^ *+' conftest.er1 >conftest.err
14715 rm -f conftest.er1
14716 cat conftest.err >&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } && {
14719 test -z "$ac_c_werror_flag" ||
14720 test ! -s conftest.err
14721 } && test -s conftest$ac_exeext &&
14722 $as_test_x conftest$ac_exeext; then
14723 ac_cv_lib_m_sqrt=yes
14724 else
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728 ac_cv_lib_m_sqrt=no
14729 fi
14730
14731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14732 conftest$ac_exeext conftest.$ac_ext
14733 LIBS=$ac_check_lib_save_LIBS
14734 fi
14735 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14736 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14737 if test $ac_cv_lib_m_sqrt = yes; then
14738 cat >>confdefs.h <<_ACEOF
14739 #define HAVE_LIBM 1
14740 _ACEOF
14741
14742 LIBS="-lm $LIBS"
14743
14744 fi
14745
14746
14747 # Check for mail-locking functions in a "mail" library. Probably this should
14748 # have the same check as for liblockfile below.
14749
14750 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14751 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14752 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755 ac_check_lib_save_LIBS=$LIBS
14756 LIBS="-lmail $LIBS"
14757 cat >conftest.$ac_ext <<_ACEOF
14758 /* confdefs.h. */
14759 _ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763
14764 /* Override any GCC internal prototype to avoid an error.
14765 Use char because int might match the return type of a GCC
14766 builtin and then its argument prototype would still apply. */
14767 #ifdef __cplusplus
14768 extern "C"
14769 #endif
14770 char maillock ();
14771 int
14772 main ()
14773 {
14774 return maillock ();
14775 ;
14776 return 0;
14777 }
14778 _ACEOF
14779 rm -f conftest.$ac_objext conftest$ac_exeext
14780 if { (ac_try="$ac_link"
14781 case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14784 esac
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_link") 2>conftest.er1
14787 ac_status=$?
14788 grep -v '^ *+' conftest.er1 >conftest.err
14789 rm -f conftest.er1
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } && {
14793 test -z "$ac_c_werror_flag" ||
14794 test ! -s conftest.err
14795 } && test -s conftest$ac_exeext &&
14796 $as_test_x conftest$ac_exeext; then
14797 ac_cv_lib_mail_maillock=yes
14798 else
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14801
14802 ac_cv_lib_mail_maillock=no
14803 fi
14804
14805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14806 conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14808 fi
14809 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14810 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14811 if test $ac_cv_lib_mail_maillock = yes; then
14812 cat >>confdefs.h <<_ACEOF
14813 #define HAVE_LIBMAIL 1
14814 _ACEOF
14815
14816 LIBS="-lmail $LIBS"
14817
14818 fi
14819
14820
14821 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14822 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14823 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826 ac_check_lib_save_LIBS=$LIBS
14827 LIBS="-llockfile $LIBS"
14828 cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h. */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14834
14835 /* Override any GCC internal prototype to avoid an error.
14836 Use char because int might match the return type of a GCC
14837 builtin and then its argument prototype would still apply. */
14838 #ifdef __cplusplus
14839 extern "C"
14840 #endif
14841 char maillock ();
14842 int
14843 main ()
14844 {
14845 return maillock ();
14846 ;
14847 return 0;
14848 }
14849 _ACEOF
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (ac_try="$ac_link"
14852 case "(($ac_try" in
14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854 *) ac_try_echo=$ac_try;;
14855 esac
14856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857 (eval "$ac_link") 2>conftest.er1
14858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } && {
14864 test -z "$ac_c_werror_flag" ||
14865 test ! -s conftest.err
14866 } && test -s conftest$ac_exeext &&
14867 $as_test_x conftest$ac_exeext; then
14868 ac_cv_lib_lockfile_maillock=yes
14869 else
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14872
14873 ac_cv_lib_lockfile_maillock=no
14874 fi
14875
14876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14877 conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14879 fi
14880 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14881 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14882 if test $ac_cv_lib_lockfile_maillock = yes; then
14883 cat >>confdefs.h <<_ACEOF
14884 #define HAVE_LIBLOCKFILE 1
14885 _ACEOF
14886
14887 LIBS="-llockfile $LIBS"
14888
14889 fi
14890
14891 # If we have the shared liblockfile, assume we must use it for mail
14892 # locking (e.g. Debian). If we couldn't link against liblockfile
14893 # (no liblockfile.a installed), ensure that we don't need to.
14894 if test "$ac_cv_lib_lockfile_maillock" = no; then
14895 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14896 set dummy liblockfile.so; ac_word=$2
14897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14899 if test "${ac_cv_prog_liblockfile+set}" = set; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 else
14902 if test -n "$liblockfile"; then
14903 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14904 else
14905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14907 for as_dir in $as_dummy
14908 do
14909 IFS=$as_save_IFS
14910 test -z "$as_dir" && as_dir=.
14911 for ac_exec_ext in '' $ac_executable_extensions; do
14912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14913 ac_cv_prog_liblockfile="yes"
14914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14915 break 2
14916 fi
14917 done
14918 done
14919 IFS=$as_save_IFS
14920
14921 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14922 fi
14923 fi
14924 liblockfile=$ac_cv_prog_liblockfile
14925 if test -n "$liblockfile"; then
14926 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14927 echo "${ECHO_T}$liblockfile" >&6; }
14928 else
14929 { echo "$as_me:$LINENO: result: no" >&5
14930 echo "${ECHO_T}no" >&6; }
14931 fi
14932
14933
14934 if test $ac_cv_prog_liblockfile = yes; then
14935 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14936 This probably means that movemail could lose mail.
14937 There may be a \`development' package to install containing liblockfile." >&5
14938 echo "$as_me: error: Shared liblockfile found but can't link against it.
14939 This probably means that movemail could lose mail.
14940 There may be a \`development' package to install containing liblockfile." >&2;}
14941 { (exit 1); exit 1; }; }
14942 else :
14943 fi
14944 fi
14945
14946 for ac_func in touchlock
14947 do
14948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954 cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h. */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14962 #define $ac_func innocuous_$ac_func
14963
14964 /* System header to define __stub macros and hopefully few prototypes,
14965 which can conflict with char $ac_func (); below.
14966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14967 <limits.h> exists even on freestanding compilers. */
14968
14969 #ifdef __STDC__
14970 # include <limits.h>
14971 #else
14972 # include <assert.h>
14973 #endif
14974
14975 #undef $ac_func
14976
14977 /* Override any GCC internal prototype to avoid an error.
14978 Use char because int might match the return type of a GCC
14979 builtin and then its argument prototype would still apply. */
14980 #ifdef __cplusplus
14981 extern "C"
14982 #endif
14983 char $ac_func ();
14984 /* The GNU C library defines this for functions which it implements
14985 to always fail with ENOSYS. Some functions are actually named
14986 something starting with __ and the normal name is an alias. */
14987 #if defined __stub_$ac_func || defined __stub___$ac_func
14988 choke me
14989 #endif
14990
14991 int
14992 main ()
14993 {
14994 return $ac_func ();
14995 ;
14996 return 0;
14997 }
14998 _ACEOF
14999 rm -f conftest.$ac_objext conftest$ac_exeext
15000 if { (ac_try="$ac_link"
15001 case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15004 esac
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_link") 2>conftest.er1
15007 ac_status=$?
15008 grep -v '^ *+' conftest.er1 >conftest.err
15009 rm -f conftest.er1
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } && {
15013 test -z "$ac_c_werror_flag" ||
15014 test ! -s conftest.err
15015 } && test -s conftest$ac_exeext &&
15016 $as_test_x conftest$ac_exeext; then
15017 eval "$as_ac_var=yes"
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 eval "$as_ac_var=no"
15023 fi
15024
15025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15026 conftest$ac_exeext conftest.$ac_ext
15027 fi
15028 ac_res=`eval echo '${'$as_ac_var'}'`
15029 { echo "$as_me:$LINENO: result: $ac_res" >&5
15030 echo "${ECHO_T}$ac_res" >&6; }
15031 if test `eval echo '${'$as_ac_var'}'` = yes; then
15032 cat >>confdefs.h <<_ACEOF
15033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15034 _ACEOF
15035
15036 fi
15037 done
15038
15039
15040 for ac_header in maillock.h
15041 do
15042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 fi
15049 ac_res=`eval echo '${'$as_ac_Header'}'`
15050 { echo "$as_me:$LINENO: result: $ac_res" >&5
15051 echo "${ECHO_T}$ac_res" >&6; }
15052 else
15053 # Is the header compilable?
15054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15056 cat >conftest.$ac_ext <<_ACEOF
15057 /* confdefs.h. */
15058 _ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15062 $ac_includes_default
15063 #include <$ac_header>
15064 _ACEOF
15065 rm -f conftest.$ac_objext
15066 if { (ac_try="$ac_compile"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070 esac
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_compile") 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } && {
15079 test -z "$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15081 } && test -s conftest.$ac_objext; then
15082 ac_header_compiler=yes
15083 else
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15086
15087 ac_header_compiler=no
15088 fi
15089
15090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15092 echo "${ECHO_T}$ac_header_compiler" >&6; }
15093
15094 # Is the header present?
15095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15097 cat >conftest.$ac_ext <<_ACEOF
15098 /* confdefs.h. */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 #include <$ac_header>
15104 _ACEOF
15105 if { (ac_try="$ac_cpp conftest.$ac_ext"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } >/dev/null && {
15118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 }; then
15121 ac_header_preproc=yes
15122 else
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 ac_header_preproc=no
15127 fi
15128
15129 rm -f conftest.err conftest.$ac_ext
15130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15131 echo "${ECHO_T}$ac_header_preproc" >&6; }
15132
15133 # So? What about this header?
15134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15135 yes:no: )
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15140 ac_header_preproc=yes
15141 ;;
15142 no:yes:* )
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15155
15156 ;;
15157 esac
15158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163 eval "$as_ac_Header=\$ac_header_preproc"
15164 fi
15165 ac_res=`eval echo '${'$as_ac_Header'}'`
15166 { echo "$as_me:$LINENO: result: $ac_res" >&5
15167 echo "${ECHO_T}$ac_res" >&6; }
15168
15169 fi
15170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15171 cat >>confdefs.h <<_ACEOF
15172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15173 _ACEOF
15174
15175 fi
15176
15177 done
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
15246
15247
15248
15249 for ac_func in gethostname getdomainname dup2 \
15250 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15251 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15252 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15253 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15254 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15255 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15256 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15257 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15258 do
15259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265 cat >conftest.$ac_ext <<_ACEOF
15266 /* confdefs.h. */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15273 #define $ac_func innocuous_$ac_func
15274
15275 /* System header to define __stub macros and hopefully few prototypes,
15276 which can conflict with char $ac_func (); below.
15277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15278 <limits.h> exists even on freestanding compilers. */
15279
15280 #ifdef __STDC__
15281 # include <limits.h>
15282 #else
15283 # include <assert.h>
15284 #endif
15285
15286 #undef $ac_func
15287
15288 /* Override any GCC internal prototype to avoid an error.
15289 Use char because int might match the return type of a GCC
15290 builtin and then its argument prototype would still apply. */
15291 #ifdef __cplusplus
15292 extern "C"
15293 #endif
15294 char $ac_func ();
15295 /* The GNU C library defines this for functions which it implements
15296 to always fail with ENOSYS. Some functions are actually named
15297 something starting with __ and the normal name is an alias. */
15298 #if defined __stub_$ac_func || defined __stub___$ac_func
15299 choke me
15300 #endif
15301
15302 int
15303 main ()
15304 {
15305 return $ac_func ();
15306 ;
15307 return 0;
15308 }
15309 _ACEOF
15310 rm -f conftest.$ac_objext conftest$ac_exeext
15311 if { (ac_try="$ac_link"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_link") 2>conftest.er1
15318 ac_status=$?
15319 grep -v '^ *+' conftest.er1 >conftest.err
15320 rm -f conftest.er1
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); } && {
15324 test -z "$ac_c_werror_flag" ||
15325 test ! -s conftest.err
15326 } && test -s conftest$ac_exeext &&
15327 $as_test_x conftest$ac_exeext; then
15328 eval "$as_ac_var=yes"
15329 else
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15332
15333 eval "$as_ac_var=no"
15334 fi
15335
15336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15337 conftest$ac_exeext conftest.$ac_ext
15338 fi
15339 ac_res=`eval echo '${'$as_ac_var'}'`
15340 { echo "$as_me:$LINENO: result: $ac_res" >&5
15341 echo "${ECHO_T}$ac_res" >&6; }
15342 if test `eval echo '${'$as_ac_var'}'` = yes; then
15343 cat >>confdefs.h <<_ACEOF
15344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15345 _ACEOF
15346
15347 fi
15348 done
15349
15350
15351
15352 for ac_header in sys/un.h
15353 do
15354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 fi
15361 ac_res=`eval echo '${'$as_ac_Header'}'`
15362 { echo "$as_me:$LINENO: result: $ac_res" >&5
15363 echo "${ECHO_T}$ac_res" >&6; }
15364 else
15365 # Is the header compilable?
15366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15368 cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h. */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15374 $ac_includes_default
15375 #include <$ac_header>
15376 _ACEOF
15377 rm -f conftest.$ac_objext
15378 if { (ac_try="$ac_compile"
15379 case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15382 esac
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_compile") 2>conftest.er1
15385 ac_status=$?
15386 grep -v '^ *+' conftest.er1 >conftest.err
15387 rm -f conftest.er1
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } && {
15391 test -z "$ac_c_werror_flag" ||
15392 test ! -s conftest.err
15393 } && test -s conftest.$ac_objext; then
15394 ac_header_compiler=yes
15395 else
15396 echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15398
15399 ac_header_compiler=no
15400 fi
15401
15402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15404 echo "${ECHO_T}$ac_header_compiler" >&6; }
15405
15406 # Is the header present?
15407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15409 cat >conftest.$ac_ext <<_ACEOF
15410 /* confdefs.h. */
15411 _ACEOF
15412 cat confdefs.h >>conftest.$ac_ext
15413 cat >>conftest.$ac_ext <<_ACEOF
15414 /* end confdefs.h. */
15415 #include <$ac_header>
15416 _ACEOF
15417 if { (ac_try="$ac_cpp conftest.$ac_ext"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15421 esac
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } >/dev/null && {
15430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 }; then
15433 ac_header_preproc=yes
15434 else
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15437
15438 ac_header_preproc=no
15439 fi
15440
15441 rm -f conftest.err conftest.$ac_ext
15442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15443 echo "${ECHO_T}$ac_header_preproc" >&6; }
15444
15445 # So? What about this header?
15446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15447 yes:no: )
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15452 ac_header_preproc=yes
15453 ;;
15454 no:yes:* )
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15467
15468 ;;
15469 esac
15470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475 eval "$as_ac_Header=\$ac_header_preproc"
15476 fi
15477 ac_res=`eval echo '${'$as_ac_Header'}'`
15478 { echo "$as_me:$LINENO: result: $ac_res" >&5
15479 echo "${ECHO_T}$ac_res" >&6; }
15480
15481 fi
15482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15483 cat >>confdefs.h <<_ACEOF
15484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15485 _ACEOF
15486
15487 fi
15488
15489 done
15490
15491
15492
15493
15494
15495
15496 for ac_header in $ac_header_list
15497 do
15498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 fi
15505 ac_res=`eval echo '${'$as_ac_Header'}'`
15506 { echo "$as_me:$LINENO: result: $ac_res" >&5
15507 echo "${ECHO_T}$ac_res" >&6; }
15508 else
15509 # Is the header compilable?
15510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15512 cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h. */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518 $ac_includes_default
15519 #include <$ac_header>
15520 _ACEOF
15521 rm -f conftest.$ac_objext
15522 if { (ac_try="$ac_compile"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15526 esac
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_compile") 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } && {
15535 test -z "$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15537 } && test -s conftest.$ac_objext; then
15538 ac_header_compiler=yes
15539 else
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15542
15543 ac_header_compiler=no
15544 fi
15545
15546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15548 echo "${ECHO_T}$ac_header_compiler" >&6; }
15549
15550 # Is the header present?
15551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h. */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 #include <$ac_header>
15560 _ACEOF
15561 if { (ac_try="$ac_cpp conftest.$ac_ext"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15568 ac_status=$?
15569 grep -v '^ *+' conftest.er1 >conftest.err
15570 rm -f conftest.er1
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } >/dev/null && {
15574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15575 test ! -s conftest.err
15576 }; then
15577 ac_header_preproc=yes
15578 else
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15581
15582 ac_header_preproc=no
15583 fi
15584
15585 rm -f conftest.err conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15587 echo "${ECHO_T}$ac_header_preproc" >&6; }
15588
15589 # So? What about this header?
15590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15591 yes:no: )
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15596 ac_header_preproc=yes
15597 ;;
15598 no:yes:* )
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15611
15612 ;;
15613 esac
15614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619 eval "$as_ac_Header=\$ac_header_preproc"
15620 fi
15621 ac_res=`eval echo '${'$as_ac_Header'}'`
15622 { echo "$as_me:$LINENO: result: $ac_res" >&5
15623 echo "${ECHO_T}$ac_res" >&6; }
15624
15625 fi
15626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15627 cat >>confdefs.h <<_ACEOF
15628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15629 _ACEOF
15630
15631 fi
15632
15633 done
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643 for ac_func in $ac_func_list
15644 do
15645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 else
15651 cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h. */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15659 #define $ac_func innocuous_$ac_func
15660
15661 /* System header to define __stub macros and hopefully few prototypes,
15662 which can conflict with char $ac_func (); below.
15663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15664 <limits.h> exists even on freestanding compilers. */
15665
15666 #ifdef __STDC__
15667 # include <limits.h>
15668 #else
15669 # include <assert.h>
15670 #endif
15671
15672 #undef $ac_func
15673
15674 /* Override any GCC internal prototype to avoid an error.
15675 Use char because int might match the return type of a GCC
15676 builtin and then its argument prototype would still apply. */
15677 #ifdef __cplusplus
15678 extern "C"
15679 #endif
15680 char $ac_func ();
15681 /* The GNU C library defines this for functions which it implements
15682 to always fail with ENOSYS. Some functions are actually named
15683 something starting with __ and the normal name is an alias. */
15684 #if defined __stub_$ac_func || defined __stub___$ac_func
15685 choke me
15686 #endif
15687
15688 int
15689 main ()
15690 {
15691 return $ac_func ();
15692 ;
15693 return 0;
15694 }
15695 _ACEOF
15696 rm -f conftest.$ac_objext conftest$ac_exeext
15697 if { (ac_try="$ac_link"
15698 case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15701 esac
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_link") 2>conftest.er1
15704 ac_status=$?
15705 grep -v '^ *+' conftest.er1 >conftest.err
15706 rm -f conftest.er1
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } && {
15710 test -z "$ac_c_werror_flag" ||
15711 test ! -s conftest.err
15712 } && test -s conftest$ac_exeext &&
15713 $as_test_x conftest$ac_exeext; then
15714 eval "$as_ac_var=yes"
15715 else
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 eval "$as_ac_var=no"
15720 fi
15721
15722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15723 conftest$ac_exeext conftest.$ac_ext
15724 fi
15725 ac_res=`eval echo '${'$as_ac_var'}'`
15726 { echo "$as_me:$LINENO: result: $ac_res" >&5
15727 echo "${ECHO_T}$ac_res" >&6; }
15728 if test `eval echo '${'$as_ac_var'}'` = yes; then
15729 cat >>confdefs.h <<_ACEOF
15730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15731 _ACEOF
15732
15733 fi
15734 done
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752 { echo "$as_me:$LINENO: checking for working mktime" >&5
15753 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15754 if test "${ac_cv_func_working_mktime+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15757 if test "$cross_compiling" = yes; then
15758 ac_cv_func_working_mktime=no
15759 else
15760 cat >conftest.$ac_ext <<_ACEOF
15761 /* confdefs.h. */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h. */
15766 /* Test program from Paul Eggert and Tony Leneis. */
15767 #ifdef TIME_WITH_SYS_TIME
15768 # include <sys/time.h>
15769 # include <time.h>
15770 #else
15771 # ifdef HAVE_SYS_TIME_H
15772 # include <sys/time.h>
15773 # else
15774 # include <time.h>
15775 # endif
15776 #endif
15777
15778 #include <stdlib.h>
15779
15780 #ifdef HAVE_UNISTD_H
15781 # include <unistd.h>
15782 #endif
15783
15784 #ifndef HAVE_ALARM
15785 # define alarm(X) /* empty */
15786 #endif
15787
15788 /* Work around redefinition to rpl_putenv by other config tests. */
15789 #undef putenv
15790
15791 static time_t time_t_max;
15792 static time_t time_t_min;
15793
15794 /* Values we'll use to set the TZ environment variable. */
15795 static char *tz_strings[] = {
15796 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15797 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15798 };
15799 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15800
15801 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15802 Based on a problem report from Andreas Jaeger. */
15803 static int
15804 spring_forward_gap ()
15805 {
15806 /* glibc (up to about 1998-10-07) failed this test. */
15807 struct tm tm;
15808
15809 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15810 instead of "TZ=America/Vancouver" in order to detect the bug even
15811 on systems that don't support the Olson extension, or don't have the
15812 full zoneinfo tables installed. */
15813 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15814
15815 tm.tm_year = 98;
15816 tm.tm_mon = 3;
15817 tm.tm_mday = 5;
15818 tm.tm_hour = 2;
15819 tm.tm_min = 0;
15820 tm.tm_sec = 0;
15821 tm.tm_isdst = -1;
15822 return mktime (&tm) != (time_t) -1;
15823 }
15824
15825 static int
15826 mktime_test1 (now)
15827 time_t now;
15828 {
15829 struct tm *lt;
15830 return ! (lt = localtime (&now)) || mktime (lt) == now;
15831 }
15832
15833 static int
15834 mktime_test (now)
15835 time_t now;
15836 {
15837 return (mktime_test1 (now)
15838 && mktime_test1 ((time_t) (time_t_max - now))
15839 && mktime_test1 ((time_t) (time_t_min + now)));
15840 }
15841
15842 static int
15843 irix_6_4_bug ()
15844 {
15845 /* Based on code from Ariel Faigon. */
15846 struct tm tm;
15847 tm.tm_year = 96;
15848 tm.tm_mon = 3;
15849 tm.tm_mday = 0;
15850 tm.tm_hour = 0;
15851 tm.tm_min = 0;
15852 tm.tm_sec = 0;
15853 tm.tm_isdst = -1;
15854 mktime (&tm);
15855 return tm.tm_mon == 2 && tm.tm_mday == 31;
15856 }
15857
15858 static int
15859 bigtime_test (j)
15860 int j;
15861 {
15862 struct tm tm;
15863 time_t now;
15864 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15865 now = mktime (&tm);
15866 if (now != (time_t) -1)
15867 {
15868 struct tm *lt = localtime (&now);
15869 if (! (lt
15870 && lt->tm_year == tm.tm_year
15871 && lt->tm_mon == tm.tm_mon
15872 && lt->tm_mday == tm.tm_mday
15873 && lt->tm_hour == tm.tm_hour
15874 && lt->tm_min == tm.tm_min
15875 && lt->tm_sec == tm.tm_sec
15876 && lt->tm_yday == tm.tm_yday
15877 && lt->tm_wday == tm.tm_wday
15878 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15879 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15880 return 0;
15881 }
15882 return 1;
15883 }
15884
15885 static int
15886 year_2050_test ()
15887 {
15888 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15889 ignoring leap seconds. */
15890 unsigned long int answer = 2527315200UL;
15891
15892 struct tm tm;
15893 time_t t;
15894 tm.tm_year = 2050 - 1900;
15895 tm.tm_mon = 2 - 1;
15896 tm.tm_mday = 1;
15897 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15898 tm.tm_isdst = -1;
15899
15900 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15901 instead of "TZ=America/Vancouver" in order to detect the bug even
15902 on systems that don't support the Olson extension, or don't have the
15903 full zoneinfo tables installed. */
15904 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15905
15906 t = mktime (&tm);
15907
15908 /* Check that the result is either a failure, or close enough
15909 to the correct answer that we can assume the discrepancy is
15910 due to leap seconds. */
15911 return (t == (time_t) -1
15912 || (0 < t && answer - 120 <= t && t <= answer + 120));
15913 }
15914
15915 int
15916 main ()
15917 {
15918 time_t t, delta;
15919 int i, j;
15920
15921 /* This test makes some buggy mktime implementations loop.
15922 Give up after 60 seconds; a mktime slower than that
15923 isn't worth using anyway. */
15924 alarm (60);
15925
15926 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15927 continue;
15928 time_t_max--;
15929 if ((time_t) -1 < 0)
15930 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15931 continue;
15932 delta = time_t_max / 997; /* a suitable prime number */
15933 for (i = 0; i < N_STRINGS; i++)
15934 {
15935 if (tz_strings[i])
15936 putenv (tz_strings[i]);
15937
15938 for (t = 0; t <= time_t_max - delta; t += delta)
15939 if (! mktime_test (t))
15940 return 1;
15941 if (! (mktime_test ((time_t) 1)
15942 && mktime_test ((time_t) (60 * 60))
15943 && mktime_test ((time_t) (60 * 60 * 24))))
15944 return 1;
15945
15946 for (j = 1; 0 < j; j *= 2)
15947 if (! bigtime_test (j))
15948 return 1;
15949 if (! bigtime_test (j - 1))
15950 return 1;
15951 }
15952 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15953 }
15954 _ACEOF
15955 rm -f conftest$ac_exeext
15956 if { (ac_try="$ac_link"
15957 case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15960 esac
15961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15962 (eval "$ac_link") 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15966 { (case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969 esac
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_try") 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 ac_cv_func_working_mktime=yes
15976 else
15977 echo "$as_me: program exited with status $ac_status" >&5
15978 echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15980
15981 ( exit $ac_status )
15982 ac_cv_func_working_mktime=no
15983 fi
15984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15985 fi
15986
15987
15988 fi
15989 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15990 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15991 if test $ac_cv_func_working_mktime = no; then
15992 case " $LIBOBJS " in
15993 *" mktime.$ac_objext "* ) ;;
15994 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15995 ;;
15996 esac
15997
15998 fi
15999
16000 if test "$ac_cv_func_working_mktime" = no; then
16001
16002 cat >>confdefs.h <<\_ACEOF
16003 #define BROKEN_MKTIME 1
16004 _ACEOF
16005
16006 fi
16007
16008 ac_have_func=no # yes means we've found a way to get the load average.
16009
16010 # Make sure getloadavg.c is where it belongs, at configure-time.
16011 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16012 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16013 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16014 { (exit 1); exit 1; }; }
16015
16016 ac_save_LIBS=$LIBS
16017
16018 # Check for getloadavg, but be sure not to touch the cache variable.
16019 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16020 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16021 if test "${ac_cv_func_getloadavg+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 else
16024 cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h. */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16032 #define getloadavg innocuous_getloadavg
16033
16034 /* System header to define __stub macros and hopefully few prototypes,
16035 which can conflict with char getloadavg (); below.
16036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16037 <limits.h> exists even on freestanding compilers. */
16038
16039 #ifdef __STDC__
16040 # include <limits.h>
16041 #else
16042 # include <assert.h>
16043 #endif
16044
16045 #undef getloadavg
16046
16047 /* Override any GCC internal prototype to avoid an error.
16048 Use char because int might match the return type of a GCC
16049 builtin and then its argument prototype would still apply. */
16050 #ifdef __cplusplus
16051 extern "C"
16052 #endif
16053 char getloadavg ();
16054 /* The GNU C library defines this for functions which it implements
16055 to always fail with ENOSYS. Some functions are actually named
16056 something starting with __ and the normal name is an alias. */
16057 #if defined __stub_getloadavg || defined __stub___getloadavg
16058 choke me
16059 #endif
16060
16061 int
16062 main ()
16063 {
16064 return getloadavg ();
16065 ;
16066 return 0;
16067 }
16068 _ACEOF
16069 rm -f conftest.$ac_objext conftest$ac_exeext
16070 if { (ac_try="$ac_link"
16071 case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16074 esac
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_link") 2>conftest.er1
16077 ac_status=$?
16078 grep -v '^ *+' conftest.er1 >conftest.err
16079 rm -f conftest.er1
16080 cat conftest.err >&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } && {
16083 test -z "$ac_c_werror_flag" ||
16084 test ! -s conftest.err
16085 } && test -s conftest$ac_exeext &&
16086 $as_test_x conftest$ac_exeext; then
16087 ac_cv_func_getloadavg=yes
16088 else
16089 echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16091
16092 ac_cv_func_getloadavg=no
16093 fi
16094
16095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16096 conftest$ac_exeext conftest.$ac_ext
16097 fi
16098 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16099 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16100 if test $ac_cv_func_getloadavg = yes; then
16101 exit 0
16102 else
16103 exit 1
16104 fi
16105 ) && ac_have_func=yes
16106
16107 # On HPUX9, an unprivileged user can get load averages through this function.
16108
16109 for ac_func in pstat_getdynamic
16110 do
16111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
16117 cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h. */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16125 #define $ac_func innocuous_$ac_func
16126
16127 /* System header to define __stub macros and hopefully few prototypes,
16128 which can conflict with char $ac_func (); below.
16129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16130 <limits.h> exists even on freestanding compilers. */
16131
16132 #ifdef __STDC__
16133 # include <limits.h>
16134 #else
16135 # include <assert.h>
16136 #endif
16137
16138 #undef $ac_func
16139
16140 /* Override any GCC internal prototype to avoid an error.
16141 Use char because int might match the return type of a GCC
16142 builtin and then its argument prototype would still apply. */
16143 #ifdef __cplusplus
16144 extern "C"
16145 #endif
16146 char $ac_func ();
16147 /* The GNU C library defines this for functions which it implements
16148 to always fail with ENOSYS. Some functions are actually named
16149 something starting with __ and the normal name is an alias. */
16150 #if defined __stub_$ac_func || defined __stub___$ac_func
16151 choke me
16152 #endif
16153
16154 int
16155 main ()
16156 {
16157 return $ac_func ();
16158 ;
16159 return 0;
16160 }
16161 _ACEOF
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (ac_try="$ac_link"
16164 case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167 esac
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_link") 2>conftest.er1
16170 ac_status=$?
16171 grep -v '^ *+' conftest.er1 >conftest.err
16172 rm -f conftest.er1
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } && {
16176 test -z "$ac_c_werror_flag" ||
16177 test ! -s conftest.err
16178 } && test -s conftest$ac_exeext &&
16179 $as_test_x conftest$ac_exeext; then
16180 eval "$as_ac_var=yes"
16181 else
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16184
16185 eval "$as_ac_var=no"
16186 fi
16187
16188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16189 conftest$ac_exeext conftest.$ac_ext
16190 fi
16191 ac_res=`eval echo '${'$as_ac_var'}'`
16192 { echo "$as_me:$LINENO: result: $ac_res" >&5
16193 echo "${ECHO_T}$ac_res" >&6; }
16194 if test `eval echo '${'$as_ac_var'}'` = yes; then
16195 cat >>confdefs.h <<_ACEOF
16196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16197 _ACEOF
16198
16199 fi
16200 done
16201
16202
16203 # Solaris has libkstat which does not require root.
16204
16205 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16206 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16207 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210 ac_check_lib_save_LIBS=$LIBS
16211 LIBS="-lkstat $LIBS"
16212 cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h. */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218
16219 /* Override any GCC internal prototype to avoid an error.
16220 Use char because int might match the return type of a GCC
16221 builtin and then its argument prototype would still apply. */
16222 #ifdef __cplusplus
16223 extern "C"
16224 #endif
16225 char kstat_open ();
16226 int
16227 main ()
16228 {
16229 return kstat_open ();
16230 ;
16231 return 0;
16232 }
16233 _ACEOF
16234 rm -f conftest.$ac_objext conftest$ac_exeext
16235 if { (ac_try="$ac_link"
16236 case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16239 esac
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_link") 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } && {
16248 test -z "$ac_c_werror_flag" ||
16249 test ! -s conftest.err
16250 } && test -s conftest$ac_exeext &&
16251 $as_test_x conftest$ac_exeext; then
16252 ac_cv_lib_kstat_kstat_open=yes
16253 else
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16256
16257 ac_cv_lib_kstat_kstat_open=no
16258 fi
16259
16260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16261 conftest$ac_exeext conftest.$ac_ext
16262 LIBS=$ac_check_lib_save_LIBS
16263 fi
16264 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16265 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16266 if test $ac_cv_lib_kstat_kstat_open = yes; then
16267 cat >>confdefs.h <<_ACEOF
16268 #define HAVE_LIBKSTAT 1
16269 _ACEOF
16270
16271 LIBS="-lkstat $LIBS"
16272
16273 fi
16274
16275 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16276
16277 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16278 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16279 # to get the right answer into the cache.
16280 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16281 if test $ac_have_func = no; then
16282 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16283 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16284 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16286 else
16287 ac_check_lib_save_LIBS=$LIBS
16288 LIBS="-lelf $LIBS"
16289 cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h. */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295
16296 /* Override any GCC internal prototype to avoid an error.
16297 Use char because int might match the return type of a GCC
16298 builtin and then its argument prototype would still apply. */
16299 #ifdef __cplusplus
16300 extern "C"
16301 #endif
16302 char elf_begin ();
16303 int
16304 main ()
16305 {
16306 return elf_begin ();
16307 ;
16308 return 0;
16309 }
16310 _ACEOF
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16316 esac
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_link") 2>conftest.er1
16319 ac_status=$?
16320 grep -v '^ *+' conftest.er1 >conftest.err
16321 rm -f conftest.er1
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && {
16325 test -z "$ac_c_werror_flag" ||
16326 test ! -s conftest.err
16327 } && test -s conftest$ac_exeext &&
16328 $as_test_x conftest$ac_exeext; then
16329 ac_cv_lib_elf_elf_begin=yes
16330 else
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334 ac_cv_lib_elf_elf_begin=no
16335 fi
16336
16337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16338 conftest$ac_exeext conftest.$ac_ext
16339 LIBS=$ac_check_lib_save_LIBS
16340 fi
16341 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16342 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16343 if test $ac_cv_lib_elf_elf_begin = yes; then
16344 LIBS="-lelf $LIBS"
16345 fi
16346
16347 fi
16348 if test $ac_have_func = no; then
16349 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16350 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16351 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354 ac_check_lib_save_LIBS=$LIBS
16355 LIBS="-lkvm $LIBS"
16356 cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h. */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362
16363 /* Override any GCC internal prototype to avoid an error.
16364 Use char because int might match the return type of a GCC
16365 builtin and then its argument prototype would still apply. */
16366 #ifdef __cplusplus
16367 extern "C"
16368 #endif
16369 char kvm_open ();
16370 int
16371 main ()
16372 {
16373 return kvm_open ();
16374 ;
16375 return 0;
16376 }
16377 _ACEOF
16378 rm -f conftest.$ac_objext conftest$ac_exeext
16379 if { (ac_try="$ac_link"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16383 esac
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_link") 2>conftest.er1
16386 ac_status=$?
16387 grep -v '^ *+' conftest.er1 >conftest.err
16388 rm -f conftest.er1
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } && {
16392 test -z "$ac_c_werror_flag" ||
16393 test ! -s conftest.err
16394 } && test -s conftest$ac_exeext &&
16395 $as_test_x conftest$ac_exeext; then
16396 ac_cv_lib_kvm_kvm_open=yes
16397 else
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16400
16401 ac_cv_lib_kvm_kvm_open=no
16402 fi
16403
16404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16405 conftest$ac_exeext conftest.$ac_ext
16406 LIBS=$ac_check_lib_save_LIBS
16407 fi
16408 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16409 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16410 if test $ac_cv_lib_kvm_kvm_open = yes; then
16411 LIBS="-lkvm $LIBS"
16412 fi
16413
16414 # Check for the 4.4BSD definition of getloadavg.
16415 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16416 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16417 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16419 else
16420 ac_check_lib_save_LIBS=$LIBS
16421 LIBS="-lutil $LIBS"
16422 cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h. */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16428
16429 /* Override any GCC internal prototype to avoid an error.
16430 Use char because int might match the return type of a GCC
16431 builtin and then its argument prototype would still apply. */
16432 #ifdef __cplusplus
16433 extern "C"
16434 #endif
16435 char getloadavg ();
16436 int
16437 main ()
16438 {
16439 return getloadavg ();
16440 ;
16441 return 0;
16442 }
16443 _ACEOF
16444 rm -f conftest.$ac_objext conftest$ac_exeext
16445 if { (ac_try="$ac_link"
16446 case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_link") 2>conftest.er1
16452 ac_status=$?
16453 grep -v '^ *+' conftest.er1 >conftest.err
16454 rm -f conftest.er1
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } && {
16458 test -z "$ac_c_werror_flag" ||
16459 test ! -s conftest.err
16460 } && test -s conftest$ac_exeext &&
16461 $as_test_x conftest$ac_exeext; then
16462 ac_cv_lib_util_getloadavg=yes
16463 else
16464 echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16466
16467 ac_cv_lib_util_getloadavg=no
16468 fi
16469
16470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16471 conftest$ac_exeext conftest.$ac_ext
16472 LIBS=$ac_check_lib_save_LIBS
16473 fi
16474 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16475 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16476 if test $ac_cv_lib_util_getloadavg = yes; then
16477 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16478 fi
16479
16480 fi
16481
16482 if test $ac_have_func = no; then
16483 # There is a commonly available library for RS/6000 AIX.
16484 # Since it is not a standard part of AIX, it might be installed locally.
16485 ac_getloadavg_LIBS=$LIBS
16486 LIBS="-L/usr/local/lib $LIBS"
16487 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16488 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16489 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 else
16492 ac_check_lib_save_LIBS=$LIBS
16493 LIBS="-lgetloadavg $LIBS"
16494 cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h. */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16500
16501 /* Override any GCC internal prototype to avoid an error.
16502 Use char because int might match the return type of a GCC
16503 builtin and then its argument prototype would still apply. */
16504 #ifdef __cplusplus
16505 extern "C"
16506 #endif
16507 char getloadavg ();
16508 int
16509 main ()
16510 {
16511 return getloadavg ();
16512 ;
16513 return 0;
16514 }
16515 _ACEOF
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (ac_try="$ac_link"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_link") 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest$ac_exeext &&
16533 $as_test_x conftest$ac_exeext; then
16534 ac_cv_lib_getloadavg_getloadavg=yes
16535 else
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539 ac_cv_lib_getloadavg_getloadavg=no
16540 fi
16541
16542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16543 conftest$ac_exeext conftest.$ac_ext
16544 LIBS=$ac_check_lib_save_LIBS
16545 fi
16546 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16547 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16548 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16549 LIBS="-lgetloadavg $LIBS"
16550 else
16551 LIBS=$ac_getloadavg_LIBS
16552 fi
16553
16554 fi
16555
16556 # Make sure it is really in the library, if we think we found it,
16557 # otherwise set up the replacement function.
16558
16559 for ac_func in getloadavg
16560 do
16561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16567 cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h. */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16575 #define $ac_func innocuous_$ac_func
16576
16577 /* System header to define __stub macros and hopefully few prototypes,
16578 which can conflict with char $ac_func (); below.
16579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16580 <limits.h> exists even on freestanding compilers. */
16581
16582 #ifdef __STDC__
16583 # include <limits.h>
16584 #else
16585 # include <assert.h>
16586 #endif
16587
16588 #undef $ac_func
16589
16590 /* Override any GCC internal prototype to avoid an error.
16591 Use char because int might match the return type of a GCC
16592 builtin and then its argument prototype would still apply. */
16593 #ifdef __cplusplus
16594 extern "C"
16595 #endif
16596 char $ac_func ();
16597 /* The GNU C library defines this for functions which it implements
16598 to always fail with ENOSYS. Some functions are actually named
16599 something starting with __ and the normal name is an alias. */
16600 #if defined __stub_$ac_func || defined __stub___$ac_func
16601 choke me
16602 #endif
16603
16604 int
16605 main ()
16606 {
16607 return $ac_func ();
16608 ;
16609 return 0;
16610 }
16611 _ACEOF
16612 rm -f conftest.$ac_objext conftest$ac_exeext
16613 if { (ac_try="$ac_link"
16614 case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16617 esac
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_link") 2>conftest.er1
16620 ac_status=$?
16621 grep -v '^ *+' conftest.er1 >conftest.err
16622 rm -f conftest.er1
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } && {
16626 test -z "$ac_c_werror_flag" ||
16627 test ! -s conftest.err
16628 } && test -s conftest$ac_exeext &&
16629 $as_test_x conftest$ac_exeext; then
16630 eval "$as_ac_var=yes"
16631 else
16632 echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16634
16635 eval "$as_ac_var=no"
16636 fi
16637
16638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16639 conftest$ac_exeext conftest.$ac_ext
16640 fi
16641 ac_res=`eval echo '${'$as_ac_var'}'`
16642 { echo "$as_me:$LINENO: result: $ac_res" >&5
16643 echo "${ECHO_T}$ac_res" >&6; }
16644 if test `eval echo '${'$as_ac_var'}'` = yes; then
16645 cat >>confdefs.h <<_ACEOF
16646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16647 _ACEOF
16648
16649 else
16650 case " $LIBOBJS " in
16651 *" getloadavg.$ac_objext "* ) ;;
16652 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16653 ;;
16654 esac
16655
16656
16657 cat >>confdefs.h <<\_ACEOF
16658 #define C_GETLOADAVG 1
16659 _ACEOF
16660
16661 # Figure out what our getloadavg.c needs.
16662 ac_have_func=no
16663 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16664 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16665 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16666 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 fi
16669 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16670 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16671 else
16672 # Is the header compilable?
16673 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16674 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16675 cat >conftest.$ac_ext <<_ACEOF
16676 /* confdefs.h. */
16677 _ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16681 $ac_includes_default
16682 #include <sys/dg_sys_info.h>
16683 _ACEOF
16684 rm -f conftest.$ac_objext
16685 if { (ac_try="$ac_compile"
16686 case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16689 esac
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_compile") 2>conftest.er1
16692 ac_status=$?
16693 grep -v '^ *+' conftest.er1 >conftest.err
16694 rm -f conftest.er1
16695 cat conftest.err >&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } && {
16698 test -z "$ac_c_werror_flag" ||
16699 test ! -s conftest.err
16700 } && test -s conftest.$ac_objext; then
16701 ac_header_compiler=yes
16702 else
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16705
16706 ac_header_compiler=no
16707 fi
16708
16709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16711 echo "${ECHO_T}$ac_header_compiler" >&6; }
16712
16713 # Is the header present?
16714 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16715 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16716 cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h. */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 #include <sys/dg_sys_info.h>
16723 _ACEOF
16724 if { (ac_try="$ac_cpp conftest.$ac_ext"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728 esac
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } >/dev/null && {
16737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 }; then
16740 ac_header_preproc=yes
16741 else
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745 ac_header_preproc=no
16746 fi
16747
16748 rm -f conftest.err conftest.$ac_ext
16749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16750 echo "${ECHO_T}$ac_header_preproc" >&6; }
16751
16752 # So? What about this header?
16753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16754 yes:no: )
16755 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16756 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16757 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16758 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16759 ac_header_preproc=yes
16760 ;;
16761 no:yes:* )
16762 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16763 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16764 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16765 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16766 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16767 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16768 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16769 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16770 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16771 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16772 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16773 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16774
16775 ;;
16776 esac
16777 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16778 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16779 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16783 fi
16784 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16785 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16786
16787 fi
16788 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16789 ac_have_func=yes
16790
16791 cat >>confdefs.h <<\_ACEOF
16792 #define DGUX 1
16793 _ACEOF
16794
16795
16796 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16797 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16798 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801 ac_check_lib_save_LIBS=$LIBS
16802 LIBS="-ldgc $LIBS"
16803 cat >conftest.$ac_ext <<_ACEOF
16804 /* confdefs.h. */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809
16810 /* Override any GCC internal prototype to avoid an error.
16811 Use char because int might match the return type of a GCC
16812 builtin and then its argument prototype would still apply. */
16813 #ifdef __cplusplus
16814 extern "C"
16815 #endif
16816 char dg_sys_info ();
16817 int
16818 main ()
16819 {
16820 return dg_sys_info ();
16821 ;
16822 return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (ac_try="$ac_link"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_link") 2>conftest.er1
16833 ac_status=$?
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } && {
16839 test -z "$ac_c_werror_flag" ||
16840 test ! -s conftest.err
16841 } && test -s conftest$ac_exeext &&
16842 $as_test_x conftest$ac_exeext; then
16843 ac_cv_lib_dgc_dg_sys_info=yes
16844 else
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848 ac_cv_lib_dgc_dg_sys_info=no
16849 fi
16850
16851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LIBS=$ac_check_lib_save_LIBS
16854 fi
16855 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16856 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16857 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_LIBDGC 1
16860 _ACEOF
16861
16862 LIBS="-ldgc $LIBS"
16863
16864 fi
16865
16866 fi
16867
16868
16869
16870 if test "${ac_cv_header_locale_h+set}" = set; then
16871 { echo "$as_me:$LINENO: checking for locale.h" >&5
16872 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16873 if test "${ac_cv_header_locale_h+set}" = set; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 fi
16876 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16877 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16878 else
16879 # Is the header compilable?
16880 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16881 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16882 cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h. */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 $ac_includes_default
16889 #include <locale.h>
16890 _ACEOF
16891 rm -f conftest.$ac_objext
16892 if { (ac_try="$ac_compile"
16893 case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_compile") 2>conftest.er1
16899 ac_status=$?
16900 grep -v '^ *+' conftest.er1 >conftest.err
16901 rm -f conftest.er1
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } && {
16905 test -z "$ac_c_werror_flag" ||
16906 test ! -s conftest.err
16907 } && test -s conftest.$ac_objext; then
16908 ac_header_compiler=yes
16909 else
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16912
16913 ac_header_compiler=no
16914 fi
16915
16916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16918 echo "${ECHO_T}$ac_header_compiler" >&6; }
16919
16920 # Is the header present?
16921 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16922 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16923 cat >conftest.$ac_ext <<_ACEOF
16924 /* confdefs.h. */
16925 _ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16929 #include <locale.h>
16930 _ACEOF
16931 if { (ac_try="$ac_cpp conftest.$ac_ext"
16932 case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935 esac
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16938 ac_status=$?
16939 grep -v '^ *+' conftest.er1 >conftest.err
16940 rm -f conftest.er1
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } >/dev/null && {
16944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16945 test ! -s conftest.err
16946 }; then
16947 ac_header_preproc=yes
16948 else
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16951
16952 ac_header_preproc=no
16953 fi
16954
16955 rm -f conftest.err conftest.$ac_ext
16956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16957 echo "${ECHO_T}$ac_header_preproc" >&6; }
16958
16959 # So? What about this header?
16960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16961 yes:no: )
16962 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16963 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16965 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16966 ac_header_preproc=yes
16967 ;;
16968 no:yes:* )
16969 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16970 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16971 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16972 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16973 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16974 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16975 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16976 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16977 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16978 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16979 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16980 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16981
16982 ;;
16983 esac
16984 { echo "$as_me:$LINENO: checking for locale.h" >&5
16985 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16986 if test "${ac_cv_header_locale_h+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 else
16989 ac_cv_header_locale_h=$ac_header_preproc
16990 fi
16991 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16992 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16993
16994 fi
16995
16996
16997
16998 for ac_func in setlocale
16999 do
17000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006 cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h. */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17014 #define $ac_func innocuous_$ac_func
17015
17016 /* System header to define __stub macros and hopefully few prototypes,
17017 which can conflict with char $ac_func (); below.
17018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17019 <limits.h> exists even on freestanding compilers. */
17020
17021 #ifdef __STDC__
17022 # include <limits.h>
17023 #else
17024 # include <assert.h>
17025 #endif
17026
17027 #undef $ac_func
17028
17029 /* Override any GCC internal prototype to avoid an error.
17030 Use char because int might match the return type of a GCC
17031 builtin and then its argument prototype would still apply. */
17032 #ifdef __cplusplus
17033 extern "C"
17034 #endif
17035 char $ac_func ();
17036 /* The GNU C library defines this for functions which it implements
17037 to always fail with ENOSYS. Some functions are actually named
17038 something starting with __ and the normal name is an alias. */
17039 #if defined __stub_$ac_func || defined __stub___$ac_func
17040 choke me
17041 #endif
17042
17043 int
17044 main ()
17045 {
17046 return $ac_func ();
17047 ;
17048 return 0;
17049 }
17050 _ACEOF
17051 rm -f conftest.$ac_objext conftest$ac_exeext
17052 if { (ac_try="$ac_link"
17053 case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_link") 2>conftest.er1
17059 ac_status=$?
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest$ac_exeext &&
17068 $as_test_x conftest$ac_exeext; then
17069 eval "$as_ac_var=yes"
17070 else
17071 echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17073
17074 eval "$as_ac_var=no"
17075 fi
17076
17077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17078 conftest$ac_exeext conftest.$ac_ext
17079 fi
17080 ac_res=`eval echo '${'$as_ac_var'}'`
17081 { echo "$as_me:$LINENO: result: $ac_res" >&5
17082 echo "${ECHO_T}$ac_res" >&6; }
17083 if test `eval echo '${'$as_ac_var'}'` = yes; then
17084 cat >>confdefs.h <<_ACEOF
17085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17086 _ACEOF
17087
17088 fi
17089 done
17090
17091
17092 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17093 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17094 # Irix 4.0.5F has the header but not the library.
17095 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17096 ac_have_func=yes
17097
17098 cat >>confdefs.h <<\_ACEOF
17099 #define SVR4 1
17100 _ACEOF
17101
17102 fi
17103
17104 if test $ac_have_func = no; then
17105 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17106 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17107 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17108 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 fi
17111 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17112 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17113 else
17114 # Is the header compilable?
17115 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17116 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17117 cat >conftest.$ac_ext <<_ACEOF
17118 /* confdefs.h. */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 $ac_includes_default
17124 #include <inq_stats/cpustats.h>
17125 _ACEOF
17126 rm -f conftest.$ac_objext
17127 if { (ac_try="$ac_compile"
17128 case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_compile") 2>conftest.er1
17134 ac_status=$?
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } && {
17140 test -z "$ac_c_werror_flag" ||
17141 test ! -s conftest.err
17142 } && test -s conftest.$ac_objext; then
17143 ac_header_compiler=yes
17144 else
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17147
17148 ac_header_compiler=no
17149 fi
17150
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17153 echo "${ECHO_T}$ac_header_compiler" >&6; }
17154
17155 # Is the header present?
17156 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17157 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17158 cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h. */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 #include <inq_stats/cpustats.h>
17165 _ACEOF
17166 if { (ac_try="$ac_cpp conftest.$ac_ext"
17167 case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17173 ac_status=$?
17174 grep -v '^ *+' conftest.er1 >conftest.err
17175 rm -f conftest.er1
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } >/dev/null && {
17179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17180 test ! -s conftest.err
17181 }; then
17182 ac_header_preproc=yes
17183 else
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17186
17187 ac_header_preproc=no
17188 fi
17189
17190 rm -f conftest.err conftest.$ac_ext
17191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17192 echo "${ECHO_T}$ac_header_preproc" >&6; }
17193
17194 # So? What about this header?
17195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17196 yes:no: )
17197 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17198 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17199 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17200 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17201 ac_header_preproc=yes
17202 ;;
17203 no:yes:* )
17204 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17205 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17206 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17207 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17209 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17210 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17211 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17212 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17213 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17214 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17215 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17216
17217 ;;
17218 esac
17219 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17220 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17221 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 else
17224 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17225 fi
17226 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17227 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17228
17229 fi
17230 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17231 ac_have_func=yes
17232
17233 cat >>confdefs.h <<\_ACEOF
17234 #define UMAX 1
17235 _ACEOF
17236
17237
17238 cat >>confdefs.h <<\_ACEOF
17239 #define UMAX4_3 1
17240 _ACEOF
17241
17242 fi
17243
17244
17245 fi
17246
17247 if test $ac_have_func = no; then
17248 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17249 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17250 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17251 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17252 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 fi
17254 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17255 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17256 else
17257 # Is the header compilable?
17258 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17259 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17260 cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h. */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 $ac_includes_default
17267 #include <sys/cpustats.h>
17268 _ACEOF
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17274 esac
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_compile") 2>conftest.er1
17277 ac_status=$?
17278 grep -v '^ *+' conftest.er1 >conftest.err
17279 rm -f conftest.er1
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && {
17283 test -z "$ac_c_werror_flag" ||
17284 test ! -s conftest.err
17285 } && test -s conftest.$ac_objext; then
17286 ac_header_compiler=yes
17287 else
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291 ac_header_compiler=no
17292 fi
17293
17294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17296 echo "${ECHO_T}$ac_header_compiler" >&6; }
17297
17298 # Is the header present?
17299 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17300 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17301 cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h. */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 #include <sys/cpustats.h>
17308 _ACEOF
17309 if { (ac_try="$ac_cpp conftest.$ac_ext"
17310 case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17313 esac
17314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17316 ac_status=$?
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } >/dev/null && {
17322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17323 test ! -s conftest.err
17324 }; then
17325 ac_header_preproc=yes
17326 else
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17329
17330 ac_header_preproc=no
17331 fi
17332
17333 rm -f conftest.err conftest.$ac_ext
17334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17335 echo "${ECHO_T}$ac_header_preproc" >&6; }
17336
17337 # So? What about this header?
17338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17339 yes:no: )
17340 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17341 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17342 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17343 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17344 ac_header_preproc=yes
17345 ;;
17346 no:yes:* )
17347 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17348 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17349 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17350 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17352 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17353 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17354 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17355 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17356 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17357 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17358 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17359
17360 ;;
17361 esac
17362 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17363 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17364 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 else
17367 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17368 fi
17369 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17370 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17371
17372 fi
17373 if test $ac_cv_header_sys_cpustats_h = yes; then
17374 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17375 #define UMAX 1
17376 _ACEOF
17377
17378 fi
17379
17380
17381 fi
17382
17383 if test $ac_have_func = no; then
17384
17385 for ac_header in mach/mach.h
17386 do
17387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 fi
17394 ac_res=`eval echo '${'$as_ac_Header'}'`
17395 { echo "$as_me:$LINENO: result: $ac_res" >&5
17396 echo "${ECHO_T}$ac_res" >&6; }
17397 else
17398 # Is the header compilable?
17399 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17401 cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h. */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 $ac_includes_default
17408 #include <$ac_header>
17409 _ACEOF
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_compile") 2>conftest.er1
17418 ac_status=$?
17419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } && {
17424 test -z "$ac_c_werror_flag" ||
17425 test ! -s conftest.err
17426 } && test -s conftest.$ac_objext; then
17427 ac_header_compiler=yes
17428 else
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17431
17432 ac_header_compiler=no
17433 fi
17434
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17437 echo "${ECHO_T}$ac_header_compiler" >&6; }
17438
17439 # Is the header present?
17440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17442 cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h. */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 #include <$ac_header>
17449 _ACEOF
17450 if { (ac_try="$ac_cpp conftest.$ac_ext"
17451 case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17454 esac
17455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17457 ac_status=$?
17458 grep -v '^ *+' conftest.er1 >conftest.err
17459 rm -f conftest.er1
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } >/dev/null && {
17463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17465 }; then
17466 ac_header_preproc=yes
17467 else
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17470
17471 ac_header_preproc=no
17472 fi
17473
17474 rm -f conftest.err conftest.$ac_ext
17475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17476 echo "${ECHO_T}$ac_header_preproc" >&6; }
17477
17478 # So? What about this header?
17479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17480 yes:no: )
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17485 ac_header_preproc=yes
17486 ;;
17487 no:yes:* )
17488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17489 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17491 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17493 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17495 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17499 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17500
17501 ;;
17502 esac
17503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508 eval "$as_ac_Header=\$ac_header_preproc"
17509 fi
17510 ac_res=`eval echo '${'$as_ac_Header'}'`
17511 { echo "$as_me:$LINENO: result: $ac_res" >&5
17512 echo "${ECHO_T}$ac_res" >&6; }
17513
17514 fi
17515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17516 cat >>confdefs.h <<_ACEOF
17517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17518 _ACEOF
17519
17520 fi
17521
17522 done
17523
17524 fi
17525
17526
17527 for ac_header in nlist.h
17528 do
17529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 fi
17536 ac_res=`eval echo '${'$as_ac_Header'}'`
17537 { echo "$as_me:$LINENO: result: $ac_res" >&5
17538 echo "${ECHO_T}$ac_res" >&6; }
17539 else
17540 # Is the header compilable?
17541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17543 cat >conftest.$ac_ext <<_ACEOF
17544 /* confdefs.h. */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 $ac_includes_default
17550 #include <$ac_header>
17551 _ACEOF
17552 rm -f conftest.$ac_objext
17553 if { (ac_try="$ac_compile"
17554 case "(($ac_try" in
17555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556 *) ac_try_echo=$ac_try;;
17557 esac
17558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17559 (eval "$ac_compile") 2>conftest.er1
17560 ac_status=$?
17561 grep -v '^ *+' conftest.er1 >conftest.err
17562 rm -f conftest.er1
17563 cat conftest.err >&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } && {
17566 test -z "$ac_c_werror_flag" ||
17567 test ! -s conftest.err
17568 } && test -s conftest.$ac_objext; then
17569 ac_header_compiler=yes
17570 else
17571 echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17573
17574 ac_header_compiler=no
17575 fi
17576
17577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17579 echo "${ECHO_T}$ac_header_compiler" >&6; }
17580
17581 # Is the header present?
17582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17584 cat >conftest.$ac_ext <<_ACEOF
17585 /* confdefs.h. */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17590 #include <$ac_header>
17591 _ACEOF
17592 if { (ac_try="$ac_cpp conftest.$ac_ext"
17593 case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17599 ac_status=$?
17600 grep -v '^ *+' conftest.er1 >conftest.err
17601 rm -f conftest.er1
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } >/dev/null && {
17605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17606 test ! -s conftest.err
17607 }; then
17608 ac_header_preproc=yes
17609 else
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17612
17613 ac_header_preproc=no
17614 fi
17615
17616 rm -f conftest.err conftest.$ac_ext
17617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17618 echo "${ECHO_T}$ac_header_preproc" >&6; }
17619
17620 # So? What about this header?
17621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17622 yes:no: )
17623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17627 ac_header_preproc=yes
17628 ;;
17629 no:yes:* )
17630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17642
17643 ;;
17644 esac
17645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 else
17650 eval "$as_ac_Header=\$ac_header_preproc"
17651 fi
17652 ac_res=`eval echo '${'$as_ac_Header'}'`
17653 { echo "$as_me:$LINENO: result: $ac_res" >&5
17654 echo "${ECHO_T}$ac_res" >&6; }
17655
17656 fi
17657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17658 cat >>confdefs.h <<_ACEOF
17659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17660 _ACEOF
17661 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17662 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17663 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17665 else
17666 cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h. */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 #include <nlist.h>
17673
17674 int
17675 main ()
17676 {
17677 static struct nlist ac_aggr;
17678 if (ac_aggr.n_un.n_name)
17679 return 0;
17680 ;
17681 return 0;
17682 }
17683 _ACEOF
17684 rm -f conftest.$ac_objext
17685 if { (ac_try="$ac_compile"
17686 case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17689 esac
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_compile") 2>conftest.er1
17692 ac_status=$?
17693 grep -v '^ *+' conftest.er1 >conftest.err
17694 rm -f conftest.er1
17695 cat conftest.err >&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } && {
17698 test -z "$ac_c_werror_flag" ||
17699 test ! -s conftest.err
17700 } && test -s conftest.$ac_objext; then
17701 ac_cv_member_struct_nlist_n_un_n_name=yes
17702 else
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17705
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h. */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 #include <nlist.h>
17713
17714 int
17715 main ()
17716 {
17717 static struct nlist ac_aggr;
17718 if (sizeof ac_aggr.n_un.n_name)
17719 return 0;
17720 ;
17721 return 0;
17722 }
17723 _ACEOF
17724 rm -f conftest.$ac_objext
17725 if { (ac_try="$ac_compile"
17726 case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_compile") 2>conftest.er1
17732 ac_status=$?
17733 grep -v '^ *+' conftest.er1 >conftest.err
17734 rm -f conftest.er1
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } && {
17738 test -z "$ac_c_werror_flag" ||
17739 test ! -s conftest.err
17740 } && test -s conftest.$ac_objext; then
17741 ac_cv_member_struct_nlist_n_un_n_name=yes
17742 else
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746 ac_cv_member_struct_nlist_n_un_n_name=no
17747 fi
17748
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750 fi
17751
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753 fi
17754 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17755 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17756 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17757
17758 cat >>confdefs.h <<_ACEOF
17759 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17760 _ACEOF
17761
17762
17763 cat >>confdefs.h <<\_ACEOF
17764 #define NLIST_NAME_UNION 1
17765 _ACEOF
17766
17767 fi
17768
17769
17770 fi
17771
17772 done
17773
17774 fi
17775 done
17776
17777
17778 # Some definitions of getloadavg require that the program be installed setgid.
17779 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17780 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17781 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784 cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h. */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17791 #ifdef LDAV_PRIVILEGED
17792 Yowza Am I SETGID yet
17793 #endif
17794 _ACEOF
17795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17796 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17797 ac_cv_func_getloadavg_setgid=yes
17798 else
17799 ac_cv_func_getloadavg_setgid=no
17800 fi
17801 rm -f conftest*
17802
17803 fi
17804 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17805 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17806 if test $ac_cv_func_getloadavg_setgid = yes; then
17807 NEED_SETGID=true
17808
17809 cat >>confdefs.h <<\_ACEOF
17810 #define GETLOADAVG_PRIVILEGED 1
17811 _ACEOF
17812
17813 else
17814 NEED_SETGID=false
17815 fi
17816
17817 if test $ac_cv_func_getloadavg_setgid = yes; then
17818 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17819 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17820 if test "${ac_cv_group_kmem+set}" = set; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17822 else
17823 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17824 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17825 # If we got an error (system does not support symlinks), try without -L.
17826 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17827 ac_cv_group_kmem=`echo $ac_ls_output \
17828 | sed -ne 's/[ ][ ]*/ /g;
17829 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17830 / /s/.* //;p;'`
17831
17832 fi
17833 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17834 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17835 KMEM_GROUP=$ac_cv_group_kmem
17836 fi
17837 if test "x$ac_save_LIBS" = x; then
17838 GETLOADAVG_LIBS=$LIBS
17839 else
17840 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17841 fi
17842 LIBS=$ac_save_LIBS
17843
17844
17845
17846 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17847 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17848 if test "${ac_cv_sys_largefile_source+set}" = set; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17850 else
17851 while :; do
17852 cat >conftest.$ac_ext <<_ACEOF
17853 /* confdefs.h. */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17858 #include <stdio.h>
17859 int
17860 main ()
17861 {
17862 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17863 ;
17864 return 0;
17865 }
17866 _ACEOF
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (ac_try="$ac_link"
17869 case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17872 esac
17873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17874 (eval "$ac_link") 2>conftest.er1
17875 ac_status=$?
17876 grep -v '^ *+' conftest.er1 >conftest.err
17877 rm -f conftest.er1
17878 cat conftest.err >&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } && {
17881 test -z "$ac_c_werror_flag" ||
17882 test ! -s conftest.err
17883 } && test -s conftest$ac_exeext &&
17884 $as_test_x conftest$ac_exeext; then
17885 ac_cv_sys_largefile_source=no; break
17886 else
17887 echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17889
17890
17891 fi
17892
17893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17894 conftest$ac_exeext conftest.$ac_ext
17895 cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h. */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17901 #define _LARGEFILE_SOURCE 1
17902 #include <stdio.h>
17903 int
17904 main ()
17905 {
17906 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17907 ;
17908 return 0;
17909 }
17910 _ACEOF
17911 rm -f conftest.$ac_objext conftest$ac_exeext
17912 if { (ac_try="$ac_link"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916 esac
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_link") 2>conftest.er1
17919 ac_status=$?
17920 grep -v '^ *+' conftest.er1 >conftest.err
17921 rm -f conftest.er1
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } && {
17925 test -z "$ac_c_werror_flag" ||
17926 test ! -s conftest.err
17927 } && test -s conftest$ac_exeext &&
17928 $as_test_x conftest$ac_exeext; then
17929 ac_cv_sys_largefile_source=1; break
17930 else
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17933
17934
17935 fi
17936
17937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17938 conftest$ac_exeext conftest.$ac_ext
17939 ac_cv_sys_largefile_source=unknown
17940 break
17941 done
17942 fi
17943 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17944 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17945 case $ac_cv_sys_largefile_source in #(
17946 no | unknown) ;;
17947 *)
17948 cat >>confdefs.h <<_ACEOF
17949 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17950 _ACEOF
17951 ;;
17952 esac
17953 rm -f conftest*
17954
17955 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17956 # in glibc 2.1.3, but that breaks too many other things.
17957 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17958 if test $ac_cv_sys_largefile_source != unknown; then
17959
17960 cat >>confdefs.h <<\_ACEOF
17961 #define HAVE_FSEEKO 1
17962 _ACEOF
17963
17964 fi
17965
17966
17967 # Configure getopt.
17968 # getopt.m4 serial 10
17969
17970 # The getopt module assume you want GNU getopt, with getopt_long etc,
17971 # rather than vanilla POSIX getopt. This means your your code should
17972 # always include <getopt.h> for the getopt prototypes.
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984 # Prerequisites of lib/getopt*.
17985
17986
17987
17988
17989 GETOPT_H=
17990
17991 for ac_header in getopt.h
17992 do
17993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 fi
18000 ac_res=`eval echo '${'$as_ac_Header'}'`
18001 { echo "$as_me:$LINENO: result: $ac_res" >&5
18002 echo "${ECHO_T}$ac_res" >&6; }
18003 else
18004 # Is the header compilable?
18005 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18007 cat >conftest.$ac_ext <<_ACEOF
18008 /* confdefs.h. */
18009 _ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h. */
18013 $ac_includes_default
18014 #include <$ac_header>
18015 _ACEOF
18016 rm -f conftest.$ac_objext
18017 if { (ac_try="$ac_compile"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021 esac
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_compile") 2>conftest.er1
18024 ac_status=$?
18025 grep -v '^ *+' conftest.er1 >conftest.err
18026 rm -f conftest.er1
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest.$ac_objext; then
18033 ac_header_compiler=yes
18034 else
18035 echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18037
18038 ac_header_compiler=no
18039 fi
18040
18041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18043 echo "${ECHO_T}$ac_header_compiler" >&6; }
18044
18045 # Is the header present?
18046 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18048 cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h. */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 #include <$ac_header>
18055 _ACEOF
18056 if { (ac_try="$ac_cpp conftest.$ac_ext"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18060 esac
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } >/dev/null && {
18069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 }; then
18072 ac_header_preproc=yes
18073 else
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077 ac_header_preproc=no
18078 fi
18079
18080 rm -f conftest.err conftest.$ac_ext
18081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18082 echo "${ECHO_T}$ac_header_preproc" >&6; }
18083
18084 # So? What about this header?
18085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18086 yes:no: )
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18091 ac_header_preproc=yes
18092 ;;
18093 no:yes:* )
18094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18106
18107 ;;
18108 esac
18109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18112 echo $ECHO_N "(cached) $ECHO_C" >&6
18113 else
18114 eval "$as_ac_Header=\$ac_header_preproc"
18115 fi
18116 ac_res=`eval echo '${'$as_ac_Header'}'`
18117 { echo "$as_me:$LINENO: result: $ac_res" >&5
18118 echo "${ECHO_T}$ac_res" >&6; }
18119
18120 fi
18121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18122 cat >>confdefs.h <<_ACEOF
18123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18124 _ACEOF
18125
18126 else
18127 GETOPT_H=getopt.h
18128 fi
18129
18130 done
18131
18132 if test -z "$GETOPT_H"; then
18133
18134 for ac_func in getopt_long_only
18135 do
18136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 else
18142 cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h. */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18150 #define $ac_func innocuous_$ac_func
18151
18152 /* System header to define __stub macros and hopefully few prototypes,
18153 which can conflict with char $ac_func (); below.
18154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18155 <limits.h> exists even on freestanding compilers. */
18156
18157 #ifdef __STDC__
18158 # include <limits.h>
18159 #else
18160 # include <assert.h>
18161 #endif
18162
18163 #undef $ac_func
18164
18165 /* Override any GCC internal prototype to avoid an error.
18166 Use char because int might match the return type of a GCC
18167 builtin and then its argument prototype would still apply. */
18168 #ifdef __cplusplus
18169 extern "C"
18170 #endif
18171 char $ac_func ();
18172 /* The GNU C library defines this for functions which it implements
18173 to always fail with ENOSYS. Some functions are actually named
18174 something starting with __ and the normal name is an alias. */
18175 #if defined __stub_$ac_func || defined __stub___$ac_func
18176 choke me
18177 #endif
18178
18179 int
18180 main ()
18181 {
18182 return $ac_func ();
18183 ;
18184 return 0;
18185 }
18186 _ACEOF
18187 rm -f conftest.$ac_objext conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>conftest.er1
18195 ac_status=$?
18196 grep -v '^ *+' conftest.er1 >conftest.err
18197 rm -f conftest.er1
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && {
18201 test -z "$ac_c_werror_flag" ||
18202 test ! -s conftest.err
18203 } && test -s conftest$ac_exeext &&
18204 $as_test_x conftest$ac_exeext; then
18205 eval "$as_ac_var=yes"
18206 else
18207 echo "$as_me: failed program was:" >&5
18208 sed 's/^/| /' conftest.$ac_ext >&5
18209
18210 eval "$as_ac_var=no"
18211 fi
18212
18213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18214 conftest$ac_exeext conftest.$ac_ext
18215 fi
18216 ac_res=`eval echo '${'$as_ac_var'}'`
18217 { echo "$as_me:$LINENO: result: $ac_res" >&5
18218 echo "${ECHO_T}$ac_res" >&6; }
18219 if test `eval echo '${'$as_ac_var'}'` = yes; then
18220 cat >>confdefs.h <<_ACEOF
18221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18222 _ACEOF
18223
18224 else
18225 GETOPT_H=getopt.h
18226 fi
18227 done
18228
18229 fi
18230
18231 if test -z "$GETOPT_H"; then
18232 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18233 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18234 if test "${ac_cv_have_decl_optreset+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 else
18237 cat >conftest.$ac_ext <<_ACEOF
18238 /* confdefs.h. */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18243 #include <getopt.h>
18244
18245 int
18246 main ()
18247 {
18248 #ifndef optreset
18249 (void) optreset;
18250 #endif
18251
18252 ;
18253 return 0;
18254 }
18255 _ACEOF
18256 rm -f conftest.$ac_objext
18257 if { (ac_try="$ac_compile"
18258 case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18261 esac
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_compile") 2>conftest.er1
18264 ac_status=$?
18265 grep -v '^ *+' conftest.er1 >conftest.err
18266 rm -f conftest.er1
18267 cat conftest.err >&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } && {
18270 test -z "$ac_c_werror_flag" ||
18271 test ! -s conftest.err
18272 } && test -s conftest.$ac_objext; then
18273 ac_cv_have_decl_optreset=yes
18274 else
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18277
18278 ac_cv_have_decl_optreset=no
18279 fi
18280
18281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18282 fi
18283 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18284 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18285 if test $ac_cv_have_decl_optreset = yes; then
18286 GETOPT_H=getopt.h
18287 fi
18288
18289 fi
18290
18291 if test -z "$GETOPT_H"; then
18292 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18293 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18294 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 else
18297 if test "$cross_compiling" = yes; then
18298 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18299 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18300 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303 cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h. */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18309 #include <getopt.h>
18310
18311 int
18312 main ()
18313 {
18314 #ifndef getopt_clip
18315 (void) getopt_clip;
18316 #endif
18317
18318 ;
18319 return 0;
18320 }
18321 _ACEOF
18322 rm -f conftest.$ac_objext
18323 if { (ac_try="$ac_compile"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_compile") 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } && {
18336 test -z "$ac_c_werror_flag" ||
18337 test ! -s conftest.err
18338 } && test -s conftest.$ac_objext; then
18339 ac_cv_have_decl_getopt_clip=yes
18340 else
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344 ac_cv_have_decl_getopt_clip=no
18345 fi
18346
18347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18348 fi
18349 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18350 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18351 if test $ac_cv_have_decl_getopt_clip = yes; then
18352 gl_cv_func_gnu_getopt=no
18353 else
18354 gl_cv_func_gnu_getopt=yes
18355 fi
18356
18357 else
18358 cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h. */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364 #include <getopt.h>
18365 int
18366 main ()
18367 {
18368
18369 char *myargv[3];
18370 myargv[0] = "conftest";
18371 myargv[1] = "-+";
18372 myargv[2] = 0;
18373 return getopt (2, myargv, "+a") != '?';
18374
18375 ;
18376 return 0;
18377 }
18378 _ACEOF
18379 rm -f conftest$ac_exeext
18380 if { (ac_try="$ac_link"
18381 case "(($ac_try" in
18382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18384 esac
18385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386 (eval "$ac_link") 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18390 { (case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18393 esac
18394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_try") 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 gl_cv_func_gnu_getopt=yes
18400 else
18401 echo "$as_me: program exited with status $ac_status" >&5
18402 echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18404
18405 ( exit $ac_status )
18406 gl_cv_func_gnu_getopt=no
18407 fi
18408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18409 fi
18410
18411
18412 fi
18413 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18414 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18415 if test "$gl_cv_func_gnu_getopt" = "no"; then
18416 GETOPT_H=getopt.h
18417 fi
18418 fi
18419
18420
18421
18422 if test -n "$GETOPT_H"; then
18423
18424
18425 GETOPT_H=getopt.h
18426
18427 cat >>confdefs.h <<\_ACEOF
18428 #define __GETOPT_PREFIX rpl_
18429 _ACEOF
18430
18431
18432
18433 :
18434 GETOPTOBJS='getopt.o getopt1.o'
18435
18436 fi
18437
18438
18439
18440
18441 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18442 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18443 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445 else
18446 # Use it with a single arg.
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h. */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 $ac_includes_default
18454 int
18455 main ()
18456 {
18457 getpgrp (0);
18458 ;
18459 return 0;
18460 }
18461 _ACEOF
18462 rm -f conftest.$ac_objext
18463 if { (ac_try="$ac_compile"
18464 case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18467 esac
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_compile") 2>conftest.er1
18470 ac_status=$?
18471 grep -v '^ *+' conftest.er1 >conftest.err
18472 rm -f conftest.er1
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } && {
18476 test -z "$ac_c_werror_flag" ||
18477 test ! -s conftest.err
18478 } && test -s conftest.$ac_objext; then
18479 ac_cv_func_getpgrp_void=no
18480 else
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 ac_cv_func_getpgrp_void=yes
18485 fi
18486
18487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18488
18489 fi
18490 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18491 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18492 if test $ac_cv_func_getpgrp_void = yes; then
18493
18494 cat >>confdefs.h <<\_ACEOF
18495 #define GETPGRP_VOID 1
18496 _ACEOF
18497
18498 fi
18499
18500
18501
18502 for ac_func in strftime
18503 do
18504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510 cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h. */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18518 #define $ac_func innocuous_$ac_func
18519
18520 /* System header to define __stub macros and hopefully few prototypes,
18521 which can conflict with char $ac_func (); below.
18522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18523 <limits.h> exists even on freestanding compilers. */
18524
18525 #ifdef __STDC__
18526 # include <limits.h>
18527 #else
18528 # include <assert.h>
18529 #endif
18530
18531 #undef $ac_func
18532
18533 /* Override any GCC internal prototype to avoid an error.
18534 Use char because int might match the return type of a GCC
18535 builtin and then its argument prototype would still apply. */
18536 #ifdef __cplusplus
18537 extern "C"
18538 #endif
18539 char $ac_func ();
18540 /* The GNU C library defines this for functions which it implements
18541 to always fail with ENOSYS. Some functions are actually named
18542 something starting with __ and the normal name is an alias. */
18543 #if defined __stub_$ac_func || defined __stub___$ac_func
18544 choke me
18545 #endif
18546
18547 int
18548 main ()
18549 {
18550 return $ac_func ();
18551 ;
18552 return 0;
18553 }
18554 _ACEOF
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (ac_try="$ac_link"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18560 esac
18561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_link") 2>conftest.er1
18563 ac_status=$?
18564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } && {
18569 test -z "$ac_c_werror_flag" ||
18570 test ! -s conftest.err
18571 } && test -s conftest$ac_exeext &&
18572 $as_test_x conftest$ac_exeext; then
18573 eval "$as_ac_var=yes"
18574 else
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18577
18578 eval "$as_ac_var=no"
18579 fi
18580
18581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18582 conftest$ac_exeext conftest.$ac_ext
18583 fi
18584 ac_res=`eval echo '${'$as_ac_var'}'`
18585 { echo "$as_me:$LINENO: result: $ac_res" >&5
18586 echo "${ECHO_T}$ac_res" >&6; }
18587 if test `eval echo '${'$as_ac_var'}'` = yes; then
18588 cat >>confdefs.h <<_ACEOF
18589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18590 _ACEOF
18591
18592 else
18593 # strftime is in -lintl on SCO UNIX.
18594 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18595 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18596 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18597 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 else
18599 ac_check_lib_save_LIBS=$LIBS
18600 LIBS="-lintl $LIBS"
18601 cat >conftest.$ac_ext <<_ACEOF
18602 /* confdefs.h. */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18607
18608 /* Override any GCC internal prototype to avoid an error.
18609 Use char because int might match the return type of a GCC
18610 builtin and then its argument prototype would still apply. */
18611 #ifdef __cplusplus
18612 extern "C"
18613 #endif
18614 char strftime ();
18615 int
18616 main ()
18617 {
18618 return strftime ();
18619 ;
18620 return 0;
18621 }
18622 _ACEOF
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_link") 2>conftest.er1
18631 ac_status=$?
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } && {
18637 test -z "$ac_c_werror_flag" ||
18638 test ! -s conftest.err
18639 } && test -s conftest$ac_exeext &&
18640 $as_test_x conftest$ac_exeext; then
18641 ac_cv_lib_intl_strftime=yes
18642 else
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646 ac_cv_lib_intl_strftime=no
18647 fi
18648
18649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18650 conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_check_lib_save_LIBS
18652 fi
18653 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18654 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18655 if test $ac_cv_lib_intl_strftime = yes; then
18656 cat >>confdefs.h <<\_ACEOF
18657 #define HAVE_STRFTIME 1
18658 _ACEOF
18659
18660 LIBS="-lintl $LIBS"
18661 fi
18662
18663 fi
18664 done
18665
18666
18667 # UNIX98 PTYs.
18668
18669 for ac_func in grantpt
18670 do
18671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677 cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h. */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18685 #define $ac_func innocuous_$ac_func
18686
18687 /* System header to define __stub macros and hopefully few prototypes,
18688 which can conflict with char $ac_func (); below.
18689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18690 <limits.h> exists even on freestanding compilers. */
18691
18692 #ifdef __STDC__
18693 # include <limits.h>
18694 #else
18695 # include <assert.h>
18696 #endif
18697
18698 #undef $ac_func
18699
18700 /* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18703 #ifdef __cplusplus
18704 extern "C"
18705 #endif
18706 char $ac_func ();
18707 /* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
18710 #if defined __stub_$ac_func || defined __stub___$ac_func
18711 choke me
18712 #endif
18713
18714 int
18715 main ()
18716 {
18717 return $ac_func ();
18718 ;
18719 return 0;
18720 }
18721 _ACEOF
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18727 esac
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_link") 2>conftest.er1
18730 ac_status=$?
18731 grep -v '^ *+' conftest.er1 >conftest.err
18732 rm -f conftest.er1
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } && {
18736 test -z "$ac_c_werror_flag" ||
18737 test ! -s conftest.err
18738 } && test -s conftest$ac_exeext &&
18739 $as_test_x conftest$ac_exeext; then
18740 eval "$as_ac_var=yes"
18741 else
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18744
18745 eval "$as_ac_var=no"
18746 fi
18747
18748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18749 conftest$ac_exeext conftest.$ac_ext
18750 fi
18751 ac_res=`eval echo '${'$as_ac_var'}'`
18752 { echo "$as_me:$LINENO: result: $ac_res" >&5
18753 echo "${ECHO_T}$ac_res" >&6; }
18754 if test `eval echo '${'$as_ac_var'}'` = yes; then
18755 cat >>confdefs.h <<_ACEOF
18756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18757 _ACEOF
18758
18759 fi
18760 done
18761
18762
18763 # PTY-related GNU extensions.
18764
18765 for ac_func in getpt
18766 do
18767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18768 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18772 else
18773 cat >conftest.$ac_ext <<_ACEOF
18774 /* confdefs.h. */
18775 _ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18781 #define $ac_func innocuous_$ac_func
18782
18783 /* System header to define __stub macros and hopefully few prototypes,
18784 which can conflict with char $ac_func (); below.
18785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18786 <limits.h> exists even on freestanding compilers. */
18787
18788 #ifdef __STDC__
18789 # include <limits.h>
18790 #else
18791 # include <assert.h>
18792 #endif
18793
18794 #undef $ac_func
18795
18796 /* Override any GCC internal prototype to avoid an error.
18797 Use char because int might match the return type of a GCC
18798 builtin and then its argument prototype would still apply. */
18799 #ifdef __cplusplus
18800 extern "C"
18801 #endif
18802 char $ac_func ();
18803 /* The GNU C library defines this for functions which it implements
18804 to always fail with ENOSYS. Some functions are actually named
18805 something starting with __ and the normal name is an alias. */
18806 #if defined __stub_$ac_func || defined __stub___$ac_func
18807 choke me
18808 #endif
18809
18810 int
18811 main ()
18812 {
18813 return $ac_func ();
18814 ;
18815 return 0;
18816 }
18817 _ACEOF
18818 rm -f conftest.$ac_objext conftest$ac_exeext
18819 if { (ac_try="$ac_link"
18820 case "(($ac_try" in
18821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822 *) ac_try_echo=$ac_try;;
18823 esac
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_link") 2>conftest.er1
18826 ac_status=$?
18827 grep -v '^ *+' conftest.er1 >conftest.err
18828 rm -f conftest.er1
18829 cat conftest.err >&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); } && {
18832 test -z "$ac_c_werror_flag" ||
18833 test ! -s conftest.err
18834 } && test -s conftest$ac_exeext &&
18835 $as_test_x conftest$ac_exeext; then
18836 eval "$as_ac_var=yes"
18837 else
18838 echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18840
18841 eval "$as_ac_var=no"
18842 fi
18843
18844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18845 conftest$ac_exeext conftest.$ac_ext
18846 fi
18847 ac_res=`eval echo '${'$as_ac_var'}'`
18848 { echo "$as_me:$LINENO: result: $ac_res" >&5
18849 echo "${ECHO_T}$ac_res" >&6; }
18850 if test `eval echo '${'$as_ac_var'}'` = yes; then
18851 cat >>confdefs.h <<_ACEOF
18852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18853 _ACEOF
18854
18855 fi
18856 done
18857
18858
18859 # Check this now, so that we will NOT find the above functions in ncurses.
18860 # That is because we have not set up to link ncurses in lib-src.
18861 # It's better to believe a function is not available
18862 # than to expect to find it in ncurses.
18863
18864 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18865 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18866 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869 ac_check_lib_save_LIBS=$LIBS
18870 LIBS="-lncurses $LIBS"
18871 cat >conftest.$ac_ext <<_ACEOF
18872 /* confdefs.h. */
18873 _ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18877
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18881 #ifdef __cplusplus
18882 extern "C"
18883 #endif
18884 char tparm ();
18885 int
18886 main ()
18887 {
18888 return tparm ();
18889 ;
18890 return 0;
18891 }
18892 _ACEOF
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_link") 2>conftest.er1
18901 ac_status=$?
18902 grep -v '^ *+' conftest.er1 >conftest.err
18903 rm -f conftest.er1
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest$ac_exeext &&
18910 $as_test_x conftest$ac_exeext; then
18911 ac_cv_lib_ncurses_tparm=yes
18912 else
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 ac_cv_lib_ncurses_tparm=no
18917 fi
18918
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920 conftest$ac_exeext conftest.$ac_ext
18921 LIBS=$ac_check_lib_save_LIBS
18922 fi
18923 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18924 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18925 if test $ac_cv_lib_ncurses_tparm = yes; then
18926 cat >>confdefs.h <<_ACEOF
18927 #define HAVE_LIBNCURSES 1
18928 _ACEOF
18929
18930 LIBS="-lncurses $LIBS"
18931
18932 fi
18933
18934
18935 # Do we need the Hesiod library to provide the support routines?
18936 if test "$with_hesiod" = yes ; then
18937 # Don't set $LIBS here -- see comments above.
18938 resolv=no
18939 { echo "$as_me:$LINENO: checking for res_send" >&5
18940 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18941 if test "${ac_cv_func_res_send+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944 cat >conftest.$ac_ext <<_ACEOF
18945 /* confdefs.h. */
18946 _ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18950 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18952 #define res_send innocuous_res_send
18953
18954 /* System header to define __stub macros and hopefully few prototypes,
18955 which can conflict with char res_send (); below.
18956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18957 <limits.h> exists even on freestanding compilers. */
18958
18959 #ifdef __STDC__
18960 # include <limits.h>
18961 #else
18962 # include <assert.h>
18963 #endif
18964
18965 #undef res_send
18966
18967 /* Override any GCC internal prototype to avoid an error.
18968 Use char because int might match the return type of a GCC
18969 builtin and then its argument prototype would still apply. */
18970 #ifdef __cplusplus
18971 extern "C"
18972 #endif
18973 char res_send ();
18974 /* The GNU C library defines this for functions which it implements
18975 to always fail with ENOSYS. Some functions are actually named
18976 something starting with __ and the normal name is an alias. */
18977 #if defined __stub_res_send || defined __stub___res_send
18978 choke me
18979 #endif
18980
18981 int
18982 main ()
18983 {
18984 return res_send ();
18985 ;
18986 return 0;
18987 }
18988 _ACEOF
18989 rm -f conftest.$ac_objext conftest$ac_exeext
18990 if { (ac_try="$ac_link"
18991 case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18994 esac
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_link") 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } && {
19003 test -z "$ac_c_werror_flag" ||
19004 test ! -s conftest.err
19005 } && test -s conftest$ac_exeext &&
19006 $as_test_x conftest$ac_exeext; then
19007 ac_cv_func_res_send=yes
19008 else
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19011
19012 ac_cv_func_res_send=no
19013 fi
19014
19015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19016 conftest$ac_exeext conftest.$ac_ext
19017 fi
19018 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19019 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19020 if test $ac_cv_func_res_send = yes; then
19021 :
19022 else
19023 { echo "$as_me:$LINENO: checking for __res_send" >&5
19024 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19025 if test "${ac_cv_func___res_send+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19027 else
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h. */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19036 #define __res_send innocuous___res_send
19037
19038 /* System header to define __stub macros and hopefully few prototypes,
19039 which can conflict with char __res_send (); below.
19040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19041 <limits.h> exists even on freestanding compilers. */
19042
19043 #ifdef __STDC__
19044 # include <limits.h>
19045 #else
19046 # include <assert.h>
19047 #endif
19048
19049 #undef __res_send
19050
19051 /* Override any GCC internal prototype to avoid an error.
19052 Use char because int might match the return type of a GCC
19053 builtin and then its argument prototype would still apply. */
19054 #ifdef __cplusplus
19055 extern "C"
19056 #endif
19057 char __res_send ();
19058 /* The GNU C library defines this for functions which it implements
19059 to always fail with ENOSYS. Some functions are actually named
19060 something starting with __ and the normal name is an alias. */
19061 #if defined __stub___res_send || defined __stub_____res_send
19062 choke me
19063 #endif
19064
19065 int
19066 main ()
19067 {
19068 return __res_send ();
19069 ;
19070 return 0;
19071 }
19072 _ACEOF
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (ac_try="$ac_link"
19075 case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19078 esac
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_link") 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } && {
19087 test -z "$ac_c_werror_flag" ||
19088 test ! -s conftest.err
19089 } && test -s conftest$ac_exeext &&
19090 $as_test_x conftest$ac_exeext; then
19091 ac_cv_func___res_send=yes
19092 else
19093 echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19095
19096 ac_cv_func___res_send=no
19097 fi
19098
19099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19100 conftest$ac_exeext conftest.$ac_ext
19101 fi
19102 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19103 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19104 if test $ac_cv_func___res_send = yes; then
19105 :
19106 else
19107 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19108 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19109 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112 ac_check_lib_save_LIBS=$LIBS
19113 LIBS="-lresolv $LIBS"
19114 cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h. */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120
19121 /* Override any GCC internal prototype to avoid an error.
19122 Use char because int might match the return type of a GCC
19123 builtin and then its argument prototype would still apply. */
19124 #ifdef __cplusplus
19125 extern "C"
19126 #endif
19127 char res_send ();
19128 int
19129 main ()
19130 {
19131 return res_send ();
19132 ;
19133 return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (ac_try="$ac_link"
19138 case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_link") 2>conftest.er1
19144 ac_status=$?
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } && {
19150 test -z "$ac_c_werror_flag" ||
19151 test ! -s conftest.err
19152 } && test -s conftest$ac_exeext &&
19153 $as_test_x conftest$ac_exeext; then
19154 ac_cv_lib_resolv_res_send=yes
19155 else
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19158
19159 ac_cv_lib_resolv_res_send=no
19160 fi
19161
19162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19163 conftest$ac_exeext conftest.$ac_ext
19164 LIBS=$ac_check_lib_save_LIBS
19165 fi
19166 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19167 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19168 if test $ac_cv_lib_resolv_res_send = yes; then
19169 resolv=yes
19170 else
19171 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19172 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19173 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19174 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 else
19176 ac_check_lib_save_LIBS=$LIBS
19177 LIBS="-lresolv $LIBS"
19178 cat >conftest.$ac_ext <<_ACEOF
19179 /* confdefs.h. */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19184
19185 /* Override any GCC internal prototype to avoid an error.
19186 Use char because int might match the return type of a GCC
19187 builtin and then its argument prototype would still apply. */
19188 #ifdef __cplusplus
19189 extern "C"
19190 #endif
19191 char __res_send ();
19192 int
19193 main ()
19194 {
19195 return __res_send ();
19196 ;
19197 return 0;
19198 }
19199 _ACEOF
19200 rm -f conftest.$ac_objext conftest$ac_exeext
19201 if { (ac_try="$ac_link"
19202 case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19205 esac
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_link") 2>conftest.er1
19208 ac_status=$?
19209 grep -v '^ *+' conftest.er1 >conftest.err
19210 rm -f conftest.er1
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } && {
19214 test -z "$ac_c_werror_flag" ||
19215 test ! -s conftest.err
19216 } && test -s conftest$ac_exeext &&
19217 $as_test_x conftest$ac_exeext; then
19218 ac_cv_lib_resolv___res_send=yes
19219 else
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19222
19223 ac_cv_lib_resolv___res_send=no
19224 fi
19225
19226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19227 conftest$ac_exeext conftest.$ac_ext
19228 LIBS=$ac_check_lib_save_LIBS
19229 fi
19230 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19231 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19232 if test $ac_cv_lib_resolv___res_send = yes; then
19233 resolv=yes
19234 fi
19235
19236 fi
19237
19238 fi
19239
19240 fi
19241
19242 if test "$resolv" = yes ; then
19243 RESOLVLIB=-lresolv
19244
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE_LIBRESOLV 1
19247 _ACEOF
19248
19249 else
19250 RESOLVLIB=
19251 fi
19252 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19253 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19254 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 else
19257 cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h. */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19265 #define hes_getmailhost innocuous_hes_getmailhost
19266
19267 /* System header to define __stub macros and hopefully few prototypes,
19268 which can conflict with char hes_getmailhost (); below.
19269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19270 <limits.h> exists even on freestanding compilers. */
19271
19272 #ifdef __STDC__
19273 # include <limits.h>
19274 #else
19275 # include <assert.h>
19276 #endif
19277
19278 #undef hes_getmailhost
19279
19280 /* Override any GCC internal prototype to avoid an error.
19281 Use char because int might match the return type of a GCC
19282 builtin and then its argument prototype would still apply. */
19283 #ifdef __cplusplus
19284 extern "C"
19285 #endif
19286 char hes_getmailhost ();
19287 /* The GNU C library defines this for functions which it implements
19288 to always fail with ENOSYS. Some functions are actually named
19289 something starting with __ and the normal name is an alias. */
19290 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19291 choke me
19292 #endif
19293
19294 int
19295 main ()
19296 {
19297 return hes_getmailhost ();
19298 ;
19299 return 0;
19300 }
19301 _ACEOF
19302 rm -f conftest.$ac_objext conftest$ac_exeext
19303 if { (ac_try="$ac_link"
19304 case "(($ac_try" in
19305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306 *) ac_try_echo=$ac_try;;
19307 esac
19308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19309 (eval "$ac_link") 2>conftest.er1
19310 ac_status=$?
19311 grep -v '^ *+' conftest.er1 >conftest.err
19312 rm -f conftest.er1
19313 cat conftest.err >&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } && {
19316 test -z "$ac_c_werror_flag" ||
19317 test ! -s conftest.err
19318 } && test -s conftest$ac_exeext &&
19319 $as_test_x conftest$ac_exeext; then
19320 ac_cv_func_hes_getmailhost=yes
19321 else
19322 echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19324
19325 ac_cv_func_hes_getmailhost=no
19326 fi
19327
19328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19329 conftest$ac_exeext conftest.$ac_ext
19330 fi
19331 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19332 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19333 if test $ac_cv_func_hes_getmailhost = yes; then
19334 :
19335 else
19336 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19337 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19338 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341 ac_check_lib_save_LIBS=$LIBS
19342 LIBS="-lhesiod $RESOLVLIB $LIBS"
19343 cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h. */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19349
19350 /* Override any GCC internal prototype to avoid an error.
19351 Use char because int might match the return type of a GCC
19352 builtin and then its argument prototype would still apply. */
19353 #ifdef __cplusplus
19354 extern "C"
19355 #endif
19356 char hes_getmailhost ();
19357 int
19358 main ()
19359 {
19360 return hes_getmailhost ();
19361 ;
19362 return 0;
19363 }
19364 _ACEOF
19365 rm -f conftest.$ac_objext conftest$ac_exeext
19366 if { (ac_try="$ac_link"
19367 case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19370 esac
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_link") 2>conftest.er1
19373 ac_status=$?
19374 grep -v '^ *+' conftest.er1 >conftest.err
19375 rm -f conftest.er1
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } && {
19379 test -z "$ac_c_werror_flag" ||
19380 test ! -s conftest.err
19381 } && test -s conftest$ac_exeext &&
19382 $as_test_x conftest$ac_exeext; then
19383 ac_cv_lib_hesiod_hes_getmailhost=yes
19384 else
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388 ac_cv_lib_hesiod_hes_getmailhost=no
19389 fi
19390
19391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19392 conftest$ac_exeext conftest.$ac_ext
19393 LIBS=$ac_check_lib_save_LIBS
19394 fi
19395 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19396 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19397 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19398
19399 cat >>confdefs.h <<\_ACEOF
19400 #define HAVE_LIBHESIOD 1
19401 _ACEOF
19402
19403 else
19404 :
19405 fi
19406
19407 fi
19408
19409 fi
19410
19411 # These tell us which Kerberos-related libraries to use.
19412 if test "${with_kerberos+set}" = set; then
19413
19414 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19415 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19416 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19417 echo $ECHO_N "(cached) $ECHO_C" >&6
19418 else
19419 ac_check_lib_save_LIBS=$LIBS
19420 LIBS="-lcom_err $LIBS"
19421 cat >conftest.$ac_ext <<_ACEOF
19422 /* confdefs.h. */
19423 _ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19427
19428 /* Override any GCC internal prototype to avoid an error.
19429 Use char because int might match the return type of a GCC
19430 builtin and then its argument prototype would still apply. */
19431 #ifdef __cplusplus
19432 extern "C"
19433 #endif
19434 char com_err ();
19435 int
19436 main ()
19437 {
19438 return com_err ();
19439 ;
19440 return 0;
19441 }
19442 _ACEOF
19443 rm -f conftest.$ac_objext conftest$ac_exeext
19444 if { (ac_try="$ac_link"
19445 case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19448 esac
19449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_link") 2>conftest.er1
19451 ac_status=$?
19452 grep -v '^ *+' conftest.er1 >conftest.err
19453 rm -f conftest.er1
19454 cat conftest.err >&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } && {
19457 test -z "$ac_c_werror_flag" ||
19458 test ! -s conftest.err
19459 } && test -s conftest$ac_exeext &&
19460 $as_test_x conftest$ac_exeext; then
19461 ac_cv_lib_com_err_com_err=yes
19462 else
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19465
19466 ac_cv_lib_com_err_com_err=no
19467 fi
19468
19469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19470 conftest$ac_exeext conftest.$ac_ext
19471 LIBS=$ac_check_lib_save_LIBS
19472 fi
19473 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19474 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19475 if test $ac_cv_lib_com_err_com_err = yes; then
19476 cat >>confdefs.h <<_ACEOF
19477 #define HAVE_LIBCOM_ERR 1
19478 _ACEOF
19479
19480 LIBS="-lcom_err $LIBS"
19481
19482 fi
19483
19484
19485 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19486 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19487 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490 ac_check_lib_save_LIBS=$LIBS
19491 LIBS="-lk5crypto $LIBS"
19492 cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h. */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19498
19499 /* Override any GCC internal prototype to avoid an error.
19500 Use char because int might match the return type of a GCC
19501 builtin and then its argument prototype would still apply. */
19502 #ifdef __cplusplus
19503 extern "C"
19504 #endif
19505 char mit_des_cbc_encrypt ();
19506 int
19507 main ()
19508 {
19509 return mit_des_cbc_encrypt ();
19510 ;
19511 return 0;
19512 }
19513 _ACEOF
19514 rm -f conftest.$ac_objext conftest$ac_exeext
19515 if { (ac_try="$ac_link"
19516 case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519 esac
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_link") 2>conftest.er1
19522 ac_status=$?
19523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } && {
19528 test -z "$ac_c_werror_flag" ||
19529 test ! -s conftest.err
19530 } && test -s conftest$ac_exeext &&
19531 $as_test_x conftest$ac_exeext; then
19532 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19533 else
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19536
19537 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19538 fi
19539
19540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19541 conftest$ac_exeext conftest.$ac_ext
19542 LIBS=$ac_check_lib_save_LIBS
19543 fi
19544 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19545 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19546 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19547 cat >>confdefs.h <<_ACEOF
19548 #define HAVE_LIBK5CRYPTO 1
19549 _ACEOF
19550
19551 LIBS="-lk5crypto $LIBS"
19552
19553 fi
19554
19555
19556 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19557 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19558 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561 ac_check_lib_save_LIBS=$LIBS
19562 LIBS="-lcrypto $LIBS"
19563 cat >conftest.$ac_ext <<_ACEOF
19564 /* confdefs.h. */
19565 _ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h. */
19569
19570 /* Override any GCC internal prototype to avoid an error.
19571 Use char because int might match the return type of a GCC
19572 builtin and then its argument prototype would still apply. */
19573 #ifdef __cplusplus
19574 extern "C"
19575 #endif
19576 char mit_des_cbc_encrypt ();
19577 int
19578 main ()
19579 {
19580 return mit_des_cbc_encrypt ();
19581 ;
19582 return 0;
19583 }
19584 _ACEOF
19585 rm -f conftest.$ac_objext conftest$ac_exeext
19586 if { (ac_try="$ac_link"
19587 case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19590 esac
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_link") 2>conftest.er1
19593 ac_status=$?
19594 grep -v '^ *+' conftest.er1 >conftest.err
19595 rm -f conftest.er1
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } && {
19599 test -z "$ac_c_werror_flag" ||
19600 test ! -s conftest.err
19601 } && test -s conftest$ac_exeext &&
19602 $as_test_x conftest$ac_exeext; then
19603 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19604 else
19605 echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19607
19608 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19609 fi
19610
19611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19612 conftest$ac_exeext conftest.$ac_ext
19613 LIBS=$ac_check_lib_save_LIBS
19614 fi
19615 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19616 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19617 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19618 cat >>confdefs.h <<_ACEOF
19619 #define HAVE_LIBCRYPTO 1
19620 _ACEOF
19621
19622 LIBS="-lcrypto $LIBS"
19623
19624 fi
19625
19626
19627 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19628 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19629 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19630 echo $ECHO_N "(cached) $ECHO_C" >&6
19631 else
19632 ac_check_lib_save_LIBS=$LIBS
19633 LIBS="-lkrb5 $LIBS"
19634 cat >conftest.$ac_ext <<_ACEOF
19635 /* confdefs.h. */
19636 _ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640
19641 /* Override any GCC internal prototype to avoid an error.
19642 Use char because int might match the return type of a GCC
19643 builtin and then its argument prototype would still apply. */
19644 #ifdef __cplusplus
19645 extern "C"
19646 #endif
19647 char krb5_init_context ();
19648 int
19649 main ()
19650 {
19651 return krb5_init_context ();
19652 ;
19653 return 0;
19654 }
19655 _ACEOF
19656 rm -f conftest.$ac_objext conftest$ac_exeext
19657 if { (ac_try="$ac_link"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_link") 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && {
19670 test -z "$ac_c_werror_flag" ||
19671 test ! -s conftest.err
19672 } && test -s conftest$ac_exeext &&
19673 $as_test_x conftest$ac_exeext; then
19674 ac_cv_lib_krb5_krb5_init_context=yes
19675 else
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19678
19679 ac_cv_lib_krb5_krb5_init_context=no
19680 fi
19681
19682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19683 conftest$ac_exeext conftest.$ac_ext
19684 LIBS=$ac_check_lib_save_LIBS
19685 fi
19686 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19687 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19688 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19689 cat >>confdefs.h <<_ACEOF
19690 #define HAVE_LIBKRB5 1
19691 _ACEOF
19692
19693 LIBS="-lkrb5 $LIBS"
19694
19695 fi
19696
19697 if test "${with_kerberos5+set}" != set; then
19698
19699 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19700 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19701 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19702 echo $ECHO_N "(cached) $ECHO_C" >&6
19703 else
19704 ac_check_lib_save_LIBS=$LIBS
19705 LIBS="-ldes425 $LIBS"
19706 cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h. */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712
19713 /* Override any GCC internal prototype to avoid an error.
19714 Use char because int might match the return type of a GCC
19715 builtin and then its argument prototype would still apply. */
19716 #ifdef __cplusplus
19717 extern "C"
19718 #endif
19719 char des_cbc_encrypt ();
19720 int
19721 main ()
19722 {
19723 return des_cbc_encrypt ();
19724 ;
19725 return 0;
19726 }
19727 _ACEOF
19728 rm -f conftest.$ac_objext conftest$ac_exeext
19729 if { (ac_try="$ac_link"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19733 esac
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_link") 2>conftest.er1
19736 ac_status=$?
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } && {
19742 test -z "$ac_c_werror_flag" ||
19743 test ! -s conftest.err
19744 } && test -s conftest$ac_exeext &&
19745 $as_test_x conftest$ac_exeext; then
19746 ac_cv_lib_des425_des_cbc_encrypt=yes
19747 else
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751 ac_cv_lib_des425_des_cbc_encrypt=no
19752 fi
19753
19754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19755 conftest$ac_exeext conftest.$ac_ext
19756 LIBS=$ac_check_lib_save_LIBS
19757 fi
19758 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19759 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19760 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19761 cat >>confdefs.h <<_ACEOF
19762 #define HAVE_LIBDES425 1
19763 _ACEOF
19764
19765 LIBS="-ldes425 $LIBS"
19766
19767 else
19768
19769 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19770 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19771 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774 ac_check_lib_save_LIBS=$LIBS
19775 LIBS="-ldes $LIBS"
19776 cat >conftest.$ac_ext <<_ACEOF
19777 /* confdefs.h. */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19782
19783 /* Override any GCC internal prototype to avoid an error.
19784 Use char because int might match the return type of a GCC
19785 builtin and then its argument prototype would still apply. */
19786 #ifdef __cplusplus
19787 extern "C"
19788 #endif
19789 char des_cbc_encrypt ();
19790 int
19791 main ()
19792 {
19793 return des_cbc_encrypt ();
19794 ;
19795 return 0;
19796 }
19797 _ACEOF
19798 rm -f conftest.$ac_objext conftest$ac_exeext
19799 if { (ac_try="$ac_link"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_link") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest$ac_exeext &&
19815 $as_test_x conftest$ac_exeext; then
19816 ac_cv_lib_des_des_cbc_encrypt=yes
19817 else
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19820
19821 ac_cv_lib_des_des_cbc_encrypt=no
19822 fi
19823
19824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19825 conftest$ac_exeext conftest.$ac_ext
19826 LIBS=$ac_check_lib_save_LIBS
19827 fi
19828 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19829 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19830 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19831 cat >>confdefs.h <<_ACEOF
19832 #define HAVE_LIBDES 1
19833 _ACEOF
19834
19835 LIBS="-ldes $LIBS"
19836
19837 fi
19838
19839 fi
19840
19841
19842 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19843 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19844 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847 ac_check_lib_save_LIBS=$LIBS
19848 LIBS="-lkrb4 $LIBS"
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h. */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855
19856 /* Override any GCC internal prototype to avoid an error.
19857 Use char because int might match the return type of a GCC
19858 builtin and then its argument prototype would still apply. */
19859 #ifdef __cplusplus
19860 extern "C"
19861 #endif
19862 char krb_get_cred ();
19863 int
19864 main ()
19865 {
19866 return krb_get_cred ();
19867 ;
19868 return 0;
19869 }
19870 _ACEOF
19871 rm -f conftest.$ac_objext conftest$ac_exeext
19872 if { (ac_try="$ac_link"
19873 case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19876 esac
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_link") 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && {
19885 test -z "$ac_c_werror_flag" ||
19886 test ! -s conftest.err
19887 } && test -s conftest$ac_exeext &&
19888 $as_test_x conftest$ac_exeext; then
19889 ac_cv_lib_krb4_krb_get_cred=yes
19890 else
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894 ac_cv_lib_krb4_krb_get_cred=no
19895 fi
19896
19897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19898 conftest$ac_exeext conftest.$ac_ext
19899 LIBS=$ac_check_lib_save_LIBS
19900 fi
19901 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19902 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19903 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19904 cat >>confdefs.h <<_ACEOF
19905 #define HAVE_LIBKRB4 1
19906 _ACEOF
19907
19908 LIBS="-lkrb4 $LIBS"
19909
19910 else
19911
19912 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19913 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19914 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 else
19917 ac_check_lib_save_LIBS=$LIBS
19918 LIBS="-lkrb $LIBS"
19919 cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h. */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925
19926 /* Override any GCC internal prototype to avoid an error.
19927 Use char because int might match the return type of a GCC
19928 builtin and then its argument prototype would still apply. */
19929 #ifdef __cplusplus
19930 extern "C"
19931 #endif
19932 char krb_get_cred ();
19933 int
19934 main ()
19935 {
19936 return krb_get_cred ();
19937 ;
19938 return 0;
19939 }
19940 _ACEOF
19941 rm -f conftest.$ac_objext conftest$ac_exeext
19942 if { (ac_try="$ac_link"
19943 case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_link") 2>conftest.er1
19949 ac_status=$?
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } && {
19955 test -z "$ac_c_werror_flag" ||
19956 test ! -s conftest.err
19957 } && test -s conftest$ac_exeext &&
19958 $as_test_x conftest$ac_exeext; then
19959 ac_cv_lib_krb_krb_get_cred=yes
19960 else
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964 ac_cv_lib_krb_krb_get_cred=no
19965 fi
19966
19967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19968 conftest$ac_exeext conftest.$ac_ext
19969 LIBS=$ac_check_lib_save_LIBS
19970 fi
19971 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19972 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19973 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19974 cat >>confdefs.h <<_ACEOF
19975 #define HAVE_LIBKRB 1
19976 _ACEOF
19977
19978 LIBS="-lkrb $LIBS"
19979
19980 fi
19981
19982 fi
19983
19984 fi
19985
19986 if test "${with_kerberos5+set}" = set; then
19987
19988 for ac_header in krb5.h
19989 do
19990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19995 echo $ECHO_N "(cached) $ECHO_C" >&6
19996 fi
19997 ac_res=`eval echo '${'$as_ac_Header'}'`
19998 { echo "$as_me:$LINENO: result: $ac_res" >&5
19999 echo "${ECHO_T}$ac_res" >&6; }
20000 else
20001 # Is the header compilable?
20002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20004 cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h. */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 $ac_includes_default
20011 #include <$ac_header>
20012 _ACEOF
20013 rm -f conftest.$ac_objext
20014 if { (ac_try="$ac_compile"
20015 case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20018 esac
20019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020 (eval "$ac_compile") 2>conftest.er1
20021 ac_status=$?
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } && {
20027 test -z "$ac_c_werror_flag" ||
20028 test ! -s conftest.err
20029 } && test -s conftest.$ac_objext; then
20030 ac_header_compiler=yes
20031 else
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20034
20035 ac_header_compiler=no
20036 fi
20037
20038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20040 echo "${ECHO_T}$ac_header_compiler" >&6; }
20041
20042 # Is the header present?
20043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h. */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 #include <$ac_header>
20052 _ACEOF
20053 if { (ac_try="$ac_cpp conftest.$ac_ext"
20054 case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20057 esac
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20060 ac_status=$?
20061 grep -v '^ *+' conftest.er1 >conftest.err
20062 rm -f conftest.er1
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } >/dev/null && {
20066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20067 test ! -s conftest.err
20068 }; then
20069 ac_header_preproc=yes
20070 else
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20073
20074 ac_header_preproc=no
20075 fi
20076
20077 rm -f conftest.err conftest.$ac_ext
20078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20079 echo "${ECHO_T}$ac_header_preproc" >&6; }
20080
20081 # So? What about this header?
20082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20083 yes:no: )
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20088 ac_header_preproc=yes
20089 ;;
20090 no:yes:* )
20091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20103
20104 ;;
20105 esac
20106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111 eval "$as_ac_Header=\$ac_header_preproc"
20112 fi
20113 ac_res=`eval echo '${'$as_ac_Header'}'`
20114 { echo "$as_me:$LINENO: result: $ac_res" >&5
20115 echo "${ECHO_T}$ac_res" >&6; }
20116
20117 fi
20118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20119 cat >>confdefs.h <<_ACEOF
20120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20121 _ACEOF
20122
20123 fi
20124
20125 done
20126
20127 else
20128
20129 for ac_header in des.h
20130 do
20131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 fi
20138 ac_res=`eval echo '${'$as_ac_Header'}'`
20139 { echo "$as_me:$LINENO: result: $ac_res" >&5
20140 echo "${ECHO_T}$ac_res" >&6; }
20141 else
20142 # Is the header compilable?
20143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h. */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 $ac_includes_default
20152 #include <$ac_header>
20153 _ACEOF
20154 rm -f conftest.$ac_objext
20155 if { (ac_try="$ac_compile"
20156 case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_compile") 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } && {
20168 test -z "$ac_c_werror_flag" ||
20169 test ! -s conftest.err
20170 } && test -s conftest.$ac_objext; then
20171 ac_header_compiler=yes
20172 else
20173 echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176 ac_header_compiler=no
20177 fi
20178
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20181 echo "${ECHO_T}$ac_header_compiler" >&6; }
20182
20183 # Is the header present?
20184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20186 cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h. */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192 #include <$ac_header>
20193 _ACEOF
20194 if { (ac_try="$ac_cpp conftest.$ac_ext"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20201 ac_status=$?
20202 grep -v '^ *+' conftest.er1 >conftest.err
20203 rm -f conftest.er1
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } >/dev/null && {
20207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20208 test ! -s conftest.err
20209 }; then
20210 ac_header_preproc=yes
20211 else
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 ac_header_preproc=no
20216 fi
20217
20218 rm -f conftest.err conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20220 echo "${ECHO_T}$ac_header_preproc" >&6; }
20221
20222 # So? What about this header?
20223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20224 yes:no: )
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20229 ac_header_preproc=yes
20230 ;;
20231 no:yes:* )
20232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20244
20245 ;;
20246 esac
20247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252 eval "$as_ac_Header=\$ac_header_preproc"
20253 fi
20254 ac_res=`eval echo '${'$as_ac_Header'}'`
20255 { echo "$as_me:$LINENO: result: $ac_res" >&5
20256 echo "${ECHO_T}$ac_res" >&6; }
20257
20258 fi
20259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20260 cat >>confdefs.h <<_ACEOF
20261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20262 _ACEOF
20263
20264 else
20265
20266 for ac_header in kerberosIV/des.h
20267 do
20268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20273 echo $ECHO_N "(cached) $ECHO_C" >&6
20274 fi
20275 ac_res=`eval echo '${'$as_ac_Header'}'`
20276 { echo "$as_me:$LINENO: result: $ac_res" >&5
20277 echo "${ECHO_T}$ac_res" >&6; }
20278 else
20279 # Is the header compilable?
20280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20282 cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h. */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 $ac_includes_default
20289 #include <$ac_header>
20290 _ACEOF
20291 rm -f conftest.$ac_objext
20292 if { (ac_try="$ac_compile"
20293 case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20296 esac
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_compile") 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } && {
20305 test -z "$ac_c_werror_flag" ||
20306 test ! -s conftest.err
20307 } && test -s conftest.$ac_objext; then
20308 ac_header_compiler=yes
20309 else
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313 ac_header_compiler=no
20314 fi
20315
20316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20318 echo "${ECHO_T}$ac_header_compiler" >&6; }
20319
20320 # Is the header present?
20321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h. */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <$ac_header>
20330 _ACEOF
20331 if { (ac_try="$ac_cpp conftest.$ac_ext"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20335 esac
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20338 ac_status=$?
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } >/dev/null && {
20344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 }; then
20347 ac_header_preproc=yes
20348 else
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352 ac_header_preproc=no
20353 fi
20354
20355 rm -f conftest.err conftest.$ac_ext
20356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20357 echo "${ECHO_T}$ac_header_preproc" >&6; }
20358
20359 # So? What about this header?
20360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20361 yes:no: )
20362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20366 ac_header_preproc=yes
20367 ;;
20368 no:yes:* )
20369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20376 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20381
20382 ;;
20383 esac
20384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389 eval "$as_ac_Header=\$ac_header_preproc"
20390 fi
20391 ac_res=`eval echo '${'$as_ac_Header'}'`
20392 { echo "$as_me:$LINENO: result: $ac_res" >&5
20393 echo "${ECHO_T}$ac_res" >&6; }
20394
20395 fi
20396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20397 cat >>confdefs.h <<_ACEOF
20398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20399 _ACEOF
20400
20401 else
20402
20403 for ac_header in kerberos/des.h
20404 do
20405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 fi
20412 ac_res=`eval echo '${'$as_ac_Header'}'`
20413 { echo "$as_me:$LINENO: result: $ac_res" >&5
20414 echo "${ECHO_T}$ac_res" >&6; }
20415 else
20416 # Is the header compilable?
20417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20419 cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h. */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 $ac_includes_default
20426 #include <$ac_header>
20427 _ACEOF
20428 rm -f conftest.$ac_objext
20429 if { (ac_try="$ac_compile"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20433 esac
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_compile") 2>conftest.er1
20436 ac_status=$?
20437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest.$ac_objext; then
20445 ac_header_compiler=yes
20446 else
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450 ac_header_compiler=no
20451 fi
20452
20453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20455 echo "${ECHO_T}$ac_header_compiler" >&6; }
20456
20457 # Is the header present?
20458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20460 cat >conftest.$ac_ext <<_ACEOF
20461 /* confdefs.h. */
20462 _ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 #include <$ac_header>
20467 _ACEOF
20468 if { (ac_try="$ac_cpp conftest.$ac_ext"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20475 ac_status=$?
20476 grep -v '^ *+' conftest.er1 >conftest.err
20477 rm -f conftest.er1
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } >/dev/null && {
20481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20482 test ! -s conftest.err
20483 }; then
20484 ac_header_preproc=yes
20485 else
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 ac_header_preproc=no
20490 fi
20491
20492 rm -f conftest.err conftest.$ac_ext
20493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20494 echo "${ECHO_T}$ac_header_preproc" >&6; }
20495
20496 # So? What about this header?
20497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20498 yes:no: )
20499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20503 ac_header_preproc=yes
20504 ;;
20505 no:yes:* )
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20518
20519 ;;
20520 esac
20521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526 eval "$as_ac_Header=\$ac_header_preproc"
20527 fi
20528 ac_res=`eval echo '${'$as_ac_Header'}'`
20529 { echo "$as_me:$LINENO: result: $ac_res" >&5
20530 echo "${ECHO_T}$ac_res" >&6; }
20531
20532 fi
20533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20536 _ACEOF
20537
20538 fi
20539
20540 done
20541
20542 fi
20543
20544 done
20545
20546 fi
20547
20548 done
20549
20550
20551 for ac_header in krb.h
20552 do
20553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 fi
20560 ac_res=`eval echo '${'$as_ac_Header'}'`
20561 { echo "$as_me:$LINENO: result: $ac_res" >&5
20562 echo "${ECHO_T}$ac_res" >&6; }
20563 else
20564 # Is the header compilable?
20565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20567 cat >conftest.$ac_ext <<_ACEOF
20568 /* confdefs.h. */
20569 _ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573 $ac_includes_default
20574 #include <$ac_header>
20575 _ACEOF
20576 rm -f conftest.$ac_objext
20577 if { (ac_try="$ac_compile"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_compile") 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest.$ac_objext; then
20593 ac_header_compiler=yes
20594 else
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598 ac_header_compiler=no
20599 fi
20600
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20603 echo "${ECHO_T}$ac_header_compiler" >&6; }
20604
20605 # Is the header present?
20606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20608 cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h. */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 #include <$ac_header>
20615 _ACEOF
20616 if { (ac_try="$ac_cpp conftest.$ac_ext"
20617 case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20620 esac
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } >/dev/null && {
20629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20630 test ! -s conftest.err
20631 }; then
20632 ac_header_preproc=yes
20633 else
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637 ac_header_preproc=no
20638 fi
20639
20640 rm -f conftest.err conftest.$ac_ext
20641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20642 echo "${ECHO_T}$ac_header_preproc" >&6; }
20643
20644 # So? What about this header?
20645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20646 yes:no: )
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20651 ac_header_preproc=yes
20652 ;;
20653 no:yes:* )
20654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20666
20667 ;;
20668 esac
20669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674 eval "$as_ac_Header=\$ac_header_preproc"
20675 fi
20676 ac_res=`eval echo '${'$as_ac_Header'}'`
20677 { echo "$as_me:$LINENO: result: $ac_res" >&5
20678 echo "${ECHO_T}$ac_res" >&6; }
20679
20680 fi
20681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20682 cat >>confdefs.h <<_ACEOF
20683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20684 _ACEOF
20685
20686 else
20687
20688 for ac_header in kerberosIV/krb.h
20689 do
20690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 fi
20697 ac_res=`eval echo '${'$as_ac_Header'}'`
20698 { echo "$as_me:$LINENO: result: $ac_res" >&5
20699 echo "${ECHO_T}$ac_res" >&6; }
20700 else
20701 # Is the header compilable?
20702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h. */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 $ac_includes_default
20711 #include <$ac_header>
20712 _ACEOF
20713 rm -f conftest.$ac_objext
20714 if { (ac_try="$ac_compile"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_compile") 2>conftest.er1
20721 ac_status=$?
20722 grep -v '^ *+' conftest.er1 >conftest.err
20723 rm -f conftest.er1
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } && {
20727 test -z "$ac_c_werror_flag" ||
20728 test ! -s conftest.err
20729 } && test -s conftest.$ac_objext; then
20730 ac_header_compiler=yes
20731 else
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735 ac_header_compiler=no
20736 fi
20737
20738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20740 echo "${ECHO_T}$ac_header_compiler" >&6; }
20741
20742 # Is the header present?
20743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20745 cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h. */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 #include <$ac_header>
20752 _ACEOF
20753 if { (ac_try="$ac_cpp conftest.$ac_ext"
20754 case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20757 esac
20758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20760 ac_status=$?
20761 grep -v '^ *+' conftest.er1 >conftest.err
20762 rm -f conftest.er1
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } >/dev/null && {
20766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20767 test ! -s conftest.err
20768 }; then
20769 ac_header_preproc=yes
20770 else
20771 echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20773
20774 ac_header_preproc=no
20775 fi
20776
20777 rm -f conftest.err conftest.$ac_ext
20778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20779 echo "${ECHO_T}$ac_header_preproc" >&6; }
20780
20781 # So? What about this header?
20782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20783 yes:no: )
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20788 ac_header_preproc=yes
20789 ;;
20790 no:yes:* )
20791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20803
20804 ;;
20805 esac
20806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20810 else
20811 eval "$as_ac_Header=\$ac_header_preproc"
20812 fi
20813 ac_res=`eval echo '${'$as_ac_Header'}'`
20814 { echo "$as_me:$LINENO: result: $ac_res" >&5
20815 echo "${ECHO_T}$ac_res" >&6; }
20816
20817 fi
20818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20819 cat >>confdefs.h <<_ACEOF
20820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20821 _ACEOF
20822
20823 else
20824
20825 for ac_header in kerberos/krb.h
20826 do
20827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 fi
20834 ac_res=`eval echo '${'$as_ac_Header'}'`
20835 { echo "$as_me:$LINENO: result: $ac_res" >&5
20836 echo "${ECHO_T}$ac_res" >&6; }
20837 else
20838 # Is the header compilable?
20839 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20840 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20841 cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h. */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 $ac_includes_default
20848 #include <$ac_header>
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_compile") 2>conftest.er1
20858 ac_status=$?
20859 grep -v '^ *+' conftest.er1 >conftest.err
20860 rm -f conftest.er1
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest.$ac_objext; then
20867 ac_header_compiler=yes
20868 else
20869 echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872 ac_header_compiler=no
20873 fi
20874
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20877 echo "${ECHO_T}$ac_header_compiler" >&6; }
20878
20879 # Is the header present?
20880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20882 cat >conftest.$ac_ext <<_ACEOF
20883 /* confdefs.h. */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20888 #include <$ac_header>
20889 _ACEOF
20890 if { (ac_try="$ac_cpp conftest.$ac_ext"
20891 case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20894 esac
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20897 ac_status=$?
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } >/dev/null && {
20903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20905 }; then
20906 ac_header_preproc=yes
20907 else
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911 ac_header_preproc=no
20912 fi
20913
20914 rm -f conftest.err conftest.$ac_ext
20915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20916 echo "${ECHO_T}$ac_header_preproc" >&6; }
20917
20918 # So? What about this header?
20919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20920 yes:no: )
20921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20925 ac_header_preproc=yes
20926 ;;
20927 no:yes:* )
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20940
20941 ;;
20942 esac
20943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 else
20948 eval "$as_ac_Header=\$ac_header_preproc"
20949 fi
20950 ac_res=`eval echo '${'$as_ac_Header'}'`
20951 { echo "$as_me:$LINENO: result: $ac_res" >&5
20952 echo "${ECHO_T}$ac_res" >&6; }
20953
20954 fi
20955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20956 cat >>confdefs.h <<_ACEOF
20957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20958 _ACEOF
20959
20960 fi
20961
20962 done
20963
20964 fi
20965
20966 done
20967
20968 fi
20969
20970 done
20971
20972 fi
20973
20974 for ac_header in com_err.h
20975 do
20976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20982 fi
20983 ac_res=`eval echo '${'$as_ac_Header'}'`
20984 { echo "$as_me:$LINENO: result: $ac_res" >&5
20985 echo "${ECHO_T}$ac_res" >&6; }
20986 else
20987 # Is the header compilable?
20988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20990 cat >conftest.$ac_ext <<_ACEOF
20991 /* confdefs.h. */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20996 $ac_includes_default
20997 #include <$ac_header>
20998 _ACEOF
20999 rm -f conftest.$ac_objext
21000 if { (ac_try="$ac_compile"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21004 esac
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_compile") 2>conftest.er1
21007 ac_status=$?
21008 grep -v '^ *+' conftest.er1 >conftest.err
21009 rm -f conftest.er1
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_c_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest.$ac_objext; then
21016 ac_header_compiler=yes
21017 else
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021 ac_header_compiler=no
21022 fi
21023
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21026 echo "${ECHO_T}$ac_header_compiler" >&6; }
21027
21028 # Is the header present?
21029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21031 cat >conftest.$ac_ext <<_ACEOF
21032 /* confdefs.h. */
21033 _ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21037 #include <$ac_header>
21038 _ACEOF
21039 if { (ac_try="$ac_cpp conftest.$ac_ext"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21046 ac_status=$?
21047 grep -v '^ *+' conftest.er1 >conftest.err
21048 rm -f conftest.er1
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } >/dev/null && {
21052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 }; then
21055 ac_header_preproc=yes
21056 else
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060 ac_header_preproc=no
21061 fi
21062
21063 rm -f conftest.err conftest.$ac_ext
21064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21065 echo "${ECHO_T}$ac_header_preproc" >&6; }
21066
21067 # So? What about this header?
21068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21069 yes:no: )
21070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21074 ac_header_preproc=yes
21075 ;;
21076 no:yes:* )
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21089
21090 ;;
21091 esac
21092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21096 else
21097 eval "$as_ac_Header=\$ac_header_preproc"
21098 fi
21099 ac_res=`eval echo '${'$as_ac_Header'}'`
21100 { echo "$as_me:$LINENO: result: $ac_res" >&5
21101 echo "${ECHO_T}$ac_res" >&6; }
21102
21103 fi
21104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21105 cat >>confdefs.h <<_ACEOF
21106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21107 _ACEOF
21108
21109 fi
21110
21111 done
21112
21113 fi
21114
21115 # Solaris requires -lintl if you want strerror (which calls dgettext)
21116 # to return localized messages.
21117
21118 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21119 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21120 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21122 else
21123 ac_check_lib_save_LIBS=$LIBS
21124 LIBS="-lintl $LIBS"
21125 cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h. */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131
21132 /* Override any GCC internal prototype to avoid an error.
21133 Use char because int might match the return type of a GCC
21134 builtin and then its argument prototype would still apply. */
21135 #ifdef __cplusplus
21136 extern "C"
21137 #endif
21138 char dgettext ();
21139 int
21140 main ()
21141 {
21142 return dgettext ();
21143 ;
21144 return 0;
21145 }
21146 _ACEOF
21147 rm -f conftest.$ac_objext conftest$ac_exeext
21148 if { (ac_try="$ac_link"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_link") 2>conftest.er1
21155 ac_status=$?
21156 grep -v '^ *+' conftest.er1 >conftest.err
21157 rm -f conftest.er1
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } && {
21161 test -z "$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 } && test -s conftest$ac_exeext &&
21164 $as_test_x conftest$ac_exeext; then
21165 ac_cv_lib_intl_dgettext=yes
21166 else
21167 echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21169
21170 ac_cv_lib_intl_dgettext=no
21171 fi
21172
21173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21174 conftest$ac_exeext conftest.$ac_ext
21175 LIBS=$ac_check_lib_save_LIBS
21176 fi
21177 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21178 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21179 if test $ac_cv_lib_intl_dgettext = yes; then
21180 cat >>confdefs.h <<_ACEOF
21181 #define HAVE_LIBINTL 1
21182 _ACEOF
21183
21184 LIBS="-lintl $LIBS"
21185
21186 fi
21187
21188
21189 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21190 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21191 if test "${emacs_cv_localtime_cache+set}" = set; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194 if test x$ac_cv_func_tzset = xyes; then
21195 if test "$cross_compiling" = yes; then
21196 # If we have tzset, assume the worst when cross-compiling.
21197 emacs_cv_localtime_cache=yes
21198 else
21199 cat >conftest.$ac_ext <<_ACEOF
21200 /* confdefs.h. */
21201 _ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21205 #include <time.h>
21206 extern char **environ;
21207 unset_TZ ()
21208 {
21209 char **from, **to;
21210 for (to = from = environ; (*to = *from); from++)
21211 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21212 to++;
21213 }
21214 char TZ_GMT0[] = "TZ=GMT0";
21215 char TZ_PST8[] = "TZ=PST8";
21216 main()
21217 {
21218 time_t now = time ((time_t *) 0);
21219 int hour_GMT0, hour_unset;
21220 if (putenv (TZ_GMT0) != 0)
21221 exit (1);
21222 hour_GMT0 = localtime (&now)->tm_hour;
21223 unset_TZ ();
21224 hour_unset = localtime (&now)->tm_hour;
21225 if (putenv (TZ_PST8) != 0)
21226 exit (1);
21227 if (localtime (&now)->tm_hour == hour_GMT0)
21228 exit (1);
21229 unset_TZ ();
21230 if (localtime (&now)->tm_hour != hour_unset)
21231 exit (1);
21232 exit (0);
21233 }
21234 _ACEOF
21235 rm -f conftest$ac_exeext
21236 if { (ac_try="$ac_link"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_link") 2>&5
21243 ac_status=$?
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21246 { (case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_try") 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 emacs_cv_localtime_cache=no
21256 else
21257 echo "$as_me: program exited with status $ac_status" >&5
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21260
21261 ( exit $ac_status )
21262 emacs_cv_localtime_cache=yes
21263 fi
21264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21265 fi
21266
21267
21268 else
21269 # If we lack tzset, report that localtime does not cache TZ,
21270 # since we can't invalidate the cache if we don't have tzset.
21271 emacs_cv_localtime_cache=no
21272 fi
21273 fi
21274 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21275 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21276 if test $emacs_cv_localtime_cache = yes; then
21277
21278 cat >>confdefs.h <<\_ACEOF
21279 #define LOCALTIME_CACHE 1
21280 _ACEOF
21281
21282 fi
21283
21284 if test "x$HAVE_TIMEVAL" = xyes; then
21285
21286 for ac_func in gettimeofday
21287 do
21288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21292 echo $ECHO_N "(cached) $ECHO_C" >&6
21293 else
21294 cat >conftest.$ac_ext <<_ACEOF
21295 /* confdefs.h. */
21296 _ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21302 #define $ac_func innocuous_$ac_func
21303
21304 /* System header to define __stub macros and hopefully few prototypes,
21305 which can conflict with char $ac_func (); below.
21306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21307 <limits.h> exists even on freestanding compilers. */
21308
21309 #ifdef __STDC__
21310 # include <limits.h>
21311 #else
21312 # include <assert.h>
21313 #endif
21314
21315 #undef $ac_func
21316
21317 /* Override any GCC internal prototype to avoid an error.
21318 Use char because int might match the return type of a GCC
21319 builtin and then its argument prototype would still apply. */
21320 #ifdef __cplusplus
21321 extern "C"
21322 #endif
21323 char $ac_func ();
21324 /* The GNU C library defines this for functions which it implements
21325 to always fail with ENOSYS. Some functions are actually named
21326 something starting with __ and the normal name is an alias. */
21327 #if defined __stub_$ac_func || defined __stub___$ac_func
21328 choke me
21329 #endif
21330
21331 int
21332 main ()
21333 {
21334 return $ac_func ();
21335 ;
21336 return 0;
21337 }
21338 _ACEOF
21339 rm -f conftest.$ac_objext conftest$ac_exeext
21340 if { (ac_try="$ac_link"
21341 case "(($ac_try" in
21342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343 *) ac_try_echo=$ac_try;;
21344 esac
21345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21346 (eval "$ac_link") 2>conftest.er1
21347 ac_status=$?
21348 grep -v '^ *+' conftest.er1 >conftest.err
21349 rm -f conftest.er1
21350 cat conftest.err >&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } && {
21353 test -z "$ac_c_werror_flag" ||
21354 test ! -s conftest.err
21355 } && test -s conftest$ac_exeext &&
21356 $as_test_x conftest$ac_exeext; then
21357 eval "$as_ac_var=yes"
21358 else
21359 echo "$as_me: failed program was:" >&5
21360 sed 's/^/| /' conftest.$ac_ext >&5
21361
21362 eval "$as_ac_var=no"
21363 fi
21364
21365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21366 conftest$ac_exeext conftest.$ac_ext
21367 fi
21368 ac_res=`eval echo '${'$as_ac_var'}'`
21369 { echo "$as_me:$LINENO: result: $ac_res" >&5
21370 echo "${ECHO_T}$ac_res" >&6; }
21371 if test `eval echo '${'$as_ac_var'}'` = yes; then
21372 cat >>confdefs.h <<_ACEOF
21373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21374 _ACEOF
21375
21376 fi
21377 done
21378
21379 if test $ac_cv_func_gettimeofday = yes; then
21380 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21381 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21382 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21384 else
21385 cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h. */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391
21392 #ifdef TIME_WITH_SYS_TIME
21393 #include <sys/time.h>
21394 #include <time.h>
21395 #else
21396 #ifdef HAVE_SYS_TIME_H
21397 #include <sys/time.h>
21398 #else
21399 #include <time.h>
21400 #endif
21401 #endif
21402 int
21403 main ()
21404 {
21405 struct timeval time;
21406 gettimeofday (&time, 0);
21407 ;
21408 return 0;
21409 }
21410 _ACEOF
21411 rm -f conftest.$ac_objext
21412 if { (ac_try="$ac_compile"
21413 case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21416 esac
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_compile") 2>conftest.er1
21419 ac_status=$?
21420 grep -v '^ *+' conftest.er1 >conftest.err
21421 rm -f conftest.er1
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } && {
21425 test -z "$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21427 } && test -s conftest.$ac_objext; then
21428 emacs_cv_gettimeofday_two_arguments=yes
21429 else
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21432
21433 emacs_cv_gettimeofday_two_arguments=no
21434 fi
21435
21436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21437 fi
21438 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21439 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21440 if test $emacs_cv_gettimeofday_two_arguments = no; then
21441
21442 cat >>confdefs.h <<\_ACEOF
21443 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21444 _ACEOF
21445
21446 fi
21447 fi
21448 fi
21449
21450 ok_so_far=yes
21451 { echo "$as_me:$LINENO: checking for socket" >&5
21452 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21453 if test "${ac_cv_func_socket+set}" = set; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 else
21456 cat >conftest.$ac_ext <<_ACEOF
21457 /* confdefs.h. */
21458 _ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h. */
21462 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21464 #define socket innocuous_socket
21465
21466 /* System header to define __stub macros and hopefully few prototypes,
21467 which can conflict with char socket (); below.
21468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21469 <limits.h> exists even on freestanding compilers. */
21470
21471 #ifdef __STDC__
21472 # include <limits.h>
21473 #else
21474 # include <assert.h>
21475 #endif
21476
21477 #undef socket
21478
21479 /* Override any GCC internal prototype to avoid an error.
21480 Use char because int might match the return type of a GCC
21481 builtin and then its argument prototype would still apply. */
21482 #ifdef __cplusplus
21483 extern "C"
21484 #endif
21485 char socket ();
21486 /* The GNU C library defines this for functions which it implements
21487 to always fail with ENOSYS. Some functions are actually named
21488 something starting with __ and the normal name is an alias. */
21489 #if defined __stub_socket || defined __stub___socket
21490 choke me
21491 #endif
21492
21493 int
21494 main ()
21495 {
21496 return socket ();
21497 ;
21498 return 0;
21499 }
21500 _ACEOF
21501 rm -f conftest.$ac_objext conftest$ac_exeext
21502 if { (ac_try="$ac_link"
21503 case "(($ac_try" in
21504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505 *) ac_try_echo=$ac_try;;
21506 esac
21507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21508 (eval "$ac_link") 2>conftest.er1
21509 ac_status=$?
21510 grep -v '^ *+' conftest.er1 >conftest.err
21511 rm -f conftest.er1
21512 cat conftest.err >&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); } && {
21515 test -z "$ac_c_werror_flag" ||
21516 test ! -s conftest.err
21517 } && test -s conftest$ac_exeext &&
21518 $as_test_x conftest$ac_exeext; then
21519 ac_cv_func_socket=yes
21520 else
21521 echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21523
21524 ac_cv_func_socket=no
21525 fi
21526
21527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21528 conftest$ac_exeext conftest.$ac_ext
21529 fi
21530 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21531 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21532 if test $ac_cv_func_socket = yes; then
21533 :
21534 else
21535 ok_so_far=no
21536 fi
21537
21538 if test $ok_so_far = yes; then
21539 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21540 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21541 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21542 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21543 echo $ECHO_N "(cached) $ECHO_C" >&6
21544 fi
21545 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21546 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21547 else
21548 # Is the header compilable?
21549 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21550 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21551 cat >conftest.$ac_ext <<_ACEOF
21552 /* confdefs.h. */
21553 _ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21557 $ac_includes_default
21558 #include <netinet/in.h>
21559 _ACEOF
21560 rm -f conftest.$ac_objext
21561 if { (ac_try="$ac_compile"
21562 case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_compile") 2>conftest.er1
21568 ac_status=$?
21569 grep -v '^ *+' conftest.er1 >conftest.err
21570 rm -f conftest.er1
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } && {
21574 test -z "$ac_c_werror_flag" ||
21575 test ! -s conftest.err
21576 } && test -s conftest.$ac_objext; then
21577 ac_header_compiler=yes
21578 else
21579 echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21581
21582 ac_header_compiler=no
21583 fi
21584
21585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21587 echo "${ECHO_T}$ac_header_compiler" >&6; }
21588
21589 # Is the header present?
21590 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21591 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21592 cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h. */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 #include <netinet/in.h>
21599 _ACEOF
21600 if { (ac_try="$ac_cpp conftest.$ac_ext"
21601 case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21607 ac_status=$?
21608 grep -v '^ *+' conftest.er1 >conftest.err
21609 rm -f conftest.er1
21610 cat conftest.err >&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } >/dev/null && {
21613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21614 test ! -s conftest.err
21615 }; then
21616 ac_header_preproc=yes
21617 else
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621 ac_header_preproc=no
21622 fi
21623
21624 rm -f conftest.err conftest.$ac_ext
21625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21626 echo "${ECHO_T}$ac_header_preproc" >&6; }
21627
21628 # So? What about this header?
21629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21630 yes:no: )
21631 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21632 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21634 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21635 ac_header_preproc=yes
21636 ;;
21637 no:yes:* )
21638 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21639 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21641 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21642 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21643 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21645 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21646 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21647 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21648 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21649 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21650
21651 ;;
21652 esac
21653 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21654 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21655 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21657 else
21658 ac_cv_header_netinet_in_h=$ac_header_preproc
21659 fi
21660 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21661 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21662
21663 fi
21664 if test $ac_cv_header_netinet_in_h = yes; then
21665 :
21666 else
21667 ok_so_far=no
21668 fi
21669
21670
21671 fi
21672 if test $ok_so_far = yes; then
21673 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21674 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21675 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21676 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 fi
21679 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21680 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21681 else
21682 # Is the header compilable?
21683 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21684 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21685 cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h. */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 $ac_includes_default
21692 #include <arpa/inet.h>
21693 _ACEOF
21694 rm -f conftest.$ac_objext
21695 if { (ac_try="$ac_compile"
21696 case "(($ac_try" in
21697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698 *) ac_try_echo=$ac_try;;
21699 esac
21700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21701 (eval "$ac_compile") 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest.$ac_objext; then
21711 ac_header_compiler=yes
21712 else
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21715
21716 ac_header_compiler=no
21717 fi
21718
21719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21721 echo "${ECHO_T}$ac_header_compiler" >&6; }
21722
21723 # Is the header present?
21724 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21725 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21726 cat >conftest.$ac_ext <<_ACEOF
21727 /* confdefs.h. */
21728 _ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 #include <arpa/inet.h>
21733 _ACEOF
21734 if { (ac_try="$ac_cpp conftest.$ac_ext"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21738 esac
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21741 ac_status=$?
21742 grep -v '^ *+' conftest.er1 >conftest.err
21743 rm -f conftest.er1
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } >/dev/null && {
21747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 }; then
21750 ac_header_preproc=yes
21751 else
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755 ac_header_preproc=no
21756 fi
21757
21758 rm -f conftest.err conftest.$ac_ext
21759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21760 echo "${ECHO_T}$ac_header_preproc" >&6; }
21761
21762 # So? What about this header?
21763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21764 yes:no: )
21765 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21766 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21768 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21769 ac_header_preproc=yes
21770 ;;
21771 no:yes:* )
21772 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21773 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21774 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21775 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21776 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21777 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21778 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21779 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21780 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21781 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21782 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21783 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21784
21785 ;;
21786 esac
21787 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21788 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21789 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21791 else
21792 ac_cv_header_arpa_inet_h=$ac_header_preproc
21793 fi
21794 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21795 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21796
21797 fi
21798 if test $ac_cv_header_arpa_inet_h = yes; then
21799 :
21800 else
21801 ok_so_far=no
21802 fi
21803
21804
21805 fi
21806 if test $ok_so_far = yes; then
21807
21808 cat >>confdefs.h <<\_ACEOF
21809 #define HAVE_INET_SOCKETS 1
21810 _ACEOF
21811
21812 fi
21813
21814
21815 for ac_header in sys/ioctl.h
21816 do
21817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21823 fi
21824 ac_res=`eval echo '${'$as_ac_Header'}'`
21825 { echo "$as_me:$LINENO: result: $ac_res" >&5
21826 echo "${ECHO_T}$ac_res" >&6; }
21827 else
21828 # Is the header compilable?
21829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21831 cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h. */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837 $ac_includes_default
21838 #include <$ac_header>
21839 _ACEOF
21840 rm -f conftest.$ac_objext
21841 if { (ac_try="$ac_compile"
21842 case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21845 esac
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_compile") 2>conftest.er1
21848 ac_status=$?
21849 grep -v '^ *+' conftest.er1 >conftest.err
21850 rm -f conftest.er1
21851 cat conftest.err >&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } && {
21854 test -z "$ac_c_werror_flag" ||
21855 test ! -s conftest.err
21856 } && test -s conftest.$ac_objext; then
21857 ac_header_compiler=yes
21858 else
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862 ac_header_compiler=no
21863 fi
21864
21865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21867 echo "${ECHO_T}$ac_header_compiler" >&6; }
21868
21869 # Is the header present?
21870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21872 cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h. */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21878 #include <$ac_header>
21879 _ACEOF
21880 if { (ac_try="$ac_cpp conftest.$ac_ext"
21881 case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21884 esac
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21887 ac_status=$?
21888 grep -v '^ *+' conftest.er1 >conftest.err
21889 rm -f conftest.er1
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } >/dev/null && {
21893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21895 }; then
21896 ac_header_preproc=yes
21897 else
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901 ac_header_preproc=no
21902 fi
21903
21904 rm -f conftest.err conftest.$ac_ext
21905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21906 echo "${ECHO_T}$ac_header_preproc" >&6; }
21907
21908 # So? What about this header?
21909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21910 yes:no: )
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21915 ac_header_preproc=yes
21916 ;;
21917 no:yes:* )
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21930
21931 ;;
21932 esac
21933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21937 else
21938 eval "$as_ac_Header=\$ac_header_preproc"
21939 fi
21940 ac_res=`eval echo '${'$as_ac_Header'}'`
21941 { echo "$as_me:$LINENO: result: $ac_res" >&5
21942 echo "${ECHO_T}$ac_res" >&6; }
21943
21944 fi
21945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21946 cat >>confdefs.h <<_ACEOF
21947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21948 _ACEOF
21949
21950 fi
21951
21952 done
21953
21954
21955 if test -f /usr/lpp/X11/bin/smt.exp; then
21956
21957 cat >>confdefs.h <<\_ACEOF
21958 #define HAVE_AIX_SMT_EXP 1
21959 _ACEOF
21960
21961 fi
21962
21963 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21964 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
21965 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21966 { echo "$as_me:$LINENO: result: yes" >&5
21967 echo "${ECHO_T}yes" >&6; }
21968
21969 cat >>confdefs.h <<\_ACEOF
21970 #define HAVE_DEV_PTMX 1
21971 _ACEOF
21972
21973 else
21974 { echo "$as_me:$LINENO: result: no" >&5
21975 echo "${ECHO_T}no" >&6; }
21976 fi
21977
21978 { echo "$as_me:$LINENO: checking for pid_t" >&5
21979 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21980 if test "${ac_cv_type_pid_t+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 else
21983 cat >conftest.$ac_ext <<_ACEOF
21984 /* confdefs.h. */
21985 _ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21989 $ac_includes_default
21990 typedef pid_t ac__type_new_;
21991 int
21992 main ()
21993 {
21994 if ((ac__type_new_ *) 0)
21995 return 0;
21996 if (sizeof (ac__type_new_))
21997 return 0;
21998 ;
21999 return 0;
22000 }
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_compile") 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && {
22016 test -z "$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22018 } && test -s conftest.$ac_objext; then
22019 ac_cv_type_pid_t=yes
22020 else
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22023
22024 ac_cv_type_pid_t=no
22025 fi
22026
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 fi
22029 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22030 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22031 if test $ac_cv_type_pid_t = yes; then
22032 :
22033 else
22034
22035 cat >>confdefs.h <<_ACEOF
22036 #define pid_t int
22037 _ACEOF
22038
22039 fi
22040
22041
22042 for ac_header in vfork.h
22043 do
22044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 fi
22051 ac_res=`eval echo '${'$as_ac_Header'}'`
22052 { echo "$as_me:$LINENO: result: $ac_res" >&5
22053 echo "${ECHO_T}$ac_res" >&6; }
22054 else
22055 # Is the header compilable?
22056 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22058 cat >conftest.$ac_ext <<_ACEOF
22059 /* confdefs.h. */
22060 _ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22064 $ac_includes_default
22065 #include <$ac_header>
22066 _ACEOF
22067 rm -f conftest.$ac_objext
22068 if { (ac_try="$ac_compile"
22069 case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22072 esac
22073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22074 (eval "$ac_compile") 2>conftest.er1
22075 ac_status=$?
22076 grep -v '^ *+' conftest.er1 >conftest.err
22077 rm -f conftest.er1
22078 cat conftest.err >&5
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); } && {
22081 test -z "$ac_c_werror_flag" ||
22082 test ! -s conftest.err
22083 } && test -s conftest.$ac_objext; then
22084 ac_header_compiler=yes
22085 else
22086 echo "$as_me: failed program was:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22088
22089 ac_header_compiler=no
22090 fi
22091
22092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22094 echo "${ECHO_T}$ac_header_compiler" >&6; }
22095
22096 # Is the header present?
22097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22099 cat >conftest.$ac_ext <<_ACEOF
22100 /* confdefs.h. */
22101 _ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22105 #include <$ac_header>
22106 _ACEOF
22107 if { (ac_try="$ac_cpp conftest.$ac_ext"
22108 case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22111 esac
22112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22114 ac_status=$?
22115 grep -v '^ *+' conftest.er1 >conftest.err
22116 rm -f conftest.er1
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } >/dev/null && {
22120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22122 }; then
22123 ac_header_preproc=yes
22124 else
22125 echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22127
22128 ac_header_preproc=no
22129 fi
22130
22131 rm -f conftest.err conftest.$ac_ext
22132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22133 echo "${ECHO_T}$ac_header_preproc" >&6; }
22134
22135 # So? What about this header?
22136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22137 yes:no: )
22138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22142 ac_header_preproc=yes
22143 ;;
22144 no:yes:* )
22145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22157
22158 ;;
22159 esac
22160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
22164 else
22165 eval "$as_ac_Header=\$ac_header_preproc"
22166 fi
22167 ac_res=`eval echo '${'$as_ac_Header'}'`
22168 { echo "$as_me:$LINENO: result: $ac_res" >&5
22169 echo "${ECHO_T}$ac_res" >&6; }
22170
22171 fi
22172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22173 cat >>confdefs.h <<_ACEOF
22174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22175 _ACEOF
22176
22177 fi
22178
22179 done
22180
22181
22182
22183 for ac_func in fork vfork
22184 do
22185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 else
22191 cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h. */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22199 #define $ac_func innocuous_$ac_func
22200
22201 /* System header to define __stub macros and hopefully few prototypes,
22202 which can conflict with char $ac_func (); below.
22203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22204 <limits.h> exists even on freestanding compilers. */
22205
22206 #ifdef __STDC__
22207 # include <limits.h>
22208 #else
22209 # include <assert.h>
22210 #endif
22211
22212 #undef $ac_func
22213
22214 /* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22217 #ifdef __cplusplus
22218 extern "C"
22219 #endif
22220 char $ac_func ();
22221 /* The GNU C library defines this for functions which it implements
22222 to always fail with ENOSYS. Some functions are actually named
22223 something starting with __ and the normal name is an alias. */
22224 #if defined __stub_$ac_func || defined __stub___$ac_func
22225 choke me
22226 #endif
22227
22228 int
22229 main ()
22230 {
22231 return $ac_func ();
22232 ;
22233 return 0;
22234 }
22235 _ACEOF
22236 rm -f conftest.$ac_objext conftest$ac_exeext
22237 if { (ac_try="$ac_link"
22238 case "(($ac_try" in
22239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240 *) ac_try_echo=$ac_try;;
22241 esac
22242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243 (eval "$ac_link") 2>conftest.er1
22244 ac_status=$?
22245 grep -v '^ *+' conftest.er1 >conftest.err
22246 rm -f conftest.er1
22247 cat conftest.err >&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } && {
22250 test -z "$ac_c_werror_flag" ||
22251 test ! -s conftest.err
22252 } && test -s conftest$ac_exeext &&
22253 $as_test_x conftest$ac_exeext; then
22254 eval "$as_ac_var=yes"
22255 else
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259 eval "$as_ac_var=no"
22260 fi
22261
22262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22263 conftest$ac_exeext conftest.$ac_ext
22264 fi
22265 ac_res=`eval echo '${'$as_ac_var'}'`
22266 { echo "$as_me:$LINENO: result: $ac_res" >&5
22267 echo "${ECHO_T}$ac_res" >&6; }
22268 if test `eval echo '${'$as_ac_var'}'` = yes; then
22269 cat >>confdefs.h <<_ACEOF
22270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22271 _ACEOF
22272
22273 fi
22274 done
22275
22276 if test "x$ac_cv_func_fork" = xyes; then
22277 { echo "$as_me:$LINENO: checking for working fork" >&5
22278 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22279 if test "${ac_cv_func_fork_works+set}" = set; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22281 else
22282 if test "$cross_compiling" = yes; then
22283 ac_cv_func_fork_works=cross
22284 else
22285 cat >conftest.$ac_ext <<_ACEOF
22286 /* confdefs.h. */
22287 _ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22291 $ac_includes_default
22292 int
22293 main ()
22294 {
22295
22296 /* By Ruediger Kuhlmann. */
22297 return fork () < 0;
22298
22299 ;
22300 return 0;
22301 }
22302 _ACEOF
22303 rm -f conftest$ac_exeext
22304 if { (ac_try="$ac_link"
22305 case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22308 esac
22309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22310 (eval "$ac_link") 2>&5
22311 ac_status=$?
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22314 { (case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22317 esac
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_try") 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; }; then
22323 ac_cv_func_fork_works=yes
22324 else
22325 echo "$as_me: program exited with status $ac_status" >&5
22326 echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329 ( exit $ac_status )
22330 ac_cv_func_fork_works=no
22331 fi
22332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22333 fi
22334
22335
22336 fi
22337 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22338 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22339
22340 else
22341 ac_cv_func_fork_works=$ac_cv_func_fork
22342 fi
22343 if test "x$ac_cv_func_fork_works" = xcross; then
22344 case $host in
22345 *-*-amigaos* | *-*-msdosdjgpp*)
22346 # Override, as these systems have only a dummy fork() stub
22347 ac_cv_func_fork_works=no
22348 ;;
22349 *)
22350 ac_cv_func_fork_works=yes
22351 ;;
22352 esac
22353 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22354 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22355 fi
22356 ac_cv_func_vfork_works=$ac_cv_func_vfork
22357 if test "x$ac_cv_func_vfork" = xyes; then
22358 { echo "$as_me:$LINENO: checking for working vfork" >&5
22359 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22360 if test "${ac_cv_func_vfork_works+set}" = set; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22362 else
22363 if test "$cross_compiling" = yes; then
22364 ac_cv_func_vfork_works=cross
22365 else
22366 cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h. */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 /* Thanks to Paul Eggert for this test. */
22373 $ac_includes_default
22374 #include <sys/wait.h>
22375 #ifdef HAVE_VFORK_H
22376 # include <vfork.h>
22377 #endif
22378 /* On some sparc systems, changes by the child to local and incoming
22379 argument registers are propagated back to the parent. The compiler
22380 is told about this with #include <vfork.h>, but some compilers
22381 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22382 static variable whose address is put into a register that is
22383 clobbered by the vfork. */
22384 static void
22385 #ifdef __cplusplus
22386 sparc_address_test (int arg)
22387 # else
22388 sparc_address_test (arg) int arg;
22389 #endif
22390 {
22391 static pid_t child;
22392 if (!child) {
22393 child = vfork ();
22394 if (child < 0) {
22395 perror ("vfork");
22396 _exit(2);
22397 }
22398 if (!child) {
22399 arg = getpid();
22400 write(-1, "", 0);
22401 _exit (arg);
22402 }
22403 }
22404 }
22405
22406 int
22407 main ()
22408 {
22409 pid_t parent = getpid ();
22410 pid_t child;
22411
22412 sparc_address_test (0);
22413
22414 child = vfork ();
22415
22416 if (child == 0) {
22417 /* Here is another test for sparc vfork register problems. This
22418 test uses lots of local variables, at least as many local
22419 variables as main has allocated so far including compiler
22420 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22421 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22422 reuse the register of parent for one of the local variables,
22423 since it will think that parent can't possibly be used any more
22424 in this routine. Assigning to the local variable will thus
22425 munge parent in the parent process. */
22426 pid_t
22427 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22428 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22429 /* Convince the compiler that p..p7 are live; otherwise, it might
22430 use the same hardware register for all 8 local variables. */
22431 if (p != p1 || p != p2 || p != p3 || p != p4
22432 || p != p5 || p != p6 || p != p7)
22433 _exit(1);
22434
22435 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22436 from child file descriptors. If the child closes a descriptor
22437 before it execs or exits, this munges the parent's descriptor
22438 as well. Test for this by closing stdout in the child. */
22439 _exit(close(fileno(stdout)) != 0);
22440 } else {
22441 int status;
22442 struct stat st;
22443
22444 while (wait(&status) != child)
22445 ;
22446 return (
22447 /* Was there some problem with vforking? */
22448 child < 0
22449
22450 /* Did the child fail? (This shouldn't happen.) */
22451 || status
22452
22453 /* Did the vfork/compiler bug occur? */
22454 || parent != getpid()
22455
22456 /* Did the file descriptor bug occur? */
22457 || fstat(fileno(stdout), &st) != 0
22458 );
22459 }
22460 }
22461 _ACEOF
22462 rm -f conftest$ac_exeext
22463 if { (ac_try="$ac_link"
22464 case "(($ac_try" in
22465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466 *) ac_try_echo=$ac_try;;
22467 esac
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469 (eval "$ac_link") 2>&5
22470 ac_status=$?
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22473 { (case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_try") 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 ac_cv_func_vfork_works=yes
22483 else
22484 echo "$as_me: program exited with status $ac_status" >&5
22485 echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22487
22488 ( exit $ac_status )
22489 ac_cv_func_vfork_works=no
22490 fi
22491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22492 fi
22493
22494
22495 fi
22496 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22497 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22498
22499 fi;
22500 if test "x$ac_cv_func_fork_works" = xcross; then
22501 ac_cv_func_vfork_works=$ac_cv_func_vfork
22502 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22503 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22504 fi
22505
22506 if test "x$ac_cv_func_vfork_works" = xyes; then
22507
22508 cat >>confdefs.h <<\_ACEOF
22509 #define HAVE_WORKING_VFORK 1
22510 _ACEOF
22511
22512 else
22513
22514 cat >>confdefs.h <<\_ACEOF
22515 #define vfork fork
22516 _ACEOF
22517
22518 fi
22519 if test "x$ac_cv_func_fork_works" = xyes; then
22520
22521 cat >>confdefs.h <<\_ACEOF
22522 #define HAVE_WORKING_FORK 1
22523 _ACEOF
22524
22525 fi
22526
22527
22528 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22529 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22530 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533 cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h. */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 #include <langinfo.h>
22540 int
22541 main ()
22542 {
22543 char* cs = nl_langinfo(CODESET);
22544 ;
22545 return 0;
22546 }
22547 _ACEOF
22548 rm -f conftest.$ac_objext conftest$ac_exeext
22549 if { (ac_try="$ac_link"
22550 case "(($ac_try" in
22551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22552 *) ac_try_echo=$ac_try;;
22553 esac
22554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22555 (eval "$ac_link") 2>conftest.er1
22556 ac_status=$?
22557 grep -v '^ *+' conftest.er1 >conftest.err
22558 rm -f conftest.er1
22559 cat conftest.err >&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } && {
22562 test -z "$ac_c_werror_flag" ||
22563 test ! -s conftest.err
22564 } && test -s conftest$ac_exeext &&
22565 $as_test_x conftest$ac_exeext; then
22566 emacs_cv_langinfo_codeset=yes
22567 else
22568 echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22570
22571 emacs_cv_langinfo_codeset=no
22572 fi
22573
22574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22575 conftest$ac_exeext conftest.$ac_ext
22576
22577 fi
22578 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22579 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22580 if test $emacs_cv_langinfo_codeset = yes; then
22581
22582 cat >>confdefs.h <<\_ACEOF
22583 #define HAVE_LANGINFO_CODESET 1
22584 _ACEOF
22585
22586 fi
22587
22588 { echo "$as_me:$LINENO: checking for size_t" >&5
22589 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22590 if test "${ac_cv_type_size_t+set}" = set; then
22591 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 else
22593 cat >conftest.$ac_ext <<_ACEOF
22594 /* confdefs.h. */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h. */
22599 $ac_includes_default
22600 typedef size_t ac__type_new_;
22601 int
22602 main ()
22603 {
22604 if ((ac__type_new_ *) 0)
22605 return 0;
22606 if (sizeof (ac__type_new_))
22607 return 0;
22608 ;
22609 return 0;
22610 }
22611 _ACEOF
22612 rm -f conftest.$ac_objext
22613 if { (ac_try="$ac_compile"
22614 case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22617 esac
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_compile") 2>conftest.er1
22620 ac_status=$?
22621 grep -v '^ *+' conftest.er1 >conftest.err
22622 rm -f conftest.er1
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } && {
22626 test -z "$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22628 } && test -s conftest.$ac_objext; then
22629 ac_cv_type_size_t=yes
22630 else
22631 echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22633
22634 ac_cv_type_size_t=no
22635 fi
22636
22637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22638 fi
22639 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22640 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22641 if test $ac_cv_type_size_t = yes; then
22642
22643 cat >>confdefs.h <<_ACEOF
22644 #define HAVE_SIZE_T 1
22645 _ACEOF
22646
22647
22648 fi
22649
22650
22651 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22652 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22653 if test "${ac_cv_type_mbstate_t+set}" = set; then
22654 echo $ECHO_N "(cached) $ECHO_C" >&6
22655 else
22656 cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h. */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22662 $ac_includes_default
22663 # include <wchar.h>
22664 int
22665 main ()
22666 {
22667 mbstate_t x; return sizeof x;
22668 ;
22669 return 0;
22670 }
22671 _ACEOF
22672 rm -f conftest.$ac_objext
22673 if { (ac_try="$ac_compile"
22674 case "(($ac_try" in
22675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676 *) ac_try_echo=$ac_try;;
22677 esac
22678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22679 (eval "$ac_compile") 2>conftest.er1
22680 ac_status=$?
22681 grep -v '^ *+' conftest.er1 >conftest.err
22682 rm -f conftest.er1
22683 cat conftest.err >&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } && {
22686 test -z "$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22688 } && test -s conftest.$ac_objext; then
22689 ac_cv_type_mbstate_t=yes
22690 else
22691 echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22693
22694 ac_cv_type_mbstate_t=no
22695 fi
22696
22697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22698 fi
22699 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22700 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22701 if test $ac_cv_type_mbstate_t = yes; then
22702
22703 cat >>confdefs.h <<\_ACEOF
22704 #define HAVE_MBSTATE_T 1
22705 _ACEOF
22706
22707 else
22708
22709 cat >>confdefs.h <<\_ACEOF
22710 #define mbstate_t int
22711 _ACEOF
22712
22713 fi
22714
22715 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22716 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22717 if test "${emacs_cv_c_restrict+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 else
22720 cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h. */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22726 void fred (int *restrict x);
22727 int
22728 main ()
22729 {
22730
22731 ;
22732 return 0;
22733 }
22734 _ACEOF
22735 rm -f conftest.$ac_objext
22736 if { (ac_try="$ac_compile"
22737 case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_compile") 2>conftest.er1
22743 ac_status=$?
22744 grep -v '^ *+' conftest.er1 >conftest.err
22745 rm -f conftest.er1
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } && {
22749 test -z "$ac_c_werror_flag" ||
22750 test ! -s conftest.err
22751 } && test -s conftest.$ac_objext; then
22752 emacs_cv_c_restrict=yes
22753 else
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22756
22757 cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h. */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 void fred (int *__restrict x);
22764 int
22765 main ()
22766 {
22767
22768 ;
22769 return 0;
22770 }
22771 _ACEOF
22772 rm -f conftest.$ac_objext
22773 if { (ac_try="$ac_compile"
22774 case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22777 esac
22778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779 (eval "$ac_compile") 2>conftest.er1
22780 ac_status=$?
22781 grep -v '^ *+' conftest.er1 >conftest.err
22782 rm -f conftest.er1
22783 cat conftest.err >&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); } && {
22786 test -z "$ac_c_werror_flag" ||
22787 test ! -s conftest.err
22788 } && test -s conftest.$ac_objext; then
22789 emacs_cv_c_restrict=__restrict
22790 else
22791 echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22793
22794 emacs_cv_c_restrict=no
22795 fi
22796
22797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22798 fi
22799
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22801 fi
22802 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22803 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22804 case "$emacs_cv_c_restrict" in
22805 yes) emacs_restrict=restrict;;
22806 no) emacs_restrict="";;
22807 *) emacs_restrict="$emacs_cv_c_restrict";;
22808 esac
22809 if test "$emacs_restrict" != __restrict; then
22810
22811 cat >>confdefs.h <<_ACEOF
22812 #define __restrict $emacs_restrict
22813 _ACEOF
22814
22815 fi
22816
22817 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22818 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22819 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22820 echo $ECHO_N "(cached) $ECHO_C" >&6
22821 else
22822 cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h. */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828 void fred (int x[__restrict]);
22829 int
22830 main ()
22831 {
22832
22833 ;
22834 return 0;
22835 }
22836 _ACEOF
22837 rm -f conftest.$ac_objext
22838 if { (ac_try="$ac_compile"
22839 case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22842 esac
22843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844 (eval "$ac_compile") 2>conftest.er1
22845 ac_status=$?
22846 grep -v '^ *+' conftest.er1 >conftest.err
22847 rm -f conftest.er1
22848 cat conftest.err >&5
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest.$ac_objext; then
22854 emacs_cv_c_restrict_arr=yes
22855 else
22856 echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22858
22859 emacs_cv_c_restrict_arr=no
22860 fi
22861
22862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22863 fi
22864 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22865 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22866 if test "$emacs_cv_c_restrict_arr" = yes; then
22867
22868 cat >>confdefs.h <<\_ACEOF
22869 #define __restrict_arr __restrict
22870 _ACEOF
22871
22872 fi
22873
22874
22875
22876 # Set up the CFLAGS for real compilation, so we can substitute it.
22877 CFLAGS="$REAL_CFLAGS"
22878 CPPFLAGS="$REAL_CPPFLAGS"
22879
22880 #### Find out which version of Emacs this is.
22881 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22882 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22883 if test x"${version}" = x; then
22884 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22885 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22886 { (exit 1); exit 1; }; }
22887 fi
22888
22889 ### Specify what sort of things we'll be editing into Makefile and config.h.
22890 ### Use configuration here uncanonicalized to avoid exceeding size limits.
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
22923
22924
22925
22926 cat >>confdefs.h <<_ACEOF
22927 #define EMACS_CONFIGURATION "${canonical}"
22928 _ACEOF
22929
22930
22931 cat >>confdefs.h <<_ACEOF
22932 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22933 _ACEOF
22934
22935
22936 cat >>confdefs.h <<_ACEOF
22937 #define config_machfile "${machfile}"
22938 _ACEOF
22939
22940
22941 cat >>confdefs.h <<_ACEOF
22942 #define config_opsysfile "${opsysfile}"
22943 _ACEOF
22944
22945
22946 cat >>confdefs.h <<_ACEOF
22947 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22948 _ACEOF
22949
22950
22951 cat >>confdefs.h <<_ACEOF
22952 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22953 _ACEOF
22954
22955
22956 cat >>confdefs.h <<_ACEOF
22957 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22958 _ACEOF
22959
22960
22961 cat >>confdefs.h <<_ACEOF
22962 #define UNEXEC_SRC ${UNEXEC_SRC}
22963 _ACEOF
22964
22965
22966 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22967
22968 cat >>confdefs.h <<\_ACEOF
22969 #define HAVE_X_WINDOWS 1
22970 _ACEOF
22971
22972 fi
22973 if test "${USE_X_TOOLKIT}" != "none" ; then
22974
22975 cat >>confdefs.h <<\_ACEOF
22976 #define USE_X_TOOLKIT 1
22977 _ACEOF
22978
22979 fi
22980 if test "${HAVE_X11}" = "yes" ; then
22981
22982 cat >>confdefs.h <<\_ACEOF
22983 #define HAVE_X11 1
22984 _ACEOF
22985
22986 fi
22987 if test "${HAVE_XFREE386}" = "yes" ; then
22988
22989 cat >>confdefs.h <<\_ACEOF
22990 #define HAVE_XFREE386 1
22991 _ACEOF
22992
22993 fi
22994 if test "${HAVE_MENUS}" = "yes" ; then
22995
22996 cat >>confdefs.h <<\_ACEOF
22997 #define HAVE_MENUS 1
22998 _ACEOF
22999
23000 fi
23001 if test "${GNU_MALLOC}" = "yes" ; then
23002
23003 cat >>confdefs.h <<\_ACEOF
23004 #define GNU_MALLOC 1
23005 _ACEOF
23006
23007 fi
23008 if test "${REL_ALLOC}" = "yes" ; then
23009
23010 cat >>confdefs.h <<\_ACEOF
23011 #define REL_ALLOC 1
23012 _ACEOF
23013
23014 fi
23015
23016
23017
23018
23019
23020 #### Report on what we decided to do.
23021 #### Report GTK as a toolkit, even if it doesn't use Xt.
23022 #### It makes printing result more understandable as using GTK sets
23023 #### toolkit_scroll_bars to yes by default.
23024 if test "${HAVE_GTK}" = "yes"; then
23025 USE_X_TOOLKIT=GTK
23026 fi
23027
23028 echo "
23029 Configured for \`${canonical}'.
23030
23031 Where should the build process find the source code? ${srcdir}
23032 What operating system and machine description files should Emacs use?
23033 \`${opsysfile}' and \`${machfile}'
23034 What compiler should emacs be built with? ${CC} ${CFLAGS}
23035 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23036 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23037 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23038 What window system should Emacs use? ${window_system}
23039 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23040
23041 if test -n "${x_includes}"; then
23042 echo " Where do we find X Windows header files? ${x_includes}"
23043 else
23044 echo " Where do we find X Windows header files? Standard dirs"
23045 fi
23046 if test -n "${x_libraries}"; then
23047 echo " Where do we find X Windows libraries? ${x_libraries}"
23048 else
23049 echo " Where do we find X Windows libraries? Standard dirs"
23050 fi
23051
23052 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23053 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23054 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23055 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23056 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23057 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23058 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23059 echo
23060
23061 if test $USE_XASSERTS = yes; then
23062 echo " Compiling with asserts turned on."
23063 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23064 echo
23065 fi
23066
23067 if test "$USE_X_TOOLKIT" = GTK; then
23068 case "$canonical" in
23069 *cygwin*)
23070 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23071 will probably get a crash on startup. If this happens, please use another
23072 toolkit for Emacs. See etc/PROBLEMS for more information."
23073 ;;
23074 esac
23075 fi
23076
23077
23078
23079 # Remove any trailing slashes in these variables.
23080 test "${prefix}" != NONE &&
23081 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23082 test "${exec_prefix}" != NONE &&
23083 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23084
23085 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23086 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23087 ## from Makefile.c can correctly provide the arg `-traditional' to the
23088 ## C preprocessor.
23089
23090 cat >conftest.$ac_ext <<_ACEOF
23091 /* confdefs.h. */
23092 _ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 yes..yes
23097 _ACEOF
23098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23099 $EGREP "yes..yes" >/dev/null 2>&1; then
23100 CPP_NEED_TRADITIONAL=no
23101 else
23102 CPP_NEED_TRADITIONAL=yes
23103 fi
23104 rm -f conftest*
23105
23106
23107 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"
23108
23109 ac_config_commands="$ac_config_commands default"
23110
23111 cat >confcache <<\_ACEOF
23112 # This file is a shell script that caches the results of configure
23113 # tests run on this system so they can be shared between configure
23114 # scripts and configure runs, see configure's option --config-cache.
23115 # It is not useful on other systems. If it contains results you don't
23116 # want to keep, you may remove or edit it.
23117 #
23118 # config.status only pays attention to the cache file if you give it
23119 # the --recheck option to rerun configure.
23120 #
23121 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23122 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23123 # following values.
23124
23125 _ACEOF
23126
23127 # The following way of writing the cache mishandles newlines in values,
23128 # but we know of no workaround that is simple, portable, and efficient.
23129 # So, we kill variables containing newlines.
23130 # Ultrix sh set writes to stderr and can't be redirected directly,
23131 # and sets the high bit in the cache file unless we assign to the vars.
23132 (
23133 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23134 eval ac_val=\$$ac_var
23135 case $ac_val in #(
23136 *${as_nl}*)
23137 case $ac_var in #(
23138 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23139 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23140 esac
23141 case $ac_var in #(
23142 _ | IFS | as_nl) ;; #(
23143 *) $as_unset $ac_var ;;
23144 esac ;;
23145 esac
23146 done
23147
23148 (set) 2>&1 |
23149 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23150 *${as_nl}ac_space=\ *)
23151 # `set' does not quote correctly, so add quotes (double-quote
23152 # substitution turns \\\\ into \\, and sed turns \\ into \).
23153 sed -n \
23154 "s/'/'\\\\''/g;
23155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23156 ;; #(
23157 *)
23158 # `set' quotes correctly as required by POSIX, so do not add quotes.
23159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23160 ;;
23161 esac |
23162 sort
23163 ) |
23164 sed '
23165 /^ac_cv_env_/b end
23166 t clear
23167 :clear
23168 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23169 t end
23170 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23171 :end' >>confcache
23172 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23173 if test -w "$cache_file"; then
23174 test "x$cache_file" != "x/dev/null" &&
23175 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23176 echo "$as_me: updating cache $cache_file" >&6;}
23177 cat confcache >$cache_file
23178 else
23179 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23180 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23181 fi
23182 fi
23183 rm -f confcache
23184
23185 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23186 # Let make expand exec_prefix.
23187 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23188
23189 DEFS=-DHAVE_CONFIG_H
23190
23191 ac_libobjs=
23192 ac_ltlibobjs=
23193 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23194 # 1. Remove the extension, and $U if already installed.
23195 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23196 ac_i=`echo "$ac_i" | sed "$ac_script"`
23197 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23198 # will be set to the directory where LIBOBJS objects are built.
23199 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23200 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23201 done
23202 LIBOBJS=$ac_libobjs
23203
23204 LTLIBOBJS=$ac_ltlibobjs
23205
23206
23207
23208 : ${CONFIG_STATUS=./config.status}
23209 ac_clean_files_save=$ac_clean_files
23210 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23211 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23212 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23213 cat >$CONFIG_STATUS <<_ACEOF
23214 #! $SHELL
23215 # Generated by $as_me.
23216 # Run this file to recreate the current configuration.
23217 # Compiler output produced by configure, useful for debugging
23218 # configure, is in config.log if it exists.
23219
23220 debug=false
23221 ac_cs_recheck=false
23222 ac_cs_silent=false
23223 SHELL=\${CONFIG_SHELL-$SHELL}
23224 _ACEOF
23225
23226 cat >>$CONFIG_STATUS <<\_ACEOF
23227 ## --------------------- ##
23228 ## M4sh Initialization. ##
23229 ## --------------------- ##
23230
23231 # Be more Bourne compatible
23232 DUALCASE=1; export DUALCASE # for MKS sh
23233 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23234 emulate sh
23235 NULLCMD=:
23236 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23237 # is contrary to our usage. Disable this feature.
23238 alias -g '${1+"$@"}'='"$@"'
23239 setopt NO_GLOB_SUBST
23240 else
23241 case `(set -o) 2>/dev/null` in
23242 *posix*) set -o posix ;;
23243 esac
23244
23245 fi
23246
23247
23248
23249
23250 # PATH needs CR
23251 # Avoid depending upon Character Ranges.
23252 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23253 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23254 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23255 as_cr_digits='0123456789'
23256 as_cr_alnum=$as_cr_Letters$as_cr_digits
23257
23258 # The user is always right.
23259 if test "${PATH_SEPARATOR+set}" != set; then
23260 echo "#! /bin/sh" >conf$$.sh
23261 echo "exit 0" >>conf$$.sh
23262 chmod +x conf$$.sh
23263 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23264 PATH_SEPARATOR=';'
23265 else
23266 PATH_SEPARATOR=:
23267 fi
23268 rm -f conf$$.sh
23269 fi
23270
23271 # Support unset when possible.
23272 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23273 as_unset=unset
23274 else
23275 as_unset=false
23276 fi
23277
23278
23279 # IFS
23280 # We need space, tab and new line, in precisely that order. Quoting is
23281 # there to prevent editors from complaining about space-tab.
23282 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23283 # splitting by setting IFS to empty value.)
23284 as_nl='
23285 '
23286 IFS=" "" $as_nl"
23287
23288 # Find who we are. Look in the path if we contain no directory separator.
23289 case $0 in
23290 *[\\/]* ) as_myself=$0 ;;
23291 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23292 for as_dir in $PATH
23293 do
23294 IFS=$as_save_IFS
23295 test -z "$as_dir" && as_dir=.
23296 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23297 done
23298 IFS=$as_save_IFS
23299
23300 ;;
23301 esac
23302 # We did not find ourselves, most probably we were run as `sh COMMAND'
23303 # in which case we are not to be found in the path.
23304 if test "x$as_myself" = x; then
23305 as_myself=$0
23306 fi
23307 if test ! -f "$as_myself"; then
23308 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23309 { (exit 1); exit 1; }
23310 fi
23311
23312 # Work around bugs in pre-3.0 UWIN ksh.
23313 for as_var in ENV MAIL MAILPATH
23314 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23315 done
23316 PS1='$ '
23317 PS2='> '
23318 PS4='+ '
23319
23320 # NLS nuisances.
23321 for as_var in \
23322 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23323 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23324 LC_TELEPHONE LC_TIME
23325 do
23326 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23327 eval $as_var=C; export $as_var
23328 else
23329 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23330 fi
23331 done
23332
23333 # Required to use basename.
23334 if expr a : '\(a\)' >/dev/null 2>&1 &&
23335 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23336 as_expr=expr
23337 else
23338 as_expr=false
23339 fi
23340
23341 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23342 as_basename=basename
23343 else
23344 as_basename=false
23345 fi
23346
23347
23348 # Name of the executable.
23349 as_me=`$as_basename -- "$0" ||
23350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23351 X"$0" : 'X\(//\)$' \| \
23352 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23353 echo X/"$0" |
23354 sed '/^.*\/\([^/][^/]*\)\/*$/{
23355 s//\1/
23356 q
23357 }
23358 /^X\/\(\/\/\)$/{
23359 s//\1/
23360 q
23361 }
23362 /^X\/\(\/\).*/{
23363 s//\1/
23364 q
23365 }
23366 s/.*/./; q'`
23367
23368 # CDPATH.
23369 $as_unset CDPATH
23370
23371
23372
23373 as_lineno_1=$LINENO
23374 as_lineno_2=$LINENO
23375 test "x$as_lineno_1" != "x$as_lineno_2" &&
23376 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23377
23378 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23379 # uniformly replaced by the line number. The first 'sed' inserts a
23380 # line-number line after each line using $LINENO; the second 'sed'
23381 # does the real work. The second script uses 'N' to pair each
23382 # line-number line with the line containing $LINENO, and appends
23383 # trailing '-' during substitution so that $LINENO is not a special
23384 # case at line end.
23385 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23386 # scripts with optimization help from Paolo Bonzini. Blame Lee
23387 # E. McMahon (1931-1989) for sed's syntax. :-)
23388 sed -n '
23389 p
23390 /[$]LINENO/=
23391 ' <$as_myself |
23392 sed '
23393 s/[$]LINENO.*/&-/
23394 t lineno
23395 b
23396 :lineno
23397 N
23398 :loop
23399 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23400 t loop
23401 s/-\n.*//
23402 ' >$as_me.lineno &&
23403 chmod +x "$as_me.lineno" ||
23404 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23405 { (exit 1); exit 1; }; }
23406
23407 # Don't try to exec as it changes $[0], causing all sort of problems
23408 # (the dirname of $[0] is not the place where we might find the
23409 # original and so on. Autoconf is especially sensitive to this).
23410 . "./$as_me.lineno"
23411 # Exit status is that of the last command.
23412 exit
23413 }
23414
23415
23416 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23417 as_dirname=dirname
23418 else
23419 as_dirname=false
23420 fi
23421
23422 ECHO_C= ECHO_N= ECHO_T=
23423 case `echo -n x` in
23424 -n*)
23425 case `echo 'x\c'` in
23426 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23427 *) ECHO_C='\c';;
23428 esac;;
23429 *)
23430 ECHO_N='-n';;
23431 esac
23432
23433 if expr a : '\(a\)' >/dev/null 2>&1 &&
23434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23435 as_expr=expr
23436 else
23437 as_expr=false
23438 fi
23439
23440 rm -f conf$$ conf$$.exe conf$$.file
23441 if test -d conf$$.dir; then
23442 rm -f conf$$.dir/conf$$.file
23443 else
23444 rm -f conf$$.dir
23445 mkdir conf$$.dir
23446 fi
23447 echo >conf$$.file
23448 if ln -s conf$$.file conf$$ 2>/dev/null; then
23449 as_ln_s='ln -s'
23450 # ... but there are two gotchas:
23451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23453 # In both cases, we have to default to `cp -p'.
23454 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23455 as_ln_s='cp -p'
23456 elif ln conf$$.file conf$$ 2>/dev/null; then
23457 as_ln_s=ln
23458 else
23459 as_ln_s='cp -p'
23460 fi
23461 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23462 rmdir conf$$.dir 2>/dev/null
23463
23464 if mkdir -p . 2>/dev/null; then
23465 as_mkdir_p=:
23466 else
23467 test -d ./-p && rmdir ./-p
23468 as_mkdir_p=false
23469 fi
23470
23471 if test -x / >/dev/null 2>&1; then
23472 as_test_x='test -x'
23473 else
23474 if ls -dL / >/dev/null 2>&1; then
23475 as_ls_L_option=L
23476 else
23477 as_ls_L_option=
23478 fi
23479 as_test_x='
23480 eval sh -c '\''
23481 if test -d "$1"; then
23482 test -d "$1/.";
23483 else
23484 case $1 in
23485 -*)set "./$1";;
23486 esac;
23487 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23488 ???[sx]*):;;*)false;;esac;fi
23489 '\'' sh
23490 '
23491 fi
23492 as_executable_p=$as_test_x
23493
23494 # Sed expression to map a string onto a valid CPP name.
23495 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23496
23497 # Sed expression to map a string onto a valid variable name.
23498 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23499
23500
23501 exec 6>&1
23502
23503 # Save the log message, to keep $[0] and so on meaningful, and to
23504 # report actual input values of CONFIG_FILES etc. instead of their
23505 # values after options handling.
23506 ac_log="
23507 This file was extended by $as_me, which was
23508 generated by GNU Autoconf 2.61. Invocation command line was
23509
23510 CONFIG_FILES = $CONFIG_FILES
23511 CONFIG_HEADERS = $CONFIG_HEADERS
23512 CONFIG_LINKS = $CONFIG_LINKS
23513 CONFIG_COMMANDS = $CONFIG_COMMANDS
23514 $ $0 $@
23515
23516 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23517 "
23518
23519 _ACEOF
23520
23521 cat >>$CONFIG_STATUS <<_ACEOF
23522 # Files that config.status was made for.
23523 config_files="$ac_config_files"
23524 config_headers="$ac_config_headers"
23525 config_commands="$ac_config_commands"
23526
23527 _ACEOF
23528
23529 cat >>$CONFIG_STATUS <<\_ACEOF
23530 ac_cs_usage="\
23531 \`$as_me' instantiates files from templates according to the
23532 current configuration.
23533
23534 Usage: $0 [OPTIONS] [FILE]...
23535
23536 -h, --help print this help, then exit
23537 -V, --version print version number and configuration settings, then exit
23538 -q, --quiet do not print progress messages
23539 -d, --debug don't remove temporary files
23540 --recheck update $as_me by reconfiguring in the same conditions
23541 --file=FILE[:TEMPLATE]
23542 instantiate the configuration file FILE
23543 --header=FILE[:TEMPLATE]
23544 instantiate the configuration header FILE
23545
23546 Configuration files:
23547 $config_files
23548
23549 Configuration headers:
23550 $config_headers
23551
23552 Configuration commands:
23553 $config_commands
23554
23555 Report bugs to <bug-autoconf@gnu.org>."
23556
23557 _ACEOF
23558 cat >>$CONFIG_STATUS <<_ACEOF
23559 ac_cs_version="\\
23560 config.status
23561 configured by $0, generated by GNU Autoconf 2.61,
23562 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23563
23564 Copyright (C) 2006 Free Software Foundation, Inc.
23565 This config.status script is free software; the Free Software Foundation
23566 gives unlimited permission to copy, distribute and modify it."
23567
23568 ac_pwd='$ac_pwd'
23569 srcdir='$srcdir'
23570 INSTALL='$INSTALL'
23571 _ACEOF
23572
23573 cat >>$CONFIG_STATUS <<\_ACEOF
23574 # If no file are specified by the user, then we need to provide default
23575 # value. By we need to know if files were specified by the user.
23576 ac_need_defaults=:
23577 while test $# != 0
23578 do
23579 case $1 in
23580 --*=*)
23581 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23582 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23583 ac_shift=:
23584 ;;
23585 *)
23586 ac_option=$1
23587 ac_optarg=$2
23588 ac_shift=shift
23589 ;;
23590 esac
23591
23592 case $ac_option in
23593 # Handling of the options.
23594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23595 ac_cs_recheck=: ;;
23596 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23597 echo "$ac_cs_version"; exit ;;
23598 --debug | --debu | --deb | --de | --d | -d )
23599 debug=: ;;
23600 --file | --fil | --fi | --f )
23601 $ac_shift
23602 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23603 ac_need_defaults=false;;
23604 --header | --heade | --head | --hea )
23605 $ac_shift
23606 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23607 ac_need_defaults=false;;
23608 --he | --h)
23609 # Conflict between --help and --header
23610 { echo "$as_me: error: ambiguous option: $1
23611 Try \`$0 --help' for more information." >&2
23612 { (exit 1); exit 1; }; };;
23613 --help | --hel | -h )
23614 echo "$ac_cs_usage"; exit ;;
23615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23617 ac_cs_silent=: ;;
23618
23619 # This is an error.
23620 -*) { echo "$as_me: error: unrecognized option: $1
23621 Try \`$0 --help' for more information." >&2
23622 { (exit 1); exit 1; }; } ;;
23623
23624 *) ac_config_targets="$ac_config_targets $1"
23625 ac_need_defaults=false ;;
23626
23627 esac
23628 shift
23629 done
23630
23631 ac_configure_extra_args=
23632
23633 if $ac_cs_silent; then
23634 exec 6>/dev/null
23635 ac_configure_extra_args="$ac_configure_extra_args --silent"
23636 fi
23637
23638 _ACEOF
23639 cat >>$CONFIG_STATUS <<_ACEOF
23640 if \$ac_cs_recheck; then
23641 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23642 CONFIG_SHELL=$SHELL
23643 export CONFIG_SHELL
23644 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23645 fi
23646
23647 _ACEOF
23648 cat >>$CONFIG_STATUS <<\_ACEOF
23649 exec 5>>config.log
23650 {
23651 echo
23652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23653 ## Running $as_me. ##
23654 _ASBOX
23655 echo "$ac_log"
23656 } >&5
23657
23658 _ACEOF
23659 cat >>$CONFIG_STATUS <<_ACEOF
23660 #
23661 # INIT-COMMANDS
23662 #
23663 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23664
23665 _ACEOF
23666
23667 cat >>$CONFIG_STATUS <<\_ACEOF
23668
23669 # Handling of arguments.
23670 for ac_config_target in $ac_config_targets
23671 do
23672 case $ac_config_target in
23673 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23674 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23675 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23676 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23677 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23678 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23679 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23680 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23681 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23682 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23683 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23684 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23685
23686 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23687 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23688 { (exit 1); exit 1; }; };;
23689 esac
23690 done
23691
23692
23693 # If the user did not use the arguments to specify the items to instantiate,
23694 # then the envvar interface is used. Set only those that are not.
23695 # We use the long form for the default assignment because of an extremely
23696 # bizarre bug on SunOS 4.1.3.
23697 if $ac_need_defaults; then
23698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23701 fi
23702
23703 # Have a temporary directory for convenience. Make it in the build tree
23704 # simply because there is no reason against having it here, and in addition,
23705 # creating and moving files from /tmp can sometimes cause problems.
23706 # Hook for its removal unless debugging.
23707 # Note that there is a small window in which the directory will not be cleaned:
23708 # after its creation but before its name has been assigned to `$tmp'.
23709 $debug ||
23710 {
23711 tmp=
23712 trap 'exit_status=$?
23713 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23714 ' 0
23715 trap '{ (exit 1); exit 1; }' 1 2 13 15
23716 }
23717 # Create a (secure) tmp directory for tmp files.
23718
23719 {
23720 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23721 test -n "$tmp" && test -d "$tmp"
23722 } ||
23723 {
23724 tmp=./conf$$-$RANDOM
23725 (umask 077 && mkdir "$tmp")
23726 } ||
23727 {
23728 echo "$me: cannot create a temporary directory in ." >&2
23729 { (exit 1); exit 1; }
23730 }
23731
23732 #
23733 # Set up the sed scripts for CONFIG_FILES section.
23734 #
23735
23736 # No need to generate the scripts if there are no CONFIG_FILES.
23737 # This happens for instance when ./config.status config.h
23738 if test -n "$CONFIG_FILES"; then
23739
23740 _ACEOF
23741
23742
23743
23744 ac_delim='%!_!# '
23745 for ac_last_try in false false false false false :; do
23746 cat >conf$$subs.sed <<_ACEOF
23747 SHELL!$SHELL$ac_delim
23748 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23749 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23750 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23751 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23752 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23753 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23754 exec_prefix!$exec_prefix$ac_delim
23755 prefix!$prefix$ac_delim
23756 program_transform_name!$program_transform_name$ac_delim
23757 bindir!$bindir$ac_delim
23758 sbindir!$sbindir$ac_delim
23759 libexecdir!$libexecdir$ac_delim
23760 datarootdir!$datarootdir$ac_delim
23761 datadir!$datadir$ac_delim
23762 sysconfdir!$sysconfdir$ac_delim
23763 sharedstatedir!$sharedstatedir$ac_delim
23764 localstatedir!$localstatedir$ac_delim
23765 includedir!$includedir$ac_delim
23766 oldincludedir!$oldincludedir$ac_delim
23767 docdir!$docdir$ac_delim
23768 infodir!$infodir$ac_delim
23769 htmldir!$htmldir$ac_delim
23770 dvidir!$dvidir$ac_delim
23771 pdfdir!$pdfdir$ac_delim
23772 psdir!$psdir$ac_delim
23773 libdir!$libdir$ac_delim
23774 localedir!$localedir$ac_delim
23775 mandir!$mandir$ac_delim
23776 DEFS!$DEFS$ac_delim
23777 ECHO_C!$ECHO_C$ac_delim
23778 ECHO_N!$ECHO_N$ac_delim
23779 ECHO_T!$ECHO_T$ac_delim
23780 LIBS!$LIBS$ac_delim
23781 build_alias!$build_alias$ac_delim
23782 host_alias!$host_alias$ac_delim
23783 target_alias!$target_alias$ac_delim
23784 MAINT!$MAINT$ac_delim
23785 build!$build$ac_delim
23786 build_cpu!$build_cpu$ac_delim
23787 build_vendor!$build_vendor$ac_delim
23788 build_os!$build_os$ac_delim
23789 host!$host$ac_delim
23790 host_cpu!$host_cpu$ac_delim
23791 host_vendor!$host_vendor$ac_delim
23792 host_os!$host_os$ac_delim
23793 CC!$CC$ac_delim
23794 CFLAGS!$CFLAGS$ac_delim
23795 LDFLAGS!$LDFLAGS$ac_delim
23796 CPPFLAGS!$CPPFLAGS$ac_delim
23797 ac_ct_CC!$ac_ct_CC$ac_delim
23798 EXEEXT!$EXEEXT$ac_delim
23799 OBJEXT!$OBJEXT$ac_delim
23800 CPP!$CPP$ac_delim
23801 GREP!$GREP$ac_delim
23802 EGREP!$EGREP$ac_delim
23803 LN_S!$LN_S$ac_delim
23804 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23805 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23806 INSTALL_DATA!$INSTALL_DATA$ac_delim
23807 RANLIB!$RANLIB$ac_delim
23808 INSTALL_INFO!$INSTALL_INFO$ac_delim
23809 GZIP_PROG!$GZIP_PROG$ac_delim
23810 LIBSOUND!$LIBSOUND$ac_delim
23811 PKG_CONFIG!$PKG_CONFIG$ac_delim
23812 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23813 ALSA_LIBS!$ALSA_LIBS$ac_delim
23814 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23815 SET_MAKE!$SET_MAKE$ac_delim
23816 XMKMF!$XMKMF$ac_delim
23817 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23818 GTK_LIBS!$GTK_LIBS$ac_delim
23819 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23820 XFT_LIBS!$XFT_LIBS$ac_delim
23821 ALLOCA!$ALLOCA$ac_delim
23822 liblockfile!$liblockfile$ac_delim
23823 LIBOBJS!$LIBOBJS$ac_delim
23824 NEED_SETGID!$NEED_SETGID$ac_delim
23825 KMEM_GROUP!$KMEM_GROUP$ac_delim
23826 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23827 GETOPT_H!$GETOPT_H$ac_delim
23828 GETOPTOBJS!$GETOPTOBJS$ac_delim
23829 version!$version$ac_delim
23830 configuration!$configuration$ac_delim
23831 canonical!$canonical$ac_delim
23832 srcdir!$srcdir$ac_delim
23833 lispdir!$lispdir$ac_delim
23834 locallisppath!$locallisppath$ac_delim
23835 lisppath!$lisppath$ac_delim
23836 x_default_search_path!$x_default_search_path$ac_delim
23837 etcdir!$etcdir$ac_delim
23838 archlibdir!$archlibdir$ac_delim
23839 bitmapdir!$bitmapdir$ac_delim
23840 gamedir!$gamedir$ac_delim
23841 gameuser!$gameuser$ac_delim
23842 c_switch_system!$c_switch_system$ac_delim
23843 c_switch_machine!$c_switch_machine$ac_delim
23844 _ACEOF
23845
23846 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23847 break
23848 elif $ac_last_try; then
23849 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23850 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23851 { (exit 1); exit 1; }; }
23852 else
23853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23854 fi
23855 done
23856
23857 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23858 if test -n "$ac_eof"; then
23859 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23860 ac_eof=`expr $ac_eof + 1`
23861 fi
23862
23863 cat >>$CONFIG_STATUS <<_ACEOF
23864 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23866 _ACEOF
23867 sed '
23868 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23869 s/^/s,@/; s/!/@,|#_!!_#|/
23870 :n
23871 t n
23872 s/'"$ac_delim"'$/,g/; t
23873 s/$/\\/; p
23874 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23875 ' >>$CONFIG_STATUS <conf$$subs.sed
23876 rm -f conf$$subs.sed
23877 cat >>$CONFIG_STATUS <<_ACEOF
23878 CEOF$ac_eof
23879 _ACEOF
23880
23881
23882 ac_delim='%!_!# '
23883 for ac_last_try in false false false false false :; do
23884 cat >conf$$subs.sed <<_ACEOF
23885 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23886 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23887 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23888 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23889 machfile!$machfile$ac_delim
23890 opsysfile!$opsysfile$ac_delim
23891 carbon_appdir!$carbon_appdir$ac_delim
23892 LTLIBOBJS!$LTLIBOBJS$ac_delim
23893 _ACEOF
23894
23895 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23896 break
23897 elif $ac_last_try; then
23898 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23899 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23900 { (exit 1); exit 1; }; }
23901 else
23902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23903 fi
23904 done
23905
23906 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23907 if test -n "$ac_eof"; then
23908 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23909 ac_eof=`expr $ac_eof + 1`
23910 fi
23911
23912 cat >>$CONFIG_STATUS <<_ACEOF
23913 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23914 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23915 _ACEOF
23916 sed '
23917 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23918 s/^/s,@/; s/!/@,|#_!!_#|/
23919 :n
23920 t n
23921 s/'"$ac_delim"'$/,g/; t
23922 s/$/\\/; p
23923 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23924 ' >>$CONFIG_STATUS <conf$$subs.sed
23925 rm -f conf$$subs.sed
23926 cat >>$CONFIG_STATUS <<_ACEOF
23927 :end
23928 s/|#_!!_#|//g
23929 CEOF$ac_eof
23930 _ACEOF
23931
23932
23933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23935 # trailing colons and then remove the whole line if VPATH becomes empty
23936 # (actually we leave an empty line to preserve line numbers).
23937 if test "x$srcdir" = x.; then
23938 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23939 s/:*\$(srcdir):*/:/
23940 s/:*\${srcdir}:*/:/
23941 s/:*@srcdir@:*/:/
23942 s/^\([^=]*=[ ]*\):*/\1/
23943 s/:*$//
23944 s/^[^=]*=[ ]*$//
23945 }'
23946 fi
23947
23948 cat >>$CONFIG_STATUS <<\_ACEOF
23949 fi # test -n "$CONFIG_FILES"
23950
23951
23952 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23953 do
23954 case $ac_tag in
23955 :[FHLC]) ac_mode=$ac_tag; continue;;
23956 esac
23957 case $ac_mode$ac_tag in
23958 :[FHL]*:*);;
23959 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23960 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23961 { (exit 1); exit 1; }; };;
23962 :[FH]-) ac_tag=-:-;;
23963 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23964 esac
23965 ac_save_IFS=$IFS
23966 IFS=:
23967 set x $ac_tag
23968 IFS=$ac_save_IFS
23969 shift
23970 ac_file=$1
23971 shift
23972
23973 case $ac_mode in
23974 :L) ac_source=$1;;
23975 :[FH])
23976 ac_file_inputs=
23977 for ac_f
23978 do
23979 case $ac_f in
23980 -) ac_f="$tmp/stdin";;
23981 *) # Look for the file first in the build tree, then in the source tree
23982 # (if the path is not absolute). The absolute path cannot be DOS-style,
23983 # because $ac_f cannot contain `:'.
23984 test -f "$ac_f" ||
23985 case $ac_f in
23986 [\\/$]*) false;;
23987 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23988 esac ||
23989 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23990 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23991 { (exit 1); exit 1; }; };;
23992 esac
23993 ac_file_inputs="$ac_file_inputs $ac_f"
23994 done
23995
23996 # Let's still pretend it is `configure' which instantiates (i.e., don't
23997 # use $as_me), people would be surprised to read:
23998 # /* config.h. Generated by config.status. */
23999 configure_input="Generated from "`IFS=:
24000 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24001 if test x"$ac_file" != x-; then
24002 configure_input="$ac_file. $configure_input"
24003 { echo "$as_me:$LINENO: creating $ac_file" >&5
24004 echo "$as_me: creating $ac_file" >&6;}
24005 fi
24006
24007 case $ac_tag in
24008 *:-:* | *:-) cat >"$tmp/stdin";;
24009 esac
24010 ;;
24011 esac
24012
24013 ac_dir=`$as_dirname -- "$ac_file" ||
24014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24015 X"$ac_file" : 'X\(//\)[^/]' \| \
24016 X"$ac_file" : 'X\(//\)$' \| \
24017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24018 echo X"$ac_file" |
24019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24020 s//\1/
24021 q
24022 }
24023 /^X\(\/\/\)[^/].*/{
24024 s//\1/
24025 q
24026 }
24027 /^X\(\/\/\)$/{
24028 s//\1/
24029 q
24030 }
24031 /^X\(\/\).*/{
24032 s//\1/
24033 q
24034 }
24035 s/.*/./; q'`
24036 { as_dir="$ac_dir"
24037 case $as_dir in #(
24038 -*) as_dir=./$as_dir;;
24039 esac
24040 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24041 as_dirs=
24042 while :; do
24043 case $as_dir in #(
24044 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24045 *) as_qdir=$as_dir;;
24046 esac
24047 as_dirs="'$as_qdir' $as_dirs"
24048 as_dir=`$as_dirname -- "$as_dir" ||
24049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24050 X"$as_dir" : 'X\(//\)[^/]' \| \
24051 X"$as_dir" : 'X\(//\)$' \| \
24052 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24053 echo X"$as_dir" |
24054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24055 s//\1/
24056 q
24057 }
24058 /^X\(\/\/\)[^/].*/{
24059 s//\1/
24060 q
24061 }
24062 /^X\(\/\/\)$/{
24063 s//\1/
24064 q
24065 }
24066 /^X\(\/\).*/{
24067 s//\1/
24068 q
24069 }
24070 s/.*/./; q'`
24071 test -d "$as_dir" && break
24072 done
24073 test -z "$as_dirs" || eval "mkdir $as_dirs"
24074 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24075 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24076 { (exit 1); exit 1; }; }; }
24077 ac_builddir=.
24078
24079 case "$ac_dir" in
24080 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24081 *)
24082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24083 # A ".." for each directory in $ac_dir_suffix.
24084 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24085 case $ac_top_builddir_sub in
24086 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24087 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24088 esac ;;
24089 esac
24090 ac_abs_top_builddir=$ac_pwd
24091 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24092 # for backward compatibility:
24093 ac_top_builddir=$ac_top_build_prefix
24094
24095 case $srcdir in
24096 .) # We are building in place.
24097 ac_srcdir=.
24098 ac_top_srcdir=$ac_top_builddir_sub
24099 ac_abs_top_srcdir=$ac_pwd ;;
24100 [\\/]* | ?:[\\/]* ) # Absolute name.
24101 ac_srcdir=$srcdir$ac_dir_suffix;
24102 ac_top_srcdir=$srcdir
24103 ac_abs_top_srcdir=$srcdir ;;
24104 *) # Relative name.
24105 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24106 ac_top_srcdir=$ac_top_build_prefix$srcdir
24107 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24108 esac
24109 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24110
24111
24112 case $ac_mode in
24113 :F)
24114 #
24115 # CONFIG_FILE
24116 #
24117
24118 case $INSTALL in
24119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24120 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24121 esac
24122 _ACEOF
24123
24124 cat >>$CONFIG_STATUS <<\_ACEOF
24125 # If the template does not know about datarootdir, expand it.
24126 # FIXME: This hack should be removed a few years after 2.60.
24127 ac_datarootdir_hack=; ac_datarootdir_seen=
24128
24129 case `sed -n '/datarootdir/ {
24130 p
24131 q
24132 }
24133 /@datadir@/p
24134 /@docdir@/p
24135 /@infodir@/p
24136 /@localedir@/p
24137 /@mandir@/p
24138 ' $ac_file_inputs` in
24139 *datarootdir*) ac_datarootdir_seen=yes;;
24140 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24141 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24142 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24143 _ACEOF
24144 cat >>$CONFIG_STATUS <<_ACEOF
24145 ac_datarootdir_hack='
24146 s&@datadir@&$datadir&g
24147 s&@docdir@&$docdir&g
24148 s&@infodir@&$infodir&g
24149 s&@localedir@&$localedir&g
24150 s&@mandir@&$mandir&g
24151 s&\\\${datarootdir}&$datarootdir&g' ;;
24152 esac
24153 _ACEOF
24154
24155 # Neutralize VPATH when `$srcdir' = `.'.
24156 # Shell code in configure.ac might set extrasub.
24157 # FIXME: do we really want to maintain this feature?
24158 cat >>$CONFIG_STATUS <<_ACEOF
24159 sed "$ac_vpsub
24160 $extrasub
24161 _ACEOF
24162 cat >>$CONFIG_STATUS <<\_ACEOF
24163 :t
24164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24165 s&@configure_input@&$configure_input&;t t
24166 s&@top_builddir@&$ac_top_builddir_sub&;t t
24167 s&@srcdir@&$ac_srcdir&;t t
24168 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24169 s&@top_srcdir@&$ac_top_srcdir&;t t
24170 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24171 s&@builddir@&$ac_builddir&;t t
24172 s&@abs_builddir@&$ac_abs_builddir&;t t
24173 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24174 s&@INSTALL@&$ac_INSTALL&;t t
24175 $ac_datarootdir_hack
24176 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24177
24178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24179 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24180 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24181 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24182 which seems to be undefined. Please make sure it is defined." >&5
24183 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24184 which seems to be undefined. Please make sure it is defined." >&2;}
24185
24186 rm -f "$tmp/stdin"
24187 case $ac_file in
24188 -) cat "$tmp/out"; rm -f "$tmp/out";;
24189 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24190 esac
24191 ;;
24192 :H)
24193 #
24194 # CONFIG_HEADER
24195 #
24196 _ACEOF
24197
24198 # Transform confdefs.h into a sed script `conftest.defines', that
24199 # substitutes the proper values into config.h.in to produce config.h.
24200 rm -f conftest.defines conftest.tail
24201 # First, append a space to every undef/define line, to ease matching.
24202 echo 's/$/ /' >conftest.defines
24203 # Then, protect against being on the right side of a sed subst, or in
24204 # an unquoted here document, in config.status. If some macros were
24205 # called several times there might be several #defines for the same
24206 # symbol, which is useless. But do not sort them, since the last
24207 # AC_DEFINE must be honored.
24208 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24209 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24210 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24211 # PARAMS is the parameter list in the macro definition--in most cases, it's
24212 # just an empty string.
24213 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24214 ac_dB='\\)[ (].*,\\1define\\2'
24215 ac_dC=' '
24216 ac_dD=' ,'
24217
24218 uniq confdefs.h |
24219 sed -n '
24220 t rset
24221 :rset
24222 s/^[ ]*#[ ]*define[ ][ ]*//
24223 t ok
24224 d
24225 :ok
24226 s/[\\&,]/\\&/g
24227 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24228 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24229 ' >>conftest.defines
24230
24231 # Remove the space that was appended to ease matching.
24232 # Then replace #undef with comments. This is necessary, for
24233 # example, in the case of _POSIX_SOURCE, which is predefined and required
24234 # on some systems where configure will not decide to define it.
24235 # (The regexp can be short, since the line contains either #define or #undef.)
24236 echo 's/ $//
24237 s,^[ #]*u.*,/* & */,' >>conftest.defines
24238
24239 # Break up conftest.defines:
24240 ac_max_sed_lines=50
24241
24242 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24243 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24244 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24245 # et cetera.
24246 ac_in='$ac_file_inputs'
24247 ac_out='"$tmp/out1"'
24248 ac_nxt='"$tmp/out2"'
24249
24250 while :
24251 do
24252 # Write a here document:
24253 cat >>$CONFIG_STATUS <<_ACEOF
24254 # First, check the format of the line:
24255 cat >"\$tmp/defines.sed" <<\\CEOF
24256 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24257 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24258 b
24259 :def
24260 _ACEOF
24261 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24262 echo 'CEOF
24263 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24264 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24265 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24266 grep . conftest.tail >/dev/null || break
24267 rm -f conftest.defines
24268 mv conftest.tail conftest.defines
24269 done
24270 rm -f conftest.defines conftest.tail
24271
24272 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24273 cat >>$CONFIG_STATUS <<\_ACEOF
24274 if test x"$ac_file" != x-; then
24275 echo "/* $configure_input */" >"$tmp/config.h"
24276 cat "$ac_result" >>"$tmp/config.h"
24277 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24278 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24279 echo "$as_me: $ac_file is unchanged" >&6;}
24280 else
24281 rm -f $ac_file
24282 mv "$tmp/config.h" $ac_file
24283 fi
24284 else
24285 echo "/* $configure_input */"
24286 cat "$ac_result"
24287 fi
24288 rm -f "$tmp/out12"
24289 ;;
24290
24291 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24292 echo "$as_me: executing $ac_file commands" >&6;}
24293 ;;
24294 esac
24295
24296
24297 case $ac_file$ac_mode in
24298 "default":C)
24299
24300 ### Make the necessary directories, if they don't exist.
24301 for dir in etc lisp ; do
24302 test -d ${dir} || mkdir ${dir}
24303 done
24304
24305 # Build src/Makefile from ${srcdir}/src/Makefile.c
24306 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24307 # This must be done after src/config.h is built, since we rely on that file.
24308
24309 # Now get this: Some word that is part of the ${srcdir} directory name
24310 # or the ${configuration} value might, just might, happen to be an
24311 # identifier like `sun4' or `i386' or something, and be predefined by
24312 # the C preprocessor to some helpful value like 1, or maybe the empty
24313 # string. Needless to say consequent macro substitutions are less
24314 # than conducive to the makefile finding the correct directory.
24315 undefs="`echo $top_srcdir $configuration $canonical |
24316 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24317 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24318 `"
24319
24320 echo creating src/epaths.h
24321 ${MAKE-make} epaths-force
24322
24323 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24324 # `..' to `. .' unless invoked with -traditional
24325
24326 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24327 CPPFLAGS="$CPPFLAGS -traditional"
24328 fi
24329
24330 echo creating lib-src/Makefile
24331 ( cd lib-src
24332 rm -f junk.c junk1.c junk2.c
24333 sed -e '/start of cpp stuff/q' \
24334 < Makefile.c > junk1.c
24335 sed -e '1,/start of cpp stuff/d'\
24336 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24337 < Makefile.c > junk.c
24338 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24339 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24340 cat junk1.c junk2.c > Makefile.new
24341 rm -f junk.c junk1.c junk2.c
24342 chmod 444 Makefile.new
24343 mv -f Makefile.new Makefile
24344 )
24345
24346 echo creating src/Makefile
24347 ( cd src
24348 rm -f junk.c junk1.c junk2.c
24349 sed -e '/start of cpp stuff/q' \
24350 < Makefile.c > junk1.c
24351 sed -e '1,/start of cpp stuff/d'\
24352 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24353 < Makefile.c > junk.c
24354 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24355 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24356 cat junk1.c junk2.c > Makefile.new
24357 rm -f junk.c junk1.c junk2.c
24358 chmod 444 Makefile.new
24359 mv -f Makefile.new Makefile
24360 )
24361
24362 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24363 echo creating src/.gdbinit
24364 echo source $srcdir/src/.gdbinit > src/.gdbinit
24365 fi
24366
24367 # This is how we know whether to re-run configure in certain cases.
24368 touch src/config.stamp
24369
24370 ;;
24371
24372 esac
24373 done # for ac_tag
24374
24375
24376 { (exit 0); exit 0; }
24377 _ACEOF
24378 chmod +x $CONFIG_STATUS
24379 ac_clean_files=$ac_clean_files_save
24380
24381
24382 # configure is writing to config.log, and then calls config.status.
24383 # config.status does its own redirection, appending to config.log.
24384 # Unfortunately, on DOS this fails, as config.log is still kept open
24385 # by configure, so config.status won't be able to write to it; its
24386 # output is simply discarded. So we exec the FD to /dev/null,
24387 # effectively closing config.log, so it can be properly (re)opened and
24388 # appended to by config.status. When coming back to configure, we
24389 # need to make the FD available again.
24390 if test "$no_create" != yes; then
24391 ac_cs_success=:
24392 ac_config_status_args=
24393 test "$silent" = yes &&
24394 ac_config_status_args="$ac_config_status_args --quiet"
24395 exec 5>/dev/null
24396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24397 exec 5>>config.log
24398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24399 # would make configure fail if this is the last instruction.
24400 $ac_cs_success || { (exit 1); exit 1; }
24401 fi
24402
24403