]> code.delx.au - gnu-emacs/blob - configure
Merge from emacs--rel--22
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
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='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.60'
576 PACKAGE_STRING='emacs 23.0.60'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_config_libobj_dir=src
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
742 CC
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP
748 XMKMF'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
770
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
796
797 ac_prev=
798 ac_dashdash=
799 for ac_option
800 do
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
806 fi
807
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
812
813 # Accept the important Cygnus configure options, so we can diagnose typos.
814
815 case $ac_dashdash$ac_option in
816 --)
817 ac_dashdash=yes ;;
818
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
823
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
828
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
835
836 --config-cache | -C)
837 cache_file=config.cache ;;
838
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
843
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
850
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
859
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
864
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
869
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
878
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
887
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
891
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
898
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
903
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
909
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
916
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
921
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
926
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
933
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
938
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
945
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
950
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
954
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
958
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
962
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
971
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
976
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
983
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
990
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1007
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1012
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1017
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1021
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1027
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1038
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1043
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1048
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1055
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1060
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1063
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1066
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1075
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1084
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1088
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1095
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1102
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1106 ;;
1107
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1116
1117 *)
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123 ;;
1124
1125 esac
1126 done
1127
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1132 fi
1133
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1139 do
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1148
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1155
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1164 fi
1165 fi
1166
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169
1170 test "$silent" = yes && exec 6>/dev/null
1171
1172
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1181
1182
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\).*/{
1206 s//\1/
1207 q
1208 }
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1213 fi
1214 else
1215 ac_srcdir_defaulted=no
1216 fi
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1221 fi
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1230 fi
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1243
1244 #
1245 # Report the --help message.
1246 #
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1252
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1254
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1257
1258 Defaults for the options are specified in brackets.
1259
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1276
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1281
1282 For better control, use the options below.
1283
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1305
1306 cat <<\_ACEOF
1307
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1312
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1316
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1321 fi
1322
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1326 esac
1327 cat <<\_ACEOF
1328
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --disable-font-backend don't compile font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1344
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version 5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server host
1352 --without-sound don't compile with sound support
1353 --without-sync-input Process async input synchronously
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1355 motif, gtk, no)
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don't compile with SVG image support
1362 --without-freetype don't use Freetype for local font support
1363 --without-xft don't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf for OpenType font support
1365 --without-m17n-flt don't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1371 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1372 console
1373 --without-dbus don't compile with D-Bus support
1374 --without-makeinfo don't require makeinfo for building manuals
1375
1376 --with-pkg-config-prog=PATH
1377 Path to pkg-config for finding GTK and librsvg
1378 --with-x use the X Window System
1379
1380 Some influential environment variables:
1381 CC C compiler command
1382 CFLAGS C compiler flags
1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384 nonstandard directory <lib dir>
1385 LIBS libraries to pass to the linker, e.g. -l<library>
1386 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387 you have headers in a nonstandard directory <include dir>
1388 CPP C preprocessor
1389 XMKMF Path to xmkmf, Makefile generator for X Window System
1390
1391 Use these variables to override the choices made by `configure' or to help
1392 it to find libraries and programs with nonstandard names/locations.
1393
1394 _ACEOF
1395 ac_status=$?
1396 fi
1397
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401 test -d "$ac_dir" || continue
1402 ac_builddir=.
1403
1404 case "$ac_dir" in
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *)
1407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 esac ;;
1414 esac
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1419
1420 case $srcdir in
1421 .) # We are building in place.
1422 ac_srcdir=.
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
1426 ac_srcdir=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1429 *) # Relative name.
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 esac
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1439 echo &&
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1442 echo &&
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1444 else
1445 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 fi || ac_status=$?
1447 cd "$ac_pwd" || { ac_status=$?; break; }
1448 done
1449 fi
1450
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1453 cat <<\_ACEOF
1454 emacs configure 23.0.60
1455 generated by GNU Autoconf 2.61
1456
1457 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1458 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1459 This configure script is free software; the Free Software Foundation
1460 gives unlimited permission to copy, distribute and modify it.
1461 _ACEOF
1462 exit
1463 fi
1464 cat >config.log <<_ACEOF
1465 This file contains any messages produced by compilers while
1466 running configure, to aid debugging if configure makes a mistake.
1467
1468 It was created by emacs $as_me 23.0.60, which was
1469 generated by GNU Autoconf 2.61. Invocation command line was
1470
1471 $ $0 $@
1472
1473 _ACEOF
1474 exec 5>>config.log
1475 {
1476 cat <<_ASUNAME
1477 ## --------- ##
1478 ## Platform. ##
1479 ## --------- ##
1480
1481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486
1487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489
1490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497
1498 _ASUNAME
1499
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 echo "PATH: $as_dir"
1506 done
1507 IFS=$as_save_IFS
1508
1509 } >&5
1510
1511 cat >&5 <<_ACEOF
1512
1513
1514 ## ----------- ##
1515 ## Core tests. ##
1516 ## ----------- ##
1517
1518 _ACEOF
1519
1520
1521 # Keep a trace of the command line.
1522 # Strip out --no-create and --no-recursion so they do not pile up.
1523 # Strip out --silent because we don't want to record it for future runs.
1524 # Also quote any args containing shell meta-characters.
1525 # Make two passes to allow for proper duplicate-argument suppression.
1526 ac_configure_args=
1527 ac_configure_args0=
1528 ac_configure_args1=
1529 ac_must_keep_next=false
1530 for ac_pass in 1 2
1531 do
1532 for ac_arg
1533 do
1534 case $ac_arg in
1535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537 | -silent | --silent | --silen | --sile | --sil)
1538 continue ;;
1539 *\'*)
1540 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541 esac
1542 case $ac_pass in
1543 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 2)
1545 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1546 if test $ac_must_keep_next = true; then
1547 ac_must_keep_next=false # Got value, back to normal.
1548 else
1549 case $ac_arg in
1550 *=* | --config-cache | -C | -disable-* | --disable-* \
1551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1553 | -with-* | --with-* | -without-* | --without-* | --x)
1554 case "$ac_configure_args0 " in
1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556 esac
1557 ;;
1558 -* ) ac_must_keep_next=true ;;
1559 esac
1560 fi
1561 ac_configure_args="$ac_configure_args '$ac_arg'"
1562 ;;
1563 esac
1564 done
1565 done
1566 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1567 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568
1569 # When interrupted or exit'd, cleanup temporary files, and complete
1570 # config.log. We remove comments because anyway the quotes in there
1571 # would cause problems or look ugly.
1572 # WARNING: Use '\'' to represent an apostrophe within the trap.
1573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574 trap 'exit_status=$?
1575 # Save into config.log some information that might help in debugging.
1576 {
1577 echo
1578
1579 cat <<\_ASBOX
1580 ## ---------------- ##
1581 ## Cache variables. ##
1582 ## ---------------- ##
1583 _ASBOX
1584 echo
1585 # The following way of writing the cache mishandles newlines in values,
1586 (
1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588 eval ac_val=\$$ac_var
1589 case $ac_val in #(
1590 *${as_nl}*)
1591 case $ac_var in #(
1592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1594 esac
1595 case $ac_var in #(
1596 _ | IFS | as_nl) ;; #(
1597 *) $as_unset $ac_var ;;
1598 esac ;;
1599 esac
1600 done
1601 (set) 2>&1 |
1602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603 *${as_nl}ac_space=\ *)
1604 sed -n \
1605 "s/'\''/'\''\\\\'\'''\''/g;
1606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1607 ;; #(
1608 *)
1609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610 ;;
1611 esac |
1612 sort
1613 )
1614 echo
1615
1616 cat <<\_ASBOX
1617 ## ----------------- ##
1618 ## Output variables. ##
1619 ## ----------------- ##
1620 _ASBOX
1621 echo
1622 for ac_var in $ac_subst_vars
1623 do
1624 eval ac_val=\$$ac_var
1625 case $ac_val in
1626 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 esac
1628 echo "$ac_var='\''$ac_val'\''"
1629 done | sort
1630 echo
1631
1632 if test -n "$ac_subst_files"; then
1633 cat <<\_ASBOX
1634 ## ------------------- ##
1635 ## File substitutions. ##
1636 ## ------------------- ##
1637 _ASBOX
1638 echo
1639 for ac_var in $ac_subst_files
1640 do
1641 eval ac_val=\$$ac_var
1642 case $ac_val in
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 esac
1645 echo "$ac_var='\''$ac_val'\''"
1646 done | sort
1647 echo
1648 fi
1649
1650 if test -s confdefs.h; then
1651 cat <<\_ASBOX
1652 ## ----------- ##
1653 ## confdefs.h. ##
1654 ## ----------- ##
1655 _ASBOX
1656 echo
1657 cat confdefs.h
1658 echo
1659 fi
1660 test "$ac_signal" != 0 &&
1661 echo "$as_me: caught signal $ac_signal"
1662 echo "$as_me: exit $exit_status"
1663 } >&5
1664 rm -f core *.core core.conftest.* &&
1665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1666 exit $exit_status
1667 ' 0
1668 for ac_signal in 1 2 13 15; do
1669 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1670 done
1671 ac_signal=0
1672
1673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1674 rm -f -r conftest* confdefs.h
1675
1676 # Predefined preprocessor variables.
1677
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_NAME "$PACKAGE_NAME"
1680 _ACEOF
1681
1682
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1685 _ACEOF
1686
1687
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1690 _ACEOF
1691
1692
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_STRING "$PACKAGE_STRING"
1695 _ACEOF
1696
1697
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1700 _ACEOF
1701
1702
1703 # Let the site file select an alternate cache file if it wants to.
1704 # Prefer explicitly selected file to automatically selected ones.
1705 if test -n "$CONFIG_SITE"; then
1706 set x "$CONFIG_SITE"
1707 elif test "x$prefix" != xNONE; then
1708 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709 else
1710 set x "$ac_default_prefix/share/config.site" \
1711 "$ac_default_prefix/etc/config.site"
1712 fi
1713 shift
1714 for ac_site_file
1715 do
1716 if test -r "$ac_site_file"; then
1717 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718 echo "$as_me: loading site script $ac_site_file" >&6;}
1719 sed 's/^/| /' "$ac_site_file" >&5
1720 . "$ac_site_file"
1721 fi
1722 done
1723
1724 if test -r "$cache_file"; then
1725 # Some versions of bash will fail to source /dev/null (special
1726 # files actually), so we avoid doing that.
1727 if test -f "$cache_file"; then
1728 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729 echo "$as_me: loading cache $cache_file" >&6;}
1730 case $cache_file in
1731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1732 *) . "./$cache_file";;
1733 esac
1734 fi
1735 else
1736 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737 echo "$as_me: creating cache $cache_file" >&6;}
1738 >$cache_file
1739 fi
1740
1741 ac_header_list="$ac_header_list sys/time.h"
1742 ac_header_list="$ac_header_list unistd.h"
1743 ac_func_list="$ac_func_list alarm"
1744 # Check that the precious variables saved in the cache have kept the same
1745 # value.
1746 ac_cache_corrupted=false
1747 for ac_var in $ac_precious_vars; do
1748 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1749 eval ac_new_set=\$ac_env_${ac_var}_set
1750 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1751 eval ac_new_val=\$ac_env_${ac_var}_value
1752 case $ac_old_set,$ac_new_set in
1753 set,)
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1755 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1756 ac_cache_corrupted=: ;;
1757 ,set)
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1761 ,);;
1762 *)
1763 if test "x$ac_old_val" != "x$ac_new_val"; then
1764 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1765 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1766 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1767 echo "$as_me: former value: $ac_old_val" >&2;}
1768 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1769 echo "$as_me: current value: $ac_new_val" >&2;}
1770 ac_cache_corrupted=:
1771 fi;;
1772 esac
1773 # Pass precious variables to config.status.
1774 if test "$ac_new_set" = set; then
1775 case $ac_new_val in
1776 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 *) ac_arg=$ac_var=$ac_new_val ;;
1778 esac
1779 case " $ac_configure_args " in
1780 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1781 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1782 esac
1783 fi
1784 done
1785 if $ac_cache_corrupted; then
1786 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1787 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1788 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1789 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1790 { (exit 1); exit 1; }; }
1791 fi
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817 ac_ext=c
1818 ac_cpp='$CPP $CPPFLAGS'
1819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822
1823
1824 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1825
1826
1827
1828 test "$program_prefix" != NONE &&
1829 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1830 # Use a double $ so make ignores it.
1831 test "$program_suffix" != NONE &&
1832 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1833 # Double any \ or $. echo might interpret backslashes.
1834 # By default was `s,x,x', remove it if useless.
1835 cat <<\_ACEOF >conftest.sed
1836 s/[\\$]/&&/g;s/;s,x,x,$//
1837 _ACEOF
1838 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1839 rm -f conftest.sed
1840
1841
1842 lispdir='${datadir}/emacs/${version}/lisp'
1843 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1844 '${datadir}/emacs/site-lisp'
1845 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1846 etcdir='${datadir}/emacs/${version}/etc'
1847 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1848 docdir='${datadir}/emacs/${version}/etc'
1849 gamedir='${localstatedir}/games/emacs'
1850
1851 gameuser=games
1852
1853
1854
1855
1856 # Check whether --with-pop was given.
1857 if test "${with_pop+set}" = set; then
1858 withval=$with_pop;
1859 else
1860 with_pop=yes
1861 fi
1862
1863 if test "$with_pop" = yes; then
1864 cat >>confdefs.h <<\_ACEOF
1865 #define MAIL_USE_POP 1
1866 _ACEOF
1867
1868 fi
1869
1870
1871
1872 # Check whether --with-kerberos was given.
1873 if test "${with_kerberos+set}" = set; then
1874 withval=$with_kerberos;
1875 else
1876 with_kerberos=no
1877 fi
1878
1879 if test "$with_kerberos" = yes; then
1880 cat >>confdefs.h <<\_ACEOF
1881 #define KERBEROS 1
1882 _ACEOF
1883
1884 fi
1885
1886
1887
1888 # Check whether --with-kerberos5 was given.
1889 if test "${with_kerberos5+set}" = set; then
1890 withval=$with_kerberos5;
1891 else
1892 with_kerberos5=no
1893 fi
1894
1895 if test "${with_kerberos5}" = yes; then
1896 if test "${with_kerberos}" != yes; then
1897 with_kerberos=yes
1898 cat >>confdefs.h <<\_ACEOF
1899 #define KERBEROS 1
1900 _ACEOF
1901
1902 fi
1903
1904 cat >>confdefs.h <<\_ACEOF
1905 #define KERBEROS5 1
1906 _ACEOF
1907
1908 fi
1909
1910
1911 # Check whether --with-hesiod was given.
1912 if test "${with_hesiod+set}" = set; then
1913 withval=$with_hesiod;
1914 else
1915 with_hesiod=no
1916 fi
1917
1918 if test "$with_hesiod" = yes; then
1919
1920 cat >>confdefs.h <<\_ACEOF
1921 #define HESIOD 1
1922 _ACEOF
1923
1924 fi
1925
1926
1927 # Check whether --with-sound was given.
1928 if test "${with_sound+set}" = set; then
1929 withval=$with_sound;
1930 else
1931 with_sound=yes
1932 fi
1933
1934
1935
1936 # Check whether --with-sync-input was given.
1937 if test "${with_sync_input+set}" = set; then
1938 withval=$with_sync_input;
1939 else
1940 with_sync_input=yes
1941 fi
1942
1943 if test "$with_sync_input" = yes; then
1944
1945 cat >>confdefs.h <<\_ACEOF
1946 #define SYNC_INPUT 1
1947 _ACEOF
1948
1949 fi
1950
1951
1952 # Check whether --with-x-toolkit was given.
1953 if test "${with_x_toolkit+set}" = set; then
1954 withval=$with_x_toolkit; case "${withval}" in
1955 y | ye | yes ) val=gtk ;;
1956 n | no ) val=no ;;
1957 l | lu | luc | luci | lucid ) val=lucid ;;
1958 a | at | ath | athe | athen | athena ) val=athena ;;
1959 m | mo | mot | moti | motif ) val=motif ;;
1960 g | gt | gtk ) val=gtk ;;
1961 * )
1962 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1963 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1964 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1965 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1966 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1967 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1968 { (exit 1); exit 1; }; }
1969 ;;
1970 esac
1971 with_x_toolkit=$val
1972
1973 fi
1974
1975
1976
1977 # Check whether --with-xpm was given.
1978 if test "${with_xpm+set}" = set; then
1979 withval=$with_xpm;
1980 else
1981 with_xpm=yes
1982 fi
1983
1984
1985 # Check whether --with-jpeg was given.
1986 if test "${with_jpeg+set}" = set; then
1987 withval=$with_jpeg;
1988 else
1989 with_jpeg=yes
1990 fi
1991
1992
1993 # Check whether --with-tiff was given.
1994 if test "${with_tiff+set}" = set; then
1995 withval=$with_tiff;
1996 else
1997 with_tiff=yes
1998 fi
1999
2000
2001 # Check whether --with-gif was given.
2002 if test "${with_gif+set}" = set; then
2003 withval=$with_gif;
2004 else
2005 with_gif=yes
2006 fi
2007
2008
2009 # Check whether --with-png was given.
2010 if test "${with_png+set}" = set; then
2011 withval=$with_png;
2012 else
2013 with_png=yes
2014 fi
2015
2016
2017 # Check whether --with-rsvg was given.
2018 if test "${with_rsvg+set}" = set; then
2019 withval=$with_rsvg;
2020 else
2021 with_rsvg=yes
2022 fi
2023
2024
2025
2026 # Check whether --with-freetype was given.
2027 if test "${with_freetype+set}" = set; then
2028 withval=$with_freetype;
2029 else
2030 with_freetype=yes
2031 fi
2032
2033
2034 # Check whether --with-xft was given.
2035 if test "${with_xft+set}" = set; then
2036 withval=$with_xft;
2037 else
2038 with_xft=yes
2039 fi
2040
2041
2042 # Check whether --with-libotf was given.
2043 if test "${with_libotf+set}" = set; then
2044 withval=$with_libotf;
2045 else
2046 with_libotf=yes
2047 fi
2048
2049
2050 # Check whether --with-m17n-flt was given.
2051 if test "${with_m17n_flt+set}" = set; then
2052 withval=$with_m17n_flt;
2053 else
2054 with_m17n_flt=yes
2055 fi
2056
2057
2058
2059 # Check whether --with-toolkit-scroll-bars was given.
2060 if test "${with_toolkit_scroll_bars+set}" = set; then
2061 withval=$with_toolkit_scroll_bars;
2062 else
2063 with_toolkit_scroll_bars=yes
2064 fi
2065
2066
2067 # Check whether --with-xaw3d was given.
2068 if test "${with_xaw3d+set}" = set; then
2069 withval=$with_xaw3d;
2070 else
2071 with_xaw3d=yes
2072 fi
2073
2074
2075 # Check whether --with-xim was given.
2076 if test "${with_xim+set}" = set; then
2077 withval=$with_xim;
2078 else
2079 with_xim=yes
2080 fi
2081
2082
2083 # Check whether --with-carbon was given.
2084 if test "${with_carbon+set}" = set; then
2085 withval=$with_carbon;
2086 else
2087 with_carbon=no
2088 fi
2089
2090
2091
2092 # Check whether --with-gpm was given.
2093 if test "${with_gpm+set}" = set; then
2094 withval=$with_gpm;
2095 else
2096 with_gpm=yes
2097 fi
2098
2099
2100 # Check whether --with-dbus was given.
2101 if test "${with_dbus+set}" = set; then
2102 withval=$with_dbus;
2103 else
2104 with_dbus=yes
2105 fi
2106
2107
2108 ## For the times when you want to build Emacs but don't have
2109 ## a suitable makeinfo, and can live without the manuals.
2110
2111 # Check whether --with-makeinfo was given.
2112 if test "${with_makeinfo+set}" = set; then
2113 withval=$with_makeinfo;
2114 else
2115 with_makeinfo=yes
2116 fi
2117
2118
2119
2120 # Check whether --with-gtk was given.
2121 if test "${with_gtk+set}" = set; then
2122 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2123 specify a toolkit." >&5
2124 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&2;}
2126 { (exit 1); exit 1; }; }
2127 fi
2128
2129
2130
2131 # Check whether --with-gcc was given.
2132 if test "${with_gcc+set}" = set; then
2133 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2134 variable to specify a compiler." >&5
2135 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&2;}
2137 { (exit 1); exit 1; }; }
2138 fi
2139
2140
2141
2142 # Check whether --with-pkg-config-prog was given.
2143 if test "${with_pkg_config_prog+set}" = set; then
2144 withval=$with_pkg_config_prog;
2145 fi
2146
2147 if test "X${with_pkg_config_prog}" != X; then
2148 if test "${with_pkg_config_prog}" != yes; then
2149 PKG_CONFIG="${with_pkg_config_prog}"
2150 fi
2151 fi
2152
2153 # Check whether --enable-carbon-app was given.
2154 if test "${enable_carbon_app+set}" = set; then
2155 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2156 fi
2157
2158
2159 ## Enabled by default.
2160 # Check whether --enable-font-backend was given.
2161 if test "${enable_font_backend+set}" = set; then
2162 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2163 else
2164 USE_FONT_BACKEND=yes
2165 fi
2166
2167
2168 # Check whether --enable-asserts was given.
2169 if test "${enable_asserts+set}" = set; then
2170 enableval=$enable_asserts; USE_XASSERTS=$enableval
2171 else
2172 USE_XASSERTS=no
2173 fi
2174
2175
2176 # Check whether --enable-maintainer-mode was given.
2177 if test "${enable_maintainer_mode+set}" = set; then
2178 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2179 else
2180 USE_MAINTAINER_MODE=no
2181 fi
2182
2183 if test $USE_MAINTAINER_MODE = yes; then
2184 MAINT=
2185 else
2186 MAINT=#
2187 fi
2188
2189
2190 # Check whether --enable-locallisppath was given.
2191 if test "${enable_locallisppath+set}" = set; then
2192 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2193 locallisppath=
2194 elif test "${enableval}" != "yes"; then
2195 locallisppath=${enableval}
2196 fi
2197 fi
2198
2199
2200 #### Make srcdir absolute, if it isn't already. It's important to
2201 #### avoid running the path through pwd unnecessarily, since pwd can
2202 #### give you automounter prefixes, which can go away. We do all this
2203 #### so Emacs can find its files when run uninstalled.
2204 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2205 unset CDPATH
2206 case "${srcdir}" in
2207 /* ) ;;
2208 . )
2209 ## We may be able to use the $PWD environment variable to make this
2210 ## absolute. But sometimes PWD is inaccurate.
2211 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2212 ## but that tested only for a well-formed and valid PWD,
2213 ## it did not object when PWD was well-formed and valid but just wrong.
2214 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2215 then
2216 srcdir="$PWD"
2217 else
2218 srcdir="`(cd ${srcdir}; pwd)`"
2219 fi
2220 ;;
2221 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2222 esac
2223
2224 #### Check if the source directory already has a configured system in it.
2225 if test `pwd` != `(cd ${srcdir} && pwd)` \
2226 && test -f "${srcdir}/src/config.h" ; then
2227 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2228 as a build directory right now; it has been configured in its own
2229 right. To configure in another directory as well, you MUST
2230 use GNU make. If you do not have GNU make, then you must
2231 now do \`make distclean' in ${srcdir},
2232 and then run $0 again." >&5
2233 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2234 as a build directory right now; it has been configured in its own
2235 right. To configure in another directory as well, you MUST
2236 use GNU make. If you do not have GNU make, then you must
2237 now do \`make distclean' in ${srcdir},
2238 and then run $0 again." >&2;}
2239 fi
2240
2241 #### Given the configuration name, set machfile and opsysfile to the
2242 #### names of the m/*.h and s/*.h files we should use.
2243
2244 ### Canonicalize the configuration name.
2245
2246 ac_aux_dir=
2247 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2248 if test -f "$ac_dir/install-sh"; then
2249 ac_aux_dir=$ac_dir
2250 ac_install_sh="$ac_aux_dir/install-sh -c"
2251 break
2252 elif test -f "$ac_dir/install.sh"; then
2253 ac_aux_dir=$ac_dir
2254 ac_install_sh="$ac_aux_dir/install.sh -c"
2255 break
2256 elif test -f "$ac_dir/shtool"; then
2257 ac_aux_dir=$ac_dir
2258 ac_install_sh="$ac_aux_dir/shtool install -c"
2259 break
2260 fi
2261 done
2262 if test -z "$ac_aux_dir"; then
2263 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2264 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2265 { (exit 1); exit 1; }; }
2266 fi
2267
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2275
2276
2277 # Make sure we can run config.sub.
2278 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2279 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2280 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2281 { (exit 1); exit 1; }; }
2282
2283 { echo "$as_me:$LINENO: checking build system type" >&5
2284 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2285 if test "${ac_cv_build+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 ac_build_alias=$build_alias
2289 test "x$ac_build_alias" = x &&
2290 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2291 test "x$ac_build_alias" = x &&
2292 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2293 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2294 { (exit 1); exit 1; }; }
2295 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2299
2300 fi
2301 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2302 echo "${ECHO_T}$ac_cv_build" >&6; }
2303 case $ac_cv_build in
2304 *-*-*) ;;
2305 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2306 echo "$as_me: error: invalid value of canonical build" >&2;}
2307 { (exit 1); exit 1; }; };;
2308 esac
2309 build=$ac_cv_build
2310 ac_save_IFS=$IFS; IFS='-'
2311 set x $ac_cv_build
2312 shift
2313 build_cpu=$1
2314 build_vendor=$2
2315 shift; shift
2316 # Remember, the first character of IFS is used to create $*,
2317 # except with old shells:
2318 build_os=$*
2319 IFS=$ac_save_IFS
2320 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2321
2322
2323 { echo "$as_me:$LINENO: checking host system type" >&5
2324 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2325 if test "${ac_cv_host+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test "x$host_alias" = x; then
2329 ac_cv_host=$ac_cv_build
2330 else
2331 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2332 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2333 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2334 { (exit 1); exit 1; }; }
2335 fi
2336
2337 fi
2338 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2339 echo "${ECHO_T}$ac_cv_host" >&6; }
2340 case $ac_cv_host in
2341 *-*-*) ;;
2342 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2343 echo "$as_me: error: invalid value of canonical host" >&2;}
2344 { (exit 1); exit 1; }; };;
2345 esac
2346 host=$ac_cv_host
2347 ac_save_IFS=$IFS; IFS='-'
2348 set x $ac_cv_host
2349 shift
2350 host_cpu=$1
2351 host_vendor=$2
2352 shift; shift
2353 # Remember, the first character of IFS is used to create $*,
2354 # except with old shells:
2355 host_os=$*
2356 IFS=$ac_save_IFS
2357 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2358
2359
2360 canonical=$host
2361 configuration=${host_alias-${build_alias-$host}}
2362
2363
2364
2365 ### If you add support for a new configuration, add code to this
2366 ### switch statement to recognize your configuration name and select
2367 ### the appropriate operating system and machine description files.
2368
2369 ### You would hope that you could choose an m/*.h file pretty much
2370 ### based on the machine portion of the configuration name, and an s-
2371 ### file based on the operating system portion. However, it turns out
2372 ### that each m/*.h file is pretty manufacturer-specific - for
2373 ### example hp9000s300.h is a 68000 machine;
2374 ### mips.h, pmax.h are all MIPS
2375 ### machines. So we basically have to have a special case for each
2376 ### configuration name.
2377 ###
2378 ### As far as handling version numbers on operating systems is
2379 ### concerned, make sure things will fail in a fixable way. If
2380 ### /etc/MACHINES doesn't say anything about version numbers, be
2381 ### prepared to handle anything reasonably. If version numbers
2382 ### matter, be sure /etc/MACHINES says something about it.
2383 ###
2384 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2385 ### "System V Release 4"; he writes, "The old convention encouraged
2386 ### confusion between `system' and `release' levels'."
2387
2388 machine='' opsys='' unported=no
2389 case "${canonical}" in
2390
2391 ## FreeBSD ports
2392 *-*-freebsd* )
2393 opsys=freebsd
2394 case "${canonical}" in
2395 alpha*-*-freebsd*) machine=alpha ;;
2396 arm*-*-freebsd*) machine=arm ;;
2397 ia64-*-freebsd*) machine=ia64 ;;
2398 sparc64-*-freebsd*) machine=sparc ;;
2399 powerpc-*-freebsd*) machine=macppc ;;
2400 i[3456]86-*-freebsd*) machine=intel386 ;;
2401 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2402 esac
2403 ;;
2404
2405 ## FreeBSD kernel + glibc based userland
2406 *-*-kfreebsd*gnu* )
2407 opsys=gnu-kfreebsd
2408 case "${canonical}" in
2409 alpha*-*-kfreebsd*) machine=alpha ;;
2410 ia64-*-kfreebsd*) machine=ia64 ;;
2411 sparc64-*-kfreebsd*) machine=sparc ;;
2412 powerpc-*-kfreebsd*) machine=macppc ;;
2413 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2414 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2415 esac
2416 ;;
2417
2418 ## NetBSD ports
2419 *-*-netbsd* )
2420 opsys=netbsd
2421 if test -f /usr/lib/crti.o; then
2422
2423 cat >>confdefs.h <<\_ACEOF
2424 #define HAVE_CRTIN
2425 _ACEOF
2426
2427 fi
2428
2429 case "${canonical}" in
2430 alpha*-*-netbsd*) machine=alpha ;;
2431 i[3456]86-*-netbsd*) machine=intel386 ;;
2432 m68k-*-netbsd*)
2433 # This is somewhat bogus.
2434 machine=hp9000s300 ;;
2435 mips-*-netbsd*) machine=pmax ;;
2436 mipsel-*-netbsd*) machine=pmax ;;
2437 mipseb-*-netbsd*) machine=pmax ;;
2438 powerpc-*-netbsd*) machine=macppc ;;
2439 sparc*-*-netbsd*) machine=sparc ;;
2440 vax-*-netbsd*) machine=vax ;;
2441 arm-*-netbsd*) machine=arm ;;
2442 x86_64-*-netbsd*) machine=amdx86-64 ;;
2443 hppa-*-netbsd*) machine=hp800 ;;
2444 esac
2445 ;;
2446
2447 ## OpenBSD ports
2448 *-*-openbsd* )
2449 opsys=openbsd
2450 case "${canonical}" in
2451 alpha*-*-openbsd*) machine=alpha ;;
2452 arm-*-openbsd*) machine=arm ;;
2453 hppa-*-openbsd*) machine=hp9000s300 ;;
2454 i386-*-openbsd*) machine=intel386 ;;
2455 m68k-*-openbsd*) machine=hp9000s300 ;;
2456 powerpc-*-openbsd*) machine=macppc ;;
2457 sparc*-*-openbsd*) machine=sparc ;;
2458 vax-*-openbsd*) machine=vax ;;
2459 x86_64-*-openbsd*) machine=amdx86-64 ;;
2460 esac
2461 ;;
2462
2463 ## LynxOS ports
2464 *-*-lynxos* )
2465 opsys=lynxos
2466 case "${canonical}" in
2467 i[3456]86-*-lynxos*) machine=intel386 ;;
2468 powerpc-*-lynxos*) machine=powerpc ;;
2469 esac
2470 ;;
2471
2472 ## BSDI ports
2473 *-*-bsdi* )
2474 opsys=bsdi
2475 case "${canonical}" in
2476 i[345]86-*-bsdi*) machine=intel386 ;;
2477 sparc-*-bsdi*) machine=sparc ;;
2478 powerpc-*-bsdi*) machine=macppc ;;
2479 esac
2480 case "${canonical}" in
2481 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2482 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2483 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2484 *-*-bsdi3* ) opsys=bsdos3 ;;
2485 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2486 esac
2487 ;;
2488
2489 alpha*-*-linux-gnu* )
2490 machine=alpha opsys=gnu-linux
2491 ;;
2492
2493 arm*-*-linux-gnu* )
2494 machine=arm opsys=gnu-linux
2495 ;;
2496
2497 ## Apple Darwin / Mac OS X
2498 *-apple-darwin* )
2499 case "${canonical}" in
2500 i[3456]86-* ) machine=intel386 ;;
2501 powerpc-* ) machine=powermac ;;
2502 * ) unported=yes ;;
2503 esac
2504 opsys=darwin
2505 # Define CPP as follows to make autoconf work correctly.
2506 CPP="${CC-cc} -E -no-cpp-precomp"
2507 # Use fink packages if available.
2508 if test -d /sw/include && test -d /sw/lib; then
2509 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2510 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2511 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2512 fi
2513 ;;
2514
2515 ## Cubix QBx/386
2516 i[3456]86-cubix-sysv* )
2517 machine=intel386 opsys=usg5-3
2518 ;;
2519
2520 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2521 machine=pmax opsys=bsd4-2
2522 ;;
2523 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2524 machine=pmax opsys=bsd4-3
2525 ;;
2526 mips-dec-ultrix* )
2527 machine=pmax opsys=ultrix4-3
2528 ;;
2529 ## HP 9000 series 200 or 300
2530 m68*-hp-bsd* )
2531 machine=hp9000s300 opsys=bsd4-3
2532 ;;
2533 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2534 m68*-hp-hpux* )
2535 case "`uname -r`" in
2536 ## Someone's system reports A.B8.05 for this.
2537 ## I wonder what other possibilities there are.
2538 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2539 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2540 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2541 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2542 *) machine=hp9000s300 opsys=hpux ;;
2543 esac
2544 ;;
2545
2546 ## HP 9000 series 700 and 800, running HP/UX
2547 hppa*-hp-hpux7* )
2548 machine=hp800 opsys=hpux
2549 ;;
2550 hppa*-hp-hpux8* )
2551 machine=hp800 opsys=hpux8
2552 ;;
2553 hppa*-hp-hpux9shr* )
2554 machine=hp800 opsys=hpux9shr
2555 ;;
2556 hppa*-hp-hpux9* )
2557 machine=hp800 opsys=hpux9
2558 ;;
2559 hppa*-hp-hpux10.2* )
2560 machine=hp800 opsys=hpux10-20
2561 ;;
2562 hppa*-hp-hpux10* )
2563 machine=hp800 opsys=hpux10
2564 ;;
2565 hppa*-hp-hpux1[1-9]* )
2566 machine=hp800 opsys=hpux11
2567 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2568 ;;
2569
2570 hppa*-*-linux-gnu* )
2571 machine=hp800 opsys=gnu-linux
2572 ;;
2573
2574 ## HP 9000 series 700 and 800, running HP/UX
2575 hppa*-hp-hpux* )
2576 ## Cross-compilation? Nah!
2577 case "`uname -r`" in
2578 ## Someone's system reports A.B8.05 for this.
2579 ## I wonder what other possibilities there are.
2580 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2581 *.08.* ) machine=hp800 opsys=hpux8 ;;
2582 *.09.* ) machine=hp800 opsys=hpux9 ;;
2583 *) machine=hp800 opsys=hpux10 ;;
2584 esac
2585 ;;
2586 hppa*-*-nextstep* )
2587 machine=hp800 opsys=nextstep
2588 ;;
2589
2590 ## IBM machines
2591 i370-ibm-aix*)
2592 machine=ibm370aix opsys=usg5-3
2593 ;;
2594 s390-*-linux-gnu* )
2595 machine=ibms390 opsys=gnu-linux
2596 ;;
2597 s390x-*-linux-gnu* )
2598 machine=ibms390x opsys=gnu-linux
2599 ;;
2600 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2601 machine=ibmrs6000 opsys=aix3-1
2602 ;;
2603 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2604 machine=ibmrs6000 opsys=aix3-2-5
2605 ;;
2606 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2607 machine=ibmrs6000 opsys=aix4-1
2608 ;;
2609 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2610 machine=ibmrs6000 opsys=aix4-2
2611 ;;
2612 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2613 machine=ibmrs6000 opsys=aix4-2
2614 ;;
2615 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2616 machine=ibmrs6000 opsys=aix4-2
2617 ;;
2618 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2619 machine=ibmrs6000 opsys=aix4-2
2620 ;;
2621 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2622 machine=ibmrs6000 opsys=aix4
2623 ;;
2624 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2625 machine=ibmrs6000 opsys=aix4-1
2626 ;;
2627 rs6000-ibm-aix* | powerpc-ibm-aix* )
2628 machine=ibmrs6000 opsys=aix3-2
2629 ;;
2630
2631 ## Prime EXL
2632 i[3456]86-prime-sysv* )
2633 machine=i386 opsys=usg5-3
2634 ;;
2635
2636 ## ncr machine running svr4.3.
2637 i[3456]86-ncr-sysv4.3 )
2638 machine=ncr386 opsys=usg5-4-3
2639 ;;
2640
2641 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2642 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2643 i[3456]86-ncr-sysv* )
2644 machine=ncr386 opsys=usg5-4-2
2645 ;;
2646
2647 ## Macintosh PowerPC
2648 powerpc*-*-linux-gnu* )
2649 machine=macppc opsys=gnu-linux
2650 ;;
2651
2652 ## Workstations sold by MIPS
2653 ## This is not necessarily all workstations using the MIPS processor -
2654 ## Irises are produced by SGI, and DECstations by DEC.
2655
2656 mips-mips-bsd* )
2657 machine=mips opsys=bsd4-3
2658 ;;
2659 mips-mips-* )
2660 machine=mips opsys=usg5-2-2
2661 ;;
2662
2663 ## NeXT
2664 m68*-next-* | m68k-*-nextstep* )
2665 machine=m68k opsys=nextstep
2666 ;;
2667
2668 ## NEC EWS4800
2669 mips-nec-sysv4*)
2670 machine=ews4800 opsys=ux4800
2671 ;;
2672
2673 ## Siemens Nixdorf
2674 mips-siemens-sysv* | mips-sni-sysv*)
2675 machine=mips-siemens opsys=usg5-4
2676 NON_GNU_CC=/usr/ccs/bin/cc
2677 NON_GNU_CPP=/usr/ccs/lib/cpp
2678 ;;
2679
2680 ## Silicon Graphics machines
2681 ## Iris 4D
2682 mips-sgi-irix6.5 )
2683 machine=iris4d opsys=irix6-5
2684 # Without defining _LANGUAGE_C, things get masked out in the headers
2685 # so that, for instance, grepping for `free' in stdlib.h fails and
2686 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2687 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2688 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2689 ;;
2690
2691 ## Suns
2692 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2693 machine=sparc opsys=gnu-linux
2694 ;;
2695
2696 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2697 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2698 | rs6000-*-solaris2*)
2699 case "${canonical}" in
2700 i[3456]86-*-* ) machine=intel386 ;;
2701 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2702 powerpcle* ) machine=powerpcle ;;
2703 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2704 sparc* ) machine=sparc ;;
2705 * ) unported=yes ;;
2706 esac
2707 case "${canonical}" in
2708 *-sunos5.3* | *-solaris2.3* )
2709 opsys=sol2-3
2710 NON_GNU_CPP=/usr/ccs/lib/cpp
2711 ;;
2712 *-sunos5.4* | *-solaris2.4* )
2713 opsys=sol2-4
2714 NON_GNU_CPP=/usr/ccs/lib/cpp
2715 RANLIB="ar -ts"
2716 ;;
2717 *-sunos5.5* | *-solaris2.5* )
2718 opsys=sol2-5
2719 NON_GNU_CPP=/usr/ccs/lib/cpp
2720 RANLIB="ar -ts"
2721 ;;
2722 *-sunos5.6* | *-solaris2.6* )
2723 opsys=sol2-6
2724 NON_GNU_CPP=/usr/ccs/lib/cpp
2725 RANLIB="ar -ts"
2726 ;;
2727 *-sunos5* | *-solaris* )
2728 opsys=sol2-6
2729 emacs_check_sunpro_c=yes
2730 NON_GNU_CPP=/usr/ccs/lib/cpp
2731 ;;
2732 * ) opsys=bsd4-2 ;;
2733 esac
2734 ## Watch out for a compiler that we know will not work.
2735 case "${canonical}" in
2736 *-solaris* | *-sunos5* )
2737 if [ "x$CC" = x/usr/ucb/cc ]; then
2738 ## /usr/ucb/cc doesn't work;
2739 ## we should find some other compiler that does work.
2740 unset CC
2741 fi
2742 ;;
2743 *) ;;
2744 esac
2745 ;;
2746 sparc-*-nextstep* )
2747 machine=sparc opsys=nextstep
2748 ;;
2749
2750 ## Tandem Integrity S2
2751 mips-tandem-sysv* )
2752 machine=tandem-s2 opsys=usg5-3
2753 ;;
2754
2755 ## Vaxen.
2756 vax-dec-* )
2757 machine=vax
2758 case "${canonical}" in
2759 *-bsd4.1* ) opsys=bsd4-1 ;;
2760 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2761 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2762 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2763 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2764 *-vms* ) opsys=vms ;;
2765 * ) unported=yes
2766 esac
2767 ;;
2768
2769 ## IA-64
2770 ia64*-*-linux* )
2771 machine=ia64 opsys=gnu-linux
2772 ;;
2773
2774 ## Intel 386 machines where we don't care about the manufacturer
2775 i[3456]86-*-* )
2776 machine=intel386
2777 case "${canonical}" in
2778 *-cygwin ) opsys=cygwin ;;
2779 *-darwin* ) opsys=darwin
2780 CPP="${CC-cc} -E -no-cpp-precomp"
2781 ;;
2782 *-linux-gnu* ) opsys=gnu-linux ;;
2783 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2784 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2785 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2786 *-386bsd* ) opsys=386bsd ;;
2787 *-nextstep* ) opsys=nextstep ;;
2788 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2789 esac
2790 ;;
2791
2792 ## m68k Linux-based GNU system
2793 m68k-*-linux-gnu* )
2794 machine=m68k opsys=gnu-linux
2795 ;;
2796
2797 ## Mips Linux-based GNU system
2798 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2799 machine=mips opsys=gnu-linux
2800 ;;
2801
2802 ## UXP/DS
2803 sparc-fujitsu-sysv4* )
2804 machine=sparc opsys=uxpds
2805 NON_GNU_CPP=/usr/ccs/lib/cpp
2806 RANLIB="ar -ts"
2807 ;;
2808
2809 ## AMD x86-64 Linux-based GNU system
2810 x86_64-*-linux-gnu* )
2811 machine=amdx86-64 opsys=gnu-linux
2812 ;;
2813
2814 ## Tensilica Xtensa Linux-based GNU system
2815 xtensa*-*-linux-gnu* )
2816 machine=xtensa opsys=gnu-linux
2817 ;;
2818
2819 * )
2820 unported=yes
2821 ;;
2822 esac
2823
2824 ### If the code above didn't choose an operating system, just choose
2825 ### an operating system based on the configuration name. You really
2826 ### only want to use this when you have no idea what the right
2827 ### operating system is; if you know what operating systems a machine
2828 ### runs, it's cleaner to make it explicit in the case statement
2829 ### above.
2830 if test x"${opsys}" = x; then
2831 case "${canonical}" in
2832 *-gnu* ) opsys=gnu ;;
2833 *-bsd4.[01] ) opsys=bsd4-1 ;;
2834 *-bsd4.2 ) opsys=bsd4-2 ;;
2835 *-bsd4.3 ) opsys=bsd4-3 ;;
2836 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2837 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2838 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2839 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2840 *-sysv4.2uw* ) opsys=unixware ;;
2841 *-sysv5uw* ) opsys=unixware ;;
2842 *-sysv5OpenUNIX* ) opsys=unixware ;;
2843 *-sysv4.1* | *-sysvr4.1* )
2844 NON_GNU_CPP=/usr/lib/cpp
2845 opsys=usg5-4 ;;
2846 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2847 if [ x$NON_GNU_CPP = x ]; then
2848 if [ -f /usr/ccs/lib/cpp ]; then
2849 NON_GNU_CPP=/usr/ccs/lib/cpp
2850 else
2851 NON_GNU_CPP=/lib/cpp
2852 fi
2853 fi
2854 opsys=usg5-4-2 ;;
2855 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2856 * )
2857 unported=yes
2858 ;;
2859 esac
2860 fi
2861
2862 ### Tests for sytems that we beleive are obsolete and should be desupported.
2863
2864 case "${machine}" in
2865 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2866 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2867 echo "and it is planned to be desupported in the next version of Emacs"
2868 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2869 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2870 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2871 exit 33
2872 ;;
2873 esac
2874
2875 case "${opsys}" in
2876 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
2877 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2878 echo "and it is planned to be desupported in the next version of Emacs"
2879 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2880 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2881 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2882 exit 44
2883 ;;
2884 esac
2885
2886
2887
2888 if test $unported = yes; then
2889 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2890 Check \`etc/MACHINES' for recognized configuration names." >&5
2891 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2892 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2893 { (exit 1); exit 1; }; }
2894 fi
2895
2896 machfile="m/${machine}.h"
2897 opsysfile="s/${opsys}.h"
2898
2899
2900 #### Choose a compiler.
2901 test -n "$CC" && cc_specified=yes
2902
2903 # Save the value of CFLAGS that the user specified.
2904 SPECIFIED_CFLAGS="$CFLAGS"
2905
2906 ac_ext=c
2907 ac_cpp='$CPP $CPPFLAGS'
2908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911 if test -n "$ac_tool_prefix"; then
2912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_CC+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 CC=$ac_cv_prog_CC
2940 if test -n "$CC"; then
2941 { echo "$as_me:$LINENO: result: $CC" >&5
2942 echo "${ECHO_T}$CC" >&6; }
2943 else
2944 { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2946 fi
2947
2948
2949 fi
2950 if test -z "$ac_cv_prog_CC"; then
2951 ac_ct_CC=$CC
2952 # Extract the first word of "gcc", so it can be a program name with args.
2953 set dummy gcc; ac_word=$2
2954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 else
2959 if test -n "$ac_ct_CC"; then
2960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_ac_ct_CC="gcc"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973 done
2974 done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6; }
2983 else
2984 { echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6; }
2986 fi
2987
2988 if test "x$ac_ct_CC" = x; then
2989 CC=""
2990 else
2991 case $cross_compiling:$ac_tool_warned in
2992 yes:)
2993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2994 whose name does not start with the host triplet. If you think this
2995 configuration is useful to you, please write to autoconf@gnu.org." >&5
2996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2997 whose name does not start with the host triplet. If you think this
2998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2999 ac_tool_warned=yes ;;
3000 esac
3001 CC=$ac_ct_CC
3002 fi
3003 else
3004 CC="$ac_cv_prog_CC"
3005 fi
3006
3007 if test -z "$CC"; then
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010 set dummy ${ac_tool_prefix}cc; ac_word=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC="${ac_tool_prefix}cc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038 { echo "$as_me:$LINENO: result: $CC" >&5
3039 echo "${ECHO_T}$CC" >&6; }
3040 else
3041 { echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6; }
3043 fi
3044
3045
3046 fi
3047 fi
3048 if test -z "$CC"; then
3049 # Extract the first word of "cc", so it can be a program name with args.
3050 set dummy cc; ac_word=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059 ac_prog_rejected=no
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068 ac_prog_rejected=yes
3069 continue
3070 fi
3071 ac_cv_prog_CC="cc"
3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 if test $ac_prog_rejected = yes; then
3080 # We found a bogon in the path, so make sure we never use it.
3081 set dummy $ac_cv_prog_CC
3082 shift
3083 if test $# != 0; then
3084 # We chose a different compiler from the bogus one.
3085 # However, it has the same basename, so the bogon will be chosen
3086 # first if we set CC to just the basename; use the full file name.
3087 shift
3088 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089 fi
3090 fi
3091 fi
3092 fi
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095 { echo "$as_me:$LINENO: result: $CC" >&5
3096 echo "${ECHO_T}$CC" >&6; }
3097 else
3098 { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3100 fi
3101
3102
3103 fi
3104 if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 for ac_prog in cl.exe
3107 do
3108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC="$CC" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 CC=$ac_cv_prog_CC
3136 if test -n "$CC"; then
3137 { echo "$as_me:$LINENO: result: $CC" >&5
3138 echo "${ECHO_T}$CC" >&6; }
3139 else
3140 { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3142 fi
3143
3144
3145 test -n "$CC" && break
3146 done
3147 fi
3148 if test -z "$CC"; then
3149 ac_ct_CC=$CC
3150 for ac_prog in cl.exe
3151 do
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159 if test -n "$ac_ct_CC"; then
3160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_ac_ct_CC="$ac_prog"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3182 echo "${ECHO_T}$ac_ct_CC" >&6; }
3183 else
3184 { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3186 fi
3187
3188
3189 test -n "$ac_ct_CC" && break
3190 done
3191
3192 if test "x$ac_ct_CC" = x; then
3193 CC=""
3194 else
3195 case $cross_compiling:$ac_tool_warned in
3196 yes:)
3197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3198 whose name does not start with the host triplet. If you think this
3199 configuration is useful to you, please write to autoconf@gnu.org." >&5
3200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3201 whose name does not start with the host triplet. If you think this
3202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205 CC=$ac_ct_CC
3206 fi
3207 fi
3208
3209 fi
3210
3211
3212 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3213 See \`config.log' for more details." >&5
3214 echo "$as_me: error: no acceptable C compiler found in \$PATH
3215 See \`config.log' for more details." >&2;}
3216 { (exit 1); exit 1; }; }
3217
3218 # Provide some information about the compiler.
3219 echo "$as_me:$LINENO: checking for C compiler version" >&5
3220 ac_compiler=`set X $ac_compile; echo $2`
3221 { (ac_try="$ac_compiler --version >&5"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compiler --version >&5") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3231 { (ac_try="$ac_compiler -v >&5"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compiler -v >&5") 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }
3241 { (ac_try="$ac_compiler -V >&5"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_compiler -V >&5") 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3251
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3271 # of exeext.
3272 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3273 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3274 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3275 #
3276 # List of possible output files, starting from the most likely.
3277 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3278 # only as a last resort. b.out is created by i960 compilers.
3279 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3280 #
3281 # The IRIX 6 linker writes into existing files which may not be
3282 # executable, retaining their permissions. Remove them first so a
3283 # subsequent execution test works.
3284 ac_rmfiles=
3285 for ac_file in $ac_files
3286 do
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3289 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3290 esac
3291 done
3292 rm -f $ac_rmfiles
3293
3294 if { (ac_try="$ac_link_default"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_link_default") 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; then
3304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3305 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3306 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3307 # so that the user can short-circuit this test for compilers unknown to
3308 # Autoconf.
3309 for ac_file in $ac_files ''
3310 do
3311 test -f "$ac_file" || continue
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3314 ;;
3315 [ab].out )
3316 # We found the default executable, but exeext='' is most
3317 # certainly right.
3318 break;;
3319 *.* )
3320 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3321 then :; else
3322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3323 fi
3324 # We set ac_cv_exeext here because the later test for it is not
3325 # safe: cross compilers may not add the suffix if given an `-o'
3326 # argument, so we may need to know it at that point already.
3327 # Even if this section looks crufty: it has the advantage of
3328 # actually working.
3329 break;;
3330 * )
3331 break;;
3332 esac
3333 done
3334 test "$ac_cv_exeext" = no && ac_cv_exeext=
3335
3336 else
3337 ac_file=''
3338 fi
3339
3340 { echo "$as_me:$LINENO: result: $ac_file" >&5
3341 echo "${ECHO_T}$ac_file" >&6; }
3342 if test -z "$ac_file"; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: C compiler cannot create executables
3349 See \`config.log' for more details." >&2;}
3350 { (exit 77); exit 77; }; }
3351 fi
3352
3353 ac_exeext=$ac_cv_exeext
3354
3355 # Check that the compiler produces executables we can run. If not, either
3356 # the compiler is broken, or we cross compile.
3357 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3358 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3359 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3360 # If not cross compiling, check that we can run a simple program.
3361 if test "$cross_compiling" != yes; then
3362 if { ac_try='./$ac_file'
3363 { (case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_try") 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 cross_compiling=no
3373 else
3374 if test "$cross_compiling" = maybe; then
3375 cross_compiling=yes
3376 else
3377 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details." >&5
3380 echo "$as_me: error: cannot run C compiled programs.
3381 If you meant to cross compile, use \`--host'.
3382 See \`config.log' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3384 fi
3385 fi
3386 fi
3387 { echo "$as_me:$LINENO: result: yes" >&5
3388 echo "${ECHO_T}yes" >&6; }
3389
3390 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3391 ac_clean_files=$ac_clean_files_save
3392 # Check that the compiler produces executables we can run. If not, either
3393 # the compiler is broken, or we cross compile.
3394 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3395 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3396 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3397 echo "${ECHO_T}$cross_compiling" >&6; }
3398
3399 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3400 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3401 if { (ac_try="$ac_link"
3402 case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_link") 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; then
3411 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3412 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3413 # work properly (i.e., refer to `conftest.exe'), while it won't with
3414 # `rm'.
3415 for ac_file in conftest.exe conftest conftest.*; do
3416 test -f "$ac_file" || continue
3417 case $ac_file in
3418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3420 break;;
3421 * ) break;;
3422 esac
3423 done
3424 else
3425 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3426 See \`config.log' for more details." >&5
3427 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3428 See \`config.log' for more details." >&2;}
3429 { (exit 1); exit 1; }; }
3430 fi
3431
3432 rm -f conftest$ac_cv_exeext
3433 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3434 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3435
3436 rm -f conftest.$ac_ext
3437 EXEEXT=$ac_cv_exeext
3438 ac_exeext=$EXEEXT
3439 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3440 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3441 if test "${ac_cv_objext+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h. */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450
3451 int
3452 main ()
3453 {
3454
3455 ;
3456 return 0;
3457 }
3458 _ACEOF
3459 rm -f conftest.o conftest.obj
3460 if { (ac_try="$ac_compile"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_compile") 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; then
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475 break;;
3476 esac
3477 done
3478 else
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3483 See \`config.log' for more details." >&5
3484 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details." >&2;}
3486 { (exit 1); exit 1; }; }
3487 fi
3488
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3490 fi
3491 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3492 echo "${ECHO_T}$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3494 ac_objext=$OBJEXT
3495 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3496 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510 #ifndef __GNUC__
3511 choke me
3512 #endif
3513
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
3535 ac_compiler_gnu=yes
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540 ac_compiler_gnu=no
3541 fi
3542
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3545
3546 fi
3547 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3548 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3549 GCC=`test $ac_compiler_gnu = yes && echo yes`
3550 ac_test_CFLAGS=${CFLAGS+set}
3551 ac_save_CFLAGS=$CFLAGS
3552 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3553 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3554 if test "${ac_cv_prog_cc_g+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 ac_save_c_werror_flag=$ac_c_werror_flag
3558 ac_c_werror_flag=yes
3559 ac_cv_prog_cc_g=no
3560 CFLAGS="-g"
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_cv_prog_cc_g=yes
3594 else
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 CFLAGS=""
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605
3606 int
3607 main ()
3608 {
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3631 :
3632 else
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3637 CFLAGS="-g"
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3670 ac_cv_prog_cc_g=yes
3671 else
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675
3676 fi
3677
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 fi
3680
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 fi
3683
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3686 fi
3687 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3689 if test "$ac_test_CFLAGS" = set; then
3690 CFLAGS=$ac_save_CFLAGS
3691 elif test $ac_cv_prog_cc_g = yes; then
3692 if test "$GCC" = yes; then
3693 CFLAGS="-g -O2"
3694 else
3695 CFLAGS="-g"
3696 fi
3697 else
3698 if test "$GCC" = yes; then
3699 CFLAGS="-O2"
3700 else
3701 CFLAGS=
3702 fi
3703 fi
3704 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3705 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3706 if test "${ac_cv_prog_cc_c89+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 ac_cv_prog_cc_c89=no
3710 ac_save_CC=$CC
3711 cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h. */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3717 #include <stdarg.h>
3718 #include <stdio.h>
3719 #include <sys/types.h>
3720 #include <sys/stat.h>
3721 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3722 struct buf { int x; };
3723 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3724 static char *e (p, i)
3725 char **p;
3726 int i;
3727 {
3728 return p[i];
3729 }
3730 static char *f (char * (*g) (char **, int), char **p, ...)
3731 {
3732 char *s;
3733 va_list v;
3734 va_start (v,p);
3735 s = g (p, va_arg (v,int));
3736 va_end (v);
3737 return s;
3738 }
3739
3740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3741 function prototypes and stuff, but not '\xHH' hex character constants.
3742 These don't provoke an error unfortunately, instead are silently treated
3743 as 'x'. The following induces an error, until -std is added to get
3744 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3745 array size at least. It's necessary to write '\x00'==0 to get something
3746 that's true only with -std. */
3747 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3748
3749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3750 inside strings and character constants. */
3751 #define FOO(x) 'x'
3752 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3753
3754 int test (int i, double x);
3755 struct s1 {int (*f) (int a);};
3756 struct s2 {int (*f) (double a);};
3757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3758 int argc;
3759 char **argv;
3760 int
3761 main ()
3762 {
3763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3769 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3770 do
3771 CC="$ac_save_CC $ac_arg"
3772 rm -f conftest.$ac_objext
3773 if { (ac_try="$ac_compile"
3774 case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777 esac
3778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_compile") 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } && {
3786 test -z "$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 } && test -s conftest.$ac_objext; then
3789 ac_cv_prog_cc_c89=$ac_arg
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794
3795 fi
3796
3797 rm -f core conftest.err conftest.$ac_objext
3798 test "x$ac_cv_prog_cc_c89" != "xno" && break
3799 done
3800 rm -f conftest.$ac_ext
3801 CC=$ac_save_CC
3802
3803 fi
3804 # AC_CACHE_VAL
3805 case "x$ac_cv_prog_cc_c89" in
3806 x)
3807 { echo "$as_me:$LINENO: result: none needed" >&5
3808 echo "${ECHO_T}none needed" >&6; } ;;
3809 xno)
3810 { echo "$as_me:$LINENO: result: unsupported" >&5
3811 echo "${ECHO_T}unsupported" >&6; } ;;
3812 *)
3813 CC="$CC $ac_cv_prog_cc_c89"
3814 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3815 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3816 esac
3817
3818
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3824
3825
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3828 CPP=
3829 fi
3830
3831 ## If not using gcc, and on Solaris, and no CPP specified, see if
3832 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3833 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3834 test x"$CPP" = x; then
3835 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3836 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3837
3838 if test "${emacs_cv_sunpro_c+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847
3848 int
3849 main ()
3850 {
3851 #ifndef __SUNPRO_C
3852 fail;
3853 #endif
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 rm -f conftest.$ac_objext conftest$ac_exeext
3860 if { (ac_try="$ac_link"
3861 case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864 esac
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_link") 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest$ac_exeext &&
3876 $as_test_x conftest$ac_exeext; then
3877 emacs_cv_sunpro_c=yes
3878 else
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882 emacs_cv_sunpro_c=no
3883 fi
3884
3885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3886 conftest$ac_exeext conftest.$ac_ext
3887 fi
3888
3889 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3890 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3891
3892 if test x"$emacs_cv_sunpro_c" = xyes; then
3893 NON_GNU_CPP="$CC -E -Xs"
3894 fi
3895 fi
3896
3897 #### Some systems specify a CPP to use unless we are using GCC.
3898 #### Now that we know whether we are using GCC, we can decide whether
3899 #### to use that one.
3900 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3901 then
3902 CPP="$NON_GNU_CPP"
3903 fi
3904
3905 #### Some systems specify a CC to use unless we are using GCC.
3906 #### Now that we know whether we are using GCC, we can decide whether
3907 #### to use that one.
3908 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3909 test x$cc_specified != xyes
3910 then
3911 CC="$NON_GNU_CC"
3912 fi
3913
3914 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3915 then
3916 CC="$CC $GCC_TEST_OPTIONS"
3917 fi
3918
3919 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3920 then
3921 CC="$CC $NON_GCC_TEST_OPTIONS"
3922 fi
3923
3924
3925 cat >>confdefs.h <<\_ACEOF
3926 #define _GNU_SOURCE 1
3927 _ACEOF
3928
3929
3930 ac_ext=c
3931 ac_cpp='$CPP $CPPFLAGS'
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3936 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3937 # On Suns, sometimes $CPP names a directory.
3938 if test -n "$CPP" && test -d "$CPP"; then
3939 CPP=
3940 fi
3941 if test -z "$CPP"; then
3942 if test "${ac_cv_prog_CPP+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 # Double quotes because CPP needs to be expanded
3946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3947 do
3948 ac_preproc_ok=false
3949 for ac_c_preproc_warn_flag in '' yes
3950 do
3951 # Use a header file that comes with gcc, so configuring glibc
3952 # with a fresh cross-compiler works.
3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954 # <limits.h> exists even on freestanding compilers.
3955 # On the NeXT, cc -E runs the code through the compiler's parser,
3956 # not just through cpp. "Syntax error" is here to catch this case.
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #ifdef __STDC__
3964 # include <limits.h>
3965 #else
3966 # include <assert.h>
3967 #endif
3968 Syntax error
3969 _ACEOF
3970 if { (ac_try="$ac_cpp conftest.$ac_ext"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } >/dev/null && {
3983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3984 test ! -s conftest.err
3985 }; then
3986 :
3987 else
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 # Broken: fails on valid input.
3992 continue
3993 fi
3994
3995 rm -f conftest.err conftest.$ac_ext
3996
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4006 _ACEOF
4007 if { (ac_try="$ac_cpp conftest.$ac_ext"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } >/dev/null && {
4020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 }; then
4023 # Broken: success on invalid input.
4024 continue
4025 else
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 # Passes both tests.
4030 ac_preproc_ok=:
4031 break
4032 fi
4033
4034 rm -f conftest.err conftest.$ac_ext
4035
4036 done
4037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4038 rm -f conftest.err conftest.$ac_ext
4039 if $ac_preproc_ok; then
4040 break
4041 fi
4042
4043 done
4044 ac_cv_prog_CPP=$CPP
4045
4046 fi
4047 CPP=$ac_cv_prog_CPP
4048 else
4049 ac_cv_prog_CPP=$CPP
4050 fi
4051 { echo "$as_me:$LINENO: result: $CPP" >&5
4052 echo "${ECHO_T}$CPP" >&6; }
4053 ac_preproc_ok=false
4054 for ac_c_preproc_warn_flag in '' yes
4055 do
4056 # Use a header file that comes with gcc, so configuring glibc
4057 # with a fresh cross-compiler works.
4058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4059 # <limits.h> exists even on freestanding compilers.
4060 # On the NeXT, cc -E runs the code through the compiler's parser,
4061 # not just through cpp. "Syntax error" is here to catch this case.
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 #ifdef __STDC__
4069 # include <limits.h>
4070 #else
4071 # include <assert.h>
4072 #endif
4073 Syntax error
4074 _ACEOF
4075 if { (ac_try="$ac_cpp conftest.$ac_ext"
4076 case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079 esac
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } >/dev/null && {
4088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4089 test ! -s conftest.err
4090 }; then
4091 :
4092 else
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096 # Broken: fails on valid input.
4097 continue
4098 fi
4099
4100 rm -f conftest.err conftest.$ac_ext
4101
4102 # OK, works on sane cases. Now check whether nonexistent headers
4103 # can be detected and how.
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4111 _ACEOF
4112 if { (ac_try="$ac_cpp conftest.$ac_ext"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 }; then
4128 # Broken: success on invalid input.
4129 continue
4130 else
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 # Passes both tests.
4135 ac_preproc_ok=:
4136 break
4137 fi
4138
4139 rm -f conftest.err conftest.$ac_ext
4140
4141 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4145 :
4146 else
4147 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4148 See \`config.log' for more details." >&5
4149 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4150 See \`config.log' for more details." >&2;}
4151 { (exit 1); exit 1; }; }
4152 fi
4153
4154 ac_ext=c
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
4160
4161 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4162 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4163 if test "${ac_cv_path_GREP+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166 # Extract the first word of "grep ggrep" to use in msg output
4167 if test -z "$GREP"; then
4168 set dummy grep ggrep; ac_prog_name=$2
4169 if test "${ac_cv_path_GREP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 ac_path_GREP_found=false
4173 # Loop through the user's path and test for each of PROGNAME-LIST
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4176 do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_prog in grep ggrep; do
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4182 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4183 # Check for GNU ac_path_GREP and select it if it is found.
4184 # Check for GNU $ac_path_GREP
4185 case `"$ac_path_GREP" --version 2>&1` in
4186 *GNU*)
4187 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4188 *)
4189 ac_count=0
4190 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4191 while :
4192 do
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 echo 'GREP' >> "conftest.nl"
4197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199 ac_count=`expr $ac_count + 1`
4200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_GREP="$ac_path_GREP"
4203 ac_path_GREP_max=$ac_count
4204 fi
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4207 done
4208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209 esac
4210
4211
4212 $ac_path_GREP_found && break 3
4213 done
4214 done
4215
4216 done
4217 IFS=$as_save_IFS
4218
4219
4220 fi
4221
4222 GREP="$ac_cv_path_GREP"
4223 if test -z "$GREP"; then
4224 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4225 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4226 { (exit 1); exit 1; }; }
4227 fi
4228
4229 else
4230 ac_cv_path_GREP=$GREP
4231 fi
4232
4233
4234 fi
4235 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4236 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4237 GREP="$ac_cv_path_GREP"
4238
4239
4240 { echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4242 if test "${ac_cv_path_EGREP+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4246 then ac_cv_path_EGREP="$GREP -E"
4247 else
4248 # Extract the first word of "egrep" to use in msg output
4249 if test -z "$EGREP"; then
4250 set dummy egrep; ac_prog_name=$2
4251 if test "${ac_cv_path_EGREP+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 ac_path_EGREP_found=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4258 do
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_prog in egrep; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4265 # Check for GNU ac_path_EGREP and select it if it is found.
4266 # Check for GNU $ac_path_EGREP
4267 case `"$ac_path_EGREP" --version 2>&1` in
4268 *GNU*)
4269 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4270 *)
4271 ac_count=0
4272 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4273 while :
4274 do
4275 cat "conftest.in" "conftest.in" >"conftest.tmp"
4276 mv "conftest.tmp" "conftest.in"
4277 cp "conftest.in" "conftest.nl"
4278 echo 'EGREP' >> "conftest.nl"
4279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281 ac_count=`expr $ac_count + 1`
4282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4283 # Best one so far, save it but keep looking for a better one
4284 ac_cv_path_EGREP="$ac_path_EGREP"
4285 ac_path_EGREP_max=$ac_count
4286 fi
4287 # 10*(2^10) chars as input seems more than enough
4288 test $ac_count -gt 10 && break
4289 done
4290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4291 esac
4292
4293
4294 $ac_path_EGREP_found && break 3
4295 done
4296 done
4297
4298 done
4299 IFS=$as_save_IFS
4300
4301
4302 fi
4303
4304 EGREP="$ac_cv_path_EGREP"
4305 if test -z "$EGREP"; then
4306 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4307 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4308 { (exit 1); exit 1; }; }
4309 fi
4310
4311 else
4312 ac_cv_path_EGREP=$EGREP
4313 fi
4314
4315
4316 fi
4317 fi
4318 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4319 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4320 EGREP="$ac_cv_path_EGREP"
4321
4322
4323
4324 { echo "$as_me:$LINENO: checking for AIX" >&5
4325 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 #ifdef _AIX
4333 yes
4334 #endif
4335
4336 _ACEOF
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "yes" >/dev/null 2>&1; then
4339 { echo "$as_me:$LINENO: result: yes" >&5
4340 echo "${ECHO_T}yes" >&6; }
4341 cat >>confdefs.h <<\_ACEOF
4342 #define _ALL_SOURCE 1
4343 _ACEOF
4344
4345 else
4346 { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4348 fi
4349 rm -f conftest*
4350
4351
4352 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4354 if test "${ac_cv_header_stdc+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <stdlib.h>
4364 #include <stdarg.h>
4365 #include <string.h>
4366 #include <float.h>
4367
4368 int
4369 main ()
4370 {
4371
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 rm -f conftest.$ac_objext
4377 if { (ac_try="$ac_compile"
4378 case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 ac_cv_header_stdc=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_cv_header_stdc=no
4399 fi
4400
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <string.h>
4412
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4416 :
4417 else
4418 ac_cv_header_stdc=no
4419 fi
4420 rm -f conftest*
4421
4422 fi
4423
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <stdlib.h>
4433
4434 _ACEOF
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4437 :
4438 else
4439 ac_cv_header_stdc=no
4440 fi
4441 rm -f conftest*
4442
4443 fi
4444
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4448 :
4449 else
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <ctype.h>
4457 #include <stdlib.h>
4458 #if ((' ' & 0x0FF) == 0x020)
4459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4461 #else
4462 # define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4467 #endif
4468
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470 int
4471 main ()
4472 {
4473 int i;
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
4477 return 2;
4478 return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest$ac_exeext
4482 if { (ac_try="$ac_link"
4483 case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_link") 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4492 { (case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 :
4502 else
4503 echo "$as_me: program exited with status $ac_status" >&5
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507 ( exit $ac_status )
4508 ac_cv_header_stdc=no
4509 fi
4510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4511 fi
4512
4513
4514 fi
4515 fi
4516 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4517 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4518 if test $ac_cv_header_stdc = yes; then
4519
4520 cat >>confdefs.h <<\_ACEOF
4521 #define STDC_HEADERS 1
4522 _ACEOF
4523
4524 fi
4525
4526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4537 inttypes.h stdint.h unistd.h
4538 do
4539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 $ac_includes_default
4552
4553 #include <$ac_header>
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_compile") 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest.$ac_objext; then
4572 eval "$as_ac_Header=yes"
4573 else
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577 eval "$as_ac_Header=no"
4578 fi
4579
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 fi
4582 ac_res=`eval echo '${'$as_ac_Header'}'`
4583 { echo "$as_me:$LINENO: result: $ac_res" >&5
4584 echo "${ECHO_T}$ac_res" >&6; }
4585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4586 cat >>confdefs.h <<_ACEOF
4587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4588 _ACEOF
4589
4590 fi
4591
4592 done
4593
4594
4595 if test "${ac_cv_header_minix_config_h+set}" = set; then
4596 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4597 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4598 if test "${ac_cv_header_minix_config_h+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 fi
4601 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4602 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4603 else
4604 # Is the header compilable?
4605 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4606 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 #include <minix/config.h>
4615 _ACEOF
4616 rm -f conftest.$ac_objext
4617 if { (ac_try="$ac_compile"
4618 case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621 esac
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_compile") 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } && {
4630 test -z "$ac_c_werror_flag" ||
4631 test ! -s conftest.err
4632 } && test -s conftest.$ac_objext; then
4633 ac_header_compiler=yes
4634 else
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638 ac_header_compiler=no
4639 fi
4640
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4643 echo "${ECHO_T}$ac_header_compiler" >&6; }
4644
4645 # Is the header present?
4646 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4647 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #include <minix/config.h>
4655 _ACEOF
4656 if { (ac_try="$ac_cpp conftest.$ac_ext"
4657 case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660 esac
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4663 ac_status=$?
4664 grep -v '^ *+' conftest.er1 >conftest.err
4665 rm -f conftest.er1
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } >/dev/null && {
4669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4671 }; then
4672 ac_header_preproc=yes
4673 else
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677 ac_header_preproc=no
4678 fi
4679
4680 rm -f conftest.err conftest.$ac_ext
4681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4682 echo "${ECHO_T}$ac_header_preproc" >&6; }
4683
4684 # So? What about this header?
4685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4686 yes:no: )
4687 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4688 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4690 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4691 ac_header_preproc=yes
4692 ;;
4693 no:yes:* )
4694 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4695 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4697 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4699 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4701 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4703 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4704 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4705 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4706
4707 ;;
4708 esac
4709 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4710 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4711 if test "${ac_cv_header_minix_config_h+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714 ac_cv_header_minix_config_h=$ac_header_preproc
4715 fi
4716 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4717 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4718
4719 fi
4720 if test $ac_cv_header_minix_config_h = yes; then
4721 MINIX=yes
4722 else
4723 MINIX=
4724 fi
4725
4726
4727 if test "$MINIX" = yes; then
4728
4729 cat >>confdefs.h <<\_ACEOF
4730 #define _POSIX_SOURCE 1
4731 _ACEOF
4732
4733
4734 cat >>confdefs.h <<\_ACEOF
4735 #define _POSIX_1_SOURCE 2
4736 _ACEOF
4737
4738
4739 cat >>confdefs.h <<\_ACEOF
4740 #define _MINIX 1
4741 _ACEOF
4742
4743 fi
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4756 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4757 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h. */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766
4767 # define __EXTENSIONS__ 1
4768 $ac_includes_default
4769 int
4770 main ()
4771 {
4772
4773 ;
4774 return 0;
4775 }
4776 _ACEOF
4777 rm -f conftest.$ac_objext
4778 if { (ac_try="$ac_compile"
4779 case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4782 esac
4783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784 (eval "$ac_compile") 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } && {
4791 test -z "$ac_c_werror_flag" ||
4792 test ! -s conftest.err
4793 } && test -s conftest.$ac_objext; then
4794 ac_cv_safe_to_define___extensions__=yes
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ac_cv_safe_to_define___extensions__=no
4800 fi
4801
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4805 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4806 test $ac_cv_safe_to_define___extensions__ = yes &&
4807 cat >>confdefs.h <<\_ACEOF
4808 #define __EXTENSIONS__ 1
4809 _ACEOF
4810
4811 cat >>confdefs.h <<\_ACEOF
4812 #define _POSIX_PTHREAD_SEMANTICS 1
4813 _ACEOF
4814
4815 cat >>confdefs.h <<\_ACEOF
4816 #define _TANDEM_SOURCE 1
4817 _ACEOF
4818
4819
4820
4821 ### Use -Wno-pointer-sign if the compiler supports it
4822 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4823 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4824 SAVE_CFLAGS="$CFLAGS"
4825 CFLAGS="$CFLAGS -Wno-pointer-sign"
4826 cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h. */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832
4833 int
4834 main ()
4835 {
4836
4837 ;
4838 return 0;
4839 }
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (ac_try="$ac_compile"
4843 case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846 esac
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_compile") 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && {
4855 test -z "$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 } && test -s conftest.$ac_objext; then
4858 has_option=yes
4859 else
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863 has_option=no
4864 fi
4865
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 if test $has_option = yes; then
4868 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4869 fi
4870 { echo "$as_me:$LINENO: result: $has_option" >&5
4871 echo "${ECHO_T}$has_option" >&6; }
4872 CFLAGS="$SAVE_CFLAGS"
4873 unset has_option
4874 unset SAVE_CFLAGS
4875
4876 #### Some other nice autoconf tests.
4877
4878 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4879 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4880 LN_S=$as_ln_s
4881 if test "$LN_S" = "ln -s"; then
4882 { echo "$as_me:$LINENO: result: yes" >&5
4883 echo "${ECHO_T}yes" >&6; }
4884 else
4885 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4886 echo "${ECHO_T}no, using $LN_S" >&6; }
4887 fi
4888
4889 ac_ext=c
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4895 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4896 # On Suns, sometimes $CPP names a directory.
4897 if test -n "$CPP" && test -d "$CPP"; then
4898 CPP=
4899 fi
4900 if test -z "$CPP"; then
4901 if test "${ac_cv_prog_CPP+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904 # Double quotes because CPP needs to be expanded
4905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4906 do
4907 ac_preproc_ok=false
4908 for ac_c_preproc_warn_flag in '' yes
4909 do
4910 # Use a header file that comes with gcc, so configuring glibc
4911 # with a fresh cross-compiler works.
4912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 # <limits.h> exists even on freestanding compilers.
4914 # On the NeXT, cc -E runs the code through the compiler's parser,
4915 # not just through cpp. "Syntax error" is here to catch this case.
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 #ifdef __STDC__
4923 # include <limits.h>
4924 #else
4925 # include <assert.h>
4926 #endif
4927 Syntax error
4928 _ACEOF
4929 if { (ac_try="$ac_cpp conftest.$ac_ext"
4930 case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933 esac
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null && {
4942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 }; then
4945 :
4946 else
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 # Broken: fails on valid input.
4951 continue
4952 fi
4953
4954 rm -f conftest.err conftest.$ac_ext
4955
4956 # OK, works on sane cases. Now check whether nonexistent headers
4957 # can be detected and how.
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4965 _ACEOF
4966 if { (ac_try="$ac_cpp conftest.$ac_ext"
4967 case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970 esac
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4973 ac_status=$?
4974 grep -v '^ *+' conftest.er1 >conftest.err
4975 rm -f conftest.er1
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } >/dev/null && {
4979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4981 }; then
4982 # Broken: success on invalid input.
4983 continue
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 # Passes both tests.
4989 ac_preproc_ok=:
4990 break
4991 fi
4992
4993 rm -f conftest.err conftest.$ac_ext
4994
4995 done
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.err conftest.$ac_ext
4998 if $ac_preproc_ok; then
4999 break
5000 fi
5001
5002 done
5003 ac_cv_prog_CPP=$CPP
5004
5005 fi
5006 CPP=$ac_cv_prog_CPP
5007 else
5008 ac_cv_prog_CPP=$CPP
5009 fi
5010 { echo "$as_me:$LINENO: result: $CPP" >&5
5011 echo "${ECHO_T}$CPP" >&6; }
5012 ac_preproc_ok=false
5013 for ac_c_preproc_warn_flag in '' yes
5014 do
5015 # Use a header file that comes with gcc, so configuring glibc
5016 # with a fresh cross-compiler works.
5017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5018 # <limits.h> exists even on freestanding compilers.
5019 # On the NeXT, cc -E runs the code through the compiler's parser,
5020 # not just through cpp. "Syntax error" is here to catch this case.
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #ifdef __STDC__
5028 # include <limits.h>
5029 #else
5030 # include <assert.h>
5031 #endif
5032 Syntax error
5033 _ACEOF
5034 if { (ac_try="$ac_cpp conftest.$ac_ext"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5041 ac_status=$?
5042 grep -v '^ *+' conftest.er1 >conftest.err
5043 rm -f conftest.er1
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } >/dev/null && {
5047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5048 test ! -s conftest.err
5049 }; then
5050 :
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055 # Broken: fails on valid input.
5056 continue
5057 fi
5058
5059 rm -f conftest.err conftest.$ac_ext
5060
5061 # OK, works on sane cases. Now check whether nonexistent headers
5062 # can be detected and how.
5063 cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h. */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5070 _ACEOF
5071 if { (ac_try="$ac_cpp conftest.$ac_ext"
5072 case "(($ac_try" in
5073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5075 esac
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev/null && {
5084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5086 }; then
5087 # Broken: success on invalid input.
5088 continue
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 # Passes both tests.
5094 ac_preproc_ok=:
5095 break
5096 fi
5097
5098 rm -f conftest.err conftest.$ac_ext
5099
5100 done
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.err conftest.$ac_ext
5103 if $ac_preproc_ok; then
5104 :
5105 else
5106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5107 See \`config.log' for more details." >&5
5108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details." >&2;}
5110 { (exit 1); exit 1; }; }
5111 fi
5112
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119 # Find a good install program. We prefer a C program (faster),
5120 # so one script is as good as another. But avoid the broken or
5121 # incompatible versions:
5122 # SysV /etc/install, /usr/sbin/install
5123 # SunOS /usr/etc/install
5124 # IRIX /sbin/install
5125 # AIX /bin/install
5126 # AmigaOS /C/install, which installs bootblocks on floppy discs
5127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5130 # OS/2's system install, which has a completely different semantic
5131 # ./install, which can be erroneously created by make from ./install.sh.
5132 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5133 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5134 if test -z "$INSTALL"; then
5135 if test "${ac_cv_path_install+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 # Account for people who put trailing slashes in PATH elements.
5144 case $as_dir/ in
5145 ./ | .// | /cC/* | \
5146 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5147 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5148 /usr/ucb/* ) ;;
5149 *)
5150 # OSF1 and SCO ODT 3.0 have their own names for install.
5151 # Don't use installbsd from OSF since it installs stuff as root
5152 # by default.
5153 for ac_prog in ginstall scoinst install; do
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5156 if test $ac_prog = install &&
5157 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5158 # AIX install. It has an incompatible calling convention.
5159 :
5160 elif test $ac_prog = install &&
5161 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5162 # program-specific install script used by HP pwplus--don't use.
5163 :
5164 else
5165 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5166 break 3
5167 fi
5168 fi
5169 done
5170 done
5171 ;;
5172 esac
5173 done
5174 IFS=$as_save_IFS
5175
5176
5177 fi
5178 if test "${ac_cv_path_install+set}" = set; then
5179 INSTALL=$ac_cv_path_install
5180 else
5181 # As a last resort, use the slow shell script. Don't cache a
5182 # value for INSTALL within a source directory, because that will
5183 # break other packages using the cache if that directory is
5184 # removed, or if the value is a relative name.
5185 INSTALL=$ac_install_sh
5186 fi
5187 fi
5188 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5189 echo "${ECHO_T}$INSTALL" >&6; }
5190
5191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5192 # It thinks the first close brace ends the variable substitution.
5193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5194
5195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5196
5197 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5198
5199 if test "x$RANLIB" = x; then
5200 if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5202 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5205 if test "${ac_cv_prog_RANLIB+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 if test -n "$RANLIB"; then
5209 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5221 fi
5222 done
5223 done
5224 IFS=$as_save_IFS
5225
5226 fi
5227 fi
5228 RANLIB=$ac_cv_prog_RANLIB
5229 if test -n "$RANLIB"; then
5230 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5231 echo "${ECHO_T}$RANLIB" >&6; }
5232 else
5233 { echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6; }
5235 fi
5236
5237
5238 fi
5239 if test -z "$ac_cv_prog_RANLIB"; then
5240 ac_ct_RANLIB=$RANLIB
5241 # Extract the first word of "ranlib", so it can be a program name with args.
5242 set dummy ranlib; ac_word=$2
5243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5245 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 if test -n "$ac_ct_RANLIB"; then
5249 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_ac_ct_RANLIB="ranlib"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262 done
5263 done
5264 IFS=$as_save_IFS
5265
5266 fi
5267 fi
5268 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5269 if test -n "$ac_ct_RANLIB"; then
5270 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5271 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5272 else
5273 { echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6; }
5275 fi
5276
5277 if test "x$ac_ct_RANLIB" = x; then
5278 RANLIB=":"
5279 else
5280 case $cross_compiling:$ac_tool_warned in
5281 yes:)
5282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5283 whose name does not start with the host triplet. If you think this
5284 configuration is useful to you, please write to autoconf@gnu.org." >&5
5285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5286 whose name does not start with the host triplet. If you think this
5287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5288 ac_tool_warned=yes ;;
5289 esac
5290 RANLIB=$ac_ct_RANLIB
5291 fi
5292 else
5293 RANLIB="$ac_cv_prog_RANLIB"
5294 fi
5295
5296 fi
5297 # Extract the first word of "install-info", so it can be a program name with args.
5298 set dummy install-info; ac_word=$2
5299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5301 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 case $INSTALL_INFO in
5305 [\\/]* | ?:[\\/]*)
5306 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5307 ;;
5308 *)
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5311 do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5319 fi
5320 done
5321 done
5322 IFS=$as_save_IFS
5323
5324 ;;
5325 esac
5326 fi
5327 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5328 if test -n "$INSTALL_INFO"; then
5329 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5330 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5331 else
5332 { echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6; }
5334 fi
5335
5336
5337 # Extract the first word of "install-info", so it can be a program name with args.
5338 set dummy install-info; ac_word=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 case $INSTALL_INFO in
5345 [\\/]* | ?:[\\/]*)
5346 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5347 ;;
5348 *)
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in /usr/sbin
5351 do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5359 fi
5360 done
5361 done
5362 IFS=$as_save_IFS
5363
5364 ;;
5365 esac
5366 fi
5367 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5368 if test -n "$INSTALL_INFO"; then
5369 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5370 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5371 else
5372 { echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6; }
5374 fi
5375
5376
5377 # Extract the first word of "install-info", so it can be a program name with args.
5378 set dummy install-info; ac_word=$2
5379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5381 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 case $INSTALL_INFO in
5385 [\\/]* | ?:[\\/]*)
5386 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5387 ;;
5388 *)
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in /sbin
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400 done
5401 done
5402 IFS=$as_save_IFS
5403
5404 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5405 ;;
5406 esac
5407 fi
5408 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5409 if test -n "$INSTALL_INFO"; then
5410 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5411 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5412 else
5413 { echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6; }
5415 fi
5416
5417
5418 # Extract the first word of "gzip", so it can be a program name with args.
5419 set dummy gzip; ac_word=$2
5420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5422 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425 case $GZIP_PROG in
5426 [\\/]* | ?:[\\/]*)
5427 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5428 ;;
5429 *)
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441 done
5442 done
5443 IFS=$as_save_IFS
5444
5445 ;;
5446 esac
5447 fi
5448 GZIP_PROG=$ac_cv_path_GZIP_PROG
5449 if test -n "$GZIP_PROG"; then
5450 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5451 echo "${ECHO_T}$GZIP_PROG" >&6; }
5452 else
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5455 fi
5456
5457
5458
5459
5460 ## Need makeinfo >= 4.6 (?) to build the manuals.
5461 # Extract the first word of "makeinfo", so it can be a program name with args.
5462 set dummy makeinfo; ac_word=$2
5463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5465 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 case $MAKEINFO in
5469 [\\/]* | ?:[\\/]*)
5470 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5471 ;;
5472 *)
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5475 do
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5483 fi
5484 done
5485 done
5486 IFS=$as_save_IFS
5487
5488 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5489 ;;
5490 esac
5491 fi
5492 MAKEINFO=$ac_cv_path_MAKEINFO
5493 if test -n "$MAKEINFO"; then
5494 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5495 echo "${ECHO_T}$MAKEINFO" >&6; }
5496 else
5497 { echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6; }
5499 fi
5500
5501
5502 if test "$MAKEINFO" != "no" && \
5503 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5504 MAKEINFO=no
5505 fi
5506
5507 if test "$MAKEINFO" = "no" && test "x${with_makeinfo}" != "xno"; then
5508
5509 if test -e $srcdir/info/emacs; then
5510 gotinfo="seems"
5511 else
5512 gotinfo="does NOT seem"
5513 fi
5514
5515 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6.
5516 You will not be able to build the Emacs manuals.
5517 In Emacs releases, they are prebuilt, so this might not be a problem.
5518 Your source tree $gotinfo to have manuals in the \`info' directory.
5519 Either install a suitable version of makeinfo, or re-run configure
5520 with the \`--without-makeinfo' option. " >&5
5521 echo "$as_me: error: You do not seem to have makeinfo >= 4.6.
5522 You will not be able to build the Emacs manuals.
5523 In Emacs releases, they are prebuilt, so this might not be a problem.
5524 Your source tree $gotinfo to have manuals in the \`info' directory.
5525 Either install a suitable version of makeinfo, or re-run configure
5526 with the \`--without-makeinfo' option. " >&2;}
5527 { (exit 1); exit 1; }; }
5528
5529 fi
5530
5531
5532 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5533 then
5534 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5535 fi
5536
5537 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5538 then
5539 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5540 fi
5541
5542
5543 late_LDFLAGS=$LDFLAGS
5544 if test "$GCC" = yes; then
5545 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5546 else
5547 LDFLAGS="$LDFLAGS -znocombreloc"
5548 fi
5549
5550 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5551 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5552 cat >conftest.$ac_ext <<_ACEOF
5553 main(){return 0;}
5554 _ACEOF
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (ac_try="$ac_link"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_link") 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest$ac_exeext &&
5572 $as_test_x conftest$ac_exeext; then
5573 { echo "$as_me:$LINENO: result: yes" >&5
5574 echo "${ECHO_T}yes" >&6; }
5575 else
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579 LDFLAGS=$late_LDFLAGS
5580 { echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6; }
5582 fi
5583
5584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5585 conftest$ac_exeext conftest.$ac_ext
5586
5587 #### Extract some information from the operating system and machine files.
5588
5589 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5590 - which libraries the lib-src programs will want, and
5591 - whether the GNU malloc routines are usable..." >&5
5592 echo "$as_me: checking the machine- and system-dependent files to find out
5593 - which libraries the lib-src programs will want, and
5594 - whether the GNU malloc routines are usable..." >&6;}
5595
5596 ### First figure out CFLAGS (which we use for running the compiler here)
5597 ### and REAL_CFLAGS (which we use for real compilation).
5598 ### The two are the same except on a few systems, where they are made
5599 ### different to work around various lossages. For example,
5600 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5601 ### as implying static linking.
5602
5603 ### If the CFLAGS env var is specified, we use that value
5604 ### instead of the default.
5605
5606 ### It's not important that this name contain the PID; you can't run
5607 ### two configures in the same directory and have anything work
5608 ### anyway.
5609 tempcname="conftest.c"
5610
5611 echo '
5612 #include "'${srcdir}'/src/'${opsysfile}'"
5613 #include "'${srcdir}'/src/'${machfile}'"
5614 #ifndef LIBS_MACHINE
5615 #define LIBS_MACHINE
5616 #endif
5617 #ifndef LIBS_SYSTEM
5618 #define LIBS_SYSTEM
5619 #endif
5620 #ifndef C_SWITCH_SYSTEM
5621 #define C_SWITCH_SYSTEM
5622 #endif
5623 #ifndef C_SWITCH_MACHINE
5624 #define C_SWITCH_MACHINE
5625 #endif
5626 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5627 configure___ c_switch_system=C_SWITCH_SYSTEM
5628 configure___ c_switch_machine=C_SWITCH_MACHINE
5629
5630 #ifndef LIB_X11_LIB
5631 #define LIB_X11_LIB -lX11
5632 #endif
5633
5634 #ifndef LIBX11_SYSTEM
5635 #define LIBX11_SYSTEM
5636 #endif
5637 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5638
5639 #ifdef UNEXEC
5640 configure___ unexec=UNEXEC
5641 #else
5642 configure___ unexec=unexec.o
5643 #endif
5644
5645 #ifdef SYSTEM_MALLOC
5646 configure___ system_malloc=yes
5647 #else
5648 configure___ system_malloc=no
5649 #endif
5650
5651 #ifdef USE_MMAP_FOR_BUFFERS
5652 configure___ use_mmap_for_buffers=yes
5653 #else
5654 configure___ use_mmap_for_buffers=no
5655 #endif
5656
5657 #ifndef C_DEBUG_SWITCH
5658 #define C_DEBUG_SWITCH -g
5659 #endif
5660
5661 #ifndef C_OPTIMIZE_SWITCH
5662 #ifdef __GNUC__
5663 #define C_OPTIMIZE_SWITCH -O2
5664 #else
5665 #define C_OPTIMIZE_SWITCH -O
5666 #endif
5667 #endif
5668
5669 #ifndef C_WARNINGS_SWITCH
5670 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5671 #endif
5672
5673 #ifndef LD_SWITCH_MACHINE
5674 #define LD_SWITCH_MACHINE
5675 #endif
5676
5677 #ifndef LD_SWITCH_SYSTEM
5678 #define LD_SWITCH_SYSTEM
5679 #endif
5680
5681 #ifndef LD_SWITCH_X_SITE_AUX
5682 #define LD_SWITCH_X_SITE_AUX
5683 #endif
5684
5685 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5686 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5687
5688 #ifdef THIS_IS_CONFIGURE
5689
5690 /* Get the CFLAGS for tests in configure. */
5691 #ifdef __GNUC__
5692 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5693 #else
5694 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5695 #endif
5696
5697 #else /* not THIS_IS_CONFIGURE */
5698
5699 /* Get the CFLAGS for real compilation. */
5700 #ifdef __GNUC__
5701 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5702 #else
5703 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5704 #endif
5705
5706 #endif /* not THIS_IS_CONFIGURE */
5707 ' > ${tempcname}
5708
5709 # The value of CPP is a quoted variable reference, so we need to do this
5710 # to get its actual value...
5711 CPP=`eval "echo $CPP"`
5712 eval `${CPP} -Isrc ${tempcname} \
5713 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5714 if test "x$SPECIFIED_CFLAGS" = x; then
5715 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5716 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5717 else
5718 REAL_CFLAGS="$CFLAGS"
5719 fi
5720 rm ${tempcname}
5721
5722 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5723
5724 ### Make sure subsequent tests use flags consistent with the build flags.
5725
5726 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5727 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5728 else
5729 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5730 fi
5731
5732
5733
5734 # Check whether --enable-largefile was given.
5735 if test "${enable_largefile+set}" = set; then
5736 enableval=$enable_largefile;
5737 fi
5738
5739 if test "$enable_largefile" != no; then
5740
5741 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5742 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5743 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746 ac_cv_sys_largefile_CC=no
5747 if test "$GCC" != yes; then
5748 ac_save_CC=$CC
5749 while :; do
5750 # IRIX 6.2 and later do not support large files by default,
5751 # so use the C compiler's -n32 option if that helps.
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #include <sys/types.h>
5759 /* Check that off_t can represent 2**63 - 1 correctly.
5760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5761 since some C++ compilers masquerading as C compilers
5762 incorrectly reject 9223372036854775807. */
5763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5765 && LARGE_OFF_T % 2147483647 == 1)
5766 ? 1 : -1];
5767 int
5768 main ()
5769 {
5770
5771 ;
5772 return 0;
5773 }
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5777 case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780 esac
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5792 break
5793 else
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797
5798 fi
5799
5800 rm -f core conftest.err conftest.$ac_objext
5801 CC="$CC -n32"
5802 rm -f conftest.$ac_objext
5803 if { (ac_try="$ac_compile"
5804 case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5819 ac_cv_sys_largefile_CC=' -n32'; break
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824
5825 fi
5826
5827 rm -f core conftest.err conftest.$ac_objext
5828 break
5829 done
5830 CC=$ac_save_CC
5831 rm -f conftest.$ac_ext
5832 fi
5833 fi
5834 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5835 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5836 if test "$ac_cv_sys_largefile_CC" != no; then
5837 CC=$CC$ac_cv_sys_largefile_CC
5838 fi
5839
5840 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5841 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5842 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845 while :; do
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 #include <sys/types.h>
5853 /* Check that off_t can represent 2**63 - 1 correctly.
5854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5855 since some C++ compilers masquerading as C compilers
5856 incorrectly reject 9223372036854775807. */
5857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5859 && LARGE_OFF_T % 2147483647 == 1)
5860 ? 1 : -1];
5861 int
5862 main ()
5863 {
5864
5865 ;
5866 return 0;
5867 }
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (ac_try="$ac_compile"
5871 case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874 esac
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compile") 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest.$ac_objext; then
5886 ac_cv_sys_file_offset_bits=no; break
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5890
5891
5892 fi
5893
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #define _FILE_OFFSET_BITS 64
5902 #include <sys/types.h>
5903 /* Check that off_t can represent 2**63 - 1 correctly.
5904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5905 since some C++ compilers masquerading as C compilers
5906 incorrectly reject 9223372036854775807. */
5907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5909 && LARGE_OFF_T % 2147483647 == 1)
5910 ? 1 : -1];
5911 int
5912 main ()
5913 {
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.$ac_objext; then
5936 ac_cv_sys_file_offset_bits=64; break
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941
5942 fi
5943
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 ac_cv_sys_file_offset_bits=unknown
5946 break
5947 done
5948 fi
5949 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5950 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5951 case $ac_cv_sys_file_offset_bits in #(
5952 no | unknown) ;;
5953 *)
5954 cat >>confdefs.h <<_ACEOF
5955 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5956 _ACEOF
5957 ;;
5958 esac
5959 rm -f conftest*
5960 if test $ac_cv_sys_file_offset_bits = unknown; then
5961 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5962 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5963 if test "${ac_cv_sys_large_files+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 while :; do
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <sys/types.h>
5974 /* Check that off_t can represent 2**63 - 1 correctly.
5975 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5976 since some C++ compilers masquerading as C compilers
5977 incorrectly reject 9223372036854775807. */
5978 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5979 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5980 && LARGE_OFF_T % 2147483647 == 1)
5981 ? 1 : -1];
5982 int
5983 main ()
5984 {
5985
5986 ;
5987 return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (ac_try="$ac_compile"
5992 case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_compile") 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest.$ac_objext; then
6007 ac_cv_sys_large_files=no; break
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012
6013 fi
6014
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #define _LARGE_FILES 1
6023 #include <sys/types.h>
6024 /* Check that off_t can represent 2**63 - 1 correctly.
6025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6026 since some C++ compilers masquerading as C compilers
6027 incorrectly reject 9223372036854775807. */
6028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6030 && LARGE_OFF_T % 2147483647 == 1)
6031 ? 1 : -1];
6032 int
6033 main ()
6034 {
6035
6036 ;
6037 return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6042 case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 ac_cv_sys_large_files=1; break
6058 else
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062
6063 fi
6064
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 ac_cv_sys_large_files=unknown
6067 break
6068 done
6069 fi
6070 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6071 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6072 case $ac_cv_sys_large_files in #(
6073 no | unknown) ;;
6074 *)
6075 cat >>confdefs.h <<_ACEOF
6076 #define _LARGE_FILES $ac_cv_sys_large_files
6077 _ACEOF
6078 ;;
6079 esac
6080 rm -f conftest*
6081 fi
6082 fi
6083
6084
6085
6086 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6087 ### be located in either /usr/lib64 or /usr/lib.
6088 case "${canonical}" in
6089 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6090 if test -d /usr/lib64; then
6091
6092 cat >>confdefs.h <<\_ACEOF
6093 #define HAVE_LIB64_DIR 1
6094 _ACEOF
6095
6096 fi
6097 esac
6098
6099
6100
6101
6102 if test "${with_sound}" != "no"; then
6103 # Sound support for GNU/Linux and the free BSDs.
6104
6105
6106
6107 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6108 do
6109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 fi
6116 ac_res=`eval echo '${'$as_ac_Header'}'`
6117 { echo "$as_me:$LINENO: result: $ac_res" >&5
6118 echo "${ECHO_T}$ac_res" >&6; }
6119 else
6120 # Is the header compilable?
6121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 $ac_includes_default
6130 #include <$ac_header>
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (ac_try="$ac_compile"
6134 case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.$ac_objext; then
6149 ac_header_compiler=yes
6150 else
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_header_compiler=no
6155 fi
6156
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6159 echo "${ECHO_T}$ac_header_compiler" >&6; }
6160
6161 # Is the header present?
6162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6164 cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <$ac_header>
6171 _ACEOF
6172 if { (ac_try="$ac_cpp conftest.$ac_ext"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } >/dev/null && {
6185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 }; then
6188 ac_header_preproc=yes
6189 else
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 ac_header_preproc=no
6194 fi
6195
6196 rm -f conftest.err conftest.$ac_ext
6197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6198 echo "${ECHO_T}$ac_header_preproc" >&6; }
6199
6200 # So? What about this header?
6201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6202 yes:no: )
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6207 ac_header_preproc=yes
6208 ;;
6209 no:yes:* )
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6222
6223 ;;
6224 esac
6225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 eval "$as_ac_Header=\$ac_header_preproc"
6231 fi
6232 ac_res=`eval echo '${'$as_ac_Header'}'`
6233 { echo "$as_me:$LINENO: result: $ac_res" >&5
6234 echo "${ECHO_T}$ac_res" >&6; }
6235
6236 fi
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6240 _ACEOF
6241
6242 fi
6243
6244 done
6245
6246 # Emulation library used on NetBSD.
6247 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6248 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6249 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 ac_check_lib_save_LIBS=$LIBS
6253 LIBS="-lossaudio $LIBS"
6254 cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h. */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260
6261 /* Override any GCC internal prototype to avoid an error.
6262 Use char because int might match the return type of a GCC
6263 builtin and then its argument prototype would still apply. */
6264 #ifdef __cplusplus
6265 extern "C"
6266 #endif
6267 char _oss_ioctl ();
6268 int
6269 main ()
6270 {
6271 return _oss_ioctl ();
6272 ;
6273 return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6278 case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_link") 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest$ac_exeext &&
6293 $as_test_x conftest$ac_exeext; then
6294 ac_cv_lib_ossaudio__oss_ioctl=yes
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 ac_cv_lib_ossaudio__oss_ioctl=no
6300 fi
6301
6302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6303 conftest$ac_exeext conftest.$ac_ext
6304 LIBS=$ac_check_lib_save_LIBS
6305 fi
6306 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6307 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6308 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6309 LIBSOUND=-lossaudio
6310 else
6311 LIBSOUND=
6312 fi
6313
6314
6315
6316 ALSA_REQUIRED=1.0.0
6317 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6318
6319 succeeded=no
6320
6321 # Extract the first word of "pkg-config", so it can be a program name with args.
6322 set dummy pkg-config; ac_word=$2
6323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 case $PKG_CONFIG in
6329 [\\/]* | ?:[\\/]*)
6330 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6331 ;;
6332 *)
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6349 ;;
6350 esac
6351 fi
6352 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6353 if test -n "$PKG_CONFIG"; then
6354 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6355 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6356 else
6357 { echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6; }
6359 fi
6360
6361
6362
6363 if test "$PKG_CONFIG" = "no" ; then
6364 HAVE_ALSA=no
6365 else
6366 PKG_CONFIG_MIN_VERSION=0.9.0
6367 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6368 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6369 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6370
6371 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6372 { echo "$as_me:$LINENO: result: yes" >&5
6373 echo "${ECHO_T}yes" >&6; }
6374 succeeded=yes
6375
6376 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6377 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6378 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6379 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6380 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6381
6382 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6383 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6384 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6385 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6386 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6387 else
6388 { echo "$as_me:$LINENO: result: no" >&5
6389 echo "${ECHO_T}no" >&6; }
6390 ALSA_CFLAGS=""
6391 ALSA_LIBS=""
6392 ## If we have a custom action on failure, don't print errors, but
6393 ## do set a variable so people can do so.
6394 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6395
6396 fi
6397
6398
6399
6400 else
6401 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6402 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6403 fi
6404 fi
6405
6406 if test $succeeded = yes; then
6407 HAVE_ALSA=yes
6408 else
6409 HAVE_ALSA=no
6410 fi
6411
6412 if test $HAVE_ALSA = yes; then
6413 SAVE_CFLAGS="$CFLAGS"
6414 SAVE_LDFLAGS="$LDFLAGS"
6415 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6416 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 #include <asoundlib.h>
6424 int
6425 main ()
6426 {
6427 snd_lib_error_set_handler (0);
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (ac_try="$ac_compile"
6434 case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437 esac
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_compile") 2>conftest.er1
6440 ac_status=$?
6441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } && {
6446 test -z "$ac_c_werror_flag" ||
6447 test ! -s conftest.err
6448 } && test -s conftest.$ac_objext; then
6449 emacs_alsa_normal=yes
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6453
6454 emacs_alsa_normal=no
6455 fi
6456
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 if test "$emacs_alsa_normal" != yes; then
6459 cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h. */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 #include <alsa/asoundlib.h>
6466 int
6467 main ()
6468 {
6469 snd_lib_error_set_handler (0);
6470 ;
6471 return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (ac_try="$ac_compile"
6476 case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479 esac
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.$ac_objext; then
6491 emacs_alsa_subdir=yes
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 emacs_alsa_subdir=no
6497 fi
6498
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 if test "$emacs_alsa_subdir" != yes; then
6501 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6502 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6503 { (exit 1); exit 1; }; }
6504 fi
6505 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6506 fi
6507
6508 CFLAGS="$SAVE_CFLAGS"
6509 LDFLAGS="$SAVE_LDFLAGS"
6510 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6511 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6512
6513 cat >>confdefs.h <<\_ACEOF
6514 #define HAVE_ALSA 1
6515 _ACEOF
6516
6517 fi
6518
6519 fi
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6547 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6548 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6549 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6550 sys/utsname.h pwd.h
6551 do
6552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 fi
6559 ac_res=`eval echo '${'$as_ac_Header'}'`
6560 { echo "$as_me:$LINENO: result: $ac_res" >&5
6561 echo "${ECHO_T}$ac_res" >&6; }
6562 else
6563 # Is the header compilable?
6564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 $ac_includes_default
6573 #include <$ac_header>
6574 _ACEOF
6575 rm -f conftest.$ac_objext
6576 if { (ac_try="$ac_compile"
6577 case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580 esac
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_compile") 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && {
6589 test -z "$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 } && test -s conftest.$ac_objext; then
6592 ac_header_compiler=yes
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6596
6597 ac_header_compiler=no
6598 fi
6599
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6602 echo "${ECHO_T}$ac_header_compiler" >&6; }
6603
6604 # Is the header present?
6605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h. */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 #include <$ac_header>
6614 _ACEOF
6615 if { (ac_try="$ac_cpp conftest.$ac_ext"
6616 case "(($ac_try" in
6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618 *) ac_try_echo=$ac_try;;
6619 esac
6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } >/dev/null && {
6628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6629 test ! -s conftest.err
6630 }; then
6631 ac_header_preproc=yes
6632 else
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 ac_header_preproc=no
6637 fi
6638
6639 rm -f conftest.err conftest.$ac_ext
6640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6641 echo "${ECHO_T}$ac_header_preproc" >&6; }
6642
6643 # So? What about this header?
6644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6645 yes:no: )
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6650 ac_header_preproc=yes
6651 ;;
6652 no:yes:* )
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6665
6666 ;;
6667 esac
6668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 eval "$as_ac_Header=\$ac_header_preproc"
6674 fi
6675 ac_res=`eval echo '${'$as_ac_Header'}'`
6676 { echo "$as_me:$LINENO: result: $ac_res" >&5
6677 echo "${ECHO_T}$ac_res" >&6; }
6678
6679 fi
6680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6681 cat >>confdefs.h <<_ACEOF
6682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6683 _ACEOF
6684
6685 fi
6686
6687 done
6688
6689
6690 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6691 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <sys/personality.h>
6699 int
6700 main ()
6701 {
6702 personality (PER_LINUX32)
6703 ;
6704 return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext
6708 if { (ac_try="$ac_compile"
6709 case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_compile") 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
6724 emacs_cv_personality_linux32=yes
6725 else
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 emacs_cv_personality_linux32=no
6730 fi
6731
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6734 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6735
6736 if test $emacs_cv_personality_linux32 = yes; then
6737
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_PERSONALITY_LINUX32 1
6740 _ACEOF
6741
6742 fi
6743
6744
6745 for ac_header in term.h
6746 do
6747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753 cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h. */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 #include <$ac_header>
6760 _ACEOF
6761 if { (ac_try="$ac_cpp conftest.$ac_ext"
6762 case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6765 esac
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } >/dev/null && {
6774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 }; then
6777 eval "$as_ac_Header=yes"
6778 else
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782 eval "$as_ac_Header=no"
6783 fi
6784
6785 rm -f conftest.err conftest.$ac_ext
6786 fi
6787 ac_res=`eval echo '${'$as_ac_Header'}'`
6788 { echo "$as_me:$LINENO: result: $ac_res" >&5
6789 echo "${ECHO_T}$ac_res" >&6; }
6790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6791 cat >>confdefs.h <<_ACEOF
6792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6793 _ACEOF
6794
6795 fi
6796
6797 done
6798
6799 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6800 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6801 if test "${ac_cv_header_stdc+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 #include <stdlib.h>
6811 #include <stdarg.h>
6812 #include <string.h>
6813 #include <float.h>
6814
6815 int
6816 main ()
6817 {
6818
6819 ;
6820 return 0;
6821 }
6822 _ACEOF
6823 rm -f conftest.$ac_objext
6824 if { (ac_try="$ac_compile"
6825 case "(($ac_try" in
6826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6828 esac
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 ac_cv_header_stdc=yes
6841 else
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6844
6845 ac_cv_header_stdc=no
6846 fi
6847
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849
6850 if test $ac_cv_header_stdc = yes; then
6851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6852 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 #include <string.h>
6859
6860 _ACEOF
6861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6862 $EGREP "memchr" >/dev/null 2>&1; then
6863 :
6864 else
6865 ac_cv_header_stdc=no
6866 fi
6867 rm -f conftest*
6868
6869 fi
6870
6871 if test $ac_cv_header_stdc = yes; then
6872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <stdlib.h>
6880
6881 _ACEOF
6882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6883 $EGREP "free" >/dev/null 2>&1; then
6884 :
6885 else
6886 ac_cv_header_stdc=no
6887 fi
6888 rm -f conftest*
6889
6890 fi
6891
6892 if test $ac_cv_header_stdc = yes; then
6893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6894 if test "$cross_compiling" = yes; then
6895 :
6896 else
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 #include <ctype.h>
6904 #include <stdlib.h>
6905 #if ((' ' & 0x0FF) == 0x020)
6906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6908 #else
6909 # define ISLOWER(c) \
6910 (('a' <= (c) && (c) <= 'i') \
6911 || ('j' <= (c) && (c) <= 'r') \
6912 || ('s' <= (c) && (c) <= 'z'))
6913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6914 #endif
6915
6916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6917 int
6918 main ()
6919 {
6920 int i;
6921 for (i = 0; i < 256; i++)
6922 if (XOR (islower (i), ISLOWER (i))
6923 || toupper (i) != TOUPPER (i))
6924 return 2;
6925 return 0;
6926 }
6927 _ACEOF
6928 rm -f conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6930 case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933 esac
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_link") 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6939 { (case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_try") 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 :
6949 else
6950 echo "$as_me: program exited with status $ac_status" >&5
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6953
6954 ( exit $ac_status )
6955 ac_cv_header_stdc=no
6956 fi
6957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6958 fi
6959
6960
6961 fi
6962 fi
6963 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6964 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6965 if test $ac_cv_header_stdc = yes; then
6966
6967 cat >>confdefs.h <<\_ACEOF
6968 #define STDC_HEADERS 1
6969 _ACEOF
6970
6971 fi
6972
6973 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6974 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6975 if test "${ac_cv_header_time+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h. */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 #include <sys/types.h>
6985 #include <sys/time.h>
6986 #include <time.h>
6987
6988 int
6989 main ()
6990 {
6991 if ((struct tm *) 0)
6992 return 0;
6993 ;
6994 return 0;
6995 }
6996 _ACEOF
6997 rm -f conftest.$ac_objext
6998 if { (ac_try="$ac_compile"
6999 case "(($ac_try" in
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7002 esac
7003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004 (eval "$ac_compile") 2>conftest.er1
7005 ac_status=$?
7006 grep -v '^ *+' conftest.er1 >conftest.err
7007 rm -f conftest.er1
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } && {
7011 test -z "$ac_c_werror_flag" ||
7012 test ! -s conftest.err
7013 } && test -s conftest.$ac_objext; then
7014 ac_cv_header_time=yes
7015 else
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7018
7019 ac_cv_header_time=no
7020 fi
7021
7022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023 fi
7024 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7025 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7026 if test $ac_cv_header_time = yes; then
7027
7028 cat >>confdefs.h <<\_ACEOF
7029 #define TIME_WITH_SYS_TIME 1
7030 _ACEOF
7031
7032 fi
7033
7034 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7035 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7036 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 $ac_includes_default
7046 int
7047 main ()
7048 {
7049 #ifndef sys_siglist
7050 (void) sys_siglist;
7051 #endif
7052
7053 ;
7054 return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (ac_try="$ac_compile"
7059 case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 ac_cv_have_decl_sys_siglist=yes
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7078
7079 ac_cv_have_decl_sys_siglist=no
7080 fi
7081
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 fi
7084 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7085 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7086 if test $ac_cv_have_decl_sys_siglist = yes; then
7087
7088 cat >>confdefs.h <<_ACEOF
7089 #define HAVE_DECL_SYS_SIGLIST 1
7090 _ACEOF
7091
7092
7093 else
7094 cat >>confdefs.h <<_ACEOF
7095 #define HAVE_DECL_SYS_SIGLIST 0
7096 _ACEOF
7097
7098
7099 fi
7100
7101
7102 if test $ac_cv_have_decl_sys_siglist != yes; then
7103 # For Tru64, at least:
7104 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7105 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7106 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 $ac_includes_default
7116 int
7117 main ()
7118 {
7119 #ifndef __sys_siglist
7120 (void) __sys_siglist;
7121 #endif
7122
7123 ;
7124 return 0;
7125 }
7126 _ACEOF
7127 rm -f conftest.$ac_objext
7128 if { (ac_try="$ac_compile"
7129 case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132 esac
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_compile") 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.$ac_objext; then
7144 ac_cv_have_decl___sys_siglist=yes
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149 ac_cv_have_decl___sys_siglist=no
7150 fi
7151
7152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153 fi
7154 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7155 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7156 if test $ac_cv_have_decl___sys_siglist = yes; then
7157
7158 cat >>confdefs.h <<_ACEOF
7159 #define HAVE_DECL___SYS_SIGLIST 1
7160 _ACEOF
7161
7162
7163 else
7164 cat >>confdefs.h <<_ACEOF
7165 #define HAVE_DECL___SYS_SIGLIST 0
7166 _ACEOF
7167
7168
7169 fi
7170
7171
7172 if test $ac_cv_have_decl___sys_siglist = yes; then
7173
7174 cat >>confdefs.h <<\_ACEOF
7175 #define sys_siglist __sys_siglist
7176 _ACEOF
7177
7178 fi
7179 fi
7180 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7181 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7182 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185 cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h. */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 #include <sys/types.h>
7192 #include <sys/wait.h>
7193 #ifndef WEXITSTATUS
7194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7195 #endif
7196 #ifndef WIFEXITED
7197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7198 #endif
7199
7200 int
7201 main ()
7202 {
7203 int s;
7204 wait (&s);
7205 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7206 ;
7207 return 0;
7208 }
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7212 case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215 esac
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_compile") 2>conftest.er1
7218 ac_status=$?
7219 grep -v '^ *+' conftest.er1 >conftest.err
7220 rm -f conftest.er1
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && {
7224 test -z "$ac_c_werror_flag" ||
7225 test ! -s conftest.err
7226 } && test -s conftest.$ac_objext; then
7227 ac_cv_header_sys_wait_h=yes
7228 else
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7231
7232 ac_cv_header_sys_wait_h=no
7233 fi
7234
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236 fi
7237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7238 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7239 if test $ac_cv_header_sys_wait_h = yes; then
7240
7241 cat >>confdefs.h <<\_ACEOF
7242 #define HAVE_SYS_WAIT_H 1
7243 _ACEOF
7244
7245 fi
7246
7247
7248 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7249 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7250 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 #ifdef TIME_WITH_SYS_TIME
7260 #include <sys/time.h>
7261 #include <time.h>
7262 #else
7263 #ifdef HAVE_SYS_TIME_H
7264 #include <sys/time.h>
7265 #else
7266 #include <time.h>
7267 #endif
7268 #endif
7269 #ifdef HAVE_UTIME_H
7270 #include <utime.h>
7271 #endif
7272 int
7273 main ()
7274 {
7275 static struct utimbuf x; x.actime = x.modtime;
7276 ;
7277 return 0;
7278 }
7279 _ACEOF
7280 rm -f conftest.$ac_objext
7281 if { (ac_try="$ac_compile"
7282 case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7285 esac
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_compile") 2>conftest.er1
7288 ac_status=$?
7289 grep -v '^ *+' conftest.er1 >conftest.err
7290 rm -f conftest.er1
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest.$ac_objext; then
7297 emacs_cv_struct_utimbuf=yes
7298 else
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302 emacs_cv_struct_utimbuf=no
7303 fi
7304
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 fi
7307 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7308 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7309 if test $emacs_cv_struct_utimbuf = yes; then
7310
7311 cat >>confdefs.h <<\_ACEOF
7312 #define HAVE_STRUCT_UTIMBUF 1
7313 _ACEOF
7314
7315 fi
7316
7317 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7318 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7319 if test "${ac_cv_type_signal+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 #include <sys/types.h>
7329 #include <signal.h>
7330
7331 int
7332 main ()
7333 {
7334 return *(signal (0, 0)) (0) == 1;
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 rm -f conftest.$ac_objext
7340 if { (ac_try="$ac_compile"
7341 case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_compile") 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest.$ac_objext; then
7356 ac_cv_type_signal=int
7357 else
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361 ac_cv_type_signal=void
7362 fi
7363
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365 fi
7366 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7367 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7368
7369 cat >>confdefs.h <<_ACEOF
7370 #define RETSIGTYPE $ac_cv_type_signal
7371 _ACEOF
7372
7373
7374
7375 { echo "$as_me:$LINENO: checking for speed_t" >&5
7376 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7377 if test "${emacs_cv_speed_t+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #include <termios.h>
7387 int
7388 main ()
7389 {
7390 speed_t x = 1;
7391 ;
7392 return 0;
7393 }
7394 _ACEOF
7395 rm -f conftest.$ac_objext
7396 if { (ac_try="$ac_compile"
7397 case "(($ac_try" in
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7400 esac
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7403 ac_status=$?
7404 grep -v '^ *+' conftest.er1 >conftest.err
7405 rm -f conftest.er1
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
7412 emacs_cv_speed_t=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417 emacs_cv_speed_t=no
7418 fi
7419
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 fi
7422 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7423 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7424 if test $emacs_cv_speed_t = yes; then
7425
7426 cat >>confdefs.h <<\_ACEOF
7427 #define HAVE_SPEED_T 1
7428 _ACEOF
7429
7430 fi
7431
7432 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7433 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7434 if test "${emacs_cv_struct_timeval+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 #ifdef TIME_WITH_SYS_TIME
7444 #include <sys/time.h>
7445 #include <time.h>
7446 #else
7447 #ifdef HAVE_SYS_TIME_H
7448 #include <sys/time.h>
7449 #else
7450 #include <time.h>
7451 #endif
7452 #endif
7453 int
7454 main ()
7455 {
7456 static struct timeval x; x.tv_sec = x.tv_usec;
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 rm -f conftest.$ac_objext
7462 if { (ac_try="$ac_compile"
7463 case "(($ac_try" in
7464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7466 esac
7467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7468 (eval "$ac_compile") 2>conftest.er1
7469 ac_status=$?
7470 grep -v '^ *+' conftest.er1 >conftest.err
7471 rm -f conftest.er1
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } && {
7475 test -z "$ac_c_werror_flag" ||
7476 test ! -s conftest.err
7477 } && test -s conftest.$ac_objext; then
7478 emacs_cv_struct_timeval=yes
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7482
7483 emacs_cv_struct_timeval=no
7484 fi
7485
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487 fi
7488 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7489 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7490 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7491 if test $emacs_cv_struct_timeval = yes; then
7492
7493 cat >>confdefs.h <<\_ACEOF
7494 #define HAVE_TIMEVAL 1
7495 _ACEOF
7496
7497 fi
7498
7499 { echo "$as_me:$LINENO: checking for struct exception" >&5
7500 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7501 if test "${emacs_cv_struct_exception+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 #include <math.h>
7511 int
7512 main ()
7513 {
7514 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (ac_try="$ac_compile"
7521 case "(($ac_try" in
7522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7524 esac
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7527 ac_status=$?
7528 grep -v '^ *+' conftest.er1 >conftest.err
7529 rm -f conftest.er1
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
7536 emacs_cv_struct_exception=yes
7537 else
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541 emacs_cv_struct_exception=no
7542 fi
7543
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 fi
7546 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7547 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7548 HAVE_EXCEPTION=$emacs_cv_struct_exception
7549 if test $emacs_cv_struct_exception != yes; then
7550
7551 cat >>confdefs.h <<\_ACEOF
7552 #define NO_MATHERR 1
7553 _ACEOF
7554
7555 fi
7556
7557
7558 for ac_header in sys/socket.h
7559 do
7560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 fi
7567 ac_res=`eval echo '${'$as_ac_Header'}'`
7568 { echo "$as_me:$LINENO: result: $ac_res" >&5
7569 echo "${ECHO_T}$ac_res" >&6; }
7570 else
7571 # Is the header compilable?
7572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7574 cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h. */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 $ac_includes_default
7581 #include <$ac_header>
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (ac_try="$ac_compile"
7585 case "(($ac_try" in
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7588 esac
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest.$ac_objext; then
7600 ac_header_compiler=yes
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7604
7605 ac_header_compiler=no
7606 fi
7607
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7610 echo "${ECHO_T}$ac_header_compiler" >&6; }
7611
7612 # Is the header present?
7613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 #include <$ac_header>
7622 _ACEOF
7623 if { (ac_try="$ac_cpp conftest.$ac_ext"
7624 case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } >/dev/null && {
7636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 }; then
7639 ac_header_preproc=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 ac_header_preproc=no
7645 fi
7646
7647 rm -f conftest.err conftest.$ac_ext
7648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7649 echo "${ECHO_T}$ac_header_preproc" >&6; }
7650
7651 # So? What about this header?
7652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7653 yes:no: )
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7658 ac_header_preproc=yes
7659 ;;
7660 no:yes:* )
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7673
7674 ;;
7675 esac
7676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681 eval "$as_ac_Header=\$ac_header_preproc"
7682 fi
7683 ac_res=`eval echo '${'$as_ac_Header'}'`
7684 { echo "$as_me:$LINENO: result: $ac_res" >&5
7685 echo "${ECHO_T}$ac_res" >&6; }
7686
7687 fi
7688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689 cat >>confdefs.h <<_ACEOF
7690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7691 _ACEOF
7692
7693 fi
7694
7695 done
7696
7697
7698 for ac_header in net/if.h
7699 do
7700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h. */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7713 #if HAVE_SYS_SOCKET_H
7714 #include <sys/socket.h>
7715 #endif
7716
7717 #include <$ac_header>
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (ac_try="$ac_compile"
7721 case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724 esac
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
7727 ac_status=$?
7728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && {
7733 test -z "$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.$ac_objext; then
7736 eval "$as_ac_Header=yes"
7737 else
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7740
7741 eval "$as_ac_Header=no"
7742 fi
7743
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 fi
7746 ac_res=`eval echo '${'$as_ac_Header'}'`
7747 { echo "$as_me:$LINENO: result: $ac_res" >&5
7748 echo "${ECHO_T}$ac_res" >&6; }
7749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7750 cat >>confdefs.h <<_ACEOF
7751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7752 _ACEOF
7753
7754 fi
7755
7756 done
7757
7758
7759 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7760 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7761 if test "${ac_cv_struct_tm+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h. */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 #include <sys/types.h>
7771 #include <time.h>
7772
7773 int
7774 main ()
7775 {
7776 struct tm tm;
7777 int *p = &tm.tm_sec;
7778 return !p;
7779 ;
7780 return 0;
7781 }
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (ac_try="$ac_compile"
7785 case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_compile") 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest.$ac_objext; then
7800 ac_cv_struct_tm=time.h
7801 else
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805 ac_cv_struct_tm=sys/time.h
7806 fi
7807
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 fi
7810 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7811 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7812 if test $ac_cv_struct_tm = sys/time.h; then
7813
7814 cat >>confdefs.h <<\_ACEOF
7815 #define TM_IN_SYS_TIME 1
7816 _ACEOF
7817
7818 fi
7819
7820 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7821 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7822 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825 cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h. */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7831 #include <sys/types.h>
7832 #include <$ac_cv_struct_tm>
7833
7834
7835 int
7836 main ()
7837 {
7838 static struct tm ac_aggr;
7839 if (ac_aggr.tm_zone)
7840 return 0;
7841 ;
7842 return 0;
7843 }
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7847 case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 ac_cv_member_struct_tm_tm_zone=yes
7863 else
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h. */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7873 #include <sys/types.h>
7874 #include <$ac_cv_struct_tm>
7875
7876
7877 int
7878 main ()
7879 {
7880 static struct tm ac_aggr;
7881 if (sizeof ac_aggr.tm_zone)
7882 return 0;
7883 ;
7884 return 0;
7885 }
7886 _ACEOF
7887 rm -f conftest.$ac_objext
7888 if { (ac_try="$ac_compile"
7889 case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7892 esac
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_compile") 2>conftest.er1
7895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } && {
7901 test -z "$ac_c_werror_flag" ||
7902 test ! -s conftest.err
7903 } && test -s conftest.$ac_objext; then
7904 ac_cv_member_struct_tm_tm_zone=yes
7905 else
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7908
7909 ac_cv_member_struct_tm_tm_zone=no
7910 fi
7911
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913 fi
7914
7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916 fi
7917 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7918 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7919 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7920
7921 cat >>confdefs.h <<_ACEOF
7922 #define HAVE_STRUCT_TM_TM_ZONE 1
7923 _ACEOF
7924
7925
7926 fi
7927
7928 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7929
7930 cat >>confdefs.h <<\_ACEOF
7931 #define HAVE_TM_ZONE 1
7932 _ACEOF
7933
7934 else
7935 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7936 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7937 if test "${ac_cv_have_decl_tzname+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <time.h>
7947
7948 int
7949 main ()
7950 {
7951 #ifndef tzname
7952 (void) tzname;
7953 #endif
7954
7955 ;
7956 return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (ac_try="$ac_compile"
7961 case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_compile") 2>conftest.er1
7967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } && {
7973 test -z "$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 } && test -s conftest.$ac_objext; then
7976 ac_cv_have_decl_tzname=yes
7977 else
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 ac_cv_have_decl_tzname=no
7982 fi
7983
7984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985 fi
7986 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7987 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7988 if test $ac_cv_have_decl_tzname = yes; then
7989
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_DECL_TZNAME 1
7992 _ACEOF
7993
7994
7995 else
7996 cat >>confdefs.h <<_ACEOF
7997 #define HAVE_DECL_TZNAME 0
7998 _ACEOF
7999
8000
8001 fi
8002
8003
8004 { echo "$as_me:$LINENO: checking for tzname" >&5
8005 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8006 if test "${ac_cv_var_tzname+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 else
8009 cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h. */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 #include <time.h>
8016 #if !HAVE_DECL_TZNAME
8017 extern char *tzname[];
8018 #endif
8019
8020 int
8021 main ()
8022 {
8023 return tzname[0][0];
8024 ;
8025 return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8030 case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033 esac
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_link") 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest$ac_exeext &&
8045 $as_test_x conftest$ac_exeext; then
8046 ac_cv_var_tzname=yes
8047 else
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051 ac_cv_var_tzname=no
8052 fi
8053
8054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8055 conftest$ac_exeext conftest.$ac_ext
8056 fi
8057 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8058 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8059 if test $ac_cv_var_tzname = yes; then
8060
8061 cat >>confdefs.h <<\_ACEOF
8062 #define HAVE_TZNAME 1
8063 _ACEOF
8064
8065 fi
8066 fi
8067
8068 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8069 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8070 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073 cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h. */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8079 #include <time.h>
8080
8081 int
8082 main ()
8083 {
8084 static struct tm ac_aggr;
8085 if (ac_aggr.tm_gmtoff)
8086 return 0;
8087 ;
8088 return 0;
8089 }
8090 _ACEOF
8091 rm -f conftest.$ac_objext
8092 if { (ac_try="$ac_compile"
8093 case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8096 esac
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_compile") 2>conftest.er1
8099 ac_status=$?
8100 grep -v '^ *+' conftest.er1 >conftest.err
8101 rm -f conftest.er1
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest.$ac_objext; then
8108 ac_cv_member_struct_tm_tm_gmtoff=yes
8109 else
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8112
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 #include <time.h>
8120
8121 int
8122 main ()
8123 {
8124 static struct tm ac_aggr;
8125 if (sizeof ac_aggr.tm_gmtoff)
8126 return 0;
8127 ;
8128 return 0;
8129 }
8130 _ACEOF
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8133 case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest.$ac_objext; then
8148 ac_cv_member_struct_tm_tm_gmtoff=yes
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153 ac_cv_member_struct_tm_tm_gmtoff=no
8154 fi
8155
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 fi
8158
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 fi
8161 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8162 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8163 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8164
8165 cat >>confdefs.h <<\_ACEOF
8166 #define HAVE_TM_GMTOFF 1
8167 _ACEOF
8168
8169 fi
8170
8171 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8172 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8173 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176 cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h. */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8183 #if HAVE_SYS_SOCKET_H
8184 #include <sys/socket.h>
8185 #endif
8186 #if HAVE_NET_IF_H
8187 #include <net/if.h>
8188 #endif
8189
8190 int
8191 main ()
8192 {
8193 static struct ifreq ac_aggr;
8194 if (ac_aggr.ifr_flags)
8195 return 0;
8196 ;
8197 return 0;
8198 }
8199 _ACEOF
8200 rm -f conftest.$ac_objext
8201 if { (ac_try="$ac_compile"
8202 case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205 esac
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } && {
8214 test -z "$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 } && test -s conftest.$ac_objext; then
8217 ac_cv_member_struct_ifreq_ifr_flags=yes
8218 else
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h. */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228 $ac_includes_default
8229 #if HAVE_SYS_SOCKET_H
8230 #include <sys/socket.h>
8231 #endif
8232 #if HAVE_NET_IF_H
8233 #include <net/if.h>
8234 #endif
8235
8236 int
8237 main ()
8238 {
8239 static struct ifreq ac_aggr;
8240 if (sizeof ac_aggr.ifr_flags)
8241 return 0;
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8248 case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8251 esac
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_compile") 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest.$ac_objext; then
8263 ac_cv_member_struct_ifreq_ifr_flags=yes
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 ac_cv_member_struct_ifreq_ifr_flags=no
8269 fi
8270
8271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272 fi
8273
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 fi
8276 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8277 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8278 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8279
8280 cat >>confdefs.h <<_ACEOF
8281 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8282 _ACEOF
8283
8284
8285 fi
8286 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8287 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8288 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291 cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h. */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8298 #if HAVE_SYS_SOCKET_H
8299 #include <sys/socket.h>
8300 #endif
8301 #if HAVE_NET_IF_H
8302 #include <net/if.h>
8303 #endif
8304
8305 int
8306 main ()
8307 {
8308 static struct ifreq ac_aggr;
8309 if (ac_aggr.ifr_hwaddr)
8310 return 0;
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 rm -f conftest.$ac_objext
8316 if { (ac_try="$ac_compile"
8317 case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320 esac
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_compile") 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest.$ac_objext; then
8332 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h. */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 $ac_includes_default
8344 #if HAVE_SYS_SOCKET_H
8345 #include <sys/socket.h>
8346 #endif
8347 #if HAVE_NET_IF_H
8348 #include <net/if.h>
8349 #endif
8350
8351 int
8352 main ()
8353 {
8354 static struct ifreq ac_aggr;
8355 if (sizeof ac_aggr.ifr_hwaddr)
8356 return 0;
8357 ;
8358 return 0;
8359 }
8360 _ACEOF
8361 rm -f conftest.$ac_objext
8362 if { (ac_try="$ac_compile"
8363 case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_compile") 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } && {
8375 test -z "$ac_c_werror_flag" ||
8376 test ! -s conftest.err
8377 } && test -s conftest.$ac_objext; then
8378 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8379 else
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8384 fi
8385
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 fi
8388
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 fi
8391 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8392 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8393 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8394
8395 cat >>confdefs.h <<_ACEOF
8396 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8397 _ACEOF
8398
8399
8400 fi
8401 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8402 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8403 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 $ac_includes_default
8413 #if HAVE_SYS_SOCKET_H
8414 #include <sys/socket.h>
8415 #endif
8416 #if HAVE_NET_IF_H
8417 #include <net/if.h>
8418 #endif
8419
8420 int
8421 main ()
8422 {
8423 static struct ifreq ac_aggr;
8424 if (ac_aggr.ifr_netmask)
8425 return 0;
8426 ;
8427 return 0;
8428 }
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8432 case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_compile") 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest.$ac_objext; then
8447 ac_cv_member_struct_ifreq_ifr_netmask=yes
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h. */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 $ac_includes_default
8459 #if HAVE_SYS_SOCKET_H
8460 #include <sys/socket.h>
8461 #endif
8462 #if HAVE_NET_IF_H
8463 #include <net/if.h>
8464 #endif
8465
8466 int
8467 main ()
8468 {
8469 static struct ifreq ac_aggr;
8470 if (sizeof ac_aggr.ifr_netmask)
8471 return 0;
8472 ;
8473 return 0;
8474 }
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8478 case "(($ac_try" in
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8481 esac
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_compile") 2>conftest.er1
8484 ac_status=$?
8485 grep -v '^ *+' conftest.er1 >conftest.err
8486 rm -f conftest.er1
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && {
8490 test -z "$ac_c_werror_flag" ||
8491 test ! -s conftest.err
8492 } && test -s conftest.$ac_objext; then
8493 ac_cv_member_struct_ifreq_ifr_netmask=yes
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 ac_cv_member_struct_ifreq_ifr_netmask=no
8499 fi
8500
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 fi
8503
8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 fi
8506 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8507 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8508 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8509
8510 cat >>confdefs.h <<_ACEOF
8511 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8512 _ACEOF
8513
8514
8515 fi
8516 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8517 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8518 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h. */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 $ac_includes_default
8528 #if HAVE_SYS_SOCKET_H
8529 #include <sys/socket.h>
8530 #endif
8531 #if HAVE_NET_IF_H
8532 #include <net/if.h>
8533 #endif
8534
8535 int
8536 main ()
8537 {
8538 static struct ifreq ac_aggr;
8539 if (ac_aggr.ifr_broadaddr)
8540 return 0;
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (ac_try="$ac_compile"
8547 case "(($ac_try" in
8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8553 ac_status=$?
8554 grep -v '^ *+' conftest.er1 >conftest.err
8555 rm -f conftest.er1
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8563 else
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h. */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 $ac_includes_default
8574 #if HAVE_SYS_SOCKET_H
8575 #include <sys/socket.h>
8576 #endif
8577 #if HAVE_NET_IF_H
8578 #include <net/if.h>
8579 #endif
8580
8581 int
8582 main ()
8583 {
8584 static struct ifreq ac_aggr;
8585 if (sizeof ac_aggr.ifr_broadaddr)
8586 return 0;
8587 ;
8588 return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8593 case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && {
8605 test -z "$ac_c_werror_flag" ||
8606 test ! -s conftest.err
8607 } && test -s conftest.$ac_objext; then
8608 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8609 else
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8614 fi
8615
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 fi
8618
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 fi
8621 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8622 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8623 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8624
8625 cat >>confdefs.h <<_ACEOF
8626 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8627 _ACEOF
8628
8629
8630 fi
8631 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8632 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8633 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 #if HAVE_SYS_SOCKET_H
8644 #include <sys/socket.h>
8645 #endif
8646 #if HAVE_NET_IF_H
8647 #include <net/if.h>
8648 #endif
8649
8650 int
8651 main ()
8652 {
8653 static struct ifreq ac_aggr;
8654 if (ac_aggr.ifr_addr)
8655 return 0;
8656 ;
8657 return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8662 case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665 esac
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_compile") 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest.$ac_objext; then
8677 ac_cv_member_struct_ifreq_ifr_addr=yes
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h. */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688 $ac_includes_default
8689 #if HAVE_SYS_SOCKET_H
8690 #include <sys/socket.h>
8691 #endif
8692 #if HAVE_NET_IF_H
8693 #include <net/if.h>
8694 #endif
8695
8696 int
8697 main ()
8698 {
8699 static struct ifreq ac_aggr;
8700 if (sizeof ac_aggr.ifr_addr)
8701 return 0;
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8708 case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.$ac_objext; then
8723 ac_cv_member_struct_ifreq_ifr_addr=yes
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 ac_cv_member_struct_ifreq_ifr_addr=no
8729 fi
8730
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 fi
8733
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 fi
8736 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8737 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8738 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8739
8740 cat >>confdefs.h <<_ACEOF
8741 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8742 _ACEOF
8743
8744
8745 fi
8746
8747
8748
8749 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8750 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8751 if test "$ac_cv_prog_cc_c89" != no; then
8752 { echo "$as_me:$LINENO: result: yes" >&5
8753 echo "${ECHO_T}yes" >&6; }
8754
8755 cat >>confdefs.h <<\_ACEOF
8756 #define PROTOTYPES 1
8757 _ACEOF
8758
8759
8760 cat >>confdefs.h <<\_ACEOF
8761 #define __PROTOTYPES 1
8762 _ACEOF
8763
8764 else
8765 { echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6; }
8767 fi
8768
8769 { echo "$as_me:$LINENO: checking for working volatile" >&5
8770 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8771 if test "${ac_cv_c_volatile+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780
8781 int
8782 main ()
8783 {
8784
8785 volatile int x;
8786 int * volatile y = (int *) 0;
8787 return !x && !y;
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext
8793 if { (ac_try="$ac_compile"
8794 case "(($ac_try" in
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8797 esac
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799 (eval "$ac_compile") 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest.$ac_objext; then
8809 ac_cv_c_volatile=yes
8810 else
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 ac_cv_c_volatile=no
8815 fi
8816
8817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 fi
8819 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8820 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8821 if test $ac_cv_c_volatile = no; then
8822
8823 cat >>confdefs.h <<\_ACEOF
8824 #define volatile
8825 _ACEOF
8826
8827 fi
8828
8829 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8830 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8831 if test "${ac_cv_c_const+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834 cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h. */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840
8841 int
8842 main ()
8843 {
8844 /* FIXME: Include the comments suggested by Paul. */
8845 #ifndef __cplusplus
8846 /* Ultrix mips cc rejects this. */
8847 typedef int charset[2];
8848 const charset cs;
8849 /* SunOS 4.1.1 cc rejects this. */
8850 char const *const *pcpcc;
8851 char **ppc;
8852 /* NEC SVR4.0.2 mips cc rejects this. */
8853 struct point {int x, y;};
8854 static struct point const zero = {0,0};
8855 /* AIX XL C 1.02.0.0 rejects this.
8856 It does not let you subtract one const X* pointer from another in
8857 an arm of an if-expression whose if-part is not a constant
8858 expression */
8859 const char *g = "string";
8860 pcpcc = &g + (g ? g-g : 0);
8861 /* HPUX 7.0 cc rejects these. */
8862 ++pcpcc;
8863 ppc = (char**) pcpcc;
8864 pcpcc = (char const *const *) ppc;
8865 { /* SCO 3.2v4 cc rejects this. */
8866 char *t;
8867 char const *s = 0 ? (char *) 0 : (char const *) 0;
8868
8869 *t++ = 0;
8870 if (s) return 0;
8871 }
8872 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8873 int x[] = {25, 17};
8874 const int *foo = &x[0];
8875 ++foo;
8876 }
8877 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8878 typedef const int *iptr;
8879 iptr p = 0;
8880 ++p;
8881 }
8882 { /* AIX XL C 1.02.0.0 rejects this saying
8883 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8884 struct s { int j; const int *ap[3]; };
8885 struct s *b; b->j = 5;
8886 }
8887 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8888 const int foo = 10;
8889 if (!foo) return 0;
8890 }
8891 return !cs[0] && !zero.x;
8892 #endif
8893
8894 ;
8895 return 0;
8896 }
8897 _ACEOF
8898 rm -f conftest.$ac_objext
8899 if { (ac_try="$ac_compile"
8900 case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8903 esac
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_compile") 2>conftest.er1
8906 ac_status=$?
8907 grep -v '^ *+' conftest.er1 >conftest.err
8908 rm -f conftest.er1
8909 cat conftest.err >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } && {
8912 test -z "$ac_c_werror_flag" ||
8913 test ! -s conftest.err
8914 } && test -s conftest.$ac_objext; then
8915 ac_cv_c_const=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8919
8920 ac_cv_c_const=no
8921 fi
8922
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8926 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8927 if test $ac_cv_c_const = no; then
8928
8929 cat >>confdefs.h <<\_ACEOF
8930 #define const
8931 _ACEOF
8932
8933 fi
8934
8935 { echo "$as_me:$LINENO: checking for void * support" >&5
8936 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8937 if test "${emacs_cv_void_star+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940 cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h. */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946
8947 int
8948 main ()
8949 {
8950 void * foo;
8951 ;
8952 return 0;
8953 }
8954 _ACEOF
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.$ac_objext; then
8972 emacs_cv_void_star=yes
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 emacs_cv_void_star=no
8978 fi
8979
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 fi
8982 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8983 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8984 if test $emacs_cv_void_star = yes; then
8985 cat >>confdefs.h <<\_ACEOF
8986 #define POINTER_TYPE void
8987 _ACEOF
8988
8989 else
8990 cat >>confdefs.h <<\_ACEOF
8991 #define POINTER_TYPE char
8992 _ACEOF
8993
8994 fi
8995
8996
8997
8998
8999
9000 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9001 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9002 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9003 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006 cat >conftest.make <<\_ACEOF
9007 SHELL = /bin/sh
9008 all:
9009 @echo '@@@%%%=$(MAKE)=@@@%%%'
9010 _ACEOF
9011 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9012 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9013 *@@@%%%=?*=@@@%%%*)
9014 eval ac_cv_prog_make_${ac_make}_set=yes;;
9015 *)
9016 eval ac_cv_prog_make_${ac_make}_set=no;;
9017 esac
9018 rm -f conftest.make
9019 fi
9020 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9021 { echo "$as_me:$LINENO: result: yes" >&5
9022 echo "${ECHO_T}yes" >&6; }
9023 SET_MAKE=
9024 else
9025 { echo "$as_me:$LINENO: result: no" >&5
9026 echo "${ECHO_T}no" >&6; }
9027 SET_MAKE="MAKE=${MAKE-make}"
9028 fi
9029
9030
9031 { echo "$as_me:$LINENO: checking for long file names" >&5
9032 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9033 if test "${ac_cv_sys_long_file_names+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036 ac_cv_sys_long_file_names=yes
9037 # Test for long file names in all the places we know might matter:
9038 # . the current directory, where building will happen
9039 # $prefix/lib where we will be installing things
9040 # $exec_prefix/lib likewise
9041 # $TMPDIR if set, where it might want to write temporary files
9042 # /tmp where it might want to write temporary files
9043 # /var/tmp likewise
9044 # /usr/tmp likewise
9045 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9046 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9047 # in the usual case where exec_prefix is '${prefix}'.
9048 case $ac_dir in #(
9049 . | /* | ?:[\\/]*) ;; #(
9050 *) continue;;
9051 esac
9052 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9053 ac_xdir=$ac_dir/cf$$
9054 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9055 ac_tf1=$ac_xdir/conftest9012345
9056 ac_tf2=$ac_xdir/conftest9012346
9057 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9058 ac_cv_sys_long_file_names=no
9059 rm -f -r "$ac_xdir" 2>/dev/null
9060 test $ac_cv_sys_long_file_names = no && break
9061 done
9062 fi
9063 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9064 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9065 if test $ac_cv_sys_long_file_names = yes; then
9066
9067 cat >>confdefs.h <<\_ACEOF
9068 #define HAVE_LONG_FILE_NAMES 1
9069 _ACEOF
9070
9071 fi
9072
9073
9074 #### Choose a window system.
9075
9076 { echo "$as_me:$LINENO: checking for X" >&5
9077 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9078
9079
9080 # Check whether --with-x was given.
9081 if test "${with_x+set}" = set; then
9082 withval=$with_x;
9083 fi
9084
9085 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9086 if test "x$with_x" = xno; then
9087 # The user explicitly disabled X.
9088 have_x=disabled
9089 else
9090 case $x_includes,$x_libraries in #(
9091 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9092 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9093 { (exit 1); exit 1; }; };; #(
9094 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097 # One or both of the vars are not set, and there is no cached value.
9098 ac_x_includes=no ac_x_libraries=no
9099 rm -f -r conftest.dir
9100 if mkdir conftest.dir; then
9101 cd conftest.dir
9102 cat >Imakefile <<'_ACEOF'
9103 incroot:
9104 @echo incroot='${INCROOT}'
9105 usrlibdir:
9106 @echo usrlibdir='${USRLIBDIR}'
9107 libdir:
9108 @echo libdir='${LIBDIR}'
9109 _ACEOF
9110 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9111 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9112 for ac_var in incroot usrlibdir libdir; do
9113 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9114 done
9115 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9116 for ac_extension in a so sl; do
9117 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9118 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9119 ac_im_usrlibdir=$ac_im_libdir; break
9120 fi
9121 done
9122 # Screen out bogus values from the imake configuration. They are
9123 # bogus both because they are the default anyway, and because
9124 # using them would break gcc on systems where it needs fixed includes.
9125 case $ac_im_incroot in
9126 /usr/include) ac_x_includes= ;;
9127 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9128 esac
9129 case $ac_im_usrlibdir in
9130 /usr/lib | /lib) ;;
9131 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9132 esac
9133 fi
9134 cd ..
9135 rm -f -r conftest.dir
9136 fi
9137
9138 # Standard set of common directories for X headers.
9139 # Check X11 before X11Rn because it is often a symlink to the current release.
9140 ac_x_header_dirs='
9141 /usr/X11/include
9142 /usr/X11R6/include
9143 /usr/X11R5/include
9144 /usr/X11R4/include
9145
9146 /usr/include/X11
9147 /usr/include/X11R6
9148 /usr/include/X11R5
9149 /usr/include/X11R4
9150
9151 /usr/local/X11/include
9152 /usr/local/X11R6/include
9153 /usr/local/X11R5/include
9154 /usr/local/X11R4/include
9155
9156 /usr/local/include/X11
9157 /usr/local/include/X11R6
9158 /usr/local/include/X11R5
9159 /usr/local/include/X11R4
9160
9161 /usr/X386/include
9162 /usr/x386/include
9163 /usr/XFree86/include/X11
9164
9165 /usr/include
9166 /usr/local/include
9167 /usr/unsupported/include
9168 /usr/athena/include
9169 /usr/local/x11r5/include
9170 /usr/lpp/Xamples/include
9171
9172 /usr/openwin/include
9173 /usr/openwin/share/include'
9174
9175 if test "$ac_x_includes" = no; then
9176 # Guess where to find include files, by looking for Xlib.h.
9177 # First, try using that file with no special directory specified.
9178 cat >conftest.$ac_ext <<_ACEOF
9179 /* confdefs.h. */
9180 _ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9184 #include <X11/Xlib.h>
9185 _ACEOF
9186 if { (ac_try="$ac_cpp conftest.$ac_ext"
9187 case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } >/dev/null && {
9199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9200 test ! -s conftest.err
9201 }; then
9202 # We can compile using X headers with no special include directory.
9203 ac_x_includes=
9204 else
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208 for ac_dir in $ac_x_header_dirs; do
9209 if test -r "$ac_dir/X11/Xlib.h"; then
9210 ac_x_includes=$ac_dir
9211 break
9212 fi
9213 done
9214 fi
9215
9216 rm -f conftest.err conftest.$ac_ext
9217 fi # $ac_x_includes = no
9218
9219 if test "$ac_x_libraries" = no; then
9220 # Check for the libraries.
9221 # See if we find them without any special options.
9222 # Don't add to $LIBS permanently.
9223 ac_save_LIBS=$LIBS
9224 LIBS="-lX11 $LIBS"
9225 cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h. */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 #include <X11/Xlib.h>
9232 int
9233 main ()
9234 {
9235 XrmInitialize ()
9236 ;
9237 return 0;
9238 }
9239 _ACEOF
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (ac_try="$ac_link"
9242 case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245 esac
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_link") 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } && {
9254 test -z "$ac_c_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest$ac_exeext &&
9257 $as_test_x conftest$ac_exeext; then
9258 LIBS=$ac_save_LIBS
9259 # We can link X programs with no special library path.
9260 ac_x_libraries=
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 LIBS=$ac_save_LIBS
9266 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9267 do
9268 # Don't even attempt the hair of trying to link an X program!
9269 for ac_extension in a so sl; do
9270 if test -r "$ac_dir/libX11.$ac_extension"; then
9271 ac_x_libraries=$ac_dir
9272 break 2
9273 fi
9274 done
9275 done
9276 fi
9277
9278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9279 conftest$ac_exeext conftest.$ac_ext
9280 fi # $ac_x_libraries = no
9281
9282 case $ac_x_includes,$ac_x_libraries in #(
9283 no,* | *,no | *\'*)
9284 # Didn't find X, or a directory has "'" in its name.
9285 ac_cv_have_x="have_x=no";; #(
9286 *)
9287 # Record where we found X for the cache.
9288 ac_cv_have_x="have_x=yes\
9289 ac_x_includes='$ac_x_includes'\
9290 ac_x_libraries='$ac_x_libraries'"
9291 esac
9292 fi
9293 ;; #(
9294 *) have_x=yes;;
9295 esac
9296 eval "$ac_cv_have_x"
9297 fi # $with_x != no
9298
9299 if test "$have_x" != yes; then
9300 { echo "$as_me:$LINENO: result: $have_x" >&5
9301 echo "${ECHO_T}$have_x" >&6; }
9302 no_x=yes
9303 else
9304 # If each of the values was on the command line, it overrides each guess.
9305 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9306 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9307 # Update the cache value to reflect the command line values.
9308 ac_cv_have_x="have_x=yes\
9309 ac_x_includes='$x_includes'\
9310 ac_x_libraries='$x_libraries'"
9311 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9312 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9313 fi
9314
9315 if test "$no_x" = yes; then
9316 window_system=none
9317 else
9318 window_system=x11
9319 fi
9320
9321 ## Workaround for bug in autoconf <= 2.62.
9322 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9323 ## No need to do anything special for these standard directories.
9324 ## This is an experiment, take it out if it causes problems.
9325 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9326
9327 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9328
9329 fi
9330
9331 if test "${x_libraries}" != NONE; then
9332 if test -n "${x_libraries}"; then
9333 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9334 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9335 fi
9336 x_default_search_path=""
9337 x_search_path=${x_libraries}
9338 if test -z "${x_search_path}"; then
9339 x_search_path=/usr/lib
9340 fi
9341 for x_library in `echo ${x_search_path}: | \
9342 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9343 x_search_path="\
9344 ${x_library}/X11/%L/%T/%N%C%S:\
9345 ${x_library}/X11/%l/%T/%N%C%S:\
9346 ${x_library}/X11/%T/%N%C%S:\
9347 ${x_library}/X11/%L/%T/%N%S:\
9348 ${x_library}/X11/%l/%T/%N%S:\
9349 ${x_library}/X11/%T/%N%S"
9350 if test x"${x_default_search_path}" = x; then
9351 x_default_search_path=${x_search_path}
9352 else
9353 x_default_search_path="${x_search_path}:${x_default_search_path}"
9354 fi
9355 done
9356 fi
9357 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9358 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9359 fi
9360
9361 if test x"${x_includes}" = x; then
9362 bitmapdir=/usr/include/X11/bitmaps
9363 else
9364 # accumulate include directories that have X11 bitmap subdirectories
9365 bmd_acc="dummyval"
9366 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9367 if test -d "${bmd}/X11/bitmaps"; then
9368 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9369 fi
9370 if test -d "${bmd}/bitmaps"; then
9371 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9372 fi
9373 done
9374 if test ${bmd_acc} != "dummyval"; then
9375 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9376 fi
9377 fi
9378
9379 HAVE_CARBON=no
9380 if test "${with_carbon}" != no; then
9381 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9382 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9383 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9384 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 fi
9387 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9388 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9389 else
9390 # Is the header compilable?
9391 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9392 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h. */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 $ac_includes_default
9400 #include <Carbon/Carbon.h>
9401 _ACEOF
9402 rm -f conftest.$ac_objext
9403 if { (ac_try="$ac_compile"
9404 case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407 esac
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_compile") 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && {
9416 test -z "$ac_c_werror_flag" ||
9417 test ! -s conftest.err
9418 } && test -s conftest.$ac_objext; then
9419 ac_header_compiler=yes
9420 else
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 ac_header_compiler=no
9425 fi
9426
9427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9429 echo "${ECHO_T}$ac_header_compiler" >&6; }
9430
9431 # Is the header present?
9432 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9433 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h. */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 #include <Carbon/Carbon.h>
9441 _ACEOF
9442 if { (ac_try="$ac_cpp conftest.$ac_ext"
9443 case "(($ac_try" in
9444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445 *) ac_try_echo=$ac_try;;
9446 esac
9447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9449 ac_status=$?
9450 grep -v '^ *+' conftest.er1 >conftest.err
9451 rm -f conftest.er1
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } >/dev/null && {
9455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9456 test ! -s conftest.err
9457 }; then
9458 ac_header_preproc=yes
9459 else
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9462
9463 ac_header_preproc=no
9464 fi
9465
9466 rm -f conftest.err conftest.$ac_ext
9467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9468 echo "${ECHO_T}$ac_header_preproc" >&6; }
9469
9470 # So? What about this header?
9471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9472 yes:no: )
9473 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9474 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9476 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9477 ac_header_preproc=yes
9478 ;;
9479 no:yes:* )
9480 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9481 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9483 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9484 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9485 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9486 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9487 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9488 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9489 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9490 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9491 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9492
9493 ;;
9494 esac
9495 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9496 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9497 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9501 fi
9502 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9503 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9504
9505 fi
9506 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9507 HAVE_CARBON=yes
9508 fi
9509
9510
9511 fi
9512 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9513 if test "${with_carbon+set}" != set \
9514 && test "${carbon_appdir_x+set}" != set; then
9515 for var in with_x with_x_toolkit with_xim \
9516 with_xpm with_jpeg with_tiff with_gif with_png; do
9517 if eval test \"\${$var+set}\" = set; then
9518 HAVE_CARBON=no
9519 break
9520 fi
9521 done
9522 fi
9523 fi
9524 if test "${HAVE_CARBON}" = yes; then
9525 window_system=mac
9526 fi
9527
9528 case "${window_system}" in
9529 x11 )
9530 HAVE_X_WINDOWS=yes
9531 HAVE_X11=yes
9532 case "${with_x_toolkit}" in
9533 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9534 motif ) USE_X_TOOLKIT=MOTIF ;;
9535 gtk ) with_gtk=yes
9536 USE_X_TOOLKIT=none ;;
9537 no ) USE_X_TOOLKIT=none ;;
9538 * ) USE_X_TOOLKIT=maybe ;;
9539 esac
9540 ;;
9541 mac | none )
9542 HAVE_X_WINDOWS=no
9543 HAVE_X11=no
9544 USE_X_TOOLKIT=none
9545 ;;
9546 esac
9547
9548 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9549 # Extract the first word of "X", so it can be a program name with args.
9550 set dummy X; ac_word=$2
9551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9553 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556 if test -n "$HAVE_XSERVER"; then
9557 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9558 else
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH
9561 do
9562 IFS=$as_save_IFS
9563 test -z "$as_dir" && as_dir=.
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566 ac_cv_prog_HAVE_XSERVER="true"
9567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9568 break 2
9569 fi
9570 done
9571 done
9572 IFS=$as_save_IFS
9573
9574 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9575 fi
9576 fi
9577 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9578 if test -n "$HAVE_XSERVER"; then
9579 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9580 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9581 else
9582 { echo "$as_me:$LINENO: result: no" >&5
9583 echo "${ECHO_T}no" >&6; }
9584 fi
9585
9586
9587 if test "$HAVE_XSERVER" = true ||
9588 test -n "$DISPLAY" ||
9589 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9590 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9591 were found. You should install the relevant development files for X
9592 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9593 sure you have development files for image handling, i.e.
9594 tiff, gif, jpeg, png and xpm.
9595 If you are sure you want Emacs compiled without X window support, pass
9596 --without-x
9597 to configure." >&5
9598 echo "$as_me: error: You seem to be running X, but no X development libraries
9599 were found. You should install the relevant development files for X
9600 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9601 sure you have development files for image handling, i.e.
9602 tiff, gif, jpeg, png and xpm.
9603 If you are sure you want Emacs compiled without X window support, pass
9604 --without-x
9605 to configure." >&2;}
9606 { (exit 1); exit 1; }; }
9607 fi
9608 fi
9609
9610 ### If we're using X11, we should use the X menu package.
9611 HAVE_MENUS=no
9612 case ${HAVE_X11} in
9613 yes ) HAVE_MENUS=yes ;;
9614 esac
9615
9616 ### Compute the unexec source name from the object name.
9617 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9618
9619 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9620 # Assume not, until told otherwise.
9621 GNU_MALLOC=yes
9622 doug_lea_malloc=yes
9623 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9624 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9625 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h. */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636 #define malloc_get_state innocuous_malloc_get_state
9637
9638 /* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char malloc_get_state (); below.
9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641 <limits.h> exists even on freestanding compilers. */
9642
9643 #ifdef __STDC__
9644 # include <limits.h>
9645 #else
9646 # include <assert.h>
9647 #endif
9648
9649 #undef malloc_get_state
9650
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 char malloc_get_state ();
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9662 choke me
9663 #endif
9664
9665 int
9666 main ()
9667 {
9668 return malloc_get_state ();
9669 ;
9670 return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext &&
9690 $as_test_x conftest$ac_exeext; then
9691 ac_cv_func_malloc_get_state=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696 ac_cv_func_malloc_get_state=no
9697 fi
9698
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700 conftest$ac_exeext conftest.$ac_ext
9701 fi
9702 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9703 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9704 if test $ac_cv_func_malloc_get_state = yes; then
9705 :
9706 else
9707 doug_lea_malloc=no
9708 fi
9709
9710 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9711 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9712 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define malloc_set_state innocuous_malloc_set_state
9724
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char malloc_set_state (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9729
9730 #ifdef __STDC__
9731 # include <limits.h>
9732 #else
9733 # include <assert.h>
9734 #endif
9735
9736 #undef malloc_set_state
9737
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9741 #ifdef __cplusplus
9742 extern "C"
9743 #endif
9744 char malloc_set_state ();
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9749 choke me
9750 #endif
9751
9752 int
9753 main ()
9754 {
9755 return malloc_set_state ();
9756 ;
9757 return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9762 case "(($ac_try" in
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>conftest.er1
9768 ac_status=$?
9769 grep -v '^ *+' conftest.er1 >conftest.err
9770 rm -f conftest.er1
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest$ac_exeext &&
9777 $as_test_x conftest$ac_exeext; then
9778 ac_cv_func_malloc_set_state=yes
9779 else
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783 ac_cv_func_malloc_set_state=no
9784 fi
9785
9786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787 conftest$ac_exeext conftest.$ac_ext
9788 fi
9789 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9790 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9791 if test $ac_cv_func_malloc_set_state = yes; then
9792 :
9793 else
9794 doug_lea_malloc=no
9795 fi
9796
9797 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9798 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9799 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 extern void (* __after_morecore_hook)();
9809 int
9810 main ()
9811 {
9812 __after_morecore_hook = 0
9813 ;
9814 return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest$ac_exeext &&
9834 $as_test_x conftest$ac_exeext; then
9835 emacs_cv_var___after_morecore_hook=yes
9836 else
9837 echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.$ac_ext >&5
9839
9840 emacs_cv_var___after_morecore_hook=no
9841 fi
9842
9843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9844 conftest$ac_exeext conftest.$ac_ext
9845 fi
9846 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9847 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9848 if test $emacs_cv_var___after_morecore_hook = no; then
9849 doug_lea_malloc=no
9850 fi
9851 if test "${system_malloc}" = "yes"; then
9852 GNU_MALLOC=no
9853 GNU_MALLOC_reason="
9854 (The GNU allocators don't work with this system configuration.)"
9855 fi
9856 if test "$doug_lea_malloc" = "yes" ; then
9857 if test "$GNU_MALLOC" = yes ; then
9858 GNU_MALLOC_reason="
9859 (Using Doug Lea's new malloc from the GNU C Library.)"
9860 fi
9861
9862 cat >>confdefs.h <<\_ACEOF
9863 #define DOUG_LEA_MALLOC 1
9864 _ACEOF
9865
9866 fi
9867
9868 if test x"${REL_ALLOC}" = x; then
9869 REL_ALLOC=${GNU_MALLOC}
9870 fi
9871
9872
9873
9874
9875 for ac_header in stdlib.h unistd.h
9876 do
9877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 fi
9884 ac_res=`eval echo '${'$as_ac_Header'}'`
9885 { echo "$as_me:$LINENO: result: $ac_res" >&5
9886 echo "${ECHO_T}$ac_res" >&6; }
9887 else
9888 # Is the header compilable?
9889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 $ac_includes_default
9898 #include <$ac_header>
9899 _ACEOF
9900 rm -f conftest.$ac_objext
9901 if { (ac_try="$ac_compile"
9902 case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_compile") 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } && {
9914 test -z "$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9916 } && test -s conftest.$ac_objext; then
9917 ac_header_compiler=yes
9918 else
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 ac_header_compiler=no
9923 fi
9924
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9927 echo "${ECHO_T}$ac_header_compiler" >&6; }
9928
9929 # Is the header present?
9930 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h. */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 #include <$ac_header>
9939 _ACEOF
9940 if { (ac_try="$ac_cpp conftest.$ac_ext"
9941 case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9944 esac
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9947 ac_status=$?
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } >/dev/null && {
9953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 }; then
9956 ac_header_preproc=yes
9957 else
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 ac_header_preproc=no
9962 fi
9963
9964 rm -f conftest.err conftest.$ac_ext
9965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9966 echo "${ECHO_T}$ac_header_preproc" >&6; }
9967
9968 # So? What about this header?
9969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9970 yes:no: )
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9975 ac_header_preproc=yes
9976 ;;
9977 no:yes:* )
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9990
9991 ;;
9992 esac
9993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 eval "$as_ac_Header=\$ac_header_preproc"
9999 fi
10000 ac_res=`eval echo '${'$as_ac_Header'}'`
10001 { echo "$as_me:$LINENO: result: $ac_res" >&5
10002 echo "${ECHO_T}$ac_res" >&6; }
10003
10004 fi
10005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10006 cat >>confdefs.h <<_ACEOF
10007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10008 _ACEOF
10009
10010 fi
10011
10012 done
10013
10014
10015 for ac_func in getpagesize
10016 do
10017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 cat >conftest.$ac_ext <<_ACEOF
10024 /* confdefs.h. */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10031 #define $ac_func innocuous_$ac_func
10032
10033 /* System header to define __stub macros and hopefully few prototypes,
10034 which can conflict with char $ac_func (); below.
10035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10036 <limits.h> exists even on freestanding compilers. */
10037
10038 #ifdef __STDC__
10039 # include <limits.h>
10040 #else
10041 # include <assert.h>
10042 #endif
10043
10044 #undef $ac_func
10045
10046 /* Override any GCC internal prototype to avoid an error.
10047 Use char because int might match the return type of a GCC
10048 builtin and then its argument prototype would still apply. */
10049 #ifdef __cplusplus
10050 extern "C"
10051 #endif
10052 char $ac_func ();
10053 /* The GNU C library defines this for functions which it implements
10054 to always fail with ENOSYS. Some functions are actually named
10055 something starting with __ and the normal name is an alias. */
10056 #if defined __stub_$ac_func || defined __stub___$ac_func
10057 choke me
10058 #endif
10059
10060 int
10061 main ()
10062 {
10063 return $ac_func ();
10064 ;
10065 return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (ac_try="$ac_link"
10070 case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10073 esac
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_link") 2>conftest.er1
10076 ac_status=$?
10077 grep -v '^ *+' conftest.er1 >conftest.err
10078 rm -f conftest.er1
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } && {
10082 test -z "$ac_c_werror_flag" ||
10083 test ! -s conftest.err
10084 } && test -s conftest$ac_exeext &&
10085 $as_test_x conftest$ac_exeext; then
10086 eval "$as_ac_var=yes"
10087 else
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10090
10091 eval "$as_ac_var=no"
10092 fi
10093
10094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10095 conftest$ac_exeext conftest.$ac_ext
10096 fi
10097 ac_res=`eval echo '${'$as_ac_var'}'`
10098 { echo "$as_me:$LINENO: result: $ac_res" >&5
10099 echo "${ECHO_T}$ac_res" >&6; }
10100 if test `eval echo '${'$as_ac_var'}'` = yes; then
10101 cat >>confdefs.h <<_ACEOF
10102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10103 _ACEOF
10104
10105 fi
10106 done
10107
10108 { echo "$as_me:$LINENO: checking for working mmap" >&5
10109 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10110 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113 if test "$cross_compiling" = yes; then
10114 ac_cv_func_mmap_fixed_mapped=no
10115 else
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h. */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 /* malloc might have been renamed as rpl_malloc. */
10124 #undef malloc
10125
10126 /* Thanks to Mike Haertel and Jim Avera for this test.
10127 Here is a matrix of mmap possibilities:
10128 mmap private not fixed
10129 mmap private fixed at somewhere currently unmapped
10130 mmap private fixed at somewhere already mapped
10131 mmap shared not fixed
10132 mmap shared fixed at somewhere currently unmapped
10133 mmap shared fixed at somewhere already mapped
10134 For private mappings, we should verify that changes cannot be read()
10135 back from the file, nor mmap's back from the file at a different
10136 address. (There have been systems where private was not correctly
10137 implemented like the infamous i386 svr4.0, and systems where the
10138 VM page cache was not coherent with the file system buffer cache
10139 like early versions of FreeBSD and possibly contemporary NetBSD.)
10140 For shared mappings, we should conversely verify that changes get
10141 propagated back to all the places they're supposed to be.
10142
10143 Grep wants private fixed already mapped.
10144 The main things grep needs to know about mmap are:
10145 * does it exist and is it safe to write into the mmap'd area
10146 * how to use it (BSD variants) */
10147
10148 #include <fcntl.h>
10149 #include <sys/mman.h>
10150
10151 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10152 char *malloc ();
10153 #endif
10154
10155 /* This mess was copied from the GNU getpagesize.h. */
10156 #ifndef HAVE_GETPAGESIZE
10157 /* Assume that all systems that can run configure have sys/param.h. */
10158 # ifndef HAVE_SYS_PARAM_H
10159 # define HAVE_SYS_PARAM_H 1
10160 # endif
10161
10162 # ifdef _SC_PAGESIZE
10163 # define getpagesize() sysconf(_SC_PAGESIZE)
10164 # else /* no _SC_PAGESIZE */
10165 # ifdef HAVE_SYS_PARAM_H
10166 # include <sys/param.h>
10167 # ifdef EXEC_PAGESIZE
10168 # define getpagesize() EXEC_PAGESIZE
10169 # else /* no EXEC_PAGESIZE */
10170 # ifdef NBPG
10171 # define getpagesize() NBPG * CLSIZE
10172 # ifndef CLSIZE
10173 # define CLSIZE 1
10174 # endif /* no CLSIZE */
10175 # else /* no NBPG */
10176 # ifdef NBPC
10177 # define getpagesize() NBPC
10178 # else /* no NBPC */
10179 # ifdef PAGESIZE
10180 # define getpagesize() PAGESIZE
10181 # endif /* PAGESIZE */
10182 # endif /* no NBPC */
10183 # endif /* no NBPG */
10184 # endif /* no EXEC_PAGESIZE */
10185 # else /* no HAVE_SYS_PARAM_H */
10186 # define getpagesize() 8192 /* punt totally */
10187 # endif /* no HAVE_SYS_PARAM_H */
10188 # endif /* no _SC_PAGESIZE */
10189
10190 #endif /* no HAVE_GETPAGESIZE */
10191
10192 int
10193 main ()
10194 {
10195 char *data, *data2, *data3;
10196 int i, pagesize;
10197 int fd;
10198
10199 pagesize = getpagesize ();
10200
10201 /* First, make a file with some known garbage in it. */
10202 data = (char *) malloc (pagesize);
10203 if (!data)
10204 return 1;
10205 for (i = 0; i < pagesize; ++i)
10206 *(data + i) = rand ();
10207 umask (0);
10208 fd = creat ("conftest.mmap", 0600);
10209 if (fd < 0)
10210 return 1;
10211 if (write (fd, data, pagesize) != pagesize)
10212 return 1;
10213 close (fd);
10214
10215 /* Next, try to mmap the file at a fixed address which already has
10216 something else allocated at it. If we can, also make sure that
10217 we see the same garbage. */
10218 fd = open ("conftest.mmap", O_RDWR);
10219 if (fd < 0)
10220 return 1;
10221 data2 = (char *) malloc (2 * pagesize);
10222 if (!data2)
10223 return 1;
10224 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10225 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10226 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10227 return 1;
10228 for (i = 0; i < pagesize; ++i)
10229 if (*(data + i) != *(data2 + i))
10230 return 1;
10231
10232 /* Finally, make sure that changes to the mapped area do not
10233 percolate back to the file as seen by read(). (This is a bug on
10234 some variants of i386 svr4.0.) */
10235 for (i = 0; i < pagesize; ++i)
10236 *(data2 + i) = *(data2 + i) + 1;
10237 data3 = (char *) malloc (pagesize);
10238 if (!data3)
10239 return 1;
10240 if (read (fd, data3, pagesize) != pagesize)
10241 return 1;
10242 for (i = 0; i < pagesize; ++i)
10243 if (*(data + i) != *(data3 + i))
10244 return 1;
10245 close (fd);
10246 return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest$ac_exeext
10250 if { (ac_try="$ac_link"
10251 case "(($ac_try" in
10252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253 *) ac_try_echo=$ac_try;;
10254 esac
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_link") 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10260 { (case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_cv_func_mmap_fixed_mapped=yes
10270 else
10271 echo "$as_me: program exited with status $ac_status" >&5
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275 ( exit $ac_status )
10276 ac_cv_func_mmap_fixed_mapped=no
10277 fi
10278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10279 fi
10280
10281
10282 fi
10283 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10284 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10285 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10286
10287 cat >>confdefs.h <<\_ACEOF
10288 #define HAVE_MMAP 1
10289 _ACEOF
10290
10291 fi
10292 rm -f conftest.mmap
10293
10294 if test $use_mmap_for_buffers = yes; then
10295 REL_ALLOC=no
10296 fi
10297
10298 LIBS="$libsrc_libs $LIBS"
10299
10300
10301 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10302 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10303 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-ldnet $LIBS"
10308 cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h. */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10314
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 char dnet_ntoa ();
10322 int
10323 main ()
10324 {
10325 return dnet_ntoa ();
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest$ac_exeext &&
10347 $as_test_x conftest$ac_exeext; then
10348 ac_cv_lib_dnet_dnet_ntoa=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10352
10353 ac_cv_lib_dnet_dnet_ntoa=no
10354 fi
10355
10356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10357 conftest$ac_exeext conftest.$ac_ext
10358 LIBS=$ac_check_lib_save_LIBS
10359 fi
10360 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10361 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10362 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10363 cat >>confdefs.h <<_ACEOF
10364 #define HAVE_LIBDNET 1
10365 _ACEOF
10366
10367 LIBS="-ldnet $LIBS"
10368
10369 fi
10370
10371
10372 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10373 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10374 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377 ac_check_lib_save_LIBS=$LIBS
10378 LIBS="-lXbsd $LIBS"
10379 cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h. */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385
10386
10387 int
10388 main ()
10389 {
10390 return main ();
10391 ;
10392 return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_link") 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest$ac_exeext &&
10412 $as_test_x conftest$ac_exeext; then
10413 ac_cv_lib_Xbsd_main=yes
10414 else
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ac_cv_lib_Xbsd_main=no
10419 fi
10420
10421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10424 fi
10425 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10426 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10427 if test $ac_cv_lib_Xbsd_main = yes; then
10428 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10429 fi
10430
10431
10432
10433 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10434 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10435 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438 ac_check_lib_save_LIBS=$LIBS
10439 LIBS="-lpthreads $LIBS"
10440 cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h. */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10446
10447 /* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 char cma_open ();
10454 int
10455 main ()
10456 {
10457 return cma_open ();
10458 ;
10459 return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_link") 2>conftest.er1
10470 ac_status=$?
10471 grep -v '^ *+' conftest.er1 >conftest.err
10472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest$ac_exeext &&
10479 $as_test_x conftest$ac_exeext; then
10480 ac_cv_lib_pthreads_cma_open=yes
10481 else
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10484
10485 ac_cv_lib_pthreads_cma_open=no
10486 fi
10487
10488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10489 conftest$ac_exeext conftest.$ac_ext
10490 LIBS=$ac_check_lib_save_LIBS
10491 fi
10492 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10493 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10494 if test $ac_cv_lib_pthreads_cma_open = yes; then
10495 cat >>confdefs.h <<_ACEOF
10496 #define HAVE_LIBPTHREADS 1
10497 _ACEOF
10498
10499 LIBS="-lpthreads $LIBS"
10500
10501 fi
10502
10503
10504
10505 case ${host_os} in
10506 aix*)
10507 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10508 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10509 if test "${gdb_cv_bigtoc+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512
10513 case $GCC in
10514 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10515 *) gdb_cv_bigtoc=-bbigtoc ;;
10516 esac
10517
10518 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h. */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525
10526 int
10527 main ()
10528 {
10529 int i;
10530 ;
10531 return 0;
10532 }
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (ac_try="$ac_link"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && {
10548 test -z "$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10550 } && test -s conftest$ac_exeext &&
10551 $as_test_x conftest$ac_exeext; then
10552 :
10553 else
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557 gdb_cv_bigtoc=
10558 fi
10559
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561 conftest$ac_exeext conftest.$ac_ext
10562
10563 fi
10564 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10565 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10566 ;;
10567 esac
10568
10569 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10570 # used for the tests that follow. We set them back to REAL_CFLAGS and
10571 # REAL_CPPFLAGS later on.
10572
10573 REAL_CPPFLAGS="$CPPFLAGS"
10574
10575 if test "${HAVE_X11}" = "yes"; then
10576 DEFS="$C_SWITCH_X_SITE $DEFS"
10577 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10578 LIBS="$LIBX $LIBS"
10579 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10580 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10581
10582 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10583 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10584 # but it's more convenient here to set LD_RUN_PATH
10585 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10586 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10587 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10588 export LD_RUN_PATH
10589 fi
10590
10591 if test "${opsys}" = "gnu-linux"; then
10592 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10593 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10594 cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h. */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10600
10601 int
10602 main ()
10603 {
10604 XOpenDisplay ("foo");
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614 esac
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_link") 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest$ac_exeext &&
10626 $as_test_x conftest$ac_exeext; then
10627 xlinux_first_failure=no
10628 else
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.$ac_ext >&5
10631
10632 xlinux_first_failure=yes
10633 fi
10634
10635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10636 conftest$ac_exeext conftest.$ac_ext
10637 if test "${xlinux_first_failure}" = "yes"; then
10638 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10639 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10640 OLD_CPPFLAGS="$CPPFLAGS"
10641 OLD_LIBS="$LIBS"
10642 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10643 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10644 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10645 LIBS="$LIBS -b i486-linuxaout"
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h. */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652
10653 int
10654 main ()
10655 {
10656 XOpenDisplay ("foo");
10657 ;
10658 return 0;
10659 }
10660 _ACEOF
10661 rm -f conftest.$ac_objext conftest$ac_exeext
10662 if { (ac_try="$ac_link"
10663 case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10666 esac
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_link") 2>conftest.er1
10669 ac_status=$?
10670 grep -v '^ *+' conftest.er1 >conftest.err
10671 rm -f conftest.er1
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } && {
10675 test -z "$ac_c_werror_flag" ||
10676 test ! -s conftest.err
10677 } && test -s conftest$ac_exeext &&
10678 $as_test_x conftest$ac_exeext; then
10679 xlinux_second_failure=no
10680 else
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10683
10684 xlinux_second_failure=yes
10685 fi
10686
10687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10688 conftest$ac_exeext conftest.$ac_ext
10689 if test "${xlinux_second_failure}" = "yes"; then
10690 # If we get the same failure with -b, there is no use adding -b.
10691 # So take it out. This plays safe.
10692 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10693 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10694 CPPFLAGS="$OLD_CPPFLAGS"
10695 LIBS="$OLD_LIBS"
10696 { echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6; }
10698 else
10699 { echo "$as_me:$LINENO: result: yes" >&5
10700 echo "${ECHO_T}yes" >&6; }
10701 fi
10702 else
10703 { echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6; }
10705 fi
10706 fi
10707
10708 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10709 # header files included from there.
10710 { echo "$as_me:$LINENO: checking for Xkb" >&5
10711 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10712 cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h. */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 #include <X11/Xlib.h>
10719 #include <X11/XKBlib.h>
10720 int
10721 main ()
10722 {
10723 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10724 ;
10725 return 0;
10726 }
10727 _ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733 esac
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest$ac_exeext &&
10745 $as_test_x conftest$ac_exeext; then
10746 emacs_xkb=yes
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 emacs_xkb=no
10752 fi
10753
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755 conftest$ac_exeext conftest.$ac_ext
10756 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10757 echo "${ECHO_T}$emacs_xkb" >&6; }
10758 if test $emacs_xkb = yes; then
10759
10760 cat >>confdefs.h <<\_ACEOF
10761 #define HAVE_XKBGETKEYBOARD 1
10762 _ACEOF
10763
10764 fi
10765
10766
10767
10768
10769
10770 for ac_func in XrmSetDatabase XScreenResourceString \
10771 XScreenNumberOfScreen XSetWMProtocols
10772 do
10773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10787 #define $ac_func innocuous_$ac_func
10788
10789 /* System header to define __stub macros and hopefully few prototypes,
10790 which can conflict with char $ac_func (); below.
10791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10792 <limits.h> exists even on freestanding compilers. */
10793
10794 #ifdef __STDC__
10795 # include <limits.h>
10796 #else
10797 # include <assert.h>
10798 #endif
10799
10800 #undef $ac_func
10801
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 char $ac_func ();
10809 /* The GNU C library defines this for functions which it implements
10810 to always fail with ENOSYS. Some functions are actually named
10811 something starting with __ and the normal name is an alias. */
10812 #if defined __stub_$ac_func || defined __stub___$ac_func
10813 choke me
10814 #endif
10815
10816 int
10817 main ()
10818 {
10819 return $ac_func ();
10820 ;
10821 return 0;
10822 }
10823 _ACEOF
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10829 esac
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest$ac_exeext &&
10841 $as_test_x conftest$ac_exeext; then
10842 eval "$as_ac_var=yes"
10843 else
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 eval "$as_ac_var=no"
10848 fi
10849
10850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10851 conftest$ac_exeext conftest.$ac_ext
10852 fi
10853 ac_res=`eval echo '${'$as_ac_var'}'`
10854 { echo "$as_me:$LINENO: result: $ac_res" >&5
10855 echo "${ECHO_T}$ac_res" >&6; }
10856 if test `eval echo '${'$as_ac_var'}'` = yes; then
10857 cat >>confdefs.h <<_ACEOF
10858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10859 _ACEOF
10860
10861 fi
10862 done
10863
10864 fi
10865
10866 if test "${window_system}" = "x11"; then
10867 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10868 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10869 if test "${emacs_cv_x11_version_6+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872 cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h. */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 #include <X11/Xlib.h>
10879 int
10880 main ()
10881 {
10882 #if XlibSpecificationRelease < 6
10883 fail;
10884 #endif
10885
10886 ;
10887 return 0;
10888 }
10889 _ACEOF
10890 rm -f conftest.$ac_objext conftest$ac_exeext
10891 if { (ac_try="$ac_link"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext &&
10907 $as_test_x conftest$ac_exeext; then
10908 emacs_cv_x11_version_6=yes
10909 else
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 emacs_cv_x11_version_6=no
10914 fi
10915
10916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10918 fi
10919
10920 if test $emacs_cv_x11_version_6 = yes; then
10921 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10922 echo "${ECHO_T}6 or newer" >&6; }
10923
10924 cat >>confdefs.h <<\_ACEOF
10925 #define HAVE_X11R6 1
10926 _ACEOF
10927
10928 else
10929 { echo "$as_me:$LINENO: result: before 6" >&5
10930 echo "${ECHO_T}before 6" >&6; }
10931 fi
10932 fi
10933
10934
10935 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10936 HAVE_RSVG=no
10937 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10938 if test "${with_rsvg}" != "no"; then
10939 RSVG_REQUIRED=2.0.0
10940 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10941
10942
10943 succeeded=no
10944
10945 # Extract the first word of "pkg-config", so it can be a program name with args.
10946 set dummy pkg-config; ac_word=$2
10947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10949 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952 case $PKG_CONFIG in
10953 [\\/]* | ?:[\\/]*)
10954 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10955 ;;
10956 *)
10957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958 for as_dir in $PATH
10959 do
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10964 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 break 2
10967 fi
10968 done
10969 done
10970 IFS=$as_save_IFS
10971
10972 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10973 ;;
10974 esac
10975 fi
10976 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10977 if test -n "$PKG_CONFIG"; then
10978 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10979 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10980 else
10981 { echo "$as_me:$LINENO: result: no" >&5
10982 echo "${ECHO_T}no" >&6; }
10983 fi
10984
10985
10986
10987 if test "$PKG_CONFIG" = "no" ; then
10988 :
10989 else
10990 PKG_CONFIG_MIN_VERSION=0.9.0
10991 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10992 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10993 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10994
10995 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10996 { echo "$as_me:$LINENO: result: yes" >&5
10997 echo "${ECHO_T}yes" >&6; }
10998 succeeded=yes
10999
11000 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11001 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11002 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11003 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11004 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11005
11006 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11007 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11008 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11009 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11010 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11011 else
11012 { echo "$as_me:$LINENO: result: no" >&5
11013 echo "${ECHO_T}no" >&6; }
11014 RSVG_CFLAGS=""
11015 RSVG_LIBS=""
11016 ## If we have a custom action on failure, don't print errors, but
11017 ## do set a variable so people can do so.
11018 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11019
11020 fi
11021
11022
11023
11024 else
11025 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11026 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11027 fi
11028 fi
11029
11030 if test $succeeded = yes; then
11031 :
11032 else
11033 :
11034 fi
11035
11036
11037
11038
11039 if test ".${RSVG_CFLAGS}" != "."; then
11040 HAVE_RSVG=yes
11041
11042 cat >>confdefs.h <<\_ACEOF
11043 #define HAVE_RSVG 1
11044 _ACEOF
11045
11046 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11047 LIBS="$RSVG_LIBS $LIBS"
11048 fi
11049 fi
11050 fi
11051
11052
11053 HAVE_GTK=no
11054 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11055 GLIB_REQUIRED=2.6
11056 GTK_REQUIRED=2.6
11057 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11058
11059
11060 succeeded=no
11061
11062 # Extract the first word of "pkg-config", so it can be a program name with args.
11063 set dummy pkg-config; ac_word=$2
11064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11066 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069 case $PKG_CONFIG in
11070 [\\/]* | ?:[\\/]*)
11071 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11072 ;;
11073 *)
11074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075 for as_dir in $PATH
11076 do
11077 IFS=$as_save_IFS
11078 test -z "$as_dir" && as_dir=.
11079 for ac_exec_ext in '' $ac_executable_extensions; do
11080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11081 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11083 break 2
11084 fi
11085 done
11086 done
11087 IFS=$as_save_IFS
11088
11089 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11090 ;;
11091 esac
11092 fi
11093 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11094 if test -n "$PKG_CONFIG"; then
11095 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11096 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11097 else
11098 { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11100 fi
11101
11102
11103
11104 if test "$PKG_CONFIG" = "no" ; then
11105 pkg_check_gtk=no
11106 else
11107 PKG_CONFIG_MIN_VERSION=0.9.0
11108 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11109 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11110 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11111
11112 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11113 { echo "$as_me:$LINENO: result: yes" >&5
11114 echo "${ECHO_T}yes" >&6; }
11115 succeeded=yes
11116
11117 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11118 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11119 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11120 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11121 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11122
11123 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11124 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11125 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11126 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11127 echo "${ECHO_T}$GTK_LIBS" >&6; }
11128 else
11129 { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11131 GTK_CFLAGS=""
11132 GTK_LIBS=""
11133 ## If we have a custom action on failure, don't print errors, but
11134 ## do set a variable so people can do so.
11135 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11136
11137 fi
11138
11139
11140
11141 else
11142 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11143 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11144 fi
11145 fi
11146
11147 if test $succeeded = yes; then
11148 pkg_check_gtk=yes
11149 else
11150 pkg_check_gtk=no
11151 fi
11152
11153 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11154 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11155 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11156 { (exit 1); exit 1; }; }
11157 fi
11158 fi
11159
11160
11161 if test x"$pkg_check_gtk" = xyes; then
11162
11163
11164
11165 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11166 CFLAGS="$CFLAGS $GTK_CFLAGS"
11167 LIBS="$GTK_LIBS $LIBS"
11168 GTK_COMPILES=no
11169
11170 for ac_func in gtk_main
11171 do
11172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 cat >conftest.$ac_ext <<_ACEOF
11179 /* confdefs.h. */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11186 #define $ac_func innocuous_$ac_func
11187
11188 /* System header to define __stub macros and hopefully few prototypes,
11189 which can conflict with char $ac_func (); below.
11190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11191 <limits.h> exists even on freestanding compilers. */
11192
11193 #ifdef __STDC__
11194 # include <limits.h>
11195 #else
11196 # include <assert.h>
11197 #endif
11198
11199 #undef $ac_func
11200
11201 /* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11204 #ifdef __cplusplus
11205 extern "C"
11206 #endif
11207 char $ac_func ();
11208 /* The GNU C library defines this for functions which it implements
11209 to always fail with ENOSYS. Some functions are actually named
11210 something starting with __ and the normal name is an alias. */
11211 #if defined __stub_$ac_func || defined __stub___$ac_func
11212 choke me
11213 #endif
11214
11215 int
11216 main ()
11217 {
11218 return $ac_func ();
11219 ;
11220 return 0;
11221 }
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (ac_try="$ac_link"
11225 case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11228 esac
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_link") 2>conftest.er1
11231 ac_status=$?
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && {
11237 test -z "$ac_c_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest$ac_exeext &&
11240 $as_test_x conftest$ac_exeext; then
11241 eval "$as_ac_var=yes"
11242 else
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11245
11246 eval "$as_ac_var=no"
11247 fi
11248
11249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11250 conftest$ac_exeext conftest.$ac_ext
11251 fi
11252 ac_res=`eval echo '${'$as_ac_var'}'`
11253 { echo "$as_me:$LINENO: result: $ac_res" >&5
11254 echo "${ECHO_T}$ac_res" >&6; }
11255 if test `eval echo '${'$as_ac_var'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11258 _ACEOF
11259 GTK_COMPILES=yes
11260 fi
11261 done
11262
11263 if test "${GTK_COMPILES}" != "yes"; then
11264 if test "$USE_X_TOOLKIT" != "maybe"; then
11265 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11266 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11267 { (exit 1); exit 1; }; };
11268 fi
11269 else
11270 HAVE_GTK=yes
11271
11272 cat >>confdefs.h <<\_ACEOF
11273 #define USE_GTK 1
11274 _ACEOF
11275
11276 USE_X_TOOLKIT=none
11277 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11278 :
11279 else
11280 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11281 closing open displays. This is no problem if you just use
11282 one display, but if you use more than one and close one of them
11283 Emacs may crash." >&5
11284 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11285 closing open displays. This is no problem if you just use
11286 one display, but if you use more than one and close one of them
11287 Emacs may crash." >&2;}
11288 sleep 3
11289 fi
11290 fi
11291
11292 fi
11293
11294
11295 if test "${HAVE_GTK}" = "yes"; then
11296
11297 if test "$with_toolkit_scroll_bars" != no; then
11298 with_toolkit_scroll_bars=yes
11299 fi
11300
11301 HAVE_GTK_MULTIDISPLAY=no
11302
11303 for ac_func in gdk_display_open
11304 do
11305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11306 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h. */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11319 #define $ac_func innocuous_$ac_func
11320
11321 /* System header to define __stub macros and hopefully few prototypes,
11322 which can conflict with char $ac_func (); below.
11323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11324 <limits.h> exists even on freestanding compilers. */
11325
11326 #ifdef __STDC__
11327 # include <limits.h>
11328 #else
11329 # include <assert.h>
11330 #endif
11331
11332 #undef $ac_func
11333
11334 /* Override any GCC internal prototype to avoid an error.
11335 Use char because int might match the return type of a GCC
11336 builtin and then its argument prototype would still apply. */
11337 #ifdef __cplusplus
11338 extern "C"
11339 #endif
11340 char $ac_func ();
11341 /* The GNU C library defines this for functions which it implements
11342 to always fail with ENOSYS. Some functions are actually named
11343 something starting with __ and the normal name is an alias. */
11344 #if defined __stub_$ac_func || defined __stub___$ac_func
11345 choke me
11346 #endif
11347
11348 int
11349 main ()
11350 {
11351 return $ac_func ();
11352 ;
11353 return 0;
11354 }
11355 _ACEOF
11356 rm -f conftest.$ac_objext conftest$ac_exeext
11357 if { (ac_try="$ac_link"
11358 case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_link") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest$ac_exeext &&
11373 $as_test_x conftest$ac_exeext; then
11374 eval "$as_ac_var=yes"
11375 else
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379 eval "$as_ac_var=no"
11380 fi
11381
11382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11383 conftest$ac_exeext conftest.$ac_ext
11384 fi
11385 ac_res=`eval echo '${'$as_ac_var'}'`
11386 { echo "$as_me:$LINENO: result: $ac_res" >&5
11387 echo "${ECHO_T}$ac_res" >&6; }
11388 if test `eval echo '${'$as_ac_var'}'` = yes; then
11389 cat >>confdefs.h <<_ACEOF
11390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11391 _ACEOF
11392 HAVE_GTK_MULTIDISPLAY=yes
11393 fi
11394 done
11395
11396 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11397
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_GTK_MULTIDISPLAY 1
11400 _ACEOF
11401
11402 fi
11403
11404 HAVE_GTK_FILE_SELECTION=no
11405
11406 for ac_func in gtk_file_selection_new
11407 do
11408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414 cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h. */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11422 #define $ac_func innocuous_$ac_func
11423
11424 /* System header to define __stub macros and hopefully few prototypes,
11425 which can conflict with char $ac_func (); below.
11426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11427 <limits.h> exists even on freestanding compilers. */
11428
11429 #ifdef __STDC__
11430 # include <limits.h>
11431 #else
11432 # include <assert.h>
11433 #endif
11434
11435 #undef $ac_func
11436
11437 /* Override any GCC internal prototype to avoid an error.
11438 Use char because int might match the return type of a GCC
11439 builtin and then its argument prototype would still apply. */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 char $ac_func ();
11444 /* The GNU C library defines this for functions which it implements
11445 to always fail with ENOSYS. Some functions are actually named
11446 something starting with __ and the normal name is an alias. */
11447 #if defined __stub_$ac_func || defined __stub___$ac_func
11448 choke me
11449 #endif
11450
11451 int
11452 main ()
11453 {
11454 return $ac_func ();
11455 ;
11456 return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (ac_try="$ac_link"
11461 case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_link") 2>conftest.er1
11467 ac_status=$?
11468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } && {
11473 test -z "$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 } && test -s conftest$ac_exeext &&
11476 $as_test_x conftest$ac_exeext; then
11477 eval "$as_ac_var=yes"
11478 else
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11481
11482 eval "$as_ac_var=no"
11483 fi
11484
11485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11486 conftest$ac_exeext conftest.$ac_ext
11487 fi
11488 ac_res=`eval echo '${'$as_ac_var'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11491 if test `eval echo '${'$as_ac_var'}'` = yes; then
11492 cat >>confdefs.h <<_ACEOF
11493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11494 _ACEOF
11495 HAVE_GTK_FILE_SELECTION=yes
11496 fi
11497 done
11498
11499
11500 HAVE_GTK_FILE_CHOOSER=no
11501
11502 for ac_func in gtk_file_chooser_dialog_new
11503 do
11504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h. */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11518 #define $ac_func innocuous_$ac_func
11519
11520 /* System header to define __stub macros and hopefully few prototypes,
11521 which can conflict with char $ac_func (); below.
11522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523 <limits.h> exists even on freestanding compilers. */
11524
11525 #ifdef __STDC__
11526 # include <limits.h>
11527 #else
11528 # include <assert.h>
11529 #endif
11530
11531 #undef $ac_func
11532
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char $ac_func ();
11540 /* The GNU C library defines this for functions which it implements
11541 to always fail with ENOSYS. Some functions are actually named
11542 something starting with __ and the normal name is an alias. */
11543 #if defined __stub_$ac_func || defined __stub___$ac_func
11544 choke me
11545 #endif
11546
11547 int
11548 main ()
11549 {
11550 return $ac_func ();
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext conftest$ac_exeext
11556 if { (ac_try="$ac_link"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_link") 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && {
11569 test -z "$ac_c_werror_flag" ||
11570 test ! -s conftest.err
11571 } && test -s conftest$ac_exeext &&
11572 $as_test_x conftest$ac_exeext; then
11573 eval "$as_ac_var=yes"
11574 else
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 eval "$as_ac_var=no"
11579 fi
11580
11581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11582 conftest$ac_exeext conftest.$ac_ext
11583 fi
11584 ac_res=`eval echo '${'$as_ac_var'}'`
11585 { echo "$as_me:$LINENO: result: $ac_res" >&5
11586 echo "${ECHO_T}$ac_res" >&6; }
11587 if test `eval echo '${'$as_ac_var'}'` = yes; then
11588 cat >>confdefs.h <<_ACEOF
11589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11590 _ACEOF
11591 HAVE_GTK_FILE_CHOOSER=yes
11592 fi
11593 done
11594
11595
11596 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11597 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11598
11599 cat >>confdefs.h <<\_ACEOF
11600 #define HAVE_GTK_FILE_BOTH 1
11601 _ACEOF
11602
11603 fi
11604
11605 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11606 HAVE_GTK_AND_PTHREAD=no
11607
11608 for ac_header in pthread.h
11609 do
11610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 fi
11617 ac_res=`eval echo '${'$as_ac_Header'}'`
11618 { echo "$as_me:$LINENO: result: $ac_res" >&5
11619 echo "${ECHO_T}$ac_res" >&6; }
11620 else
11621 # Is the header compilable?
11622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h. */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630 $ac_includes_default
11631 #include <$ac_header>
11632 _ACEOF
11633 rm -f conftest.$ac_objext
11634 if { (ac_try="$ac_compile"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_compile") 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest.$ac_objext; then
11650 ac_header_compiler=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 ac_header_compiler=no
11656 fi
11657
11658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11660 echo "${ECHO_T}$ac_header_compiler" >&6; }
11661
11662 # Is the header present?
11663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <$ac_header>
11672 _ACEOF
11673 if { (ac_try="$ac_cpp conftest.$ac_ext"
11674 case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11680 ac_status=$?
11681 grep -v '^ *+' conftest.er1 >conftest.err
11682 rm -f conftest.er1
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } >/dev/null && {
11686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11687 test ! -s conftest.err
11688 }; then
11689 ac_header_preproc=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 ac_header_preproc=no
11695 fi
11696
11697 rm -f conftest.err conftest.$ac_ext
11698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11699 echo "${ECHO_T}$ac_header_preproc" >&6; }
11700
11701 # So? What about this header?
11702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11703 yes:no: )
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11708 ac_header_preproc=yes
11709 ;;
11710 no:yes:* )
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11723
11724 ;;
11725 esac
11726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731 eval "$as_ac_Header=\$ac_header_preproc"
11732 fi
11733 ac_res=`eval echo '${'$as_ac_Header'}'`
11734 { echo "$as_me:$LINENO: result: $ac_res" >&5
11735 echo "${ECHO_T}$ac_res" >&6; }
11736
11737 fi
11738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11739 cat >>confdefs.h <<_ACEOF
11740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11741 _ACEOF
11742
11743 fi
11744
11745 done
11746
11747 if test "$ac_cv_header_pthread_h"; then
11748 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11749 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11750 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753 ac_check_lib_save_LIBS=$LIBS
11754 LIBS="-lpthread $LIBS"
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h. */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761
11762 /* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 char pthread_self ();
11769 int
11770 main ()
11771 {
11772 return pthread_self ();
11773 ;
11774 return 0;
11775 }
11776 _ACEOF
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (ac_try="$ac_link"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_link") 2>conftest.er1
11785 ac_status=$?
11786 grep -v '^ *+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest$ac_exeext &&
11794 $as_test_x conftest$ac_exeext; then
11795 ac_cv_lib_pthread_pthread_self=yes
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 ac_cv_lib_pthread_pthread_self=no
11801 fi
11802
11803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11804 conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11806 fi
11807 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11808 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11809 if test $ac_cv_lib_pthread_pthread_self = yes; then
11810 HAVE_GTK_AND_PTHREAD=yes
11811 fi
11812
11813 fi
11814 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11815 case "${canonical}" in
11816 *-hpux*) ;;
11817 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11818 esac
11819
11820 cat >>confdefs.h <<\_ACEOF
11821 #define HAVE_GTK_AND_PTHREAD 1
11822 _ACEOF
11823
11824 fi
11825 fi
11826 fi
11827
11828 HAVE_DBUS=no
11829 if test "${with_dbus}" = "yes"; then
11830
11831 succeeded=no
11832
11833 # Extract the first word of "pkg-config", so it can be a program name with args.
11834 set dummy pkg-config; ac_word=$2
11835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11837 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839 else
11840 case $PKG_CONFIG in
11841 [\\/]* | ?:[\\/]*)
11842 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11843 ;;
11844 *)
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11847 do
11848 IFS=$as_save_IFS
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11852 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11854 break 2
11855 fi
11856 done
11857 done
11858 IFS=$as_save_IFS
11859
11860 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11861 ;;
11862 esac
11863 fi
11864 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11865 if test -n "$PKG_CONFIG"; then
11866 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11867 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11868 else
11869 { echo "$as_me:$LINENO: result: no" >&5
11870 echo "${ECHO_T}no" >&6; }
11871 fi
11872
11873
11874
11875 if test "$PKG_CONFIG" = "no" ; then
11876 HAVE_DBUS=no
11877 else
11878 PKG_CONFIG_MIN_VERSION=0.9.0
11879 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11880 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11881 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11882
11883 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11884 { echo "$as_me:$LINENO: result: yes" >&5
11885 echo "${ECHO_T}yes" >&6; }
11886 succeeded=yes
11887
11888 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11889 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11890 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11891 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11892 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11893
11894 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11895 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11896 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11897 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11898 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11899 else
11900 { echo "$as_me:$LINENO: result: no" >&5
11901 echo "${ECHO_T}no" >&6; }
11902 DBUS_CFLAGS=""
11903 DBUS_LIBS=""
11904 ## If we have a custom action on failure, don't print errors, but
11905 ## do set a variable so people can do so.
11906 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11907
11908 fi
11909
11910
11911
11912 else
11913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11915 fi
11916 fi
11917
11918 if test $succeeded = yes; then
11919 HAVE_DBUS=yes
11920 else
11921 HAVE_DBUS=no
11922 fi
11923
11924 if test "$HAVE_DBUS" = yes; then
11925
11926 cat >>confdefs.h <<\_ACEOF
11927 #define HAVE_DBUS 1
11928 _ACEOF
11929
11930 fi
11931 fi
11932
11933 HAVE_XAW3D=no
11934 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11935 if test "$with_xaw3d" != no; then
11936 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11937 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11938 if test "${emacs_cv_xaw3d+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947
11948 #include <X11/Intrinsic.h>
11949 #include <X11/Xaw3d/Simple.h>
11950 int
11951 main ()
11952 {
11953
11954 ;
11955 return 0;
11956 }
11957 _ACEOF
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963 esac
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_link") 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && {
11972 test -z "$ac_c_werror_flag" ||
11973 test ! -s conftest.err
11974 } && test -s conftest$ac_exeext &&
11975 $as_test_x conftest$ac_exeext; then
11976 emacs_cv_xaw3d=yes
11977 else
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 emacs_cv_xaw3d=no
11982 fi
11983
11984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11985 conftest$ac_exeext conftest.$ac_ext
11986 fi
11987
11988 else
11989 emacs_cv_xaw3d=no
11990 fi
11991 if test $emacs_cv_xaw3d = yes; then
11992 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11993 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11994 USE_X_TOOLKIT=LUCID
11995 HAVE_XAW3D=yes
11996
11997 cat >>confdefs.h <<\_ACEOF
11998 #define HAVE_XAW3D 1
11999 _ACEOF
12000
12001 else
12002 { echo "$as_me:$LINENO: result: no" >&5
12003 echo "${ECHO_T}no" >&6; }
12004 { echo "$as_me:$LINENO: checking for libXaw" >&5
12005 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12006 if test "${emacs_cv_xaw+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h. */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015
12016 #include <X11/Intrinsic.h>
12017 #include <X11/Xaw/Simple.h>
12018 int
12019 main ()
12020 {
12021
12022 ;
12023 return 0;
12024 }
12025 _ACEOF
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (ac_try="$ac_link"
12028 case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_link") 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && {
12040 test -z "$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12042 } && test -s conftest$ac_exeext &&
12043 $as_test_x conftest$ac_exeext; then
12044 emacs_cv_xaw=yes
12045 else
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12048
12049 emacs_cv_xaw=no
12050 fi
12051
12052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12053 conftest$ac_exeext conftest.$ac_ext
12054 fi
12055
12056 if test $emacs_cv_xaw = yes; then
12057 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12058 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12059 USE_X_TOOLKIT=LUCID
12060 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12061 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12062 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12063 { (exit 1); exit 1; }; }
12064 else
12065 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12066 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12067 USE_X_TOOLKIT=none
12068 fi
12069 fi
12070 fi
12071
12072 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12073
12074 if test "${USE_X_TOOLKIT}" != "none"; then
12075 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12076 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12077 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 else
12080 cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h. */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 #include <X11/Intrinsic.h>
12087 int
12088 main ()
12089 {
12090 #if XtSpecificationRelease < 6
12091 fail;
12092 #endif
12093
12094 ;
12095 return 0;
12096 }
12097 _ACEOF
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } && {
12112 test -z "$ac_c_werror_flag" ||
12113 test ! -s conftest.err
12114 } && test -s conftest$ac_exeext &&
12115 $as_test_x conftest$ac_exeext; then
12116 emacs_cv_x11_toolkit_version_6=yes
12117 else
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12120
12121 emacs_cv_x11_toolkit_version_6=no
12122 fi
12123
12124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12125 conftest$ac_exeext conftest.$ac_ext
12126 fi
12127
12128 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12129 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12130 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12131 echo "${ECHO_T}6 or newer" >&6; }
12132
12133 cat >>confdefs.h <<\_ACEOF
12134 #define HAVE_X11XTR6 1
12135 _ACEOF
12136
12137 else
12138 { echo "$as_me:$LINENO: result: before 6" >&5
12139 echo "${ECHO_T}before 6" >&6; }
12140 fi
12141
12142 OLDLIBS="$LIBS"
12143 if test x$HAVE_X11XTR6 = xyes; then
12144 LIBS="-lXt -lSM -lICE $LIBS"
12145 else
12146 LIBS="-lXt $LIBS"
12147 fi
12148
12149 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12150 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-lXmu $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h. */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12166 #ifdef __cplusplus
12167 extern "C"
12168 #endif
12169 char XmuConvertStandardSelection ();
12170 int
12171 main ()
12172 {
12173 return XmuConvertStandardSelection ();
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (ac_try="$ac_link"
12180 case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12183 esac
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_link") 2>conftest.er1
12186 ac_status=$?
12187 grep -v '^ *+' conftest.er1 >conftest.err
12188 rm -f conftest.er1
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest$ac_exeext &&
12195 $as_test_x conftest$ac_exeext; then
12196 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12197 else
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12202 fi
12203
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12207 fi
12208 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12209 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12210 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12211 cat >>confdefs.h <<_ACEOF
12212 #define HAVE_LIBXMU 1
12213 _ACEOF
12214
12215 LIBS="-lXmu $LIBS"
12216
12217 fi
12218
12219 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12220 fi
12221
12222 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12223 if test "${HAVE_X11}" = "yes"; then
12224 if test "${USE_X_TOOLKIT}" != "none"; then
12225
12226 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12227 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12228 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231 ac_check_lib_save_LIBS=$LIBS
12232 LIBS="-lXext $LIBS"
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char XShapeQueryExtension ();
12247 int
12248 main ()
12249 {
12250 return XShapeQueryExtension ();
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (ac_try="$ac_link"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_link") 2>conftest.er1
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest$ac_exeext &&
12272 $as_test_x conftest$ac_exeext; then
12273 ac_cv_lib_Xext_XShapeQueryExtension=yes
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12277
12278 ac_cv_lib_Xext_XShapeQueryExtension=no
12279 fi
12280
12281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12282 conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12284 fi
12285 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12286 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12287 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12288 cat >>confdefs.h <<_ACEOF
12289 #define HAVE_LIBXEXT 1
12290 _ACEOF
12291
12292 LIBS="-lXext $LIBS"
12293
12294 fi
12295
12296 fi
12297 fi
12298
12299 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12300 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12301 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12302 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 #include <Xm/Xm.h>
12312 int
12313 main ()
12314 {
12315 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12316 int x = 5;
12317 #else
12318 Motif version prior to 2.1.
12319 #endif
12320 ;
12321 return 0;
12322 }
12323 _ACEOF
12324 rm -f conftest.$ac_objext
12325 if { (ac_try="$ac_compile"
12326 case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329 esac
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_compile") 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_c_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest.$ac_objext; then
12341 emacs_cv_motif_version_2_1=yes
12342 else
12343 echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12345
12346 emacs_cv_motif_version_2_1=no
12347 fi
12348
12349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350 fi
12351 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12352 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12353 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12354 if test $emacs_cv_motif_version_2_1 = yes; then
12355 HAVE_LIBXP=no
12356
12357 cat >>confdefs.h <<\_ACEOF
12358 #define HAVE_MOTIF_2_1 1
12359 _ACEOF
12360
12361 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12362 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12363 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366 ac_check_lib_save_LIBS=$LIBS
12367 LIBS="-lXp $LIBS"
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12378 #ifdef __cplusplus
12379 extern "C"
12380 #endif
12381 char XpCreateContext ();
12382 int
12383 main ()
12384 {
12385 return XpCreateContext ();
12386 ;
12387 return 0;
12388 }
12389 _ACEOF
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (ac_try="$ac_link"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395 esac
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_link") 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } && {
12404 test -z "$ac_c_werror_flag" ||
12405 test ! -s conftest.err
12406 } && test -s conftest$ac_exeext &&
12407 $as_test_x conftest$ac_exeext; then
12408 ac_cv_lib_Xp_XpCreateContext=yes
12409 else
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413 ac_cv_lib_Xp_XpCreateContext=no
12414 fi
12415
12416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12417 conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12419 fi
12420 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12421 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12422 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12423 HAVE_LIBXP=yes
12424 fi
12425
12426 if test ${HAVE_LIBXP} = yes; then
12427
12428 cat >>confdefs.h <<\_ACEOF
12429 #define HAVE_LIBXP 1
12430 _ACEOF
12431
12432 fi
12433 else
12434 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12435 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12436 if test "${emacs_cv_lesstif+set}" = set; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 else
12439 # We put this in CFLAGS temporarily to precede other -I options
12440 # that might be in CFLAGS temporarily.
12441 # We put this in CPPFLAGS where it precedes the other -I options.
12442 OLD_CPPFLAGS=$CPPFLAGS
12443 OLD_CFLAGS=$CFLAGS
12444 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12445 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12446 cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h. */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12453 int
12454 main ()
12455 {
12456 int x = 5;
12457 ;
12458 return 0;
12459 }
12460 _ACEOF
12461 rm -f conftest.$ac_objext
12462 if { (ac_try="$ac_compile"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_compile") 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && {
12475 test -z "$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest.$ac_objext; then
12478 emacs_cv_lesstif=yes
12479 else
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 emacs_cv_lesstif=no
12484 fi
12485
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 fi
12488 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12489 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12490 if test $emacs_cv_lesstif = yes; then
12491 # Make sure this -I option remains in CPPFLAGS after it is set
12492 # back to REAL_CPPFLAGS.
12493 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12494 # have those other -I options anyway. Ultimately, having this
12495 # directory ultimately in CPPFLAGS will be enough.
12496 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12497 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12498 else
12499 CFLAGS=$OLD_CFLAGS
12500 CPPFLAGS=$OLD_CPPFLAGS
12501 fi
12502 fi
12503 fi
12504
12505
12506
12507 USE_TOOLKIT_SCROLL_BARS=no
12508 if test "${with_toolkit_scroll_bars}" != "no"; then
12509 if test "${USE_X_TOOLKIT}" != "none"; then
12510 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define USE_TOOLKIT_SCROLL_BARS 1
12513 _ACEOF
12514
12515 HAVE_XAW3D=no
12516 USE_TOOLKIT_SCROLL_BARS=yes
12517 elif test "${HAVE_XAW3D}" = "yes"; then
12518 cat >>confdefs.h <<\_ACEOF
12519 #define USE_TOOLKIT_SCROLL_BARS 1
12520 _ACEOF
12521
12522 USE_TOOLKIT_SCROLL_BARS=yes
12523 fi
12524 elif test "${HAVE_GTK}" = "yes"; then
12525 cat >>confdefs.h <<\_ACEOF
12526 #define USE_TOOLKIT_SCROLL_BARS 1
12527 _ACEOF
12528
12529 USE_TOOLKIT_SCROLL_BARS=yes
12530 elif test "${HAVE_CARBON}" = "yes"; then
12531 cat >>confdefs.h <<\_ACEOF
12532 #define USE_TOOLKIT_SCROLL_BARS 1
12533 _ACEOF
12534
12535 USE_TOOLKIT_SCROLL_BARS=yes
12536 fi
12537 fi
12538
12539 cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h. */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545
12546 #include <X11/Xlib.h>
12547 #include <X11/Xresource.h>
12548 int
12549 main ()
12550 {
12551 XIMProc callback;
12552 ;
12553 return 0;
12554 }
12555 _ACEOF
12556 rm -f conftest.$ac_objext
12557 if { (ac_try="$ac_compile"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_compile") 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && {
12570 test -z "$ac_c_werror_flag" ||
12571 test ! -s conftest.err
12572 } && test -s conftest.$ac_objext; then
12573 HAVE_XIM=yes
12574
12575 cat >>confdefs.h <<\_ACEOF
12576 #define HAVE_XIM 1
12577 _ACEOF
12578
12579 else
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 HAVE_XIM=no
12584 fi
12585
12586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587
12588
12589 if test "${with_xim}" != "no"; then
12590
12591 cat >>confdefs.h <<\_ACEOF
12592 #define USE_XIM 1
12593 _ACEOF
12594
12595 fi
12596
12597
12598 if test "${HAVE_XIM}" != "no"; then
12599 late_CFLAGS=$CFLAGS
12600 if test "$GCC" = yes; then
12601 CFLAGS="$CFLAGS --pedantic-errors"
12602 fi
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h. */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609
12610 #include <X11/Xlib.h>
12611 #include <X11/Xresource.h>
12612 int
12613 main ()
12614 {
12615 Display *display;
12616 XrmDatabase db;
12617 char *res_name;
12618 char *res_class;
12619 XIMProc callback;
12620 XPointer *client_data;
12621 #ifndef __GNUC__
12622 /* If we're not using GCC, it's probably not XFree86, and this is
12623 probably right, but we can't use something like --pedantic-errors. */
12624 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12625 char*, XIMProc, XPointer*);
12626 #endif
12627 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12628 client_data);
12629 ;
12630 return 0;
12631 }
12632 _ACEOF
12633 rm -f conftest.$ac_objext
12634 if { (ac_try="$ac_compile"
12635 case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638 esac
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_compile") 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } && {
12647 test -z "$ac_c_werror_flag" ||
12648 test ! -s conftest.err
12649 } && test -s conftest.$ac_objext; then
12650 emacs_cv_arg6_star=yes
12651 else
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655
12656 fi
12657
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659
12660 if test "$emacs_cv_arg6_star" = yes; then
12661 cat >>confdefs.h <<\_ACEOF
12662 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12663 _ACEOF
12664
12665 else
12666 cat >>confdefs.h <<\_ACEOF
12667 #define XRegisterIMInstantiateCallback_arg6 XPointer
12668 _ACEOF
12669
12670 fi
12671 CFLAGS=$late_CFLAGS
12672 fi
12673
12674 ### Start of font-backend section.
12675 if test "${HAVE_X11}" != "yes"; then
12676 USE_FONT_BACKEND=no
12677 fi
12678
12679 if test "${USE_FONT_BACKEND}" = "yes"; then
12680
12681 cat >>confdefs.h <<\_ACEOF
12682 #define USE_FONT_BACKEND 1
12683 _ACEOF
12684
12685
12686 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12687 HAVE_XFT=maybe
12688 if test "x${with_freetype}" = "xno"; then
12689 with_xft="no";
12690 fi
12691 if test "x${with_xft}" != "xno"; then
12692
12693
12694 succeeded=no
12695
12696 # Extract the first word of "pkg-config", so it can be a program name with args.
12697 set dummy pkg-config; ac_word=$2
12698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12700 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703 case $PKG_CONFIG in
12704 [\\/]* | ?:[\\/]*)
12705 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12706 ;;
12707 *)
12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $PATH
12710 do
12711 IFS=$as_save_IFS
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12715 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12717 break 2
12718 fi
12719 done
12720 done
12721 IFS=$as_save_IFS
12722
12723 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12724 ;;
12725 esac
12726 fi
12727 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12728 if test -n "$PKG_CONFIG"; then
12729 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12730 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12731 else
12732 { echo "$as_me:$LINENO: result: no" >&5
12733 echo "${ECHO_T}no" >&6; }
12734 fi
12735
12736
12737
12738 if test "$PKG_CONFIG" = "no" ; then
12739 HAVE_XFT=no
12740 else
12741 PKG_CONFIG_MIN_VERSION=0.9.0
12742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12743 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12744 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12745
12746 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12747 { echo "$as_me:$LINENO: result: yes" >&5
12748 echo "${ECHO_T}yes" >&6; }
12749 succeeded=yes
12750
12751 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12752 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12753 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12754 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12755 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12756
12757 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12758 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12759 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12760 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12761 echo "${ECHO_T}$XFT_LIBS" >&6; }
12762 else
12763 { echo "$as_me:$LINENO: result: no" >&5
12764 echo "${ECHO_T}no" >&6; }
12765 XFT_CFLAGS=""
12766 XFT_LIBS=""
12767 ## If we have a custom action on failure, don't print errors, but
12768 ## do set a variable so people can do so.
12769 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12770
12771 fi
12772
12773
12774
12775 else
12776 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12777 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12778 fi
12779 fi
12780
12781 if test $succeeded = yes; then
12782 :
12783 else
12784 HAVE_XFT=no
12785 fi
12786
12787 if test "$HAVE_XFT" != no; then
12788 OLD_CPPFLAGS="$CPPFLAGS"
12789 OLD_CFLAGS="$CFLAGS"
12790 OLD_LIBS="$LIBS"
12791 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12792 CFLAGS="$CFLAGS $XFT_CFLAGS"
12793 LIBS="$XFT_LIBS $LIBS"
12794 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12795 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12796 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12797 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 fi
12800 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12801 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12802 else
12803 # Is the header compilable?
12804 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12805 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h. */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 $ac_includes_default
12813 #include <X11/Xft/Xft.h>
12814 _ACEOF
12815 rm -f conftest.$ac_objext
12816 if { (ac_try="$ac_compile"
12817 case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_compile") 2>conftest.er1
12823 ac_status=$?
12824 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && {
12829 test -z "$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 } && test -s conftest.$ac_objext; then
12832 ac_header_compiler=yes
12833 else
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12836
12837 ac_header_compiler=no
12838 fi
12839
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12842 echo "${ECHO_T}$ac_header_compiler" >&6; }
12843
12844 # Is the header present?
12845 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12846 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h. */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 #include <X11/Xft/Xft.h>
12854 _ACEOF
12855 if { (ac_try="$ac_cpp conftest.$ac_ext"
12856 case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12859 esac
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } >/dev/null && {
12868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12869 test ! -s conftest.err
12870 }; then
12871 ac_header_preproc=yes
12872 else
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876 ac_header_preproc=no
12877 fi
12878
12879 rm -f conftest.err conftest.$ac_ext
12880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12881 echo "${ECHO_T}$ac_header_preproc" >&6; }
12882
12883 # So? What about this header?
12884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12885 yes:no: )
12886 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12887 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12889 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12890 ac_header_preproc=yes
12891 ;;
12892 no:yes:* )
12893 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12894 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12896 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12898 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12900 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12901 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12902 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12904 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12905
12906 ;;
12907 esac
12908 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12909 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12910 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12914 fi
12915 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12916 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12917
12918 fi
12919 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12920 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12921 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12922 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925 ac_check_lib_save_LIBS=$LIBS
12926 LIBS="-lXft $XFT_LIBS $LIBS"
12927 cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h. */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12937 #ifdef __cplusplus
12938 extern "C"
12939 #endif
12940 char XftFontOpen ();
12941 int
12942 main ()
12943 {
12944 return XftFontOpen ();
12945 ;
12946 return 0;
12947 }
12948 _ACEOF
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (ac_try="$ac_link"
12951 case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_link") 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } && {
12963 test -z "$ac_c_werror_flag" ||
12964 test ! -s conftest.err
12965 } && test -s conftest$ac_exeext &&
12966 $as_test_x conftest$ac_exeext; then
12967 ac_cv_lib_Xft_XftFontOpen=yes
12968 else
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12971
12972 ac_cv_lib_Xft_XftFontOpen=no
12973 fi
12974
12975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12976 conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12978 fi
12979 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12980 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12981 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12982 HAVE_XFT=yes
12983 fi
12984
12985 fi
12986
12987
12988
12989 if test "${HAVE_XFT}" = "yes"; then
12990
12991 cat >>confdefs.h <<\_ACEOF
12992 #define HAVE_XFT 1
12993 _ACEOF
12994
12995
12996 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12997 else
12998 CPPFLAGS="$OLD_CPPFLAGS"
12999 CFLAGS="$OLD_CFLAGS"
13000 LIBS="$OLD_LIBS"
13001 fi # "${HAVE_XFT}" = "yes"
13002 fi # "$HAVE_XFT" != no
13003 fi # "x${with_xft}" != "xno"
13004
13005 if test "$HAVE_XFT" != "yes"; then
13006 HAVE_XFT=no
13007 fi
13008
13009
13010 HAVE_FREETYPE=no
13011 ### Use -lfreetype if available, unless `--with-freetype=no'.
13012 if test "${HAVE_XFT}" = "yes"; then
13013 HAVE_FREETYPE=yes
13014 elif test "x${with_freetype}" != "xno"; then
13015
13016
13017 succeeded=no
13018
13019 # Extract the first word of "pkg-config", so it can be a program name with args.
13020 set dummy pkg-config; ac_word=$2
13021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026 case $PKG_CONFIG in
13027 [\\/]* | ?:[\\/]*)
13028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13029 ;;
13030 *)
13031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032 for as_dir in $PATH
13033 do
13034 IFS=$as_save_IFS
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 break 2
13041 fi
13042 done
13043 done
13044 IFS=$as_save_IFS
13045
13046 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13047 ;;
13048 esac
13049 fi
13050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13051 if test -n "$PKG_CONFIG"; then
13052 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13053 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13054 else
13055 { echo "$as_me:$LINENO: result: no" >&5
13056 echo "${ECHO_T}no" >&6; }
13057 fi
13058
13059
13060
13061 if test "$PKG_CONFIG" = "no" ; then
13062 HAVE_FREETYPE=no
13063 else
13064 PKG_CONFIG_MIN_VERSION=0.9.0
13065 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13066 { echo "$as_me:$LINENO: checking for freetype2" >&5
13067 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13068
13069 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13070 { echo "$as_me:$LINENO: result: yes" >&5
13071 echo "${ECHO_T}yes" >&6; }
13072 succeeded=yes
13073
13074 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13075 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13076 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13077 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13078 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13079
13080 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13081 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13082 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13083 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13084 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13085 else
13086 { echo "$as_me:$LINENO: result: no" >&5
13087 echo "${ECHO_T}no" >&6; }
13088 FREETYPE_CFLAGS=""
13089 FREETYPE_LIBS=""
13090 ## If we have a custom action on failure, don't print errors, but
13091 ## do set a variable so people can do so.
13092 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13093
13094 fi
13095
13096
13097
13098 else
13099 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13100 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13101 fi
13102 fi
13103
13104 if test $succeeded = yes; then
13105 HAVE_FREETYPE=yes
13106 else
13107 HAVE_FREETYPE=no
13108 fi
13109
13110 if test "${HAVE_FREETYPE}" = "yes"; then
13111
13112 succeeded=no
13113
13114 # Extract the first word of "pkg-config", so it can be a program name with args.
13115 set dummy pkg-config; ac_word=$2
13116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121 case $PKG_CONFIG in
13122 [\\/]* | ?:[\\/]*)
13123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13124 ;;
13125 *)
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127 for as_dir in $PATH
13128 do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
13136 fi
13137 done
13138 done
13139 IFS=$as_save_IFS
13140
13141 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13142 ;;
13143 esac
13144 fi
13145 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13146 if test -n "$PKG_CONFIG"; then
13147 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13148 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13149 else
13150 { echo "$as_me:$LINENO: result: no" >&5
13151 echo "${ECHO_T}no" >&6; }
13152 fi
13153
13154
13155
13156 if test "$PKG_CONFIG" = "no" ; then
13157 HAVE_FC=no
13158 else
13159 PKG_CONFIG_MIN_VERSION=0.9.0
13160 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13161 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13162 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13163
13164 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13165 { echo "$as_me:$LINENO: result: yes" >&5
13166 echo "${ECHO_T}yes" >&6; }
13167 succeeded=yes
13168
13169 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13170 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13171 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13172 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13173 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13174
13175 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13176 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13177 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13178 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13179 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13180 else
13181 { echo "$as_me:$LINENO: result: no" >&5
13182 echo "${ECHO_T}no" >&6; }
13183 FONTCONFIG_CFLAGS=""
13184 FONTCONFIG_LIBS=""
13185 ## If we have a custom action on failure, don't print errors, but
13186 ## do set a variable so people can do so.
13187 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13188
13189 fi
13190
13191
13192
13193 else
13194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13196 fi
13197 fi
13198
13199 if test $succeeded = yes; then
13200 HAVE_FC=yes
13201 else
13202 HAVE_FC=no
13203 fi
13204
13205 if test "${HAVE_FC}" = "no"; then
13206 HAVE_FREETYPE=no
13207 fi
13208 fi
13209 fi
13210
13211 HAVE_LIBOTF=no
13212 if test "${HAVE_FREETYPE}" = "yes"; then
13213
13214 cat >>confdefs.h <<\_ACEOF
13215 #define HAVE_FREETYPE 1
13216 _ACEOF
13217
13218 if test "${with_libotf}" != "no"; then
13219
13220 succeeded=no
13221
13222 # Extract the first word of "pkg-config", so it can be a program name with args.
13223 set dummy pkg-config; ac_word=$2
13224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13226 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 else
13229 case $PKG_CONFIG in
13230 [\\/]* | ?:[\\/]*)
13231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13232 ;;
13233 *)
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13236 do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13244 fi
13245 done
13246 done
13247 IFS=$as_save_IFS
13248
13249 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13250 ;;
13251 esac
13252 fi
13253 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13254 if test -n "$PKG_CONFIG"; then
13255 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13256 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13257 else
13258 { echo "$as_me:$LINENO: result: no" >&5
13259 echo "${ECHO_T}no" >&6; }
13260 fi
13261
13262
13263
13264 if test "$PKG_CONFIG" = "no" ; then
13265 HAVE_LIBOTF=no
13266 else
13267 PKG_CONFIG_MIN_VERSION=0.9.0
13268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13269 { echo "$as_me:$LINENO: checking for libotf" >&5
13270 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13271
13272 if $PKG_CONFIG --exists "libotf" 2>&5; then
13273 { echo "$as_me:$LINENO: result: yes" >&5
13274 echo "${ECHO_T}yes" >&6; }
13275 succeeded=yes
13276
13277 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13278 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13279 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13280 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13281 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13282
13283 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13284 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13285 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13286 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13287 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13288 else
13289 { echo "$as_me:$LINENO: result: no" >&5
13290 echo "${ECHO_T}no" >&6; }
13291 LIBOTF_CFLAGS=""
13292 LIBOTF_LIBS=""
13293 ## If we have a custom action on failure, don't print errors, but
13294 ## do set a variable so people can do so.
13295 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13296
13297 fi
13298
13299
13300
13301 else
13302 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13303 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13304 fi
13305 fi
13306
13307 if test $succeeded = yes; then
13308 HAVE_LIBOTF=yes
13309 else
13310 HAVE_LIBOTF=no
13311 fi
13312
13313 if test "$HAVE_LIBOTF" = "yes"; then
13314
13315 cat >>confdefs.h <<\_ACEOF
13316 #define HAVE_LIBOTF 1
13317 _ACEOF
13318
13319 fi
13320 fi
13321 fi
13322
13323 HAVE_M17N_FLT=no
13324 if test "${with_m17n_flt}" != "no"; then
13325
13326 succeeded=no
13327
13328 # Extract the first word of "pkg-config", so it can be a program name with args.
13329 set dummy pkg-config; ac_word=$2
13330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335 case $PKG_CONFIG in
13336 [\\/]* | ?:[\\/]*)
13337 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13338 ;;
13339 *)
13340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341 for as_dir in $PATH
13342 do
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13347 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13349 break 2
13350 fi
13351 done
13352 done
13353 IFS=$as_save_IFS
13354
13355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13356 ;;
13357 esac
13358 fi
13359 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13360 if test -n "$PKG_CONFIG"; then
13361 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13362 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13363 else
13364 { echo "$as_me:$LINENO: result: no" >&5
13365 echo "${ECHO_T}no" >&6; }
13366 fi
13367
13368
13369
13370 if test "$PKG_CONFIG" = "no" ; then
13371 HAVE_M17N_FLT=no
13372 else
13373 PKG_CONFIG_MIN_VERSION=0.9.0
13374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13375 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13376 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13377
13378 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13379 { echo "$as_me:$LINENO: result: yes" >&5
13380 echo "${ECHO_T}yes" >&6; }
13381 succeeded=yes
13382
13383 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13384 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13385 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13386 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13387 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13388
13389 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13390 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13391 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13392 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13393 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13394 else
13395 { echo "$as_me:$LINENO: result: no" >&5
13396 echo "${ECHO_T}no" >&6; }
13397 M17N_FLT_CFLAGS=""
13398 M17N_FLT_LIBS=""
13399 ## If we have a custom action on failure, don't print errors, but
13400 ## do set a variable so people can do so.
13401 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13402
13403 fi
13404
13405
13406
13407 else
13408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13410 fi
13411 fi
13412
13413 if test $succeeded = yes; then
13414 HAVE_M17N_FLT=yes
13415 else
13416 HAVE_M17N_FLT=no
13417 fi
13418
13419 if test "$HAVE_M17N_FLT" = "yes"; then
13420
13421 cat >>confdefs.h <<\_ACEOF
13422 #define HAVE_M17N_FLT 1
13423 _ACEOF
13424
13425 fi
13426 fi
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437 fi # "${USE_FONT_BACKEND}" = "yes"
13438 ### End of font-backend section.
13439
13440 ### Use -lXpm if available, unless `--with-xpm=no'.
13441 HAVE_XPM=no
13442 if test "${HAVE_X11}" = "yes"; then
13443 if test "${with_xpm}" != "no"; then
13444 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13445 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13446 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13447 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 fi
13450 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13451 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13452 else
13453 # Is the header compilable?
13454 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13455 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h. */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 $ac_includes_default
13463 #include <X11/xpm.h>
13464 _ACEOF
13465 rm -f conftest.$ac_objext
13466 if { (ac_try="$ac_compile"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_compile") 2>conftest.er1
13473 ac_status=$?
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && {
13479 test -z "$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest.$ac_objext; then
13482 ac_header_compiler=yes
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13486
13487 ac_header_compiler=no
13488 fi
13489
13490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13492 echo "${ECHO_T}$ac_header_compiler" >&6; }
13493
13494 # Is the header present?
13495 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13496 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13497 cat >conftest.$ac_ext <<_ACEOF
13498 /* confdefs.h. */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 #include <X11/xpm.h>
13504 _ACEOF
13505 if { (ac_try="$ac_cpp conftest.$ac_ext"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509 esac
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } >/dev/null && {
13518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 }; then
13521 ac_header_preproc=yes
13522 else
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526 ac_header_preproc=no
13527 fi
13528
13529 rm -f conftest.err conftest.$ac_ext
13530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13531 echo "${ECHO_T}$ac_header_preproc" >&6; }
13532
13533 # So? What about this header?
13534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13535 yes:no: )
13536 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13537 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13538 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13539 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13540 ac_header_preproc=yes
13541 ;;
13542 no:yes:* )
13543 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13544 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13546 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13548 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13550 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13552 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13554 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13555
13556 ;;
13557 esac
13558 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13559 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13560 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 else
13563 ac_cv_header_X11_xpm_h=$ac_header_preproc
13564 fi
13565 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13566 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13567
13568 fi
13569 if test $ac_cv_header_X11_xpm_h = yes; then
13570 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13571 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13572 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13574 else
13575 ac_check_lib_save_LIBS=$LIBS
13576 LIBS="-lXpm -lX11 $LIBS"
13577 cat >conftest.$ac_ext <<_ACEOF
13578 /* confdefs.h. */
13579 _ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13583
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13587 #ifdef __cplusplus
13588 extern "C"
13589 #endif
13590 char XpmReadFileToPixmap ();
13591 int
13592 main ()
13593 {
13594 return XpmReadFileToPixmap ();
13595 ;
13596 return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest.$ac_objext conftest$ac_exeext
13600 if { (ac_try="$ac_link"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13604 esac
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_link") 2>conftest.er1
13607 ac_status=$?
13608 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } && {
13613 test -z "$ac_c_werror_flag" ||
13614 test ! -s conftest.err
13615 } && test -s conftest$ac_exeext &&
13616 $as_test_x conftest$ac_exeext; then
13617 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13618 else
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13621
13622 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13623 fi
13624
13625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626 conftest$ac_exeext conftest.$ac_ext
13627 LIBS=$ac_check_lib_save_LIBS
13628 fi
13629 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13630 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13631 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13632 HAVE_XPM=yes
13633 fi
13634
13635 fi
13636
13637
13638 if test "${HAVE_XPM}" = "yes"; then
13639 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13640 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13641 cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h. */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 #include "X11/xpm.h"
13648 #ifndef XpmReturnAllocPixels
13649 no_return_alloc_pixels
13650 #endif
13651
13652 _ACEOF
13653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13654 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13655 HAVE_XPM=no
13656 else
13657 HAVE_XPM=yes
13658 fi
13659 rm -f conftest*
13660
13661
13662 if test "${HAVE_XPM}" = "yes"; then
13663 { echo "$as_me:$LINENO: result: yes" >&5
13664 echo "${ECHO_T}yes" >&6; }
13665 else
13666 { echo "$as_me:$LINENO: result: no" >&5
13667 echo "${ECHO_T}no" >&6; }
13668 fi
13669 fi
13670 fi
13671
13672 if test "${HAVE_XPM}" = "yes"; then
13673
13674 cat >>confdefs.h <<\_ACEOF
13675 #define HAVE_XPM 1
13676 _ACEOF
13677
13678 fi
13679 fi
13680
13681 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13682 HAVE_JPEG=no
13683 if test "${HAVE_X11}" = "yes"; then
13684 if test "${with_jpeg}" != "no"; then
13685 if test "${ac_cv_header_jerror_h+set}" = set; then
13686 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13687 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13688 if test "${ac_cv_header_jerror_h+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 fi
13691 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13692 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13693 else
13694 # Is the header compilable?
13695 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13696 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13697 cat >conftest.$ac_ext <<_ACEOF
13698 /* confdefs.h. */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 $ac_includes_default
13704 #include <jerror.h>
13705 _ACEOF
13706 rm -f conftest.$ac_objext
13707 if { (ac_try="$ac_compile"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13711 esac
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_compile") 2>conftest.er1
13714 ac_status=$?
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } && {
13720 test -z "$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13722 } && test -s conftest.$ac_objext; then
13723 ac_header_compiler=yes
13724 else
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13727
13728 ac_header_compiler=no
13729 fi
13730
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13733 echo "${ECHO_T}$ac_header_compiler" >&6; }
13734
13735 # Is the header present?
13736 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13737 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13738 cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h. */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 #include <jerror.h>
13745 _ACEOF
13746 if { (ac_try="$ac_cpp conftest.$ac_ext"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13753 ac_status=$?
13754 grep -v '^ *+' conftest.er1 >conftest.err
13755 rm -f conftest.er1
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } >/dev/null && {
13759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13760 test ! -s conftest.err
13761 }; then
13762 ac_header_preproc=yes
13763 else
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767 ac_header_preproc=no
13768 fi
13769
13770 rm -f conftest.err conftest.$ac_ext
13771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13772 echo "${ECHO_T}$ac_header_preproc" >&6; }
13773
13774 # So? What about this header?
13775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13776 yes:no: )
13777 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13778 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13780 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13781 ac_header_preproc=yes
13782 ;;
13783 no:yes:* )
13784 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13785 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13787 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13789 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13790 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13791 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13792 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13793 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13794 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13795 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13796
13797 ;;
13798 esac
13799 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13800 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13801 if test "${ac_cv_header_jerror_h+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804 ac_cv_header_jerror_h=$ac_header_preproc
13805 fi
13806 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13807 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13808
13809 fi
13810 if test $ac_cv_header_jerror_h = yes; then
13811 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13812 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13813 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816 ac_check_lib_save_LIBS=$LIBS
13817 LIBS="-ljpeg $LIBS"
13818 cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h. */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13824
13825 /* Override any GCC internal prototype to avoid an error.
13826 Use char because int might match the return type of a GCC
13827 builtin and then its argument prototype would still apply. */
13828 #ifdef __cplusplus
13829 extern "C"
13830 #endif
13831 char jpeg_destroy_compress ();
13832 int
13833 main ()
13834 {
13835 return jpeg_destroy_compress ();
13836 ;
13837 return 0;
13838 }
13839 _ACEOF
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_link") 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } && {
13854 test -z "$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 } && test -s conftest$ac_exeext &&
13857 $as_test_x conftest$ac_exeext; then
13858 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13859 else
13860 echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13864 fi
13865
13866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13867 conftest$ac_exeext conftest.$ac_ext
13868 LIBS=$ac_check_lib_save_LIBS
13869 fi
13870 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13871 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13872 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13873 HAVE_JPEG=yes
13874 fi
13875
13876 fi
13877
13878
13879 fi
13880
13881
13882 if test "${HAVE_JPEG}" = "yes"; then
13883 cat >>confdefs.h <<\_ACEOF
13884 #define HAVE_JPEG 1
13885 _ACEOF
13886
13887 cat >conftest.$ac_ext <<_ACEOF
13888 /* confdefs.h. */
13889 _ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13893 #include <jpeglib.h>
13894 version=JPEG_LIB_VERSION
13895
13896 _ACEOF
13897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13898 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13899 cat >>confdefs.h <<\_ACEOF
13900 #define HAVE_JPEG 1
13901 _ACEOF
13902
13903 else
13904 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13905 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13906 HAVE_JPEG=no
13907 fi
13908 rm -f conftest*
13909
13910 fi
13911 fi
13912
13913 ### Use -lpng if available, unless `--with-png=no'.
13914 HAVE_PNG=no
13915 if test "${HAVE_X11}" = "yes"; then
13916 if test "${with_png}" != "no"; then
13917 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13918 # in /usr/include/libpng.
13919
13920
13921 for ac_header in png.h libpng/png.h
13922 do
13923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 fi
13930 ac_res=`eval echo '${'$as_ac_Header'}'`
13931 { echo "$as_me:$LINENO: result: $ac_res" >&5
13932 echo "${ECHO_T}$ac_res" >&6; }
13933 else
13934 # Is the header compilable?
13935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h. */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <$ac_header>
13945 _ACEOF
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_header_compiler=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 ac_header_compiler=no
13969 fi
13970
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13974
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h. */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <$ac_header>
13985 _ACEOF
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev/null && {
13999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14001 }; then
14002 ac_header_preproc=yes
14003 else
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14006
14007 ac_header_preproc=no
14008 fi
14009
14010 rm -f conftest.err conftest.$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14012 echo "${ECHO_T}$ac_header_preproc" >&6; }
14013
14014 # So? What about this header?
14015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14016 yes:no: )
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14021 ac_header_preproc=yes
14022 ;;
14023 no:yes:* )
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14036
14037 ;;
14038 esac
14039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044 eval "$as_ac_Header=\$ac_header_preproc"
14045 fi
14046 ac_res=`eval echo '${'$as_ac_Header'}'`
14047 { echo "$as_me:$LINENO: result: $ac_res" >&5
14048 echo "${ECHO_T}$ac_res" >&6; }
14049
14050 fi
14051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14052 cat >>confdefs.h <<_ACEOF
14053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14054 _ACEOF
14055
14056 fi
14057
14058 done
14059
14060 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14061 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14062 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14063 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066 ac_check_lib_save_LIBS=$LIBS
14067 LIBS="-lpng -lz -lm $LIBS"
14068 cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h. */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074
14075 /* Override any GCC internal prototype to avoid an error.
14076 Use char because int might match the return type of a GCC
14077 builtin and then its argument prototype would still apply. */
14078 #ifdef __cplusplus
14079 extern "C"
14080 #endif
14081 char png_get_channels ();
14082 int
14083 main ()
14084 {
14085 return png_get_channels ();
14086 ;
14087 return 0;
14088 }
14089 _ACEOF
14090 rm -f conftest.$ac_objext conftest$ac_exeext
14091 if { (ac_try="$ac_link"
14092 case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_link") 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest$ac_exeext &&
14107 $as_test_x conftest$ac_exeext; then
14108 ac_cv_lib_png_png_get_channels=yes
14109 else
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113 ac_cv_lib_png_png_get_channels=no
14114 fi
14115
14116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14117 conftest$ac_exeext conftest.$ac_ext
14118 LIBS=$ac_check_lib_save_LIBS
14119 fi
14120 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14121 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14122 if test $ac_cv_lib_png_png_get_channels = yes; then
14123 HAVE_PNG=yes
14124 fi
14125
14126 fi
14127 fi
14128
14129 if test "${HAVE_PNG}" = "yes"; then
14130
14131 cat >>confdefs.h <<\_ACEOF
14132 #define HAVE_PNG 1
14133 _ACEOF
14134
14135 fi
14136 fi
14137
14138 ### Use -ltiff if available, unless `--with-tiff=no'.
14139 HAVE_TIFF=no
14140 if test "${HAVE_X11}" = "yes"; then
14141 if test "${with_tiff}" != "no"; then
14142 if test "${ac_cv_header_tiffio_h+set}" = set; then
14143 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14144 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14145 if test "${ac_cv_header_tiffio_h+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 fi
14148 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14149 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14150 else
14151 # Is the header compilable?
14152 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14153 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 $ac_includes_default
14161 #include <tiffio.h>
14162 _ACEOF
14163 rm -f conftest.$ac_objext
14164 if { (ac_try="$ac_compile"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_compile") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } && {
14177 test -z "$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 } && test -s conftest.$ac_objext; then
14180 ac_header_compiler=yes
14181 else
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 ac_header_compiler=no
14186 fi
14187
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14190 echo "${ECHO_T}$ac_header_compiler" >&6; }
14191
14192 # Is the header present?
14193 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14194 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14195 cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h. */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 #include <tiffio.h>
14202 _ACEOF
14203 if { (ac_try="$ac_cpp conftest.$ac_ext"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } >/dev/null && {
14216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14218 }; then
14219 ac_header_preproc=yes
14220 else
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224 ac_header_preproc=no
14225 fi
14226
14227 rm -f conftest.err conftest.$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229 echo "${ECHO_T}$ac_header_preproc" >&6; }
14230
14231 # So? What about this header?
14232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 yes:no: )
14234 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14235 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14237 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc=yes
14239 ;;
14240 no:yes:* )
14241 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14242 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14244 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14246 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14248 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14250 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14252 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14253
14254 ;;
14255 esac
14256 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14257 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14258 if test "${ac_cv_header_tiffio_h+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261 ac_cv_header_tiffio_h=$ac_header_preproc
14262 fi
14263 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14264 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14265
14266 fi
14267 if test $ac_cv_header_tiffio_h = yes; then
14268 tifflibs="-lz -lm"
14269 # At least one tiff package requires the jpeg library.
14270 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14271 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14272 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14273 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276 ac_check_lib_save_LIBS=$LIBS
14277 LIBS="-ltiff $tifflibs $LIBS"
14278 cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h. */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284
14285 /* Override any GCC internal prototype to avoid an error.
14286 Use char because int might match the return type of a GCC
14287 builtin and then its argument prototype would still apply. */
14288 #ifdef __cplusplus
14289 extern "C"
14290 #endif
14291 char TIFFGetVersion ();
14292 int
14293 main ()
14294 {
14295 return TIFFGetVersion ();
14296 ;
14297 return 0;
14298 }
14299 _ACEOF
14300 rm -f conftest.$ac_objext conftest$ac_exeext
14301 if { (ac_try="$ac_link"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305 esac
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_link") 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && {
14314 test -z "$ac_c_werror_flag" ||
14315 test ! -s conftest.err
14316 } && test -s conftest$ac_exeext &&
14317 $as_test_x conftest$ac_exeext; then
14318 ac_cv_lib_tiff_TIFFGetVersion=yes
14319 else
14320 echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14322
14323 ac_cv_lib_tiff_TIFFGetVersion=no
14324 fi
14325
14326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14327 conftest$ac_exeext conftest.$ac_ext
14328 LIBS=$ac_check_lib_save_LIBS
14329 fi
14330 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14331 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14332 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14333 HAVE_TIFF=yes
14334 fi
14335
14336 fi
14337
14338
14339 fi
14340
14341 if test "${HAVE_TIFF}" = "yes"; then
14342
14343 cat >>confdefs.h <<\_ACEOF
14344 #define HAVE_TIFF 1
14345 _ACEOF
14346
14347 fi
14348 fi
14349
14350 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14351 HAVE_GIF=no
14352 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14353 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14354 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14355 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14356 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 fi
14359 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14360 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14361 else
14362 # Is the header compilable?
14363 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14364 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14365 cat >conftest.$ac_ext <<_ACEOF
14366 /* confdefs.h. */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 $ac_includes_default
14372 #include <gif_lib.h>
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (ac_try="$ac_compile"
14376 case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14379 esac
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_compile") 2>conftest.er1
14382 ac_status=$?
14383 grep -v '^ *+' conftest.er1 >conftest.err
14384 rm -f conftest.er1
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 } && test -s conftest.$ac_objext; then
14391 ac_header_compiler=yes
14392 else
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396 ac_header_compiler=no
14397 fi
14398
14399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14401 echo "${ECHO_T}$ac_header_compiler" >&6; }
14402
14403 # Is the header present?
14404 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14405 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14406 cat >conftest.$ac_ext <<_ACEOF
14407 /* confdefs.h. */
14408 _ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 #include <gif_lib.h>
14413 _ACEOF
14414 if { (ac_try="$ac_cpp conftest.$ac_ext"
14415 case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14418 esac
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14421 ac_status=$?
14422 grep -v '^ *+' conftest.er1 >conftest.err
14423 rm -f conftest.er1
14424 cat conftest.err >&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } >/dev/null && {
14427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14428 test ! -s conftest.err
14429 }; then
14430 ac_header_preproc=yes
14431 else
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14434
14435 ac_header_preproc=no
14436 fi
14437
14438 rm -f conftest.err conftest.$ac_ext
14439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14440 echo "${ECHO_T}$ac_header_preproc" >&6; }
14441
14442 # So? What about this header?
14443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14444 yes:no: )
14445 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14446 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14448 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14449 ac_header_preproc=yes
14450 ;;
14451 no:yes:* )
14452 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14453 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14455 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14457 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14459 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14461 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14463 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14464
14465 ;;
14466 esac
14467 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14468 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14469 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472 ac_cv_header_gif_lib_h=$ac_header_preproc
14473 fi
14474 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14475 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14476
14477 fi
14478 if test $ac_cv_header_gif_lib_h = yes; then
14479 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14480 # Earlier versions can crash Emacs.
14481 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14482 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14483 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486 ac_check_lib_save_LIBS=$LIBS
14487 LIBS="-lgif $LIBS"
14488 cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h. */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14494
14495 /* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
14498 #ifdef __cplusplus
14499 extern "C"
14500 #endif
14501 char EGifPutExtensionLast ();
14502 int
14503 main ()
14504 {
14505 return EGifPutExtensionLast ();
14506 ;
14507 return 0;
14508 }
14509 _ACEOF
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (ac_try="$ac_link"
14512 case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_link") 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest$ac_exeext &&
14527 $as_test_x conftest$ac_exeext; then
14528 ac_cv_lib_gif_EGifPutExtensionLast=yes
14529 else
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533 ac_cv_lib_gif_EGifPutExtensionLast=no
14534 fi
14535
14536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LIBS=$ac_check_lib_save_LIBS
14539 fi
14540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14541 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14542 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14543 HAVE_GIF=yes
14544 else
14545 try_libungif=yes
14546 fi
14547
14548 fi
14549
14550
14551
14552 if test "$HAVE_GIF" = yes; then
14553 ac_gif_lib_name="-lgif"
14554 fi
14555
14556 # If gif_lib.h but no libgif, try libungif.
14557 if test x"$try_libungif" = xyes; then
14558 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14559 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14560 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563 ac_check_lib_save_LIBS=$LIBS
14564 LIBS="-lungif $LIBS"
14565 cat >conftest.$ac_ext <<_ACEOF
14566 /* confdefs.h. */
14567 _ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571
14572 /* Override any GCC internal prototype to avoid an error.
14573 Use char because int might match the return type of a GCC
14574 builtin and then its argument prototype would still apply. */
14575 #ifdef __cplusplus
14576 extern "C"
14577 #endif
14578 char EGifPutExtensionLast ();
14579 int
14580 main ()
14581 {
14582 return EGifPutExtensionLast ();
14583 ;
14584 return 0;
14585 }
14586 _ACEOF
14587 rm -f conftest.$ac_objext conftest$ac_exeext
14588 if { (ac_try="$ac_link"
14589 case "(($ac_try" in
14590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591 *) ac_try_echo=$ac_try;;
14592 esac
14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594 (eval "$ac_link") 2>conftest.er1
14595 ac_status=$?
14596 grep -v '^ *+' conftest.er1 >conftest.err
14597 rm -f conftest.er1
14598 cat conftest.err >&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } && {
14601 test -z "$ac_c_werror_flag" ||
14602 test ! -s conftest.err
14603 } && test -s conftest$ac_exeext &&
14604 $as_test_x conftest$ac_exeext; then
14605 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14606 else
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14609
14610 ac_cv_lib_ungif_EGifPutExtensionLast=no
14611 fi
14612
14613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14614 conftest$ac_exeext conftest.$ac_ext
14615 LIBS=$ac_check_lib_save_LIBS
14616 fi
14617 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14618 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14619 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14620 HAVE_GIF=yes
14621 fi
14622
14623
14624 if test "$HAVE_GIF" = yes; then
14625
14626 cat >>confdefs.h <<\_ACEOF
14627 #define LIBGIF -lungif
14628 _ACEOF
14629
14630 ac_gif_lib_name="-lungif"
14631 fi
14632 fi
14633
14634 if test "${HAVE_GIF}" = "yes"; then
14635
14636 cat >>confdefs.h <<\_ACEOF
14637 #define HAVE_GIF 1
14638 _ACEOF
14639
14640 fi
14641 fi
14642
14643 if test "${HAVE_X11}" = "yes"; then
14644 MISSING=""
14645 WITH_NO=""
14646 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14647 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14648 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14649 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14650 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14651 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14652 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14653 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14654 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14655 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14656
14657 if test "X${MISSING}" != X; then
14658 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14659 $MISSING
14660 Maybe some development libraries/packages are missing?
14661 If you don't want to link with them give
14662 $WITH_NO
14663 as options to configure" >&5
14664 echo "$as_me: error: The following required libraries were not found:
14665 $MISSING
14666 Maybe some development libraries/packages are missing?
14667 If you don't want to link with them give
14668 $WITH_NO
14669 as options to configure" >&2;}
14670 { (exit 1); exit 1; }; }
14671 fi
14672 fi
14673
14674 ### Use -lgpm if available, unless `--with-gpm=no'.
14675 HAVE_GPM=no
14676 if test "${with_gpm}" != "no"; then
14677 if test "${ac_cv_header_gpm_h+set}" = set; then
14678 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14679 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14680 if test "${ac_cv_header_gpm_h+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 fi
14683 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14684 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14685 else
14686 # Is the header compilable?
14687 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14688 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h. */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 $ac_includes_default
14696 #include <gpm.h>
14697 _ACEOF
14698 rm -f conftest.$ac_objext
14699 if { (ac_try="$ac_compile"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_compile") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest.$ac_objext; then
14715 ac_header_compiler=yes
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14719
14720 ac_header_compiler=no
14721 fi
14722
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14725 echo "${ECHO_T}$ac_header_compiler" >&6; }
14726
14727 # Is the header present?
14728 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14729 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14730 cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h. */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 #include <gpm.h>
14737 _ACEOF
14738 if { (ac_try="$ac_cpp conftest.$ac_ext"
14739 case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14742 esac
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } >/dev/null && {
14751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14753 }; then
14754 ac_header_preproc=yes
14755 else
14756 echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14758
14759 ac_header_preproc=no
14760 fi
14761
14762 rm -f conftest.err conftest.$ac_ext
14763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14764 echo "${ECHO_T}$ac_header_preproc" >&6; }
14765
14766 # So? What about this header?
14767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14768 yes:no: )
14769 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14770 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14772 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14773 ac_header_preproc=yes
14774 ;;
14775 no:yes:* )
14776 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14777 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14779 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14781 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14783 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14785 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14787 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14788
14789 ;;
14790 esac
14791 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14792 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14793 if test "${ac_cv_header_gpm_h+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 else
14796 ac_cv_header_gpm_h=$ac_header_preproc
14797 fi
14798 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14799 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14800
14801 fi
14802 if test $ac_cv_header_gpm_h = yes; then
14803 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14804 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14805 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808 ac_check_lib_save_LIBS=$LIBS
14809 LIBS="-lgpm $LIBS"
14810 cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h. */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14820 #ifdef __cplusplus
14821 extern "C"
14822 #endif
14823 char Gpm_Open ();
14824 int
14825 main ()
14826 {
14827 return Gpm_Open ();
14828 ;
14829 return 0;
14830 }
14831 _ACEOF
14832 rm -f conftest.$ac_objext conftest$ac_exeext
14833 if { (ac_try="$ac_link"
14834 case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14837 esac
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_link") 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest$ac_exeext &&
14849 $as_test_x conftest$ac_exeext; then
14850 ac_cv_lib_gpm_Gpm_Open=yes
14851 else
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14854
14855 ac_cv_lib_gpm_Gpm_Open=no
14856 fi
14857
14858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14859 conftest$ac_exeext conftest.$ac_ext
14860 LIBS=$ac_check_lib_save_LIBS
14861 fi
14862 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14863 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14864 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14865 HAVE_GPM=yes
14866 fi
14867
14868 fi
14869
14870
14871 fi
14872
14873 if test "${HAVE_GPM}" = "yes"; then
14874
14875 cat >>confdefs.h <<\_ACEOF
14876 #define HAVE_GPM 1
14877 _ACEOF
14878
14879 fi
14880
14881 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14882 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14883 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14884 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 fi
14887 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14888 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14889 else
14890 # Is the header compilable?
14891 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14892 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h. */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 $ac_includes_default
14900 #include <malloc/malloc.h>
14901 _ACEOF
14902 rm -f conftest.$ac_objext
14903 if { (ac_try="$ac_compile"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_compile") 2>conftest.er1
14910 ac_status=$?
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && {
14916 test -z "$ac_c_werror_flag" ||
14917 test ! -s conftest.err
14918 } && test -s conftest.$ac_objext; then
14919 ac_header_compiler=yes
14920 else
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14923
14924 ac_header_compiler=no
14925 fi
14926
14927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14929 echo "${ECHO_T}$ac_header_compiler" >&6; }
14930
14931 # Is the header present?
14932 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14933 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14934 cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h. */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 #include <malloc/malloc.h>
14941 _ACEOF
14942 if { (ac_try="$ac_cpp conftest.$ac_ext"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946 esac
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14949 ac_status=$?
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } >/dev/null && {
14955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14957 }; then
14958 ac_header_preproc=yes
14959 else
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14962
14963 ac_header_preproc=no
14964 fi
14965
14966 rm -f conftest.err conftest.$ac_ext
14967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14968 echo "${ECHO_T}$ac_header_preproc" >&6; }
14969
14970 # So? What about this header?
14971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14972 yes:no: )
14973 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14974 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14976 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14977 ac_header_preproc=yes
14978 ;;
14979 no:yes:* )
14980 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14981 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14983 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14985 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14987 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14989 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14991 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14992
14993 ;;
14994 esac
14995 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14996 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14997 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 else
15000 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15001 fi
15002 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15003 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15004
15005 fi
15006 if test $ac_cv_header_malloc_malloc_h = yes; then
15007
15008 cat >>confdefs.h <<\_ACEOF
15009 #define HAVE_MALLOC_MALLOC_H 1
15010 _ACEOF
15011
15012 fi
15013
15014
15015
15016 ### Use Mac OS X Carbon API to implement GUI.
15017 if test "${HAVE_CARBON}" = "yes"; then
15018
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_CARBON 1
15021 _ACEOF
15022
15023
15024 for ac_header in AvailabilityMacros.h
15025 do
15026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032 fi
15033 ac_res=`eval echo '${'$as_ac_Header'}'`
15034 { echo "$as_me:$LINENO: result: $ac_res" >&5
15035 echo "${ECHO_T}$ac_res" >&6; }
15036 else
15037 # Is the header compilable?
15038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15040 cat >conftest.$ac_ext <<_ACEOF
15041 /* confdefs.h. */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 $ac_includes_default
15047 #include <$ac_header>
15048 _ACEOF
15049 rm -f conftest.$ac_objext
15050 if { (ac_try="$ac_compile"
15051 case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15054 esac
15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_compile") 2>conftest.er1
15057 ac_status=$?
15058 grep -v '^ *+' conftest.er1 >conftest.err
15059 rm -f conftest.er1
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } && {
15063 test -z "$ac_c_werror_flag" ||
15064 test ! -s conftest.err
15065 } && test -s conftest.$ac_objext; then
15066 ac_header_compiler=yes
15067 else
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071 ac_header_compiler=no
15072 fi
15073
15074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15076 echo "${ECHO_T}$ac_header_compiler" >&6; }
15077
15078 # Is the header present?
15079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15081 cat >conftest.$ac_ext <<_ACEOF
15082 /* confdefs.h. */
15083 _ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 #include <$ac_header>
15088 _ACEOF
15089 if { (ac_try="$ac_cpp conftest.$ac_ext"
15090 case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15093 esac
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15096 ac_status=$?
15097 grep -v '^ *+' conftest.er1 >conftest.err
15098 rm -f conftest.er1
15099 cat conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } >/dev/null && {
15102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15103 test ! -s conftest.err
15104 }; then
15105 ac_header_preproc=yes
15106 else
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ac_header_preproc=no
15111 fi
15112
15113 rm -f conftest.err conftest.$ac_ext
15114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15115 echo "${ECHO_T}$ac_header_preproc" >&6; }
15116
15117 # So? What about this header?
15118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15119 yes:no: )
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15124 ac_header_preproc=yes
15125 ;;
15126 no:yes:* )
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15139
15140 ;;
15141 esac
15142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147 eval "$as_ac_Header=\$ac_header_preproc"
15148 fi
15149 ac_res=`eval echo '${'$as_ac_Header'}'`
15150 { echo "$as_me:$LINENO: result: $ac_res" >&5
15151 echo "${ECHO_T}$ac_res" >&6; }
15152
15153 fi
15154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15155 cat >>confdefs.h <<_ACEOF
15156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15157 _ACEOF
15158
15159 fi
15160
15161 done
15162
15163 ## Specify the install directory
15164 carbon_appdir=
15165 if test "${carbon_appdir_x}" != ""; then
15166 case ${carbon_appdir_x} in
15167 y | ye | yes) carbon_appdir=/Applications ;;
15168 * ) carbon_appdir=${carbon_appdir_x} ;;
15169 esac
15170 fi
15171 # We also have mouse menus.
15172 HAVE_MENUS=yes
15173 fi
15174
15175 ### Use session management (-lSM -lICE) if available
15176 HAVE_X_SM=no
15177 if test "${HAVE_X11}" = "yes"; then
15178 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15179 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15180 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15181 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 fi
15184 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15185 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15186 else
15187 # Is the header compilable?
15188 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15189 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15190 cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h. */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 $ac_includes_default
15197 #include <X11/SM/SMlib.h>
15198 _ACEOF
15199 rm -f conftest.$ac_objext
15200 if { (ac_try="$ac_compile"
15201 case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_compile") 2>conftest.er1
15207 ac_status=$?
15208 grep -v '^ *+' conftest.er1 >conftest.err
15209 rm -f conftest.er1
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && {
15213 test -z "$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15215 } && test -s conftest.$ac_objext; then
15216 ac_header_compiler=yes
15217 else
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15220
15221 ac_header_compiler=no
15222 fi
15223
15224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15226 echo "${ECHO_T}$ac_header_compiler" >&6; }
15227
15228 # Is the header present?
15229 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15230 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15231 cat >conftest.$ac_ext <<_ACEOF
15232 /* confdefs.h. */
15233 _ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 #include <X11/SM/SMlib.h>
15238 _ACEOF
15239 if { (ac_try="$ac_cpp conftest.$ac_ext"
15240 case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15243 esac
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15246 ac_status=$?
15247 grep -v '^ *+' conftest.er1 >conftest.err
15248 rm -f conftest.er1
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } >/dev/null && {
15252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15253 test ! -s conftest.err
15254 }; then
15255 ac_header_preproc=yes
15256 else
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15259
15260 ac_header_preproc=no
15261 fi
15262
15263 rm -f conftest.err conftest.$ac_ext
15264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15265 echo "${ECHO_T}$ac_header_preproc" >&6; }
15266
15267 # So? What about this header?
15268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15269 yes:no: )
15270 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15271 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15273 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15274 ac_header_preproc=yes
15275 ;;
15276 no:yes:* )
15277 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15278 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15279 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15280 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15281 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15282 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15284 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15285 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15286 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15287 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15288 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15289
15290 ;;
15291 esac
15292 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15293 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15294 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15296 else
15297 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15298 fi
15299 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15300 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15301
15302 fi
15303 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15304 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15305 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15306 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 else
15309 ac_check_lib_save_LIBS=$LIBS
15310 LIBS="-lSM -lICE $LIBS"
15311 cat >conftest.$ac_ext <<_ACEOF
15312 /* confdefs.h. */
15313 _ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15317
15318 /* Override any GCC internal prototype to avoid an error.
15319 Use char because int might match the return type of a GCC
15320 builtin and then its argument prototype would still apply. */
15321 #ifdef __cplusplus
15322 extern "C"
15323 #endif
15324 char SmcOpenConnection ();
15325 int
15326 main ()
15327 {
15328 return SmcOpenConnection ();
15329 ;
15330 return 0;
15331 }
15332 _ACEOF
15333 rm -f conftest.$ac_objext conftest$ac_exeext
15334 if { (ac_try="$ac_link"
15335 case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15338 esac
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_link") 2>conftest.er1
15341 ac_status=$?
15342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } && {
15347 test -z "$ac_c_werror_flag" ||
15348 test ! -s conftest.err
15349 } && test -s conftest$ac_exeext &&
15350 $as_test_x conftest$ac_exeext; then
15351 ac_cv_lib_SM_SmcOpenConnection=yes
15352 else
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15355
15356 ac_cv_lib_SM_SmcOpenConnection=no
15357 fi
15358
15359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15360 conftest$ac_exeext conftest.$ac_ext
15361 LIBS=$ac_check_lib_save_LIBS
15362 fi
15363 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15364 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15365 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15366 HAVE_X_SM=yes
15367 fi
15368
15369 fi
15370
15371
15372
15373 if test "${HAVE_X_SM}" = "yes"; then
15374
15375 cat >>confdefs.h <<\_ACEOF
15376 #define HAVE_X_SM 1
15377 _ACEOF
15378
15379 case "$LIBS" in
15380 *-lSM*) ;;
15381 *) LIBS="-lSM -lICE $LIBS" ;;
15382 esac
15383 fi
15384 fi
15385
15386 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15387 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15388 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15389 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 else
15392 cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h. */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 #include <netdb.h>
15399 int
15400 main ()
15401 {
15402 return h_errno;
15403 ;
15404 return 0;
15405 }
15406 _ACEOF
15407 rm -f conftest.$ac_objext conftest$ac_exeext
15408 if { (ac_try="$ac_link"
15409 case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15412 esac
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_link") 2>conftest.er1
15415 ac_status=$?
15416 grep -v '^ *+' conftest.er1 >conftest.err
15417 rm -f conftest.er1
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } && {
15421 test -z "$ac_c_werror_flag" ||
15422 test ! -s conftest.err
15423 } && test -s conftest$ac_exeext &&
15424 $as_test_x conftest$ac_exeext; then
15425 emacs_cv_netdb_declares_h_errno=yes
15426 else
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 emacs_cv_netdb_declares_h_errno=no
15431 fi
15432
15433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15434 conftest$ac_exeext conftest.$ac_ext
15435 fi
15436 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15437 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15438 if test $emacs_cv_netdb_declares_h_errno = yes; then
15439
15440 cat >>confdefs.h <<\_ACEOF
15441 #define HAVE_H_ERRNO 1
15442 _ACEOF
15443
15444 fi
15445
15446 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15447 # for constant arguments. Useless!
15448 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15449 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15450 if test "${ac_cv_working_alloca_h+set}" = set; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h. */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 #include <alloca.h>
15460 int
15461 main ()
15462 {
15463 char *p = (char *) alloca (2 * sizeof (int));
15464 if (p) return 0;
15465 ;
15466 return 0;
15467 }
15468 _ACEOF
15469 rm -f conftest.$ac_objext conftest$ac_exeext
15470 if { (ac_try="$ac_link"
15471 case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15474 esac
15475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476 (eval "$ac_link") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest$ac_exeext &&
15486 $as_test_x conftest$ac_exeext; then
15487 ac_cv_working_alloca_h=yes
15488 else
15489 echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15491
15492 ac_cv_working_alloca_h=no
15493 fi
15494
15495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15496 conftest$ac_exeext conftest.$ac_ext
15497 fi
15498 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15499 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15500 if test $ac_cv_working_alloca_h = yes; then
15501
15502 cat >>confdefs.h <<\_ACEOF
15503 #define HAVE_ALLOCA_H 1
15504 _ACEOF
15505
15506 fi
15507
15508 { echo "$as_me:$LINENO: checking for alloca" >&5
15509 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15510 if test "${ac_cv_func_alloca_works+set}" = set; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15512 else
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h. */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 #ifdef __GNUC__
15520 # define alloca __builtin_alloca
15521 #else
15522 # ifdef _MSC_VER
15523 # include <malloc.h>
15524 # define alloca _alloca
15525 # else
15526 # ifdef HAVE_ALLOCA_H
15527 # include <alloca.h>
15528 # else
15529 # ifdef _AIX
15530 #pragma alloca
15531 # else
15532 # ifndef alloca /* predefined by HP cc +Olibcalls */
15533 char *alloca ();
15534 # endif
15535 # endif
15536 # endif
15537 # endif
15538 #endif
15539
15540 int
15541 main ()
15542 {
15543 char *p = (char *) alloca (1);
15544 if (p) return 0;
15545 ;
15546 return 0;
15547 }
15548 _ACEOF
15549 rm -f conftest.$ac_objext conftest$ac_exeext
15550 if { (ac_try="$ac_link"
15551 case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_link") 2>conftest.er1
15557 ac_status=$?
15558 grep -v '^ *+' conftest.er1 >conftest.err
15559 rm -f conftest.er1
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } && {
15563 test -z "$ac_c_werror_flag" ||
15564 test ! -s conftest.err
15565 } && test -s conftest$ac_exeext &&
15566 $as_test_x conftest$ac_exeext; then
15567 ac_cv_func_alloca_works=yes
15568 else
15569 echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15571
15572 ac_cv_func_alloca_works=no
15573 fi
15574
15575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15576 conftest$ac_exeext conftest.$ac_ext
15577 fi
15578 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15579 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15580
15581 if test $ac_cv_func_alloca_works = yes; then
15582
15583 cat >>confdefs.h <<\_ACEOF
15584 #define HAVE_ALLOCA 1
15585 _ACEOF
15586
15587 else
15588 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15589 # that cause trouble. Some versions do not even contain alloca or
15590 # contain a buggy version. If you still want to use their alloca,
15591 # use ar to extract alloca.o from them instead of compiling alloca.c.
15592
15593 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15594
15595 cat >>confdefs.h <<\_ACEOF
15596 #define C_ALLOCA 1
15597 _ACEOF
15598
15599
15600 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15601 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15602 if test "${ac_cv_os_cray+set}" = set; then
15603 echo $ECHO_N "(cached) $ECHO_C" >&6
15604 else
15605 cat >conftest.$ac_ext <<_ACEOF
15606 /* confdefs.h. */
15607 _ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15611 #if defined CRAY && ! defined CRAY2
15612 webecray
15613 #else
15614 wenotbecray
15615 #endif
15616
15617 _ACEOF
15618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15619 $EGREP "webecray" >/dev/null 2>&1; then
15620 ac_cv_os_cray=yes
15621 else
15622 ac_cv_os_cray=no
15623 fi
15624 rm -f conftest*
15625
15626 fi
15627 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15628 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15629 if test $ac_cv_os_cray = yes; then
15630 for ac_func in _getb67 GETB67 getb67; do
15631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637 cat >conftest.$ac_ext <<_ACEOF
15638 /* confdefs.h. */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15645 #define $ac_func innocuous_$ac_func
15646
15647 /* System header to define __stub macros and hopefully few prototypes,
15648 which can conflict with char $ac_func (); below.
15649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15650 <limits.h> exists even on freestanding compilers. */
15651
15652 #ifdef __STDC__
15653 # include <limits.h>
15654 #else
15655 # include <assert.h>
15656 #endif
15657
15658 #undef $ac_func
15659
15660 /* Override any GCC internal prototype to avoid an error.
15661 Use char because int might match the return type of a GCC
15662 builtin and then its argument prototype would still apply. */
15663 #ifdef __cplusplus
15664 extern "C"
15665 #endif
15666 char $ac_func ();
15667 /* The GNU C library defines this for functions which it implements
15668 to always fail with ENOSYS. Some functions are actually named
15669 something starting with __ and the normal name is an alias. */
15670 #if defined __stub_$ac_func || defined __stub___$ac_func
15671 choke me
15672 #endif
15673
15674 int
15675 main ()
15676 {
15677 return $ac_func ();
15678 ;
15679 return 0;
15680 }
15681 _ACEOF
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_link") 2>conftest.er1
15690 ac_status=$?
15691 grep -v '^ *+' conftest.er1 >conftest.err
15692 rm -f conftest.er1
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } && {
15696 test -z "$ac_c_werror_flag" ||
15697 test ! -s conftest.err
15698 } && test -s conftest$ac_exeext &&
15699 $as_test_x conftest$ac_exeext; then
15700 eval "$as_ac_var=yes"
15701 else
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705 eval "$as_ac_var=no"
15706 fi
15707
15708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15709 conftest$ac_exeext conftest.$ac_ext
15710 fi
15711 ac_res=`eval echo '${'$as_ac_var'}'`
15712 { echo "$as_me:$LINENO: result: $ac_res" >&5
15713 echo "${ECHO_T}$ac_res" >&6; }
15714 if test `eval echo '${'$as_ac_var'}'` = yes; then
15715
15716 cat >>confdefs.h <<_ACEOF
15717 #define CRAY_STACKSEG_END $ac_func
15718 _ACEOF
15719
15720 break
15721 fi
15722
15723 done
15724 fi
15725
15726 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15727 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15728 if test "${ac_cv_c_stack_direction+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731 if test "$cross_compiling" = yes; then
15732 ac_cv_c_stack_direction=0
15733 else
15734 cat >conftest.$ac_ext <<_ACEOF
15735 /* confdefs.h. */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 $ac_includes_default
15741 int
15742 find_stack_direction ()
15743 {
15744 static char *addr = 0;
15745 auto char dummy;
15746 if (addr == 0)
15747 {
15748 addr = &dummy;
15749 return find_stack_direction ();
15750 }
15751 else
15752 return (&dummy > addr) ? 1 : -1;
15753 }
15754
15755 int
15756 main ()
15757 {
15758 return find_stack_direction () < 0;
15759 }
15760 _ACEOF
15761 rm -f conftest$ac_exeext
15762 if { (ac_try="$ac_link"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15766 esac
15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_link") 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15772 { (case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15775 esac
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_try") 2>&5
15778 ac_status=$?
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; }; then
15781 ac_cv_c_stack_direction=1
15782 else
15783 echo "$as_me: program exited with status $ac_status" >&5
15784 echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15786
15787 ( exit $ac_status )
15788 ac_cv_c_stack_direction=-1
15789 fi
15790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15791 fi
15792
15793
15794 fi
15795 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15796 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15797
15798 cat >>confdefs.h <<_ACEOF
15799 #define STACK_DIRECTION $ac_cv_c_stack_direction
15800 _ACEOF
15801
15802
15803 fi
15804
15805
15806 if test x"$ac_cv_func_alloca_works" != xyes; then
15807 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15808 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15809 { (exit 1); exit 1; }; }
15810 fi
15811
15812 # fmod, logb, and frexp are found in -lm on most systems.
15813 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15814
15815 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15816 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15817 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 else
15820 ac_check_lib_save_LIBS=$LIBS
15821 LIBS="-lm $LIBS"
15822 cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h. */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828
15829 /* Override any GCC internal prototype to avoid an error.
15830 Use char because int might match the return type of a GCC
15831 builtin and then its argument prototype would still apply. */
15832 #ifdef __cplusplus
15833 extern "C"
15834 #endif
15835 char sqrt ();
15836 int
15837 main ()
15838 {
15839 return sqrt ();
15840 ;
15841 return 0;
15842 }
15843 _ACEOF
15844 rm -f conftest.$ac_objext conftest$ac_exeext
15845 if { (ac_try="$ac_link"
15846 case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_link") 2>conftest.er1
15852 ac_status=$?
15853 grep -v '^ *+' conftest.er1 >conftest.err
15854 rm -f conftest.er1
15855 cat conftest.err >&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } && {
15858 test -z "$ac_c_werror_flag" ||
15859 test ! -s conftest.err
15860 } && test -s conftest$ac_exeext &&
15861 $as_test_x conftest$ac_exeext; then
15862 ac_cv_lib_m_sqrt=yes
15863 else
15864 echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15866
15867 ac_cv_lib_m_sqrt=no
15868 fi
15869
15870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15871 conftest$ac_exeext conftest.$ac_ext
15872 LIBS=$ac_check_lib_save_LIBS
15873 fi
15874 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15875 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15876 if test $ac_cv_lib_m_sqrt = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878 #define HAVE_LIBM 1
15879 _ACEOF
15880
15881 LIBS="-lm $LIBS"
15882
15883 fi
15884
15885
15886 # Check for mail-locking functions in a "mail" library. Probably this should
15887 # have the same check as for liblockfile below.
15888
15889 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15890 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15891 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894 ac_check_lib_save_LIBS=$LIBS
15895 LIBS="-lmail $LIBS"
15896 cat >conftest.$ac_ext <<_ACEOF
15897 /* confdefs.h. */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15902
15903 /* Override any GCC internal prototype to avoid an error.
15904 Use char because int might match the return type of a GCC
15905 builtin and then its argument prototype would still apply. */
15906 #ifdef __cplusplus
15907 extern "C"
15908 #endif
15909 char maillock ();
15910 int
15911 main ()
15912 {
15913 return maillock ();
15914 ;
15915 return 0;
15916 }
15917 _ACEOF
15918 rm -f conftest.$ac_objext conftest$ac_exeext
15919 if { (ac_try="$ac_link"
15920 case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15923 esac
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_link") 2>conftest.er1
15926 ac_status=$?
15927 grep -v '^ *+' conftest.er1 >conftest.err
15928 rm -f conftest.er1
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } && {
15932 test -z "$ac_c_werror_flag" ||
15933 test ! -s conftest.err
15934 } && test -s conftest$ac_exeext &&
15935 $as_test_x conftest$ac_exeext; then
15936 ac_cv_lib_mail_maillock=yes
15937 else
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941 ac_cv_lib_mail_maillock=no
15942 fi
15943
15944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15945 conftest$ac_exeext conftest.$ac_ext
15946 LIBS=$ac_check_lib_save_LIBS
15947 fi
15948 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15949 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15950 if test $ac_cv_lib_mail_maillock = yes; then
15951 cat >>confdefs.h <<_ACEOF
15952 #define HAVE_LIBMAIL 1
15953 _ACEOF
15954
15955 LIBS="-lmail $LIBS"
15956
15957 fi
15958
15959
15960 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15961 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15962 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965 ac_check_lib_save_LIBS=$LIBS
15966 LIBS="-llockfile $LIBS"
15967 cat >conftest.$ac_ext <<_ACEOF
15968 /* confdefs.h. */
15969 _ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973
15974 /* Override any GCC internal prototype to avoid an error.
15975 Use char because int might match the return type of a GCC
15976 builtin and then its argument prototype would still apply. */
15977 #ifdef __cplusplus
15978 extern "C"
15979 #endif
15980 char maillock ();
15981 int
15982 main ()
15983 {
15984 return maillock ();
15985 ;
15986 return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (ac_try="$ac_link"
15991 case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15994 esac
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_link") 2>conftest.er1
15997 ac_status=$?
15998 grep -v '^ *+' conftest.er1 >conftest.err
15999 rm -f conftest.er1
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } && {
16003 test -z "$ac_c_werror_flag" ||
16004 test ! -s conftest.err
16005 } && test -s conftest$ac_exeext &&
16006 $as_test_x conftest$ac_exeext; then
16007 ac_cv_lib_lockfile_maillock=yes
16008 else
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012 ac_cv_lib_lockfile_maillock=no
16013 fi
16014
16015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16016 conftest$ac_exeext conftest.$ac_ext
16017 LIBS=$ac_check_lib_save_LIBS
16018 fi
16019 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16020 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16021 if test $ac_cv_lib_lockfile_maillock = yes; then
16022 cat >>confdefs.h <<_ACEOF
16023 #define HAVE_LIBLOCKFILE 1
16024 _ACEOF
16025
16026 LIBS="-llockfile $LIBS"
16027
16028 fi
16029
16030 # If we have the shared liblockfile, assume we must use it for mail
16031 # locking (e.g. Debian). If we couldn't link against liblockfile
16032 # (no liblockfile.a installed), ensure that we don't need to.
16033 if test "$ac_cv_lib_lockfile_maillock" = no; then
16034 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16035 set dummy liblockfile.so; ac_word=$2
16036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16038 if test "${ac_cv_prog_liblockfile+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041 if test -n "$liblockfile"; then
16042 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16043 else
16044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16045 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16046 for as_dir in $as_dummy
16047 do
16048 IFS=$as_save_IFS
16049 test -z "$as_dir" && as_dir=.
16050 for ac_exec_ext in '' $ac_executable_extensions; do
16051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16052 ac_cv_prog_liblockfile="yes"
16053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16054 break 2
16055 fi
16056 done
16057 done
16058 IFS=$as_save_IFS
16059
16060 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16061 fi
16062 fi
16063 liblockfile=$ac_cv_prog_liblockfile
16064 if test -n "$liblockfile"; then
16065 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16066 echo "${ECHO_T}$liblockfile" >&6; }
16067 else
16068 { echo "$as_me:$LINENO: result: no" >&5
16069 echo "${ECHO_T}no" >&6; }
16070 fi
16071
16072
16073 if test $ac_cv_prog_liblockfile = yes; then
16074 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16075 This probably means that movemail could lose mail.
16076 There may be a \`development' package to install containing liblockfile." >&5
16077 echo "$as_me: error: Shared liblockfile found but can't link against it.
16078 This probably means that movemail could lose mail.
16079 There may be a \`development' package to install containing liblockfile." >&2;}
16080 { (exit 1); exit 1; }; }
16081 else :
16082 fi
16083 fi
16084
16085 for ac_func in touchlock
16086 do
16087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16092 else
16093 cat >conftest.$ac_ext <<_ACEOF
16094 /* confdefs.h. */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16101 #define $ac_func innocuous_$ac_func
16102
16103 /* System header to define __stub macros and hopefully few prototypes,
16104 which can conflict with char $ac_func (); below.
16105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16106 <limits.h> exists even on freestanding compilers. */
16107
16108 #ifdef __STDC__
16109 # include <limits.h>
16110 #else
16111 # include <assert.h>
16112 #endif
16113
16114 #undef $ac_func
16115
16116 /* Override any GCC internal prototype to avoid an error.
16117 Use char because int might match the return type of a GCC
16118 builtin and then its argument prototype would still apply. */
16119 #ifdef __cplusplus
16120 extern "C"
16121 #endif
16122 char $ac_func ();
16123 /* The GNU C library defines this for functions which it implements
16124 to always fail with ENOSYS. Some functions are actually named
16125 something starting with __ and the normal name is an alias. */
16126 #if defined __stub_$ac_func || defined __stub___$ac_func
16127 choke me
16128 #endif
16129
16130 int
16131 main ()
16132 {
16133 return $ac_func ();
16134 ;
16135 return 0;
16136 }
16137 _ACEOF
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (ac_try="$ac_link"
16140 case "(($ac_try" in
16141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142 *) ac_try_echo=$ac_try;;
16143 esac
16144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145 (eval "$ac_link") 2>conftest.er1
16146 ac_status=$?
16147 grep -v '^ *+' conftest.er1 >conftest.err
16148 rm -f conftest.er1
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } && {
16152 test -z "$ac_c_werror_flag" ||
16153 test ! -s conftest.err
16154 } && test -s conftest$ac_exeext &&
16155 $as_test_x conftest$ac_exeext; then
16156 eval "$as_ac_var=yes"
16157 else
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16160
16161 eval "$as_ac_var=no"
16162 fi
16163
16164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16165 conftest$ac_exeext conftest.$ac_ext
16166 fi
16167 ac_res=`eval echo '${'$as_ac_var'}'`
16168 { echo "$as_me:$LINENO: result: $ac_res" >&5
16169 echo "${ECHO_T}$ac_res" >&6; }
16170 if test `eval echo '${'$as_ac_var'}'` = yes; then
16171 cat >>confdefs.h <<_ACEOF
16172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16173 _ACEOF
16174
16175 fi
16176 done
16177
16178
16179 for ac_header in maillock.h
16180 do
16181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 fi
16188 ac_res=`eval echo '${'$as_ac_Header'}'`
16189 { echo "$as_me:$LINENO: result: $ac_res" >&5
16190 echo "${ECHO_T}$ac_res" >&6; }
16191 else
16192 # Is the header compilable?
16193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16195 cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h. */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 $ac_includes_default
16202 #include <$ac_header>
16203 _ACEOF
16204 rm -f conftest.$ac_objext
16205 if { (ac_try="$ac_compile"
16206 case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16209 esac
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_compile") 2>conftest.er1
16212 ac_status=$?
16213 grep -v '^ *+' conftest.er1 >conftest.err
16214 rm -f conftest.er1
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } && {
16218 test -z "$ac_c_werror_flag" ||
16219 test ! -s conftest.err
16220 } && test -s conftest.$ac_objext; then
16221 ac_header_compiler=yes
16222 else
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226 ac_header_compiler=no
16227 fi
16228
16229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16231 echo "${ECHO_T}$ac_header_compiler" >&6; }
16232
16233 # Is the header present?
16234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16236 cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h. */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16242 #include <$ac_header>
16243 _ACEOF
16244 if { (ac_try="$ac_cpp conftest.$ac_ext"
16245 case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16248 esac
16249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16251 ac_status=$?
16252 grep -v '^ *+' conftest.er1 >conftest.err
16253 rm -f conftest.er1
16254 cat conftest.err >&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } >/dev/null && {
16257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 }; then
16260 ac_header_preproc=yes
16261 else
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 ac_header_preproc=no
16266 fi
16267
16268 rm -f conftest.err conftest.$ac_ext
16269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16270 echo "${ECHO_T}$ac_header_preproc" >&6; }
16271
16272 # So? What about this header?
16273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16274 yes:no: )
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16279 ac_header_preproc=yes
16280 ;;
16281 no:yes:* )
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16294
16295 ;;
16296 esac
16297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 else
16302 eval "$as_ac_Header=\$ac_header_preproc"
16303 fi
16304 ac_res=`eval echo '${'$as_ac_Header'}'`
16305 { echo "$as_me:$LINENO: result: $ac_res" >&5
16306 echo "${ECHO_T}$ac_res" >&6; }
16307
16308 fi
16309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16310 cat >>confdefs.h <<_ACEOF
16311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16312 _ACEOF
16313
16314 fi
16315
16316 done
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387 for ac_func in gethostname getdomainname dup2 \
16388 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16389 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16390 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16391 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16392 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16393 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16394 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16395 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16396 do
16397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403 cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h. */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16411 #define $ac_func innocuous_$ac_func
16412
16413 /* System header to define __stub macros and hopefully few prototypes,
16414 which can conflict with char $ac_func (); below.
16415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16416 <limits.h> exists even on freestanding compilers. */
16417
16418 #ifdef __STDC__
16419 # include <limits.h>
16420 #else
16421 # include <assert.h>
16422 #endif
16423
16424 #undef $ac_func
16425
16426 /* Override any GCC internal prototype to avoid an error.
16427 Use char because int might match the return type of a GCC
16428 builtin and then its argument prototype would still apply. */
16429 #ifdef __cplusplus
16430 extern "C"
16431 #endif
16432 char $ac_func ();
16433 /* The GNU C library defines this for functions which it implements
16434 to always fail with ENOSYS. Some functions are actually named
16435 something starting with __ and the normal name is an alias. */
16436 #if defined __stub_$ac_func || defined __stub___$ac_func
16437 choke me
16438 #endif
16439
16440 int
16441 main ()
16442 {
16443 return $ac_func ();
16444 ;
16445 return 0;
16446 }
16447 _ACEOF
16448 rm -f conftest.$ac_objext conftest$ac_exeext
16449 if { (ac_try="$ac_link"
16450 case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453 esac
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_link") 2>conftest.er1
16456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } && {
16462 test -z "$ac_c_werror_flag" ||
16463 test ! -s conftest.err
16464 } && test -s conftest$ac_exeext &&
16465 $as_test_x conftest$ac_exeext; then
16466 eval "$as_ac_var=yes"
16467 else
16468 echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16470
16471 eval "$as_ac_var=no"
16472 fi
16473
16474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16475 conftest$ac_exeext conftest.$ac_ext
16476 fi
16477 ac_res=`eval echo '${'$as_ac_var'}'`
16478 { echo "$as_me:$LINENO: result: $ac_res" >&5
16479 echo "${ECHO_T}$ac_res" >&6; }
16480 if test `eval echo '${'$as_ac_var'}'` = yes; then
16481 cat >>confdefs.h <<_ACEOF
16482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16483 _ACEOF
16484
16485 fi
16486 done
16487
16488
16489
16490 for ac_header in sys/un.h
16491 do
16492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 fi
16499 ac_res=`eval echo '${'$as_ac_Header'}'`
16500 { echo "$as_me:$LINENO: result: $ac_res" >&5
16501 echo "${ECHO_T}$ac_res" >&6; }
16502 else
16503 # Is the header compilable?
16504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16506 cat >conftest.$ac_ext <<_ACEOF
16507 /* confdefs.h. */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16512 $ac_includes_default
16513 #include <$ac_header>
16514 _ACEOF
16515 rm -f conftest.$ac_objext
16516 if { (ac_try="$ac_compile"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_compile") 2>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } && {
16529 test -z "$ac_c_werror_flag" ||
16530 test ! -s conftest.err
16531 } && test -s conftest.$ac_objext; then
16532 ac_header_compiler=yes
16533 else
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16536
16537 ac_header_compiler=no
16538 fi
16539
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16542 echo "${ECHO_T}$ac_header_compiler" >&6; }
16543
16544 # Is the header present?
16545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h. */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 #include <$ac_header>
16554 _ACEOF
16555 if { (ac_try="$ac_cpp conftest.$ac_ext"
16556 case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16559 esac
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } >/dev/null && {
16568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16569 test ! -s conftest.err
16570 }; then
16571 ac_header_preproc=yes
16572 else
16573 echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576 ac_header_preproc=no
16577 fi
16578
16579 rm -f conftest.err conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16581 echo "${ECHO_T}$ac_header_preproc" >&6; }
16582
16583 # So? What about this header?
16584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16585 yes:no: )
16586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16590 ac_header_preproc=yes
16591 ;;
16592 no:yes:* )
16593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16605
16606 ;;
16607 esac
16608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 else
16613 eval "$as_ac_Header=\$ac_header_preproc"
16614 fi
16615 ac_res=`eval echo '${'$as_ac_Header'}'`
16616 { echo "$as_me:$LINENO: result: $ac_res" >&5
16617 echo "${ECHO_T}$ac_res" >&6; }
16618
16619 fi
16620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16621 cat >>confdefs.h <<_ACEOF
16622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16623 _ACEOF
16624
16625 fi
16626
16627 done
16628
16629
16630
16631
16632
16633
16634 for ac_header in $ac_header_list
16635 do
16636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 fi
16643 ac_res=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645 echo "${ECHO_T}$ac_res" >&6; }
16646 else
16647 # Is the header compilable?
16648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16650 cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h. */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 $ac_includes_default
16657 #include <$ac_header>
16658 _ACEOF
16659 rm -f conftest.$ac_objext
16660 if { (ac_try="$ac_compile"
16661 case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_compile") 2>conftest.er1
16667 ac_status=$?
16668 grep -v '^ *+' conftest.er1 >conftest.err
16669 rm -f conftest.er1
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } && {
16673 test -z "$ac_c_werror_flag" ||
16674 test ! -s conftest.err
16675 } && test -s conftest.$ac_objext; then
16676 ac_header_compiler=yes
16677 else
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 ac_header_compiler=no
16682 fi
16683
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16686 echo "${ECHO_T}$ac_header_compiler" >&6; }
16687
16688 # Is the header present?
16689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16691 cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h. */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 #include <$ac_header>
16698 _ACEOF
16699 if { (ac_try="$ac_cpp conftest.$ac_ext"
16700 case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16703 esac
16704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16706 ac_status=$?
16707 grep -v '^ *+' conftest.er1 >conftest.err
16708 rm -f conftest.er1
16709 cat conftest.err >&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } >/dev/null && {
16712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16713 test ! -s conftest.err
16714 }; then
16715 ac_header_preproc=yes
16716 else
16717 echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16719
16720 ac_header_preproc=no
16721 fi
16722
16723 rm -f conftest.err conftest.$ac_ext
16724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16725 echo "${ECHO_T}$ac_header_preproc" >&6; }
16726
16727 # So? What about this header?
16728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16729 yes:no: )
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16734 ac_header_preproc=yes
16735 ;;
16736 no:yes:* )
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16749
16750 ;;
16751 esac
16752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 else
16757 eval "$as_ac_Header=\$ac_header_preproc"
16758 fi
16759 ac_res=`eval echo '${'$as_ac_Header'}'`
16760 { echo "$as_me:$LINENO: result: $ac_res" >&5
16761 echo "${ECHO_T}$ac_res" >&6; }
16762
16763 fi
16764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16765 cat >>confdefs.h <<_ACEOF
16766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16767 _ACEOF
16768
16769 fi
16770
16771 done
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781 for ac_func in $ac_func_list
16782 do
16783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 else
16789 cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h. */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16797 #define $ac_func innocuous_$ac_func
16798
16799 /* System header to define __stub macros and hopefully few prototypes,
16800 which can conflict with char $ac_func (); below.
16801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16802 <limits.h> exists even on freestanding compilers. */
16803
16804 #ifdef __STDC__
16805 # include <limits.h>
16806 #else
16807 # include <assert.h>
16808 #endif
16809
16810 #undef $ac_func
16811
16812 /* Override any GCC internal prototype to avoid an error.
16813 Use char because int might match the return type of a GCC
16814 builtin and then its argument prototype would still apply. */
16815 #ifdef __cplusplus
16816 extern "C"
16817 #endif
16818 char $ac_func ();
16819 /* The GNU C library defines this for functions which it implements
16820 to always fail with ENOSYS. Some functions are actually named
16821 something starting with __ and the normal name is an alias. */
16822 #if defined __stub_$ac_func || defined __stub___$ac_func
16823 choke me
16824 #endif
16825
16826 int
16827 main ()
16828 {
16829 return $ac_func ();
16830 ;
16831 return 0;
16832 }
16833 _ACEOF
16834 rm -f conftest.$ac_objext conftest$ac_exeext
16835 if { (ac_try="$ac_link"
16836 case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839 esac
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_link") 2>conftest.er1
16842 ac_status=$?
16843 grep -v '^ *+' conftest.er1 >conftest.err
16844 rm -f conftest.er1
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } && {
16848 test -z "$ac_c_werror_flag" ||
16849 test ! -s conftest.err
16850 } && test -s conftest$ac_exeext &&
16851 $as_test_x conftest$ac_exeext; then
16852 eval "$as_ac_var=yes"
16853 else
16854 echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16856
16857 eval "$as_ac_var=no"
16858 fi
16859
16860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16861 conftest$ac_exeext conftest.$ac_ext
16862 fi
16863 ac_res=`eval echo '${'$as_ac_var'}'`
16864 { echo "$as_me:$LINENO: result: $ac_res" >&5
16865 echo "${ECHO_T}$ac_res" >&6; }
16866 if test `eval echo '${'$as_ac_var'}'` = yes; then
16867 cat >>confdefs.h <<_ACEOF
16868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16869 _ACEOF
16870
16871 fi
16872 done
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890 { echo "$as_me:$LINENO: checking for working mktime" >&5
16891 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16892 if test "${ac_cv_func_working_mktime+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895 if test "$cross_compiling" = yes; then
16896 ac_cv_func_working_mktime=no
16897 else
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 /* Test program from Paul Eggert and Tony Leneis. */
16905 #ifdef TIME_WITH_SYS_TIME
16906 # include <sys/time.h>
16907 # include <time.h>
16908 #else
16909 # ifdef HAVE_SYS_TIME_H
16910 # include <sys/time.h>
16911 # else
16912 # include <time.h>
16913 # endif
16914 #endif
16915
16916 #include <stdlib.h>
16917
16918 #ifdef HAVE_UNISTD_H
16919 # include <unistd.h>
16920 #endif
16921
16922 #ifndef HAVE_ALARM
16923 # define alarm(X) /* empty */
16924 #endif
16925
16926 /* Work around redefinition to rpl_putenv by other config tests. */
16927 #undef putenv
16928
16929 static time_t time_t_max;
16930 static time_t time_t_min;
16931
16932 /* Values we'll use to set the TZ environment variable. */
16933 static char *tz_strings[] = {
16934 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16935 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16936 };
16937 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16938
16939 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16940 Based on a problem report from Andreas Jaeger. */
16941 static int
16942 spring_forward_gap ()
16943 {
16944 /* glibc (up to about 1998-10-07) failed this test. */
16945 struct tm tm;
16946
16947 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16948 instead of "TZ=America/Vancouver" in order to detect the bug even
16949 on systems that don't support the Olson extension, or don't have the
16950 full zoneinfo tables installed. */
16951 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16952
16953 tm.tm_year = 98;
16954 tm.tm_mon = 3;
16955 tm.tm_mday = 5;
16956 tm.tm_hour = 2;
16957 tm.tm_min = 0;
16958 tm.tm_sec = 0;
16959 tm.tm_isdst = -1;
16960 return mktime (&tm) != (time_t) -1;
16961 }
16962
16963 static int
16964 mktime_test1 (now)
16965 time_t now;
16966 {
16967 struct tm *lt;
16968 return ! (lt = localtime (&now)) || mktime (lt) == now;
16969 }
16970
16971 static int
16972 mktime_test (now)
16973 time_t now;
16974 {
16975 return (mktime_test1 (now)
16976 && mktime_test1 ((time_t) (time_t_max - now))
16977 && mktime_test1 ((time_t) (time_t_min + now)));
16978 }
16979
16980 static int
16981 irix_6_4_bug ()
16982 {
16983 /* Based on code from Ariel Faigon. */
16984 struct tm tm;
16985 tm.tm_year = 96;
16986 tm.tm_mon = 3;
16987 tm.tm_mday = 0;
16988 tm.tm_hour = 0;
16989 tm.tm_min = 0;
16990 tm.tm_sec = 0;
16991 tm.tm_isdst = -1;
16992 mktime (&tm);
16993 return tm.tm_mon == 2 && tm.tm_mday == 31;
16994 }
16995
16996 static int
16997 bigtime_test (j)
16998 int j;
16999 {
17000 struct tm tm;
17001 time_t now;
17002 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17003 now = mktime (&tm);
17004 if (now != (time_t) -1)
17005 {
17006 struct tm *lt = localtime (&now);
17007 if (! (lt
17008 && lt->tm_year == tm.tm_year
17009 && lt->tm_mon == tm.tm_mon
17010 && lt->tm_mday == tm.tm_mday
17011 && lt->tm_hour == tm.tm_hour
17012 && lt->tm_min == tm.tm_min
17013 && lt->tm_sec == tm.tm_sec
17014 && lt->tm_yday == tm.tm_yday
17015 && lt->tm_wday == tm.tm_wday
17016 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17017 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17018 return 0;
17019 }
17020 return 1;
17021 }
17022
17023 static int
17024 year_2050_test ()
17025 {
17026 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17027 ignoring leap seconds. */
17028 unsigned long int answer = 2527315200UL;
17029
17030 struct tm tm;
17031 time_t t;
17032 tm.tm_year = 2050 - 1900;
17033 tm.tm_mon = 2 - 1;
17034 tm.tm_mday = 1;
17035 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17036 tm.tm_isdst = -1;
17037
17038 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17039 instead of "TZ=America/Vancouver" in order to detect the bug even
17040 on systems that don't support the Olson extension, or don't have the
17041 full zoneinfo tables installed. */
17042 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17043
17044 t = mktime (&tm);
17045
17046 /* Check that the result is either a failure, or close enough
17047 to the correct answer that we can assume the discrepancy is
17048 due to leap seconds. */
17049 return (t == (time_t) -1
17050 || (0 < t && answer - 120 <= t && t <= answer + 120));
17051 }
17052
17053 int
17054 main ()
17055 {
17056 time_t t, delta;
17057 int i, j;
17058
17059 /* This test makes some buggy mktime implementations loop.
17060 Give up after 60 seconds; a mktime slower than that
17061 isn't worth using anyway. */
17062 alarm (60);
17063
17064 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17065 continue;
17066 time_t_max--;
17067 if ((time_t) -1 < 0)
17068 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17069 continue;
17070 delta = time_t_max / 997; /* a suitable prime number */
17071 for (i = 0; i < N_STRINGS; i++)
17072 {
17073 if (tz_strings[i])
17074 putenv (tz_strings[i]);
17075
17076 for (t = 0; t <= time_t_max - delta; t += delta)
17077 if (! mktime_test (t))
17078 return 1;
17079 if (! (mktime_test ((time_t) 1)
17080 && mktime_test ((time_t) (60 * 60))
17081 && mktime_test ((time_t) (60 * 60 * 24))))
17082 return 1;
17083
17084 for (j = 1; 0 < j; j *= 2)
17085 if (! bigtime_test (j))
17086 return 1;
17087 if (! bigtime_test (j - 1))
17088 return 1;
17089 }
17090 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17091 }
17092 _ACEOF
17093 rm -f conftest$ac_exeext
17094 if { (ac_try="$ac_link"
17095 case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_link") 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17104 { (case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17107 esac
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_try") 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 ac_cv_func_working_mktime=yes
17114 else
17115 echo "$as_me: program exited with status $ac_status" >&5
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17118
17119 ( exit $ac_status )
17120 ac_cv_func_working_mktime=no
17121 fi
17122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17123 fi
17124
17125
17126 fi
17127 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17128 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17129 if test $ac_cv_func_working_mktime = no; then
17130 case " $LIBOBJS " in
17131 *" mktime.$ac_objext "* ) ;;
17132 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17133 ;;
17134 esac
17135
17136 fi
17137
17138 if test "$ac_cv_func_working_mktime" = no; then
17139
17140 cat >>confdefs.h <<\_ACEOF
17141 #define BROKEN_MKTIME 1
17142 _ACEOF
17143
17144 fi
17145
17146 ac_have_func=no # yes means we've found a way to get the load average.
17147
17148 # Make sure getloadavg.c is where it belongs, at configure-time.
17149 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17150 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17151 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17152 { (exit 1); exit 1; }; }
17153
17154 ac_save_LIBS=$LIBS
17155
17156 # Check for getloadavg, but be sure not to touch the cache variable.
17157 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17158 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17159 if test "${ac_cv_func_getloadavg+set}" = set; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 else
17162 cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h. */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17168 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17170 #define getloadavg innocuous_getloadavg
17171
17172 /* System header to define __stub macros and hopefully few prototypes,
17173 which can conflict with char getloadavg (); below.
17174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17175 <limits.h> exists even on freestanding compilers. */
17176
17177 #ifdef __STDC__
17178 # include <limits.h>
17179 #else
17180 # include <assert.h>
17181 #endif
17182
17183 #undef getloadavg
17184
17185 /* Override any GCC internal prototype to avoid an error.
17186 Use char because int might match the return type of a GCC
17187 builtin and then its argument prototype would still apply. */
17188 #ifdef __cplusplus
17189 extern "C"
17190 #endif
17191 char getloadavg ();
17192 /* The GNU C library defines this for functions which it implements
17193 to always fail with ENOSYS. Some functions are actually named
17194 something starting with __ and the normal name is an alias. */
17195 #if defined __stub_getloadavg || defined __stub___getloadavg
17196 choke me
17197 #endif
17198
17199 int
17200 main ()
17201 {
17202 return getloadavg ();
17203 ;
17204 return 0;
17205 }
17206 _ACEOF
17207 rm -f conftest.$ac_objext conftest$ac_exeext
17208 if { (ac_try="$ac_link"
17209 case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17212 esac
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_link") 2>conftest.er1
17215 ac_status=$?
17216 grep -v '^ *+' conftest.er1 >conftest.err
17217 rm -f conftest.er1
17218 cat conftest.err >&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } && {
17221 test -z "$ac_c_werror_flag" ||
17222 test ! -s conftest.err
17223 } && test -s conftest$ac_exeext &&
17224 $as_test_x conftest$ac_exeext; then
17225 ac_cv_func_getloadavg=yes
17226 else
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17229
17230 ac_cv_func_getloadavg=no
17231 fi
17232
17233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17234 conftest$ac_exeext conftest.$ac_ext
17235 fi
17236 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17237 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17238 if test $ac_cv_func_getloadavg = yes; then
17239 exit 0
17240 else
17241 exit 1
17242 fi
17243 ) && ac_have_func=yes
17244
17245 # On HPUX9, an unprivileged user can get load averages through this function.
17246
17247 for ac_func in pstat_getdynamic
17248 do
17249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255 cat >conftest.$ac_ext <<_ACEOF
17256 /* confdefs.h. */
17257 _ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17263 #define $ac_func innocuous_$ac_func
17264
17265 /* System header to define __stub macros and hopefully few prototypes,
17266 which can conflict with char $ac_func (); below.
17267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17268 <limits.h> exists even on freestanding compilers. */
17269
17270 #ifdef __STDC__
17271 # include <limits.h>
17272 #else
17273 # include <assert.h>
17274 #endif
17275
17276 #undef $ac_func
17277
17278 /* Override any GCC internal prototype to avoid an error.
17279 Use char because int might match the return type of a GCC
17280 builtin and then its argument prototype would still apply. */
17281 #ifdef __cplusplus
17282 extern "C"
17283 #endif
17284 char $ac_func ();
17285 /* The GNU C library defines this for functions which it implements
17286 to always fail with ENOSYS. Some functions are actually named
17287 something starting with __ and the normal name is an alias. */
17288 #if defined __stub_$ac_func || defined __stub___$ac_func
17289 choke me
17290 #endif
17291
17292 int
17293 main ()
17294 {
17295 return $ac_func ();
17296 ;
17297 return 0;
17298 }
17299 _ACEOF
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (ac_try="$ac_link"
17302 case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17305 esac
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_link") 2>conftest.er1
17308 ac_status=$?
17309 grep -v '^ *+' conftest.er1 >conftest.err
17310 rm -f conftest.er1
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && {
17314 test -z "$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17316 } && test -s conftest$ac_exeext &&
17317 $as_test_x conftest$ac_exeext; then
17318 eval "$as_ac_var=yes"
17319 else
17320 echo "$as_me: failed program was:" >&5
17321 sed 's/^/| /' conftest.$ac_ext >&5
17322
17323 eval "$as_ac_var=no"
17324 fi
17325
17326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17327 conftest$ac_exeext conftest.$ac_ext
17328 fi
17329 ac_res=`eval echo '${'$as_ac_var'}'`
17330 { echo "$as_me:$LINENO: result: $ac_res" >&5
17331 echo "${ECHO_T}$ac_res" >&6; }
17332 if test `eval echo '${'$as_ac_var'}'` = yes; then
17333 cat >>confdefs.h <<_ACEOF
17334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17335 _ACEOF
17336
17337 fi
17338 done
17339
17340
17341 # Solaris has libkstat which does not require root.
17342
17343 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17344 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17345 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348 ac_check_lib_save_LIBS=$LIBS
17349 LIBS="-lkstat $LIBS"
17350 cat >conftest.$ac_ext <<_ACEOF
17351 /* confdefs.h. */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17356
17357 /* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
17360 #ifdef __cplusplus
17361 extern "C"
17362 #endif
17363 char kstat_open ();
17364 int
17365 main ()
17366 {
17367 return kstat_open ();
17368 ;
17369 return 0;
17370 }
17371 _ACEOF
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_link") 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } && {
17386 test -z "$ac_c_werror_flag" ||
17387 test ! -s conftest.err
17388 } && test -s conftest$ac_exeext &&
17389 $as_test_x conftest$ac_exeext; then
17390 ac_cv_lib_kstat_kstat_open=yes
17391 else
17392 echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17394
17395 ac_cv_lib_kstat_kstat_open=no
17396 fi
17397
17398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17399 conftest$ac_exeext conftest.$ac_ext
17400 LIBS=$ac_check_lib_save_LIBS
17401 fi
17402 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17403 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17404 if test $ac_cv_lib_kstat_kstat_open = yes; then
17405 cat >>confdefs.h <<_ACEOF
17406 #define HAVE_LIBKSTAT 1
17407 _ACEOF
17408
17409 LIBS="-lkstat $LIBS"
17410
17411 fi
17412
17413 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17414
17415 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17416 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17417 # to get the right answer into the cache.
17418 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17419 if test $ac_have_func = no; then
17420 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17421 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17422 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 else
17425 ac_check_lib_save_LIBS=$LIBS
17426 LIBS="-lelf $LIBS"
17427 cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h. */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433
17434 /* Override any GCC internal prototype to avoid an error.
17435 Use char because int might match the return type of a GCC
17436 builtin and then its argument prototype would still apply. */
17437 #ifdef __cplusplus
17438 extern "C"
17439 #endif
17440 char elf_begin ();
17441 int
17442 main ()
17443 {
17444 return elf_begin ();
17445 ;
17446 return 0;
17447 }
17448 _ACEOF
17449 rm -f conftest.$ac_objext conftest$ac_exeext
17450 if { (ac_try="$ac_link"
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_link") 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); } && {
17463 test -z "$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17465 } && test -s conftest$ac_exeext &&
17466 $as_test_x conftest$ac_exeext; then
17467 ac_cv_lib_elf_elf_begin=yes
17468 else
17469 echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17471
17472 ac_cv_lib_elf_elf_begin=no
17473 fi
17474
17475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17476 conftest$ac_exeext conftest.$ac_ext
17477 LIBS=$ac_check_lib_save_LIBS
17478 fi
17479 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17480 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17481 if test $ac_cv_lib_elf_elf_begin = yes; then
17482 LIBS="-lelf $LIBS"
17483 fi
17484
17485 fi
17486 if test $ac_have_func = no; then
17487 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17488 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17489 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492 ac_check_lib_save_LIBS=$LIBS
17493 LIBS="-lkvm $LIBS"
17494 cat >conftest.$ac_ext <<_ACEOF
17495 /* confdefs.h. */
17496 _ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500
17501 /* Override any GCC internal prototype to avoid an error.
17502 Use char because int might match the return type of a GCC
17503 builtin and then its argument prototype would still apply. */
17504 #ifdef __cplusplus
17505 extern "C"
17506 #endif
17507 char kvm_open ();
17508 int
17509 main ()
17510 {
17511 return kvm_open ();
17512 ;
17513 return 0;
17514 }
17515 _ACEOF
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (ac_try="$ac_link"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_link") 2>conftest.er1
17524 ac_status=$?
17525 grep -v '^ *+' conftest.er1 >conftest.err
17526 rm -f conftest.er1
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } && {
17530 test -z "$ac_c_werror_flag" ||
17531 test ! -s conftest.err
17532 } && test -s conftest$ac_exeext &&
17533 $as_test_x conftest$ac_exeext; then
17534 ac_cv_lib_kvm_kvm_open=yes
17535 else
17536 echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17538
17539 ac_cv_lib_kvm_kvm_open=no
17540 fi
17541
17542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17543 conftest$ac_exeext conftest.$ac_ext
17544 LIBS=$ac_check_lib_save_LIBS
17545 fi
17546 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17547 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17548 if test $ac_cv_lib_kvm_kvm_open = yes; then
17549 LIBS="-lkvm $LIBS"
17550 fi
17551
17552 # Check for the 4.4BSD definition of getloadavg.
17553 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17554 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17555 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558 ac_check_lib_save_LIBS=$LIBS
17559 LIBS="-lutil $LIBS"
17560 cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h. */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566
17567 /* Override any GCC internal prototype to avoid an error.
17568 Use char because int might match the return type of a GCC
17569 builtin and then its argument prototype would still apply. */
17570 #ifdef __cplusplus
17571 extern "C"
17572 #endif
17573 char getloadavg ();
17574 int
17575 main ()
17576 {
17577 return getloadavg ();
17578 ;
17579 return 0;
17580 }
17581 _ACEOF
17582 rm -f conftest.$ac_objext conftest$ac_exeext
17583 if { (ac_try="$ac_link"
17584 case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_link") 2>conftest.er1
17590 ac_status=$?
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } && {
17596 test -z "$ac_c_werror_flag" ||
17597 test ! -s conftest.err
17598 } && test -s conftest$ac_exeext &&
17599 $as_test_x conftest$ac_exeext; then
17600 ac_cv_lib_util_getloadavg=yes
17601 else
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17604
17605 ac_cv_lib_util_getloadavg=no
17606 fi
17607
17608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17609 conftest$ac_exeext conftest.$ac_ext
17610 LIBS=$ac_check_lib_save_LIBS
17611 fi
17612 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17613 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17614 if test $ac_cv_lib_util_getloadavg = yes; then
17615 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17616 fi
17617
17618 fi
17619
17620 if test $ac_have_func = no; then
17621 # There is a commonly available library for RS/6000 AIX.
17622 # Since it is not a standard part of AIX, it might be installed locally.
17623 ac_getloadavg_LIBS=$LIBS
17624 LIBS="-L/usr/local/lib $LIBS"
17625 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17626 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17627 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 else
17630 ac_check_lib_save_LIBS=$LIBS
17631 LIBS="-lgetloadavg $LIBS"
17632 cat >conftest.$ac_ext <<_ACEOF
17633 /* confdefs.h. */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17638
17639 /* Override any GCC internal prototype to avoid an error.
17640 Use char because int might match the return type of a GCC
17641 builtin and then its argument prototype would still apply. */
17642 #ifdef __cplusplus
17643 extern "C"
17644 #endif
17645 char getloadavg ();
17646 int
17647 main ()
17648 {
17649 return getloadavg ();
17650 ;
17651 return 0;
17652 }
17653 _ACEOF
17654 rm -f conftest.$ac_objext conftest$ac_exeext
17655 if { (ac_try="$ac_link"
17656 case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_link") 2>conftest.er1
17662 ac_status=$?
17663 grep -v '^ *+' conftest.er1 >conftest.err
17664 rm -f conftest.er1
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } && {
17668 test -z "$ac_c_werror_flag" ||
17669 test ! -s conftest.err
17670 } && test -s conftest$ac_exeext &&
17671 $as_test_x conftest$ac_exeext; then
17672 ac_cv_lib_getloadavg_getloadavg=yes
17673 else
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17676
17677 ac_cv_lib_getloadavg_getloadavg=no
17678 fi
17679
17680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17681 conftest$ac_exeext conftest.$ac_ext
17682 LIBS=$ac_check_lib_save_LIBS
17683 fi
17684 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17685 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17686 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17687 LIBS="-lgetloadavg $LIBS"
17688 else
17689 LIBS=$ac_getloadavg_LIBS
17690 fi
17691
17692 fi
17693
17694 # Make sure it is really in the library, if we think we found it,
17695 # otherwise set up the replacement function.
17696
17697 for ac_func in getloadavg
17698 do
17699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 else
17705 cat >conftest.$ac_ext <<_ACEOF
17706 /* confdefs.h. */
17707 _ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17713 #define $ac_func innocuous_$ac_func
17714
17715 /* System header to define __stub macros and hopefully few prototypes,
17716 which can conflict with char $ac_func (); below.
17717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17718 <limits.h> exists even on freestanding compilers. */
17719
17720 #ifdef __STDC__
17721 # include <limits.h>
17722 #else
17723 # include <assert.h>
17724 #endif
17725
17726 #undef $ac_func
17727
17728 /* Override any GCC internal prototype to avoid an error.
17729 Use char because int might match the return type of a GCC
17730 builtin and then its argument prototype would still apply. */
17731 #ifdef __cplusplus
17732 extern "C"
17733 #endif
17734 char $ac_func ();
17735 /* The GNU C library defines this for functions which it implements
17736 to always fail with ENOSYS. Some functions are actually named
17737 something starting with __ and the normal name is an alias. */
17738 #if defined __stub_$ac_func || defined __stub___$ac_func
17739 choke me
17740 #endif
17741
17742 int
17743 main ()
17744 {
17745 return $ac_func ();
17746 ;
17747 return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (ac_try="$ac_link"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17755 esac
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_link") 2>conftest.er1
17758 ac_status=$?
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } && {
17764 test -z "$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17766 } && test -s conftest$ac_exeext &&
17767 $as_test_x conftest$ac_exeext; then
17768 eval "$as_ac_var=yes"
17769 else
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773 eval "$as_ac_var=no"
17774 fi
17775
17776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17777 conftest$ac_exeext conftest.$ac_ext
17778 fi
17779 ac_res=`eval echo '${'$as_ac_var'}'`
17780 { echo "$as_me:$LINENO: result: $ac_res" >&5
17781 echo "${ECHO_T}$ac_res" >&6; }
17782 if test `eval echo '${'$as_ac_var'}'` = yes; then
17783 cat >>confdefs.h <<_ACEOF
17784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17785 _ACEOF
17786
17787 else
17788 case " $LIBOBJS " in
17789 *" getloadavg.$ac_objext "* ) ;;
17790 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17791 ;;
17792 esac
17793
17794
17795 cat >>confdefs.h <<\_ACEOF
17796 #define C_GETLOADAVG 1
17797 _ACEOF
17798
17799 # Figure out what our getloadavg.c needs.
17800 ac_have_func=no
17801 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17802 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17803 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17804 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 fi
17807 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17808 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17809 else
17810 # Is the header compilable?
17811 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17812 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17813 cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h. */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17819 $ac_includes_default
17820 #include <sys/dg_sys_info.h>
17821 _ACEOF
17822 rm -f conftest.$ac_objext
17823 if { (ac_try="$ac_compile"
17824 case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827 esac
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_compile") 2>conftest.er1
17830 ac_status=$?
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } && {
17836 test -z "$ac_c_werror_flag" ||
17837 test ! -s conftest.err
17838 } && test -s conftest.$ac_objext; then
17839 ac_header_compiler=yes
17840 else
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17843
17844 ac_header_compiler=no
17845 fi
17846
17847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17849 echo "${ECHO_T}$ac_header_compiler" >&6; }
17850
17851 # Is the header present?
17852 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17853 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h. */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 #include <sys/dg_sys_info.h>
17861 _ACEOF
17862 if { (ac_try="$ac_cpp conftest.$ac_ext"
17863 case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17866 esac
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } >/dev/null && {
17875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17876 test ! -s conftest.err
17877 }; then
17878 ac_header_preproc=yes
17879 else
17880 echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17882
17883 ac_header_preproc=no
17884 fi
17885
17886 rm -f conftest.err conftest.$ac_ext
17887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17888 echo "${ECHO_T}$ac_header_preproc" >&6; }
17889
17890 # So? What about this header?
17891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17892 yes:no: )
17893 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17894 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17895 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17896 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17897 ac_header_preproc=yes
17898 ;;
17899 no:yes:* )
17900 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17901 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17903 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17904 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17905 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17906 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17907 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17908 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17909 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17910 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17911 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17912
17913 ;;
17914 esac
17915 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17916 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17917 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 else
17920 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17921 fi
17922 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17923 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17924
17925 fi
17926 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17927 ac_have_func=yes
17928
17929 cat >>confdefs.h <<\_ACEOF
17930 #define DGUX 1
17931 _ACEOF
17932
17933
17934 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17935 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17936 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17937 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 else
17939 ac_check_lib_save_LIBS=$LIBS
17940 LIBS="-ldgc $LIBS"
17941 cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h. */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947
17948 /* Override any GCC internal prototype to avoid an error.
17949 Use char because int might match the return type of a GCC
17950 builtin and then its argument prototype would still apply. */
17951 #ifdef __cplusplus
17952 extern "C"
17953 #endif
17954 char dg_sys_info ();
17955 int
17956 main ()
17957 {
17958 return dg_sys_info ();
17959 ;
17960 return 0;
17961 }
17962 _ACEOF
17963 rm -f conftest.$ac_objext conftest$ac_exeext
17964 if { (ac_try="$ac_link"
17965 case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17968 esac
17969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970 (eval "$ac_link") 2>conftest.er1
17971 ac_status=$?
17972 grep -v '^ *+' conftest.er1 >conftest.err
17973 rm -f conftest.er1
17974 cat conftest.err >&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } && {
17977 test -z "$ac_c_werror_flag" ||
17978 test ! -s conftest.err
17979 } && test -s conftest$ac_exeext &&
17980 $as_test_x conftest$ac_exeext; then
17981 ac_cv_lib_dgc_dg_sys_info=yes
17982 else
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17985
17986 ac_cv_lib_dgc_dg_sys_info=no
17987 fi
17988
17989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17990 conftest$ac_exeext conftest.$ac_ext
17991 LIBS=$ac_check_lib_save_LIBS
17992 fi
17993 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17994 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17995 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17996 cat >>confdefs.h <<_ACEOF
17997 #define HAVE_LIBDGC 1
17998 _ACEOF
17999
18000 LIBS="-ldgc $LIBS"
18001
18002 fi
18003
18004 fi
18005
18006
18007
18008 if test "${ac_cv_header_locale_h+set}" = set; then
18009 { echo "$as_me:$LINENO: checking for locale.h" >&5
18010 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18011 if test "${ac_cv_header_locale_h+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 fi
18014 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18015 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18016 else
18017 # Is the header compilable?
18018 { echo "$as_me:$LINENO: checking locale.h usability" >&5
18019 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
18020 cat >conftest.$ac_ext <<_ACEOF
18021 /* confdefs.h. */
18022 _ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h. */
18026 $ac_includes_default
18027 #include <locale.h>
18028 _ACEOF
18029 rm -f conftest.$ac_objext
18030 if { (ac_try="$ac_compile"
18031 case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_compile") 2>conftest.er1
18037 ac_status=$?
18038 grep -v '^ *+' conftest.er1 >conftest.err
18039 rm -f conftest.er1
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } && {
18043 test -z "$ac_c_werror_flag" ||
18044 test ! -s conftest.err
18045 } && test -s conftest.$ac_objext; then
18046 ac_header_compiler=yes
18047 else
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051 ac_header_compiler=no
18052 fi
18053
18054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18056 echo "${ECHO_T}$ac_header_compiler" >&6; }
18057
18058 # Is the header present?
18059 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18060 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18061 cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h. */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18067 #include <locale.h>
18068 _ACEOF
18069 if { (ac_try="$ac_cpp conftest.$ac_ext"
18070 case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18073 esac
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18076 ac_status=$?
18077 grep -v '^ *+' conftest.er1 >conftest.err
18078 rm -f conftest.er1
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } >/dev/null && {
18082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18083 test ! -s conftest.err
18084 }; then
18085 ac_header_preproc=yes
18086 else
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18089
18090 ac_header_preproc=no
18091 fi
18092
18093 rm -f conftest.err conftest.$ac_ext
18094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18095 echo "${ECHO_T}$ac_header_preproc" >&6; }
18096
18097 # So? What about this header?
18098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18099 yes:no: )
18100 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18101 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18102 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18103 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18104 ac_header_preproc=yes
18105 ;;
18106 no:yes:* )
18107 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18108 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18109 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18110 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18111 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18112 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18113 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18114 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18115 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18116 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18117 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18118 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18119
18120 ;;
18121 esac
18122 { echo "$as_me:$LINENO: checking for locale.h" >&5
18123 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18124 if test "${ac_cv_header_locale_h+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127 ac_cv_header_locale_h=$ac_header_preproc
18128 fi
18129 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18130 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18131
18132 fi
18133
18134
18135
18136 for ac_func in setlocale
18137 do
18138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 else
18144 cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h. */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18152 #define $ac_func innocuous_$ac_func
18153
18154 /* System header to define __stub macros and hopefully few prototypes,
18155 which can conflict with char $ac_func (); below.
18156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18157 <limits.h> exists even on freestanding compilers. */
18158
18159 #ifdef __STDC__
18160 # include <limits.h>
18161 #else
18162 # include <assert.h>
18163 #endif
18164
18165 #undef $ac_func
18166
18167 /* Override any GCC internal prototype to avoid an error.
18168 Use char because int might match the return type of a GCC
18169 builtin and then its argument prototype would still apply. */
18170 #ifdef __cplusplus
18171 extern "C"
18172 #endif
18173 char $ac_func ();
18174 /* The GNU C library defines this for functions which it implements
18175 to always fail with ENOSYS. Some functions are actually named
18176 something starting with __ and the normal name is an alias. */
18177 #if defined __stub_$ac_func || defined __stub___$ac_func
18178 choke me
18179 #endif
18180
18181 int
18182 main ()
18183 {
18184 return $ac_func ();
18185 ;
18186 return 0;
18187 }
18188 _ACEOF
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (ac_try="$ac_link"
18191 case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18194 esac
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_link") 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } && {
18203 test -z "$ac_c_werror_flag" ||
18204 test ! -s conftest.err
18205 } && test -s conftest$ac_exeext &&
18206 $as_test_x conftest$ac_exeext; then
18207 eval "$as_ac_var=yes"
18208 else
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18211
18212 eval "$as_ac_var=no"
18213 fi
18214
18215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18216 conftest$ac_exeext conftest.$ac_ext
18217 fi
18218 ac_res=`eval echo '${'$as_ac_var'}'`
18219 { echo "$as_me:$LINENO: result: $ac_res" >&5
18220 echo "${ECHO_T}$ac_res" >&6; }
18221 if test `eval echo '${'$as_ac_var'}'` = yes; then
18222 cat >>confdefs.h <<_ACEOF
18223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18224 _ACEOF
18225
18226 fi
18227 done
18228
18229
18230 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18231 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18232 # Irix 4.0.5F has the header but not the library.
18233 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18234 ac_have_func=yes
18235
18236 cat >>confdefs.h <<\_ACEOF
18237 #define SVR4 1
18238 _ACEOF
18239
18240 fi
18241
18242 if test $ac_have_func = no; then
18243 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18244 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18245 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18246 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 fi
18249 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18250 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18251 else
18252 # Is the header compilable?
18253 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18254 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18255 cat >conftest.$ac_ext <<_ACEOF
18256 /* confdefs.h. */
18257 _ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18261 $ac_includes_default
18262 #include <inq_stats/cpustats.h>
18263 _ACEOF
18264 rm -f conftest.$ac_objext
18265 if { (ac_try="$ac_compile"
18266 case "(($ac_try" in
18267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268 *) ac_try_echo=$ac_try;;
18269 esac
18270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271 (eval "$ac_compile") 2>conftest.er1
18272 ac_status=$?
18273 grep -v '^ *+' conftest.er1 >conftest.err
18274 rm -f conftest.er1
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } && {
18278 test -z "$ac_c_werror_flag" ||
18279 test ! -s conftest.err
18280 } && test -s conftest.$ac_objext; then
18281 ac_header_compiler=yes
18282 else
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18285
18286 ac_header_compiler=no
18287 fi
18288
18289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18291 echo "${ECHO_T}$ac_header_compiler" >&6; }
18292
18293 # Is the header present?
18294 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18295 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18296 cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h. */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18302 #include <inq_stats/cpustats.h>
18303 _ACEOF
18304 if { (ac_try="$ac_cpp conftest.$ac_ext"
18305 case "(($ac_try" in
18306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18308 esac
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18311 ac_status=$?
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } >/dev/null && {
18317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18318 test ! -s conftest.err
18319 }; then
18320 ac_header_preproc=yes
18321 else
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18324
18325 ac_header_preproc=no
18326 fi
18327
18328 rm -f conftest.err conftest.$ac_ext
18329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18330 echo "${ECHO_T}$ac_header_preproc" >&6; }
18331
18332 # So? What about this header?
18333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18334 yes:no: )
18335 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18336 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18337 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18338 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18339 ac_header_preproc=yes
18340 ;;
18341 no:yes:* )
18342 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18343 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18345 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18347 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18348 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18349 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18350 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18351 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18352 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18353 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18354
18355 ;;
18356 esac
18357 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18358 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18359 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18363 fi
18364 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18365 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18366
18367 fi
18368 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18369 ac_have_func=yes
18370
18371 cat >>confdefs.h <<\_ACEOF
18372 #define UMAX 1
18373 _ACEOF
18374
18375
18376 cat >>confdefs.h <<\_ACEOF
18377 #define UMAX4_3 1
18378 _ACEOF
18379
18380 fi
18381
18382
18383 fi
18384
18385 if test $ac_have_func = no; then
18386 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18387 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18388 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18389 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 fi
18392 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18393 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18394 else
18395 # Is the header compilable?
18396 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18397 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18398 cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h. */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18404 $ac_includes_default
18405 #include <sys/cpustats.h>
18406 _ACEOF
18407 rm -f conftest.$ac_objext
18408 if { (ac_try="$ac_compile"
18409 case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_compile") 2>conftest.er1
18415 ac_status=$?
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } && {
18421 test -z "$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 } && test -s conftest.$ac_objext; then
18424 ac_header_compiler=yes
18425 else
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429 ac_header_compiler=no
18430 fi
18431
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18434 echo "${ECHO_T}$ac_header_compiler" >&6; }
18435
18436 # Is the header present?
18437 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18438 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18439 cat >conftest.$ac_ext <<_ACEOF
18440 /* confdefs.h. */
18441 _ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h. */
18445 #include <sys/cpustats.h>
18446 _ACEOF
18447 if { (ac_try="$ac_cpp conftest.$ac_ext"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451 esac
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } >/dev/null && {
18460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18461 test ! -s conftest.err
18462 }; then
18463 ac_header_preproc=yes
18464 else
18465 echo "$as_me: failed program was:" >&5
18466 sed 's/^/| /' conftest.$ac_ext >&5
18467
18468 ac_header_preproc=no
18469 fi
18470
18471 rm -f conftest.err conftest.$ac_ext
18472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18473 echo "${ECHO_T}$ac_header_preproc" >&6; }
18474
18475 # So? What about this header?
18476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18477 yes:no: )
18478 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18479 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18480 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18481 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18482 ac_header_preproc=yes
18483 ;;
18484 no:yes:* )
18485 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18486 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18487 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18488 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18489 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18490 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18491 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18492 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18493 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18494 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18495 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18496 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18497
18498 ;;
18499 esac
18500 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18501 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18502 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18506 fi
18507 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18508 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18509
18510 fi
18511 if test $ac_cv_header_sys_cpustats_h = yes; then
18512 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18513 #define UMAX 1
18514 _ACEOF
18515
18516 fi
18517
18518
18519 fi
18520
18521 if test $ac_have_func = no; then
18522
18523 for ac_header in mach/mach.h
18524 do
18525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18531 fi
18532 ac_res=`eval echo '${'$as_ac_Header'}'`
18533 { echo "$as_me:$LINENO: result: $ac_res" >&5
18534 echo "${ECHO_T}$ac_res" >&6; }
18535 else
18536 # Is the header compilable?
18537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18539 cat >conftest.$ac_ext <<_ACEOF
18540 /* confdefs.h. */
18541 _ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18545 $ac_includes_default
18546 #include <$ac_header>
18547 _ACEOF
18548 rm -f conftest.$ac_objext
18549 if { (ac_try="$ac_compile"
18550 case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_compile") 2>conftest.er1
18556 ac_status=$?
18557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } && {
18562 test -z "$ac_c_werror_flag" ||
18563 test ! -s conftest.err
18564 } && test -s conftest.$ac_objext; then
18565 ac_header_compiler=yes
18566 else
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18569
18570 ac_header_compiler=no
18571 fi
18572
18573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18575 echo "${ECHO_T}$ac_header_compiler" >&6; }
18576
18577 # Is the header present?
18578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18580 cat >conftest.$ac_ext <<_ACEOF
18581 /* confdefs.h. */
18582 _ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18586 #include <$ac_header>
18587 _ACEOF
18588 if { (ac_try="$ac_cpp conftest.$ac_ext"
18589 case "(($ac_try" in
18590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591 *) ac_try_echo=$ac_try;;
18592 esac
18593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18595 ac_status=$?
18596 grep -v '^ *+' conftest.er1 >conftest.err
18597 rm -f conftest.er1
18598 cat conftest.err >&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } >/dev/null && {
18601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18602 test ! -s conftest.err
18603 }; then
18604 ac_header_preproc=yes
18605 else
18606 echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18608
18609 ac_header_preproc=no
18610 fi
18611
18612 rm -f conftest.err conftest.$ac_ext
18613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18614 echo "${ECHO_T}$ac_header_preproc" >&6; }
18615
18616 # So? What about this header?
18617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18618 yes:no: )
18619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18623 ac_header_preproc=yes
18624 ;;
18625 no:yes:* )
18626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18638
18639 ;;
18640 esac
18641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18644 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 else
18646 eval "$as_ac_Header=\$ac_header_preproc"
18647 fi
18648 ac_res=`eval echo '${'$as_ac_Header'}'`
18649 { echo "$as_me:$LINENO: result: $ac_res" >&5
18650 echo "${ECHO_T}$ac_res" >&6; }
18651
18652 fi
18653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18654 cat >>confdefs.h <<_ACEOF
18655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18656 _ACEOF
18657
18658 fi
18659
18660 done
18661
18662 fi
18663
18664
18665 for ac_header in nlist.h
18666 do
18667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18673 fi
18674 ac_res=`eval echo '${'$as_ac_Header'}'`
18675 { echo "$as_me:$LINENO: result: $ac_res" >&5
18676 echo "${ECHO_T}$ac_res" >&6; }
18677 else
18678 # Is the header compilable?
18679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18681 cat >conftest.$ac_ext <<_ACEOF
18682 /* confdefs.h. */
18683 _ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h. */
18687 $ac_includes_default
18688 #include <$ac_header>
18689 _ACEOF
18690 rm -f conftest.$ac_objext
18691 if { (ac_try="$ac_compile"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_compile") 2>conftest.er1
18698 ac_status=$?
18699 grep -v '^ *+' conftest.er1 >conftest.err
18700 rm -f conftest.er1
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } && {
18704 test -z "$ac_c_werror_flag" ||
18705 test ! -s conftest.err
18706 } && test -s conftest.$ac_objext; then
18707 ac_header_compiler=yes
18708 else
18709 echo "$as_me: failed program was:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18711
18712 ac_header_compiler=no
18713 fi
18714
18715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18717 echo "${ECHO_T}$ac_header_compiler" >&6; }
18718
18719 # Is the header present?
18720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18722 cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h. */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18728 #include <$ac_header>
18729 _ACEOF
18730 if { (ac_try="$ac_cpp conftest.$ac_ext"
18731 case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18734 esac
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18737 ac_status=$?
18738 grep -v '^ *+' conftest.er1 >conftest.err
18739 rm -f conftest.er1
18740 cat conftest.err >&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } >/dev/null && {
18743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18744 test ! -s conftest.err
18745 }; then
18746 ac_header_preproc=yes
18747 else
18748 echo "$as_me: failed program was:" >&5
18749 sed 's/^/| /' conftest.$ac_ext >&5
18750
18751 ac_header_preproc=no
18752 fi
18753
18754 rm -f conftest.err conftest.$ac_ext
18755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18756 echo "${ECHO_T}$ac_header_preproc" >&6; }
18757
18758 # So? What about this header?
18759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18760 yes:no: )
18761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18765 ac_header_preproc=yes
18766 ;;
18767 no:yes:* )
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18780
18781 ;;
18782 esac
18783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 else
18788 eval "$as_ac_Header=\$ac_header_preproc"
18789 fi
18790 ac_res=`eval echo '${'$as_ac_Header'}'`
18791 { echo "$as_me:$LINENO: result: $ac_res" >&5
18792 echo "${ECHO_T}$ac_res" >&6; }
18793
18794 fi
18795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18796 cat >>confdefs.h <<_ACEOF
18797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18798 _ACEOF
18799 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18800 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18801 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 else
18804 cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h. */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 #include <nlist.h>
18811
18812 int
18813 main ()
18814 {
18815 static struct nlist ac_aggr;
18816 if (ac_aggr.n_un.n_name)
18817 return 0;
18818 ;
18819 return 0;
18820 }
18821 _ACEOF
18822 rm -f conftest.$ac_objext
18823 if { (ac_try="$ac_compile"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_compile") 2>conftest.er1
18830 ac_status=$?
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest.$ac_objext; then
18839 ac_cv_member_struct_nlist_n_un_n_name=yes
18840 else
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18843
18844 cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h. */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18850 #include <nlist.h>
18851
18852 int
18853 main ()
18854 {
18855 static struct nlist ac_aggr;
18856 if (sizeof ac_aggr.n_un.n_name)
18857 return 0;
18858 ;
18859 return 0;
18860 }
18861 _ACEOF
18862 rm -f conftest.$ac_objext
18863 if { (ac_try="$ac_compile"
18864 case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18867 esac
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_compile") 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest.$ac_objext; then
18879 ac_cv_member_struct_nlist_n_un_n_name=yes
18880 else
18881 echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18883
18884 ac_cv_member_struct_nlist_n_un_n_name=no
18885 fi
18886
18887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18888 fi
18889
18890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891 fi
18892 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18893 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18894 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18895
18896 cat >>confdefs.h <<_ACEOF
18897 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18898 _ACEOF
18899
18900
18901 cat >>confdefs.h <<\_ACEOF
18902 #define NLIST_NAME_UNION 1
18903 _ACEOF
18904
18905 fi
18906
18907
18908 fi
18909
18910 done
18911
18912 fi
18913 done
18914
18915
18916 # Some definitions of getloadavg require that the program be installed setgid.
18917 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18918 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18919 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18920 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 else
18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h. */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18929 #ifdef LDAV_PRIVILEGED
18930 Yowza Am I SETGID yet
18931 #endif
18932 _ACEOF
18933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18934 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18935 ac_cv_func_getloadavg_setgid=yes
18936 else
18937 ac_cv_func_getloadavg_setgid=no
18938 fi
18939 rm -f conftest*
18940
18941 fi
18942 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18943 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18944 if test $ac_cv_func_getloadavg_setgid = yes; then
18945 NEED_SETGID=true
18946
18947 cat >>confdefs.h <<\_ACEOF
18948 #define GETLOADAVG_PRIVILEGED 1
18949 _ACEOF
18950
18951 else
18952 NEED_SETGID=false
18953 fi
18954
18955 if test $ac_cv_func_getloadavg_setgid = yes; then
18956 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18957 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18958 if test "${ac_cv_group_kmem+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 else
18961 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18962 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18963 # If we got an error (system does not support symlinks), try without -L.
18964 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18965 ac_cv_group_kmem=`echo $ac_ls_output \
18966 | sed -ne 's/[ ][ ]*/ /g;
18967 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18968 / /s/.* //;p;'`
18969
18970 fi
18971 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18972 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18973 KMEM_GROUP=$ac_cv_group_kmem
18974 fi
18975 if test "x$ac_save_LIBS" = x; then
18976 GETLOADAVG_LIBS=$LIBS
18977 else
18978 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18979 fi
18980 LIBS=$ac_save_LIBS
18981
18982
18983
18984 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18985 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18986 if test "${ac_cv_sys_largefile_source+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18988 else
18989 while :; do
18990 cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h. */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18996 #include <stdio.h>
18997 int
18998 main ()
18999 {
19000 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19001 ;
19002 return 0;
19003 }
19004 _ACEOF
19005 rm -f conftest.$ac_objext conftest$ac_exeext
19006 if { (ac_try="$ac_link"
19007 case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19010 esac
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_link") 2>conftest.er1
19013 ac_status=$?
19014 grep -v '^ *+' conftest.er1 >conftest.err
19015 rm -f conftest.er1
19016 cat conftest.err >&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } && {
19019 test -z "$ac_c_werror_flag" ||
19020 test ! -s conftest.err
19021 } && test -s conftest$ac_exeext &&
19022 $as_test_x conftest$ac_exeext; then
19023 ac_cv_sys_largefile_source=no; break
19024 else
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19027
19028
19029 fi
19030
19031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19032 conftest$ac_exeext conftest.$ac_ext
19033 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h. */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 #define _LARGEFILE_SOURCE 1
19040 #include <stdio.h>
19041 int
19042 main ()
19043 {
19044 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19045 ;
19046 return 0;
19047 }
19048 _ACEOF
19049 rm -f conftest.$ac_objext conftest$ac_exeext
19050 if { (ac_try="$ac_link"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19054 esac
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_link") 2>conftest.er1
19057 ac_status=$?
19058 grep -v '^ *+' conftest.er1 >conftest.err
19059 rm -f conftest.er1
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } && {
19063 test -z "$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 } && test -s conftest$ac_exeext &&
19066 $as_test_x conftest$ac_exeext; then
19067 ac_cv_sys_largefile_source=1; break
19068 else
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19071
19072
19073 fi
19074
19075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19076 conftest$ac_exeext conftest.$ac_ext
19077 ac_cv_sys_largefile_source=unknown
19078 break
19079 done
19080 fi
19081 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19082 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19083 case $ac_cv_sys_largefile_source in #(
19084 no | unknown) ;;
19085 *)
19086 cat >>confdefs.h <<_ACEOF
19087 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19088 _ACEOF
19089 ;;
19090 esac
19091 rm -f conftest*
19092
19093 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19094 # in glibc 2.1.3, but that breaks too many other things.
19095 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19096 if test $ac_cv_sys_largefile_source != unknown; then
19097
19098 cat >>confdefs.h <<\_ACEOF
19099 #define HAVE_FSEEKO 1
19100 _ACEOF
19101
19102 fi
19103
19104
19105 # Configure getopt.
19106 # getopt.m4 serial 10
19107
19108 # The getopt module assume you want GNU getopt, with getopt_long etc,
19109 # rather than vanilla POSIX getopt. This means your your code should
19110 # always include <getopt.h> for the getopt prototypes.
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122 # Prerequisites of lib/getopt*.
19123
19124
19125
19126
19127 GETOPT_H=
19128
19129 for ac_header in getopt.h
19130 do
19131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 fi
19138 ac_res=`eval echo '${'$as_ac_Header'}'`
19139 { echo "$as_me:$LINENO: result: $ac_res" >&5
19140 echo "${ECHO_T}$ac_res" >&6; }
19141 else
19142 # Is the header compilable?
19143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19145 cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h. */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 $ac_includes_default
19152 #include <$ac_header>
19153 _ACEOF
19154 rm -f conftest.$ac_objext
19155 if { (ac_try="$ac_compile"
19156 case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19159 esac
19160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19161 (eval "$ac_compile") 2>conftest.er1
19162 ac_status=$?
19163 grep -v '^ *+' conftest.er1 >conftest.err
19164 rm -f conftest.er1
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } && {
19168 test -z "$ac_c_werror_flag" ||
19169 test ! -s conftest.err
19170 } && test -s conftest.$ac_objext; then
19171 ac_header_compiler=yes
19172 else
19173 echo "$as_me: failed program was:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19175
19176 ac_header_compiler=no
19177 fi
19178
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19181 echo "${ECHO_T}$ac_header_compiler" >&6; }
19182
19183 # Is the header present?
19184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19186 cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h. */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192 #include <$ac_header>
19193 _ACEOF
19194 if { (ac_try="$ac_cpp conftest.$ac_ext"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19201 ac_status=$?
19202 grep -v '^ *+' conftest.er1 >conftest.err
19203 rm -f conftest.er1
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } >/dev/null && {
19207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19209 }; then
19210 ac_header_preproc=yes
19211 else
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19214
19215 ac_header_preproc=no
19216 fi
19217
19218 rm -f conftest.err conftest.$ac_ext
19219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19220 echo "${ECHO_T}$ac_header_preproc" >&6; }
19221
19222 # So? What about this header?
19223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19224 yes:no: )
19225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19229 ac_header_preproc=yes
19230 ;;
19231 no:yes:* )
19232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19244
19245 ;;
19246 esac
19247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19251 else
19252 eval "$as_ac_Header=\$ac_header_preproc"
19253 fi
19254 ac_res=`eval echo '${'$as_ac_Header'}'`
19255 { echo "$as_me:$LINENO: result: $ac_res" >&5
19256 echo "${ECHO_T}$ac_res" >&6; }
19257
19258 fi
19259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19260 cat >>confdefs.h <<_ACEOF
19261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19262 _ACEOF
19263
19264 else
19265 GETOPT_H=getopt.h
19266 fi
19267
19268 done
19269
19270 if test -z "$GETOPT_H"; then
19271
19272 for ac_func in getopt_long_only
19273 do
19274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19279 else
19280 cat >conftest.$ac_ext <<_ACEOF
19281 /* confdefs.h. */
19282 _ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h. */
19286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19288 #define $ac_func innocuous_$ac_func
19289
19290 /* System header to define __stub macros and hopefully few prototypes,
19291 which can conflict with char $ac_func (); below.
19292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19293 <limits.h> exists even on freestanding compilers. */
19294
19295 #ifdef __STDC__
19296 # include <limits.h>
19297 #else
19298 # include <assert.h>
19299 #endif
19300
19301 #undef $ac_func
19302
19303 /* Override any GCC internal prototype to avoid an error.
19304 Use char because int might match the return type of a GCC
19305 builtin and then its argument prototype would still apply. */
19306 #ifdef __cplusplus
19307 extern "C"
19308 #endif
19309 char $ac_func ();
19310 /* The GNU C library defines this for functions which it implements
19311 to always fail with ENOSYS. Some functions are actually named
19312 something starting with __ and the normal name is an alias. */
19313 #if defined __stub_$ac_func || defined __stub___$ac_func
19314 choke me
19315 #endif
19316
19317 int
19318 main ()
19319 {
19320 return $ac_func ();
19321 ;
19322 return 0;
19323 }
19324 _ACEOF
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (ac_try="$ac_link"
19327 case "(($ac_try" in
19328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329 *) ac_try_echo=$ac_try;;
19330 esac
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332 (eval "$ac_link") 2>conftest.er1
19333 ac_status=$?
19334 grep -v '^ *+' conftest.er1 >conftest.err
19335 rm -f conftest.er1
19336 cat conftest.err >&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); } && {
19339 test -z "$ac_c_werror_flag" ||
19340 test ! -s conftest.err
19341 } && test -s conftest$ac_exeext &&
19342 $as_test_x conftest$ac_exeext; then
19343 eval "$as_ac_var=yes"
19344 else
19345 echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19347
19348 eval "$as_ac_var=no"
19349 fi
19350
19351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19352 conftest$ac_exeext conftest.$ac_ext
19353 fi
19354 ac_res=`eval echo '${'$as_ac_var'}'`
19355 { echo "$as_me:$LINENO: result: $ac_res" >&5
19356 echo "${ECHO_T}$ac_res" >&6; }
19357 if test `eval echo '${'$as_ac_var'}'` = yes; then
19358 cat >>confdefs.h <<_ACEOF
19359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19360 _ACEOF
19361
19362 else
19363 GETOPT_H=getopt.h
19364 fi
19365 done
19366
19367 fi
19368
19369 if test -z "$GETOPT_H"; then
19370 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19371 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19372 if test "${ac_cv_have_decl_optreset+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 else
19375 cat >conftest.$ac_ext <<_ACEOF
19376 /* confdefs.h. */
19377 _ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19381 #include <getopt.h>
19382
19383 int
19384 main ()
19385 {
19386 #ifndef optreset
19387 (void) optreset;
19388 #endif
19389
19390 ;
19391 return 0;
19392 }
19393 _ACEOF
19394 rm -f conftest.$ac_objext
19395 if { (ac_try="$ac_compile"
19396 case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19399 esac
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_compile") 2>conftest.er1
19402 ac_status=$?
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } && {
19408 test -z "$ac_c_werror_flag" ||
19409 test ! -s conftest.err
19410 } && test -s conftest.$ac_objext; then
19411 ac_cv_have_decl_optreset=yes
19412 else
19413 echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19415
19416 ac_cv_have_decl_optreset=no
19417 fi
19418
19419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19420 fi
19421 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19422 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19423 if test $ac_cv_have_decl_optreset = yes; then
19424 GETOPT_H=getopt.h
19425 fi
19426
19427 fi
19428
19429 if test -z "$GETOPT_H"; then
19430 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19431 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19432 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435 if test "$cross_compiling" = yes; then
19436 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19437 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19438 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19439 echo $ECHO_N "(cached) $ECHO_C" >&6
19440 else
19441 cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h. */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 #include <getopt.h>
19448
19449 int
19450 main ()
19451 {
19452 #ifndef getopt_clip
19453 (void) getopt_clip;
19454 #endif
19455
19456 ;
19457 return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext
19461 if { (ac_try="$ac_compile"
19462 case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19465 esac
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_compile") 2>conftest.er1
19468 ac_status=$?
19469 grep -v '^ *+' conftest.er1 >conftest.err
19470 rm -f conftest.er1
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } && {
19474 test -z "$ac_c_werror_flag" ||
19475 test ! -s conftest.err
19476 } && test -s conftest.$ac_objext; then
19477 ac_cv_have_decl_getopt_clip=yes
19478 else
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19481
19482 ac_cv_have_decl_getopt_clip=no
19483 fi
19484
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19486 fi
19487 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19488 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19489 if test $ac_cv_have_decl_getopt_clip = yes; then
19490 gl_cv_func_gnu_getopt=no
19491 else
19492 gl_cv_func_gnu_getopt=yes
19493 fi
19494
19495 else
19496 cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h. */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 #include <getopt.h>
19503 int
19504 main ()
19505 {
19506
19507 char *myargv[3];
19508 myargv[0] = "conftest";
19509 myargv[1] = "-+";
19510 myargv[2] = 0;
19511 return getopt (2, myargv, "+a") != '?';
19512
19513 ;
19514 return 0;
19515 }
19516 _ACEOF
19517 rm -f conftest$ac_exeext
19518 if { (ac_try="$ac_link"
19519 case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_link") 2>&5
19525 ac_status=$?
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19528 { (case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19531 esac
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_try") 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537 gl_cv_func_gnu_getopt=yes
19538 else
19539 echo "$as_me: program exited with status $ac_status" >&5
19540 echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19542
19543 ( exit $ac_status )
19544 gl_cv_func_gnu_getopt=no
19545 fi
19546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19547 fi
19548
19549
19550 fi
19551 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19552 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19553 if test "$gl_cv_func_gnu_getopt" = "no"; then
19554 GETOPT_H=getopt.h
19555 fi
19556 fi
19557
19558
19559
19560 if test -n "$GETOPT_H"; then
19561
19562
19563 GETOPT_H=getopt.h
19564
19565 cat >>confdefs.h <<\_ACEOF
19566 #define __GETOPT_PREFIX rpl_
19567 _ACEOF
19568
19569
19570
19571 :
19572 GETOPTOBJS='getopt.o getopt1.o'
19573
19574 fi
19575
19576
19577
19578
19579 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19580 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19581 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19582 echo $ECHO_N "(cached) $ECHO_C" >&6
19583 else
19584 # Use it with a single arg.
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h. */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 $ac_includes_default
19592 int
19593 main ()
19594 {
19595 getpgrp (0);
19596 ;
19597 return 0;
19598 }
19599 _ACEOF
19600 rm -f conftest.$ac_objext
19601 if { (ac_try="$ac_compile"
19602 case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605 esac
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_compile") 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } && {
19614 test -z "$ac_c_werror_flag" ||
19615 test ! -s conftest.err
19616 } && test -s conftest.$ac_objext; then
19617 ac_cv_func_getpgrp_void=no
19618 else
19619 echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19621
19622 ac_cv_func_getpgrp_void=yes
19623 fi
19624
19625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19626
19627 fi
19628 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19629 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19630 if test $ac_cv_func_getpgrp_void = yes; then
19631
19632 cat >>confdefs.h <<\_ACEOF
19633 #define GETPGRP_VOID 1
19634 _ACEOF
19635
19636 fi
19637
19638
19639
19640 for ac_func in strftime
19641 do
19642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648 cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h. */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19656 #define $ac_func innocuous_$ac_func
19657
19658 /* System header to define __stub macros and hopefully few prototypes,
19659 which can conflict with char $ac_func (); below.
19660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19661 <limits.h> exists even on freestanding compilers. */
19662
19663 #ifdef __STDC__
19664 # include <limits.h>
19665 #else
19666 # include <assert.h>
19667 #endif
19668
19669 #undef $ac_func
19670
19671 /* Override any GCC internal prototype to avoid an error.
19672 Use char because int might match the return type of a GCC
19673 builtin and then its argument prototype would still apply. */
19674 #ifdef __cplusplus
19675 extern "C"
19676 #endif
19677 char $ac_func ();
19678 /* The GNU C library defines this for functions which it implements
19679 to always fail with ENOSYS. Some functions are actually named
19680 something starting with __ and the normal name is an alias. */
19681 #if defined __stub_$ac_func || defined __stub___$ac_func
19682 choke me
19683 #endif
19684
19685 int
19686 main ()
19687 {
19688 return $ac_func ();
19689 ;
19690 return 0;
19691 }
19692 _ACEOF
19693 rm -f conftest.$ac_objext conftest$ac_exeext
19694 if { (ac_try="$ac_link"
19695 case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19698 esac
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700 (eval "$ac_link") 2>conftest.er1
19701 ac_status=$?
19702 grep -v '^ *+' conftest.er1 >conftest.err
19703 rm -f conftest.er1
19704 cat conftest.err >&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); } && {
19707 test -z "$ac_c_werror_flag" ||
19708 test ! -s conftest.err
19709 } && test -s conftest$ac_exeext &&
19710 $as_test_x conftest$ac_exeext; then
19711 eval "$as_ac_var=yes"
19712 else
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 eval "$as_ac_var=no"
19717 fi
19718
19719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19720 conftest$ac_exeext conftest.$ac_ext
19721 fi
19722 ac_res=`eval echo '${'$as_ac_var'}'`
19723 { echo "$as_me:$LINENO: result: $ac_res" >&5
19724 echo "${ECHO_T}$ac_res" >&6; }
19725 if test `eval echo '${'$as_ac_var'}'` = yes; then
19726 cat >>confdefs.h <<_ACEOF
19727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19728 _ACEOF
19729
19730 else
19731 # strftime is in -lintl on SCO UNIX.
19732 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19733 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19734 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19735 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 else
19737 ac_check_lib_save_LIBS=$LIBS
19738 LIBS="-lintl $LIBS"
19739 cat >conftest.$ac_ext <<_ACEOF
19740 /* confdefs.h. */
19741 _ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19745
19746 /* Override any GCC internal prototype to avoid an error.
19747 Use char because int might match the return type of a GCC
19748 builtin and then its argument prototype would still apply. */
19749 #ifdef __cplusplus
19750 extern "C"
19751 #endif
19752 char strftime ();
19753 int
19754 main ()
19755 {
19756 return strftime ();
19757 ;
19758 return 0;
19759 }
19760 _ACEOF
19761 rm -f conftest.$ac_objext conftest$ac_exeext
19762 if { (ac_try="$ac_link"
19763 case "(($ac_try" in
19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765 *) ac_try_echo=$ac_try;;
19766 esac
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768 (eval "$ac_link") 2>conftest.er1
19769 ac_status=$?
19770 grep -v '^ *+' conftest.er1 >conftest.err
19771 rm -f conftest.er1
19772 cat conftest.err >&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } && {
19775 test -z "$ac_c_werror_flag" ||
19776 test ! -s conftest.err
19777 } && test -s conftest$ac_exeext &&
19778 $as_test_x conftest$ac_exeext; then
19779 ac_cv_lib_intl_strftime=yes
19780 else
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19783
19784 ac_cv_lib_intl_strftime=no
19785 fi
19786
19787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19788 conftest$ac_exeext conftest.$ac_ext
19789 LIBS=$ac_check_lib_save_LIBS
19790 fi
19791 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19792 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19793 if test $ac_cv_lib_intl_strftime = yes; then
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_STRFTIME 1
19796 _ACEOF
19797
19798 LIBS="-lintl $LIBS"
19799 fi
19800
19801 fi
19802 done
19803
19804
19805 # UNIX98 PTYs.
19806
19807 for ac_func in grantpt
19808 do
19809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 else
19815 cat >conftest.$ac_ext <<_ACEOF
19816 /* confdefs.h. */
19817 _ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19823 #define $ac_func innocuous_$ac_func
19824
19825 /* System header to define __stub macros and hopefully few prototypes,
19826 which can conflict with char $ac_func (); below.
19827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19828 <limits.h> exists even on freestanding compilers. */
19829
19830 #ifdef __STDC__
19831 # include <limits.h>
19832 #else
19833 # include <assert.h>
19834 #endif
19835
19836 #undef $ac_func
19837
19838 /* Override any GCC internal prototype to avoid an error.
19839 Use char because int might match the return type of a GCC
19840 builtin and then its argument prototype would still apply. */
19841 #ifdef __cplusplus
19842 extern "C"
19843 #endif
19844 char $ac_func ();
19845 /* The GNU C library defines this for functions which it implements
19846 to always fail with ENOSYS. Some functions are actually named
19847 something starting with __ and the normal name is an alias. */
19848 #if defined __stub_$ac_func || defined __stub___$ac_func
19849 choke me
19850 #endif
19851
19852 int
19853 main ()
19854 {
19855 return $ac_func ();
19856 ;
19857 return 0;
19858 }
19859 _ACEOF
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (ac_try="$ac_link"
19862 case "(($ac_try" in
19863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19865 esac
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867 (eval "$ac_link") 2>conftest.er1
19868 ac_status=$?
19869 grep -v '^ *+' conftest.er1 >conftest.err
19870 rm -f conftest.er1
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } && {
19874 test -z "$ac_c_werror_flag" ||
19875 test ! -s conftest.err
19876 } && test -s conftest$ac_exeext &&
19877 $as_test_x conftest$ac_exeext; then
19878 eval "$as_ac_var=yes"
19879 else
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19882
19883 eval "$as_ac_var=no"
19884 fi
19885
19886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887 conftest$ac_exeext conftest.$ac_ext
19888 fi
19889 ac_res=`eval echo '${'$as_ac_var'}'`
19890 { echo "$as_me:$LINENO: result: $ac_res" >&5
19891 echo "${ECHO_T}$ac_res" >&6; }
19892 if test `eval echo '${'$as_ac_var'}'` = yes; then
19893 cat >>confdefs.h <<_ACEOF
19894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19895 _ACEOF
19896
19897 fi
19898 done
19899
19900
19901 # PTY-related GNU extensions.
19902
19903 for ac_func in getpt
19904 do
19905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19910 else
19911 cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h. */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19919 #define $ac_func innocuous_$ac_func
19920
19921 /* System header to define __stub macros and hopefully few prototypes,
19922 which can conflict with char $ac_func (); below.
19923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19924 <limits.h> exists even on freestanding compilers. */
19925
19926 #ifdef __STDC__
19927 # include <limits.h>
19928 #else
19929 # include <assert.h>
19930 #endif
19931
19932 #undef $ac_func
19933
19934 /* Override any GCC internal prototype to avoid an error.
19935 Use char because int might match the return type of a GCC
19936 builtin and then its argument prototype would still apply. */
19937 #ifdef __cplusplus
19938 extern "C"
19939 #endif
19940 char $ac_func ();
19941 /* The GNU C library defines this for functions which it implements
19942 to always fail with ENOSYS. Some functions are actually named
19943 something starting with __ and the normal name is an alias. */
19944 #if defined __stub_$ac_func || defined __stub___$ac_func
19945 choke me
19946 #endif
19947
19948 int
19949 main ()
19950 {
19951 return $ac_func ();
19952 ;
19953 return 0;
19954 }
19955 _ACEOF
19956 rm -f conftest.$ac_objext conftest$ac_exeext
19957 if { (ac_try="$ac_link"
19958 case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_link") 2>conftest.er1
19964 ac_status=$?
19965 grep -v '^ *+' conftest.er1 >conftest.err
19966 rm -f conftest.er1
19967 cat conftest.err >&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } && {
19970 test -z "$ac_c_werror_flag" ||
19971 test ! -s conftest.err
19972 } && test -s conftest$ac_exeext &&
19973 $as_test_x conftest$ac_exeext; then
19974 eval "$as_ac_var=yes"
19975 else
19976 echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19978
19979 eval "$as_ac_var=no"
19980 fi
19981
19982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19983 conftest$ac_exeext conftest.$ac_ext
19984 fi
19985 ac_res=`eval echo '${'$as_ac_var'}'`
19986 { echo "$as_me:$LINENO: result: $ac_res" >&5
19987 echo "${ECHO_T}$ac_res" >&6; }
19988 if test `eval echo '${'$as_ac_var'}'` = yes; then
19989 cat >>confdefs.h <<_ACEOF
19990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19991 _ACEOF
19992
19993 fi
19994 done
19995
19996
19997 # Check this now, so that we will NOT find the above functions in ncurses.
19998 # That is because we have not set up to link ncurses in lib-src.
19999 # It's better to believe a function is not available
20000 # than to expect to find it in ncurses.
20001
20002 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20003 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
20004 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20007 ac_check_lib_save_LIBS=$LIBS
20008 LIBS="-lncurses $LIBS"
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h. */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015
20016 /* Override any GCC internal prototype to avoid an error.
20017 Use char because int might match the return type of a GCC
20018 builtin and then its argument prototype would still apply. */
20019 #ifdef __cplusplus
20020 extern "C"
20021 #endif
20022 char tparm ();
20023 int
20024 main ()
20025 {
20026 return tparm ();
20027 ;
20028 return 0;
20029 }
20030 _ACEOF
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (ac_try="$ac_link"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_link") 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest$ac_exeext &&
20048 $as_test_x conftest$ac_exeext; then
20049 ac_cv_lib_ncurses_tparm=yes
20050 else
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054 ac_cv_lib_ncurses_tparm=no
20055 fi
20056
20057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20058 conftest$ac_exeext conftest.$ac_ext
20059 LIBS=$ac_check_lib_save_LIBS
20060 fi
20061 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20062 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20063 if test $ac_cv_lib_ncurses_tparm = yes; then
20064 cat >>confdefs.h <<_ACEOF
20065 #define HAVE_LIBNCURSES 1
20066 _ACEOF
20067
20068 LIBS="-lncurses $LIBS"
20069
20070 fi
20071
20072
20073 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20074
20075 resolv=no
20076 cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h. */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082 #include <netinet/in.h>
20083 #include <arpa/nameser.h>
20084 #include <resolv.h>
20085 int
20086 main ()
20087 {
20088 return res_init();
20089 ;
20090 return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_link") 2>conftest.er1
20101 ac_status=$?
20102 grep -v '^ *+' conftest.er1 >conftest.err
20103 rm -f conftest.er1
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } && {
20107 test -z "$ac_c_werror_flag" ||
20108 test ! -s conftest.err
20109 } && test -s conftest$ac_exeext &&
20110 $as_test_x conftest$ac_exeext; then
20111 have_res_init=yes
20112 else
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20115
20116 have_res_init=no
20117 fi
20118
20119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20120 conftest$ac_exeext conftest.$ac_ext
20121 if test "$have_res_init" = no; then
20122 OLIBS="$LIBS"
20123 LIBS="$LIBS -lresolv"
20124 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20125 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20126 cat >conftest.$ac_ext <<_ACEOF
20127 /* confdefs.h. */
20128 _ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20132 #include <netinet/in.h>
20133 #include <arpa/nameser.h>
20134 #include <resolv.h>
20135 int
20136 main ()
20137 {
20138 return res_init();
20139 ;
20140 return 0;
20141 }
20142 _ACEOF
20143 rm -f conftest.$ac_objext conftest$ac_exeext
20144 if { (ac_try="$ac_link"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_link") 2>conftest.er1
20151 ac_status=$?
20152 grep -v '^ *+' conftest.er1 >conftest.err
20153 rm -f conftest.er1
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } && {
20157 test -z "$ac_c_werror_flag" ||
20158 test ! -s conftest.err
20159 } && test -s conftest$ac_exeext &&
20160 $as_test_x conftest$ac_exeext; then
20161 have_res_init=yes
20162 else
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 have_res_init=no
20167 fi
20168
20169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20170 conftest$ac_exeext conftest.$ac_ext
20171 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20172 echo "${ECHO_T}$have_res_init" >&6; }
20173 if test "$have_res_init" = yes ; then
20174 resolv=yes
20175 fi
20176 LIBS="$OLIBS"
20177 fi
20178
20179 if test "$have_res_init" = yes; then
20180
20181 cat >>confdefs.h <<\_ACEOF
20182 #define HAVE_RES_INIT 1
20183 _ACEOF
20184
20185 fi
20186
20187 # Do we need the Hesiod library to provide the support routines?
20188 if test "$with_hesiod" = yes ; then
20189 # Don't set $LIBS here -- see comments above.
20190 { echo "$as_me:$LINENO: checking for res_send" >&5
20191 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20192 if test "${ac_cv_func_res_send+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 else
20195 cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h. */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20203 #define res_send innocuous_res_send
20204
20205 /* System header to define __stub macros and hopefully few prototypes,
20206 which can conflict with char res_send (); below.
20207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20208 <limits.h> exists even on freestanding compilers. */
20209
20210 #ifdef __STDC__
20211 # include <limits.h>
20212 #else
20213 # include <assert.h>
20214 #endif
20215
20216 #undef res_send
20217
20218 /* Override any GCC internal prototype to avoid an error.
20219 Use char because int might match the return type of a GCC
20220 builtin and then its argument prototype would still apply. */
20221 #ifdef __cplusplus
20222 extern "C"
20223 #endif
20224 char res_send ();
20225 /* The GNU C library defines this for functions which it implements
20226 to always fail with ENOSYS. Some functions are actually named
20227 something starting with __ and the normal name is an alias. */
20228 #if defined __stub_res_send || defined __stub___res_send
20229 choke me
20230 #endif
20231
20232 int
20233 main ()
20234 {
20235 return res_send ();
20236 ;
20237 return 0;
20238 }
20239 _ACEOF
20240 rm -f conftest.$ac_objext conftest$ac_exeext
20241 if { (ac_try="$ac_link"
20242 case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20245 esac
20246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247 (eval "$ac_link") 2>conftest.er1
20248 ac_status=$?
20249 grep -v '^ *+' conftest.er1 >conftest.err
20250 rm -f conftest.er1
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } && {
20254 test -z "$ac_c_werror_flag" ||
20255 test ! -s conftest.err
20256 } && test -s conftest$ac_exeext &&
20257 $as_test_x conftest$ac_exeext; then
20258 ac_cv_func_res_send=yes
20259 else
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20262
20263 ac_cv_func_res_send=no
20264 fi
20265
20266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20267 conftest$ac_exeext conftest.$ac_ext
20268 fi
20269 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20270 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20271 if test $ac_cv_func_res_send = yes; then
20272 :
20273 else
20274 { echo "$as_me:$LINENO: checking for __res_send" >&5
20275 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20276 if test "${ac_cv_func___res_send+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279 cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h. */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20287 #define __res_send innocuous___res_send
20288
20289 /* System header to define __stub macros and hopefully few prototypes,
20290 which can conflict with char __res_send (); below.
20291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20292 <limits.h> exists even on freestanding compilers. */
20293
20294 #ifdef __STDC__
20295 # include <limits.h>
20296 #else
20297 # include <assert.h>
20298 #endif
20299
20300 #undef __res_send
20301
20302 /* Override any GCC internal prototype to avoid an error.
20303 Use char because int might match the return type of a GCC
20304 builtin and then its argument prototype would still apply. */
20305 #ifdef __cplusplus
20306 extern "C"
20307 #endif
20308 char __res_send ();
20309 /* The GNU C library defines this for functions which it implements
20310 to always fail with ENOSYS. Some functions are actually named
20311 something starting with __ and the normal name is an alias. */
20312 #if defined __stub___res_send || defined __stub_____res_send
20313 choke me
20314 #endif
20315
20316 int
20317 main ()
20318 {
20319 return __res_send ();
20320 ;
20321 return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_link") 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest$ac_exeext &&
20341 $as_test_x conftest$ac_exeext; then
20342 ac_cv_func___res_send=yes
20343 else
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20346
20347 ac_cv_func___res_send=no
20348 fi
20349
20350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20351 conftest$ac_exeext conftest.$ac_ext
20352 fi
20353 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20354 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20355 if test $ac_cv_func___res_send = yes; then
20356 :
20357 else
20358 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20359 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20360 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20361 echo $ECHO_N "(cached) $ECHO_C" >&6
20362 else
20363 ac_check_lib_save_LIBS=$LIBS
20364 LIBS="-lresolv $LIBS"
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h. */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20375 #ifdef __cplusplus
20376 extern "C"
20377 #endif
20378 char res_send ();
20379 int
20380 main ()
20381 {
20382 return res_send ();
20383 ;
20384 return 0;
20385 }
20386 _ACEOF
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20392 esac
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_link") 2>conftest.er1
20395 ac_status=$?
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest$ac_exeext &&
20404 $as_test_x conftest$ac_exeext; then
20405 ac_cv_lib_resolv_res_send=yes
20406 else
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 ac_cv_lib_resolv_res_send=no
20411 fi
20412
20413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20414 conftest$ac_exeext conftest.$ac_ext
20415 LIBS=$ac_check_lib_save_LIBS
20416 fi
20417 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20418 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20419 if test $ac_cv_lib_resolv_res_send = yes; then
20420 resolv=yes
20421 else
20422 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20423 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20424 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 else
20427 ac_check_lib_save_LIBS=$LIBS
20428 LIBS="-lresolv $LIBS"
20429 cat >conftest.$ac_ext <<_ACEOF
20430 /* confdefs.h. */
20431 _ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20435
20436 /* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20439 #ifdef __cplusplus
20440 extern "C"
20441 #endif
20442 char __res_send ();
20443 int
20444 main ()
20445 {
20446 return __res_send ();
20447 ;
20448 return 0;
20449 }
20450 _ACEOF
20451 rm -f conftest.$ac_objext conftest$ac_exeext
20452 if { (ac_try="$ac_link"
20453 case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20456 esac
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_link") 2>conftest.er1
20459 ac_status=$?
20460 grep -v '^ *+' conftest.er1 >conftest.err
20461 rm -f conftest.er1
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } && {
20465 test -z "$ac_c_werror_flag" ||
20466 test ! -s conftest.err
20467 } && test -s conftest$ac_exeext &&
20468 $as_test_x conftest$ac_exeext; then
20469 ac_cv_lib_resolv___res_send=yes
20470 else
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474 ac_cv_lib_resolv___res_send=no
20475 fi
20476
20477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20478 conftest$ac_exeext conftest.$ac_ext
20479 LIBS=$ac_check_lib_save_LIBS
20480 fi
20481 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20482 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20483 if test $ac_cv_lib_resolv___res_send = yes; then
20484 resolv=yes
20485 fi
20486
20487 fi
20488
20489 fi
20490
20491 fi
20492
20493 if test "$resolv" = yes ; then
20494 RESOLVLIB=-lresolv
20495 else
20496 RESOLVLIB=
20497 fi
20498 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20499 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20500 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 else
20503 cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h. */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20511 #define hes_getmailhost innocuous_hes_getmailhost
20512
20513 /* System header to define __stub macros and hopefully few prototypes,
20514 which can conflict with char hes_getmailhost (); below.
20515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20516 <limits.h> exists even on freestanding compilers. */
20517
20518 #ifdef __STDC__
20519 # include <limits.h>
20520 #else
20521 # include <assert.h>
20522 #endif
20523
20524 #undef hes_getmailhost
20525
20526 /* Override any GCC internal prototype to avoid an error.
20527 Use char because int might match the return type of a GCC
20528 builtin and then its argument prototype would still apply. */
20529 #ifdef __cplusplus
20530 extern "C"
20531 #endif
20532 char hes_getmailhost ();
20533 /* The GNU C library defines this for functions which it implements
20534 to always fail with ENOSYS. Some functions are actually named
20535 something starting with __ and the normal name is an alias. */
20536 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20537 choke me
20538 #endif
20539
20540 int
20541 main ()
20542 {
20543 return hes_getmailhost ();
20544 ;
20545 return 0;
20546 }
20547 _ACEOF
20548 rm -f conftest.$ac_objext conftest$ac_exeext
20549 if { (ac_try="$ac_link"
20550 case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20553 esac
20554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555 (eval "$ac_link") 2>conftest.er1
20556 ac_status=$?
20557 grep -v '^ *+' conftest.er1 >conftest.err
20558 rm -f conftest.er1
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } && {
20562 test -z "$ac_c_werror_flag" ||
20563 test ! -s conftest.err
20564 } && test -s conftest$ac_exeext &&
20565 $as_test_x conftest$ac_exeext; then
20566 ac_cv_func_hes_getmailhost=yes
20567 else
20568 echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571 ac_cv_func_hes_getmailhost=no
20572 fi
20573
20574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20575 conftest$ac_exeext conftest.$ac_ext
20576 fi
20577 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20578 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20579 if test $ac_cv_func_hes_getmailhost = yes; then
20580 :
20581 else
20582 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20583 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20584 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587 ac_check_lib_save_LIBS=$LIBS
20588 LIBS="-lhesiod $RESOLVLIB $LIBS"
20589 cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h. */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595
20596 /* Override any GCC internal prototype to avoid an error.
20597 Use char because int might match the return type of a GCC
20598 builtin and then its argument prototype would still apply. */
20599 #ifdef __cplusplus
20600 extern "C"
20601 #endif
20602 char hes_getmailhost ();
20603 int
20604 main ()
20605 {
20606 return hes_getmailhost ();
20607 ;
20608 return 0;
20609 }
20610 _ACEOF
20611 rm -f conftest.$ac_objext conftest$ac_exeext
20612 if { (ac_try="$ac_link"
20613 case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20616 esac
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_link") 2>conftest.er1
20619 ac_status=$?
20620 grep -v '^ *+' conftest.er1 >conftest.err
20621 rm -f conftest.er1
20622 cat conftest.err >&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } && {
20625 test -z "$ac_c_werror_flag" ||
20626 test ! -s conftest.err
20627 } && test -s conftest$ac_exeext &&
20628 $as_test_x conftest$ac_exeext; then
20629 ac_cv_lib_hesiod_hes_getmailhost=yes
20630 else
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20633
20634 ac_cv_lib_hesiod_hes_getmailhost=no
20635 fi
20636
20637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20638 conftest$ac_exeext conftest.$ac_ext
20639 LIBS=$ac_check_lib_save_LIBS
20640 fi
20641 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20642 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20643 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20644
20645 cat >>confdefs.h <<\_ACEOF
20646 #define HAVE_LIBHESIOD 1
20647 _ACEOF
20648
20649 else
20650 :
20651 fi
20652
20653 fi
20654
20655 fi
20656
20657 # Do we need libresolv (due to res_init or Hesiod)?
20658 if test "$resolv" = yes ; then
20659
20660 cat >>confdefs.h <<\_ACEOF
20661 #define HAVE_LIBRESOLV 1
20662 _ACEOF
20663
20664 fi
20665
20666 # These tell us which Kerberos-related libraries to use.
20667 if test "${with_kerberos+set}" = set; then
20668
20669 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20670 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20671 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674 ac_check_lib_save_LIBS=$LIBS
20675 LIBS="-lcom_err $LIBS"
20676 cat >conftest.$ac_ext <<_ACEOF
20677 /* confdefs.h. */
20678 _ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20682
20683 /* Override any GCC internal prototype to avoid an error.
20684 Use char because int might match the return type of a GCC
20685 builtin and then its argument prototype would still apply. */
20686 #ifdef __cplusplus
20687 extern "C"
20688 #endif
20689 char com_err ();
20690 int
20691 main ()
20692 {
20693 return com_err ();
20694 ;
20695 return 0;
20696 }
20697 _ACEOF
20698 rm -f conftest.$ac_objext conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_link") 2>conftest.er1
20706 ac_status=$?
20707 grep -v '^ *+' conftest.er1 >conftest.err
20708 rm -f conftest.er1
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest$ac_exeext &&
20715 $as_test_x conftest$ac_exeext; then
20716 ac_cv_lib_com_err_com_err=yes
20717 else
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20720
20721 ac_cv_lib_com_err_com_err=no
20722 fi
20723
20724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20725 conftest$ac_exeext conftest.$ac_ext
20726 LIBS=$ac_check_lib_save_LIBS
20727 fi
20728 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20729 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20730 if test $ac_cv_lib_com_err_com_err = yes; then
20731 cat >>confdefs.h <<_ACEOF
20732 #define HAVE_LIBCOM_ERR 1
20733 _ACEOF
20734
20735 LIBS="-lcom_err $LIBS"
20736
20737 fi
20738
20739
20740 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20741 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20742 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745 ac_check_lib_save_LIBS=$LIBS
20746 LIBS="-lk5crypto $LIBS"
20747 cat >conftest.$ac_ext <<_ACEOF
20748 /* confdefs.h. */
20749 _ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20753
20754 /* Override any GCC internal prototype to avoid an error.
20755 Use char because int might match the return type of a GCC
20756 builtin and then its argument prototype would still apply. */
20757 #ifdef __cplusplus
20758 extern "C"
20759 #endif
20760 char mit_des_cbc_encrypt ();
20761 int
20762 main ()
20763 {
20764 return mit_des_cbc_encrypt ();
20765 ;
20766 return 0;
20767 }
20768 _ACEOF
20769 rm -f conftest.$ac_objext conftest$ac_exeext
20770 if { (ac_try="$ac_link"
20771 case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20774 esac
20775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_link") 2>conftest.er1
20777 ac_status=$?
20778 grep -v '^ *+' conftest.er1 >conftest.err
20779 rm -f conftest.er1
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } && {
20783 test -z "$ac_c_werror_flag" ||
20784 test ! -s conftest.err
20785 } && test -s conftest$ac_exeext &&
20786 $as_test_x conftest$ac_exeext; then
20787 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20788 else
20789 echo "$as_me: failed program was:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20791
20792 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20793 fi
20794
20795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20796 conftest$ac_exeext conftest.$ac_ext
20797 LIBS=$ac_check_lib_save_LIBS
20798 fi
20799 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20800 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20801 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20802 cat >>confdefs.h <<_ACEOF
20803 #define HAVE_LIBK5CRYPTO 1
20804 _ACEOF
20805
20806 LIBS="-lk5crypto $LIBS"
20807
20808 fi
20809
20810
20811 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20812 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20813 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815 else
20816 ac_check_lib_save_LIBS=$LIBS
20817 LIBS="-lcrypto $LIBS"
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h. */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824
20825 /* Override any GCC internal prototype to avoid an error.
20826 Use char because int might match the return type of a GCC
20827 builtin and then its argument prototype would still apply. */
20828 #ifdef __cplusplus
20829 extern "C"
20830 #endif
20831 char mit_des_cbc_encrypt ();
20832 int
20833 main ()
20834 {
20835 return mit_des_cbc_encrypt ();
20836 ;
20837 return 0;
20838 }
20839 _ACEOF
20840 rm -f conftest.$ac_objext conftest$ac_exeext
20841 if { (ac_try="$ac_link"
20842 case "(($ac_try" in
20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20845 esac
20846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20847 (eval "$ac_link") 2>conftest.er1
20848 ac_status=$?
20849 grep -v '^ *+' conftest.er1 >conftest.err
20850 rm -f conftest.er1
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } && {
20854 test -z "$ac_c_werror_flag" ||
20855 test ! -s conftest.err
20856 } && test -s conftest$ac_exeext &&
20857 $as_test_x conftest$ac_exeext; then
20858 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20859 else
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20864 fi
20865
20866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20867 conftest$ac_exeext conftest.$ac_ext
20868 LIBS=$ac_check_lib_save_LIBS
20869 fi
20870 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20871 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20872 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20873 cat >>confdefs.h <<_ACEOF
20874 #define HAVE_LIBCRYPTO 1
20875 _ACEOF
20876
20877 LIBS="-lcrypto $LIBS"
20878
20879 fi
20880
20881
20882 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20883 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20884 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 else
20887 ac_check_lib_save_LIBS=$LIBS
20888 LIBS="-lkrb5 $LIBS"
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h. */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895
20896 /* Override any GCC internal prototype to avoid an error.
20897 Use char because int might match the return type of a GCC
20898 builtin and then its argument prototype would still apply. */
20899 #ifdef __cplusplus
20900 extern "C"
20901 #endif
20902 char krb5_init_context ();
20903 int
20904 main ()
20905 {
20906 return krb5_init_context ();
20907 ;
20908 return 0;
20909 }
20910 _ACEOF
20911 rm -f conftest.$ac_objext conftest$ac_exeext
20912 if { (ac_try="$ac_link"
20913 case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20916 esac
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_link") 2>conftest.er1
20919 ac_status=$?
20920 grep -v '^ *+' conftest.er1 >conftest.err
20921 rm -f conftest.er1
20922 cat conftest.err >&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); } && {
20925 test -z "$ac_c_werror_flag" ||
20926 test ! -s conftest.err
20927 } && test -s conftest$ac_exeext &&
20928 $as_test_x conftest$ac_exeext; then
20929 ac_cv_lib_krb5_krb5_init_context=yes
20930 else
20931 echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934 ac_cv_lib_krb5_krb5_init_context=no
20935 fi
20936
20937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20938 conftest$ac_exeext conftest.$ac_ext
20939 LIBS=$ac_check_lib_save_LIBS
20940 fi
20941 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20942 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20943 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20944 cat >>confdefs.h <<_ACEOF
20945 #define HAVE_LIBKRB5 1
20946 _ACEOF
20947
20948 LIBS="-lkrb5 $LIBS"
20949
20950 fi
20951
20952 if test "${with_kerberos5+set}" != set; then
20953
20954 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20955 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20956 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959 ac_check_lib_save_LIBS=$LIBS
20960 LIBS="-ldes425 $LIBS"
20961 cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h. */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967
20968 /* Override any GCC internal prototype to avoid an error.
20969 Use char because int might match the return type of a GCC
20970 builtin and then its argument prototype would still apply. */
20971 #ifdef __cplusplus
20972 extern "C"
20973 #endif
20974 char des_cbc_encrypt ();
20975 int
20976 main ()
20977 {
20978 return des_cbc_encrypt ();
20979 ;
20980 return 0;
20981 }
20982 _ACEOF
20983 rm -f conftest.$ac_objext conftest$ac_exeext
20984 if { (ac_try="$ac_link"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988 esac
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_link") 2>conftest.er1
20991 ac_status=$?
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } && {
20997 test -z "$ac_c_werror_flag" ||
20998 test ! -s conftest.err
20999 } && test -s conftest$ac_exeext &&
21000 $as_test_x conftest$ac_exeext; then
21001 ac_cv_lib_des425_des_cbc_encrypt=yes
21002 else
21003 echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21005
21006 ac_cv_lib_des425_des_cbc_encrypt=no
21007 fi
21008
21009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21010 conftest$ac_exeext conftest.$ac_ext
21011 LIBS=$ac_check_lib_save_LIBS
21012 fi
21013 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21014 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21015 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21016 cat >>confdefs.h <<_ACEOF
21017 #define HAVE_LIBDES425 1
21018 _ACEOF
21019
21020 LIBS="-ldes425 $LIBS"
21021
21022 else
21023
21024 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21025 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
21026 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21028 else
21029 ac_check_lib_save_LIBS=$LIBS
21030 LIBS="-ldes $LIBS"
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
21038 /* Override any GCC internal prototype to avoid an error.
21039 Use char because int might match the return type of a GCC
21040 builtin and then its argument prototype would still apply. */
21041 #ifdef __cplusplus
21042 extern "C"
21043 #endif
21044 char des_cbc_encrypt ();
21045 int
21046 main ()
21047 {
21048 return des_cbc_encrypt ();
21049 ;
21050 return 0;
21051 }
21052 _ACEOF
21053 rm -f conftest.$ac_objext conftest$ac_exeext
21054 if { (ac_try="$ac_link"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_link") 2>conftest.er1
21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } && {
21067 test -z "$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest$ac_exeext &&
21070 $as_test_x conftest$ac_exeext; then
21071 ac_cv_lib_des_des_cbc_encrypt=yes
21072 else
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21075
21076 ac_cv_lib_des_des_cbc_encrypt=no
21077 fi
21078
21079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21080 conftest$ac_exeext conftest.$ac_ext
21081 LIBS=$ac_check_lib_save_LIBS
21082 fi
21083 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21084 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21085 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21086 cat >>confdefs.h <<_ACEOF
21087 #define HAVE_LIBDES 1
21088 _ACEOF
21089
21090 LIBS="-ldes $LIBS"
21091
21092 fi
21093
21094 fi
21095
21096
21097 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21098 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
21099 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 else
21102 ac_check_lib_save_LIBS=$LIBS
21103 LIBS="-lkrb4 $LIBS"
21104 cat >conftest.$ac_ext <<_ACEOF
21105 /* confdefs.h. */
21106 _ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21110
21111 /* Override any GCC internal prototype to avoid an error.
21112 Use char because int might match the return type of a GCC
21113 builtin and then its argument prototype would still apply. */
21114 #ifdef __cplusplus
21115 extern "C"
21116 #endif
21117 char krb_get_cred ();
21118 int
21119 main ()
21120 {
21121 return krb_get_cred ();
21122 ;
21123 return 0;
21124 }
21125 _ACEOF
21126 rm -f conftest.$ac_objext conftest$ac_exeext
21127 if { (ac_try="$ac_link"
21128 case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21131 esac
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_link") 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest$ac_exeext &&
21143 $as_test_x conftest$ac_exeext; then
21144 ac_cv_lib_krb4_krb_get_cred=yes
21145 else
21146 echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21148
21149 ac_cv_lib_krb4_krb_get_cred=no
21150 fi
21151
21152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21153 conftest$ac_exeext conftest.$ac_ext
21154 LIBS=$ac_check_lib_save_LIBS
21155 fi
21156 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21157 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21158 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21159 cat >>confdefs.h <<_ACEOF
21160 #define HAVE_LIBKRB4 1
21161 _ACEOF
21162
21163 LIBS="-lkrb4 $LIBS"
21164
21165 else
21166
21167 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21168 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21169 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 else
21172 ac_check_lib_save_LIBS=$LIBS
21173 LIBS="-lkrb $LIBS"
21174 cat >conftest.$ac_ext <<_ACEOF
21175 /* confdefs.h. */
21176 _ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180
21181 /* Override any GCC internal prototype to avoid an error.
21182 Use char because int might match the return type of a GCC
21183 builtin and then its argument prototype would still apply. */
21184 #ifdef __cplusplus
21185 extern "C"
21186 #endif
21187 char krb_get_cred ();
21188 int
21189 main ()
21190 {
21191 return krb_get_cred ();
21192 ;
21193 return 0;
21194 }
21195 _ACEOF
21196 rm -f conftest.$ac_objext conftest$ac_exeext
21197 if { (ac_try="$ac_link"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_link") 2>conftest.er1
21204 ac_status=$?
21205 grep -v '^ *+' conftest.er1 >conftest.err
21206 rm -f conftest.er1
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest$ac_exeext &&
21213 $as_test_x conftest$ac_exeext; then
21214 ac_cv_lib_krb_krb_get_cred=yes
21215 else
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21218
21219 ac_cv_lib_krb_krb_get_cred=no
21220 fi
21221
21222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21223 conftest$ac_exeext conftest.$ac_ext
21224 LIBS=$ac_check_lib_save_LIBS
21225 fi
21226 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21227 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21228 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21229 cat >>confdefs.h <<_ACEOF
21230 #define HAVE_LIBKRB 1
21231 _ACEOF
21232
21233 LIBS="-lkrb $LIBS"
21234
21235 fi
21236
21237 fi
21238
21239 fi
21240
21241 if test "${with_kerberos5+set}" = set; then
21242
21243 for ac_header in krb5.h
21244 do
21245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21250 echo $ECHO_N "(cached) $ECHO_C" >&6
21251 fi
21252 ac_res=`eval echo '${'$as_ac_Header'}'`
21253 { echo "$as_me:$LINENO: result: $ac_res" >&5
21254 echo "${ECHO_T}$ac_res" >&6; }
21255 else
21256 # Is the header compilable?
21257 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21259 cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h. */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 $ac_includes_default
21266 #include <$ac_header>
21267 _ACEOF
21268 rm -f conftest.$ac_objext
21269 if { (ac_try="$ac_compile"
21270 case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21273 esac
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275 (eval "$ac_compile") 2>conftest.er1
21276 ac_status=$?
21277 grep -v '^ *+' conftest.er1 >conftest.err
21278 rm -f conftest.er1
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } && {
21282 test -z "$ac_c_werror_flag" ||
21283 test ! -s conftest.err
21284 } && test -s conftest.$ac_objext; then
21285 ac_header_compiler=yes
21286 else
21287 echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21289
21290 ac_header_compiler=no
21291 fi
21292
21293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21295 echo "${ECHO_T}$ac_header_compiler" >&6; }
21296
21297 # Is the header present?
21298 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21300 cat >conftest.$ac_ext <<_ACEOF
21301 /* confdefs.h. */
21302 _ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 #include <$ac_header>
21307 _ACEOF
21308 if { (ac_try="$ac_cpp conftest.$ac_ext"
21309 case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21312 esac
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21315 ac_status=$?
21316 grep -v '^ *+' conftest.er1 >conftest.err
21317 rm -f conftest.er1
21318 cat conftest.err >&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); } >/dev/null && {
21321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21322 test ! -s conftest.err
21323 }; then
21324 ac_header_preproc=yes
21325 else
21326 echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21328
21329 ac_header_preproc=no
21330 fi
21331
21332 rm -f conftest.err conftest.$ac_ext
21333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21334 echo "${ECHO_T}$ac_header_preproc" >&6; }
21335
21336 # So? What about this header?
21337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21338 yes:no: )
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21343 ac_header_preproc=yes
21344 ;;
21345 no:yes:* )
21346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21358
21359 ;;
21360 esac
21361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21364 echo $ECHO_N "(cached) $ECHO_C" >&6
21365 else
21366 eval "$as_ac_Header=\$ac_header_preproc"
21367 fi
21368 ac_res=`eval echo '${'$as_ac_Header'}'`
21369 { echo "$as_me:$LINENO: result: $ac_res" >&5
21370 echo "${ECHO_T}$ac_res" >&6; }
21371
21372 fi
21373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21374 cat >>confdefs.h <<_ACEOF
21375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21376 _ACEOF
21377
21378 fi
21379
21380 done
21381
21382 else
21383
21384 for ac_header in des.h
21385 do
21386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21392 fi
21393 ac_res=`eval echo '${'$as_ac_Header'}'`
21394 { echo "$as_me:$LINENO: result: $ac_res" >&5
21395 echo "${ECHO_T}$ac_res" >&6; }
21396 else
21397 # Is the header compilable?
21398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21400 cat >conftest.$ac_ext <<_ACEOF
21401 /* confdefs.h. */
21402 _ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21406 $ac_includes_default
21407 #include <$ac_header>
21408 _ACEOF
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_compile") 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } && {
21423 test -z "$ac_c_werror_flag" ||
21424 test ! -s conftest.err
21425 } && test -s conftest.$ac_objext; then
21426 ac_header_compiler=yes
21427 else
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431 ac_header_compiler=no
21432 fi
21433
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21436 echo "${ECHO_T}$ac_header_compiler" >&6; }
21437
21438 # Is the header present?
21439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21441 cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h. */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 #include <$ac_header>
21448 _ACEOF
21449 if { (ac_try="$ac_cpp conftest.$ac_ext"
21450 case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21453 esac
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21456 ac_status=$?
21457 grep -v '^ *+' conftest.er1 >conftest.err
21458 rm -f conftest.er1
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } >/dev/null && {
21462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21464 }; then
21465 ac_header_preproc=yes
21466 else
21467 echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470 ac_header_preproc=no
21471 fi
21472
21473 rm -f conftest.err conftest.$ac_ext
21474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21475 echo "${ECHO_T}$ac_header_preproc" >&6; }
21476
21477 # So? What about this header?
21478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21479 yes:no: )
21480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21484 ac_header_preproc=yes
21485 ;;
21486 no:yes:* )
21487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21499
21500 ;;
21501 esac
21502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21505 echo $ECHO_N "(cached) $ECHO_C" >&6
21506 else
21507 eval "$as_ac_Header=\$ac_header_preproc"
21508 fi
21509 ac_res=`eval echo '${'$as_ac_Header'}'`
21510 { echo "$as_me:$LINENO: result: $ac_res" >&5
21511 echo "${ECHO_T}$ac_res" >&6; }
21512
21513 fi
21514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21515 cat >>confdefs.h <<_ACEOF
21516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21517 _ACEOF
21518
21519 else
21520
21521 for ac_header in kerberosIV/des.h
21522 do
21523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 fi
21530 ac_res=`eval echo '${'$as_ac_Header'}'`
21531 { echo "$as_me:$LINENO: result: $ac_res" >&5
21532 echo "${ECHO_T}$ac_res" >&6; }
21533 else
21534 # Is the header compilable?
21535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21537 cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h. */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543 $ac_includes_default
21544 #include <$ac_header>
21545 _ACEOF
21546 rm -f conftest.$ac_objext
21547 if { (ac_try="$ac_compile"
21548 case "(($ac_try" in
21549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550 *) ac_try_echo=$ac_try;;
21551 esac
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553 (eval "$ac_compile") 2>conftest.er1
21554 ac_status=$?
21555 grep -v '^ *+' conftest.er1 >conftest.err
21556 rm -f conftest.er1
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } && {
21560 test -z "$ac_c_werror_flag" ||
21561 test ! -s conftest.err
21562 } && test -s conftest.$ac_objext; then
21563 ac_header_compiler=yes
21564 else
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21567
21568 ac_header_compiler=no
21569 fi
21570
21571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21573 echo "${ECHO_T}$ac_header_compiler" >&6; }
21574
21575 # Is the header present?
21576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21578 cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h. */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 #include <$ac_header>
21585 _ACEOF
21586 if { (ac_try="$ac_cpp conftest.$ac_ext"
21587 case "(($ac_try" in
21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589 *) ac_try_echo=$ac_try;;
21590 esac
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21593 ac_status=$?
21594 grep -v '^ *+' conftest.er1 >conftest.err
21595 rm -f conftest.er1
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } >/dev/null && {
21599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21600 test ! -s conftest.err
21601 }; then
21602 ac_header_preproc=yes
21603 else
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21606
21607 ac_header_preproc=no
21608 fi
21609
21610 rm -f conftest.err conftest.$ac_ext
21611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21612 echo "${ECHO_T}$ac_header_preproc" >&6; }
21613
21614 # So? What about this header?
21615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21616 yes:no: )
21617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21621 ac_header_preproc=yes
21622 ;;
21623 no:yes:* )
21624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21636
21637 ;;
21638 esac
21639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 else
21644 eval "$as_ac_Header=\$ac_header_preproc"
21645 fi
21646 ac_res=`eval echo '${'$as_ac_Header'}'`
21647 { echo "$as_me:$LINENO: result: $ac_res" >&5
21648 echo "${ECHO_T}$ac_res" >&6; }
21649
21650 fi
21651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21652 cat >>confdefs.h <<_ACEOF
21653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21654 _ACEOF
21655
21656 else
21657
21658 for ac_header in kerberos/des.h
21659 do
21660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21666 fi
21667 ac_res=`eval echo '${'$as_ac_Header'}'`
21668 { echo "$as_me:$LINENO: result: $ac_res" >&5
21669 echo "${ECHO_T}$ac_res" >&6; }
21670 else
21671 # Is the header compilable?
21672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21674 cat >conftest.$ac_ext <<_ACEOF
21675 /* confdefs.h. */
21676 _ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 $ac_includes_default
21681 #include <$ac_header>
21682 _ACEOF
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_compile") 2>conftest.er1
21691 ac_status=$?
21692 grep -v '^ *+' conftest.er1 >conftest.err
21693 rm -f conftest.er1
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } && {
21697 test -z "$ac_c_werror_flag" ||
21698 test ! -s conftest.err
21699 } && test -s conftest.$ac_objext; then
21700 ac_header_compiler=yes
21701 else
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705 ac_header_compiler=no
21706 fi
21707
21708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21710 echo "${ECHO_T}$ac_header_compiler" >&6; }
21711
21712 # Is the header present?
21713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21715 cat >conftest.$ac_ext <<_ACEOF
21716 /* confdefs.h. */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 #include <$ac_header>
21722 _ACEOF
21723 if { (ac_try="$ac_cpp conftest.$ac_ext"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21730 ac_status=$?
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } >/dev/null && {
21736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21737 test ! -s conftest.err
21738 }; then
21739 ac_header_preproc=yes
21740 else
21741 echo "$as_me: failed program was:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21743
21744 ac_header_preproc=no
21745 fi
21746
21747 rm -f conftest.err conftest.$ac_ext
21748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21749 echo "${ECHO_T}$ac_header_preproc" >&6; }
21750
21751 # So? What about this header?
21752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21753 yes:no: )
21754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21758 ac_header_preproc=yes
21759 ;;
21760 no:yes:* )
21761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21773
21774 ;;
21775 esac
21776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 else
21781 eval "$as_ac_Header=\$ac_header_preproc"
21782 fi
21783 ac_res=`eval echo '${'$as_ac_Header'}'`
21784 { echo "$as_me:$LINENO: result: $ac_res" >&5
21785 echo "${ECHO_T}$ac_res" >&6; }
21786
21787 fi
21788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21789 cat >>confdefs.h <<_ACEOF
21790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21791 _ACEOF
21792
21793 fi
21794
21795 done
21796
21797 fi
21798
21799 done
21800
21801 fi
21802
21803 done
21804
21805
21806 for ac_header in krb.h
21807 do
21808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21814 fi
21815 ac_res=`eval echo '${'$as_ac_Header'}'`
21816 { echo "$as_me:$LINENO: result: $ac_res" >&5
21817 echo "${ECHO_T}$ac_res" >&6; }
21818 else
21819 # Is the header compilable?
21820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21822 cat >conftest.$ac_ext <<_ACEOF
21823 /* confdefs.h. */
21824 _ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 $ac_includes_default
21829 #include <$ac_header>
21830 _ACEOF
21831 rm -f conftest.$ac_objext
21832 if { (ac_try="$ac_compile"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21836 esac
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_compile") 2>conftest.er1
21839 ac_status=$?
21840 grep -v '^ *+' conftest.er1 >conftest.err
21841 rm -f conftest.er1
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } && {
21845 test -z "$ac_c_werror_flag" ||
21846 test ! -s conftest.err
21847 } && test -s conftest.$ac_objext; then
21848 ac_header_compiler=yes
21849 else
21850 echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21852
21853 ac_header_compiler=no
21854 fi
21855
21856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21858 echo "${ECHO_T}$ac_header_compiler" >&6; }
21859
21860 # Is the header present?
21861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21863 cat >conftest.$ac_ext <<_ACEOF
21864 /* confdefs.h. */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 #include <$ac_header>
21870 _ACEOF
21871 if { (ac_try="$ac_cpp conftest.$ac_ext"
21872 case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21878 ac_status=$?
21879 grep -v '^ *+' conftest.er1 >conftest.err
21880 rm -f conftest.er1
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } >/dev/null && {
21884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21885 test ! -s conftest.err
21886 }; then
21887 ac_header_preproc=yes
21888 else
21889 echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21891
21892 ac_header_preproc=no
21893 fi
21894
21895 rm -f conftest.err conftest.$ac_ext
21896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21897 echo "${ECHO_T}$ac_header_preproc" >&6; }
21898
21899 # So? What about this header?
21900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21901 yes:no: )
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21906 ac_header_preproc=yes
21907 ;;
21908 no:yes:* )
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21921
21922 ;;
21923 esac
21924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 else
21929 eval "$as_ac_Header=\$ac_header_preproc"
21930 fi
21931 ac_res=`eval echo '${'$as_ac_Header'}'`
21932 { echo "$as_me:$LINENO: result: $ac_res" >&5
21933 echo "${ECHO_T}$ac_res" >&6; }
21934
21935 fi
21936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21937 cat >>confdefs.h <<_ACEOF
21938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21939 _ACEOF
21940
21941 else
21942
21943 for ac_header in kerberosIV/krb.h
21944 do
21945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 fi
21952 ac_res=`eval echo '${'$as_ac_Header'}'`
21953 { echo "$as_me:$LINENO: result: $ac_res" >&5
21954 echo "${ECHO_T}$ac_res" >&6; }
21955 else
21956 # Is the header compilable?
21957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21959 cat >conftest.$ac_ext <<_ACEOF
21960 /* confdefs.h. */
21961 _ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21965 $ac_includes_default
21966 #include <$ac_header>
21967 _ACEOF
21968 rm -f conftest.$ac_objext
21969 if { (ac_try="$ac_compile"
21970 case "(($ac_try" in
21971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972 *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975 (eval "$ac_compile") 2>conftest.er1
21976 ac_status=$?
21977 grep -v '^ *+' conftest.er1 >conftest.err
21978 rm -f conftest.er1
21979 cat conftest.err >&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); } && {
21982 test -z "$ac_c_werror_flag" ||
21983 test ! -s conftest.err
21984 } && test -s conftest.$ac_objext; then
21985 ac_header_compiler=yes
21986 else
21987 echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21989
21990 ac_header_compiler=no
21991 fi
21992
21993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21995 echo "${ECHO_T}$ac_header_compiler" >&6; }
21996
21997 # Is the header present?
21998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22000 cat >conftest.$ac_ext <<_ACEOF
22001 /* confdefs.h. */
22002 _ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22006 #include <$ac_header>
22007 _ACEOF
22008 if { (ac_try="$ac_cpp conftest.$ac_ext"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22015 ac_status=$?
22016 grep -v '^ *+' conftest.er1 >conftest.err
22017 rm -f conftest.er1
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } >/dev/null && {
22021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 }; then
22024 ac_header_preproc=yes
22025 else
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029 ac_header_preproc=no
22030 fi
22031
22032 rm -f conftest.err conftest.$ac_ext
22033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22034 echo "${ECHO_T}$ac_header_preproc" >&6; }
22035
22036 # So? What about this header?
22037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22038 yes:no: )
22039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22043 ac_header_preproc=yes
22044 ;;
22045 no:yes:* )
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22053 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22058
22059 ;;
22060 esac
22061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22064 echo $ECHO_N "(cached) $ECHO_C" >&6
22065 else
22066 eval "$as_ac_Header=\$ac_header_preproc"
22067 fi
22068 ac_res=`eval echo '${'$as_ac_Header'}'`
22069 { echo "$as_me:$LINENO: result: $ac_res" >&5
22070 echo "${ECHO_T}$ac_res" >&6; }
22071
22072 fi
22073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22074 cat >>confdefs.h <<_ACEOF
22075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22076 _ACEOF
22077
22078 else
22079
22080 for ac_header in kerberos/krb.h
22081 do
22082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22087 echo $ECHO_N "(cached) $ECHO_C" >&6
22088 fi
22089 ac_res=`eval echo '${'$as_ac_Header'}'`
22090 { echo "$as_me:$LINENO: result: $ac_res" >&5
22091 echo "${ECHO_T}$ac_res" >&6; }
22092 else
22093 # Is the header compilable?
22094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22096 cat >conftest.$ac_ext <<_ACEOF
22097 /* confdefs.h. */
22098 _ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22102 $ac_includes_default
22103 #include <$ac_header>
22104 _ACEOF
22105 rm -f conftest.$ac_objext
22106 if { (ac_try="$ac_compile"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22110 esac
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_compile") 2>conftest.er1
22113 ac_status=$?
22114 grep -v '^ *+' conftest.er1 >conftest.err
22115 rm -f conftest.er1
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } && {
22119 test -z "$ac_c_werror_flag" ||
22120 test ! -s conftest.err
22121 } && test -s conftest.$ac_objext; then
22122 ac_header_compiler=yes
22123 else
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127 ac_header_compiler=no
22128 fi
22129
22130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22132 echo "${ECHO_T}$ac_header_compiler" >&6; }
22133
22134 # Is the header present?
22135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22137 cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h. */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 #include <$ac_header>
22144 _ACEOF
22145 if { (ac_try="$ac_cpp conftest.$ac_ext"
22146 case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22149 esac
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } >/dev/null && {
22158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 }; then
22161 ac_header_preproc=yes
22162 else
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165
22166 ac_header_preproc=no
22167 fi
22168
22169 rm -f conftest.err conftest.$ac_ext
22170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22171 echo "${ECHO_T}$ac_header_preproc" >&6; }
22172
22173 # So? What about this header?
22174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22175 yes:no: )
22176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22180 ac_header_preproc=yes
22181 ;;
22182 no:yes:* )
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22195
22196 ;;
22197 esac
22198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22202 else
22203 eval "$as_ac_Header=\$ac_header_preproc"
22204 fi
22205 ac_res=`eval echo '${'$as_ac_Header'}'`
22206 { echo "$as_me:$LINENO: result: $ac_res" >&5
22207 echo "${ECHO_T}$ac_res" >&6; }
22208
22209 fi
22210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22211 cat >>confdefs.h <<_ACEOF
22212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22213 _ACEOF
22214
22215 fi
22216
22217 done
22218
22219 fi
22220
22221 done
22222
22223 fi
22224
22225 done
22226
22227 fi
22228
22229 for ac_header in com_err.h
22230 do
22231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22236 echo $ECHO_N "(cached) $ECHO_C" >&6
22237 fi
22238 ac_res=`eval echo '${'$as_ac_Header'}'`
22239 { echo "$as_me:$LINENO: result: $ac_res" >&5
22240 echo "${ECHO_T}$ac_res" >&6; }
22241 else
22242 # Is the header compilable?
22243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22245 cat >conftest.$ac_ext <<_ACEOF
22246 /* confdefs.h. */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22251 $ac_includes_default
22252 #include <$ac_header>
22253 _ACEOF
22254 rm -f conftest.$ac_objext
22255 if { (ac_try="$ac_compile"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22259 esac
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_compile") 2>conftest.er1
22262 ac_status=$?
22263 grep -v '^ *+' conftest.er1 >conftest.err
22264 rm -f conftest.er1
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); } && {
22268 test -z "$ac_c_werror_flag" ||
22269 test ! -s conftest.err
22270 } && test -s conftest.$ac_objext; then
22271 ac_header_compiler=yes
22272 else
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22275
22276 ac_header_compiler=no
22277 fi
22278
22279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22281 echo "${ECHO_T}$ac_header_compiler" >&6; }
22282
22283 # Is the header present?
22284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22286 cat >conftest.$ac_ext <<_ACEOF
22287 /* confdefs.h. */
22288 _ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h. */
22292 #include <$ac_header>
22293 _ACEOF
22294 if { (ac_try="$ac_cpp conftest.$ac_ext"
22295 case "(($ac_try" in
22296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297 *) ac_try_echo=$ac_try;;
22298 esac
22299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } >/dev/null && {
22307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 }; then
22310 ac_header_preproc=yes
22311 else
22312 echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315 ac_header_preproc=no
22316 fi
22317
22318 rm -f conftest.err conftest.$ac_ext
22319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22320 echo "${ECHO_T}$ac_header_preproc" >&6; }
22321
22322 # So? What about this header?
22323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22324 yes:no: )
22325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22329 ac_header_preproc=yes
22330 ;;
22331 no:yes:* )
22332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22344
22345 ;;
22346 esac
22347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22350 echo $ECHO_N "(cached) $ECHO_C" >&6
22351 else
22352 eval "$as_ac_Header=\$ac_header_preproc"
22353 fi
22354 ac_res=`eval echo '${'$as_ac_Header'}'`
22355 { echo "$as_me:$LINENO: result: $ac_res" >&5
22356 echo "${ECHO_T}$ac_res" >&6; }
22357
22358 fi
22359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22360 cat >>confdefs.h <<_ACEOF
22361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22362 _ACEOF
22363
22364 fi
22365
22366 done
22367
22368 fi
22369
22370 # Solaris requires -lintl if you want strerror (which calls dgettext)
22371 # to return localized messages.
22372
22373 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22374 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22375 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378 ac_check_lib_save_LIBS=$LIBS
22379 LIBS="-lintl $LIBS"
22380 cat >conftest.$ac_ext <<_ACEOF
22381 /* confdefs.h. */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22386
22387 /* Override any GCC internal prototype to avoid an error.
22388 Use char because int might match the return type of a GCC
22389 builtin and then its argument prototype would still apply. */
22390 #ifdef __cplusplus
22391 extern "C"
22392 #endif
22393 char dgettext ();
22394 int
22395 main ()
22396 {
22397 return dgettext ();
22398 ;
22399 return 0;
22400 }
22401 _ACEOF
22402 rm -f conftest.$ac_objext conftest$ac_exeext
22403 if { (ac_try="$ac_link"
22404 case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22407 esac
22408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22409 (eval "$ac_link") 2>conftest.er1
22410 ac_status=$?
22411 grep -v '^ *+' conftest.er1 >conftest.err
22412 rm -f conftest.er1
22413 cat conftest.err >&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); } && {
22416 test -z "$ac_c_werror_flag" ||
22417 test ! -s conftest.err
22418 } && test -s conftest$ac_exeext &&
22419 $as_test_x conftest$ac_exeext; then
22420 ac_cv_lib_intl_dgettext=yes
22421 else
22422 echo "$as_me: failed program was:" >&5
22423 sed 's/^/| /' conftest.$ac_ext >&5
22424
22425 ac_cv_lib_intl_dgettext=no
22426 fi
22427
22428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22429 conftest$ac_exeext conftest.$ac_ext
22430 LIBS=$ac_check_lib_save_LIBS
22431 fi
22432 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22433 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22434 if test $ac_cv_lib_intl_dgettext = yes; then
22435 cat >>confdefs.h <<_ACEOF
22436 #define HAVE_LIBINTL 1
22437 _ACEOF
22438
22439 LIBS="-lintl $LIBS"
22440
22441 fi
22442
22443
22444 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22445 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22446 if test "${emacs_cv_localtime_cache+set}" = set; then
22447 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 else
22449 if test x$ac_cv_func_tzset = xyes; then
22450 if test "$cross_compiling" = yes; then
22451 # If we have tzset, assume the worst when cross-compiling.
22452 emacs_cv_localtime_cache=yes
22453 else
22454 cat >conftest.$ac_ext <<_ACEOF
22455 /* confdefs.h. */
22456 _ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22460 #include <time.h>
22461 extern char **environ;
22462 unset_TZ ()
22463 {
22464 char **from, **to;
22465 for (to = from = environ; (*to = *from); from++)
22466 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22467 to++;
22468 }
22469 char TZ_GMT0[] = "TZ=GMT0";
22470 char TZ_PST8[] = "TZ=PST8";
22471 main()
22472 {
22473 time_t now = time ((time_t *) 0);
22474 int hour_GMT0, hour_unset;
22475 if (putenv (TZ_GMT0) != 0)
22476 exit (1);
22477 hour_GMT0 = localtime (&now)->tm_hour;
22478 unset_TZ ();
22479 hour_unset = localtime (&now)->tm_hour;
22480 if (putenv (TZ_PST8) != 0)
22481 exit (1);
22482 if (localtime (&now)->tm_hour == hour_GMT0)
22483 exit (1);
22484 unset_TZ ();
22485 if (localtime (&now)->tm_hour != hour_unset)
22486 exit (1);
22487 exit (0);
22488 }
22489 _ACEOF
22490 rm -f conftest$ac_exeext
22491 if { (ac_try="$ac_link"
22492 case "(($ac_try" in
22493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494 *) ac_try_echo=$ac_try;;
22495 esac
22496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497 (eval "$ac_link") 2>&5
22498 ac_status=$?
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22501 { (case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22504 esac
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506 (eval "$ac_try") 2>&5
22507 ac_status=$?
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; }; then
22510 emacs_cv_localtime_cache=no
22511 else
22512 echo "$as_me: program exited with status $ac_status" >&5
22513 echo "$as_me: failed program was:" >&5
22514 sed 's/^/| /' conftest.$ac_ext >&5
22515
22516 ( exit $ac_status )
22517 emacs_cv_localtime_cache=yes
22518 fi
22519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22520 fi
22521
22522
22523 else
22524 # If we lack tzset, report that localtime does not cache TZ,
22525 # since we can't invalidate the cache if we don't have tzset.
22526 emacs_cv_localtime_cache=no
22527 fi
22528 fi
22529 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22530 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22531 if test $emacs_cv_localtime_cache = yes; then
22532
22533 cat >>confdefs.h <<\_ACEOF
22534 #define LOCALTIME_CACHE 1
22535 _ACEOF
22536
22537 fi
22538
22539 if test "x$HAVE_TIMEVAL" = xyes; then
22540
22541 for ac_func in gettimeofday
22542 do
22543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22547 echo $ECHO_N "(cached) $ECHO_C" >&6
22548 else
22549 cat >conftest.$ac_ext <<_ACEOF
22550 /* confdefs.h. */
22551 _ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h. */
22555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22557 #define $ac_func innocuous_$ac_func
22558
22559 /* System header to define __stub macros and hopefully few prototypes,
22560 which can conflict with char $ac_func (); below.
22561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22562 <limits.h> exists even on freestanding compilers. */
22563
22564 #ifdef __STDC__
22565 # include <limits.h>
22566 #else
22567 # include <assert.h>
22568 #endif
22569
22570 #undef $ac_func
22571
22572 /* Override any GCC internal prototype to avoid an error.
22573 Use char because int might match the return type of a GCC
22574 builtin and then its argument prototype would still apply. */
22575 #ifdef __cplusplus
22576 extern "C"
22577 #endif
22578 char $ac_func ();
22579 /* The GNU C library defines this for functions which it implements
22580 to always fail with ENOSYS. Some functions are actually named
22581 something starting with __ and the normal name is an alias. */
22582 #if defined __stub_$ac_func || defined __stub___$ac_func
22583 choke me
22584 #endif
22585
22586 int
22587 main ()
22588 {
22589 return $ac_func ();
22590 ;
22591 return 0;
22592 }
22593 _ACEOF
22594 rm -f conftest.$ac_objext conftest$ac_exeext
22595 if { (ac_try="$ac_link"
22596 case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22599 esac
22600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22601 (eval "$ac_link") 2>conftest.er1
22602 ac_status=$?
22603 grep -v '^ *+' conftest.er1 >conftest.err
22604 rm -f conftest.er1
22605 cat conftest.err >&5
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); } && {
22608 test -z "$ac_c_werror_flag" ||
22609 test ! -s conftest.err
22610 } && test -s conftest$ac_exeext &&
22611 $as_test_x conftest$ac_exeext; then
22612 eval "$as_ac_var=yes"
22613 else
22614 echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22616
22617 eval "$as_ac_var=no"
22618 fi
22619
22620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22621 conftest$ac_exeext conftest.$ac_ext
22622 fi
22623 ac_res=`eval echo '${'$as_ac_var'}'`
22624 { echo "$as_me:$LINENO: result: $ac_res" >&5
22625 echo "${ECHO_T}$ac_res" >&6; }
22626 if test `eval echo '${'$as_ac_var'}'` = yes; then
22627 cat >>confdefs.h <<_ACEOF
22628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22629 _ACEOF
22630
22631 fi
22632 done
22633
22634 if test $ac_cv_func_gettimeofday = yes; then
22635 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22636 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22637 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22638 echo $ECHO_N "(cached) $ECHO_C" >&6
22639 else
22640 cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h. */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22646
22647 #ifdef TIME_WITH_SYS_TIME
22648 #include <sys/time.h>
22649 #include <time.h>
22650 #else
22651 #ifdef HAVE_SYS_TIME_H
22652 #include <sys/time.h>
22653 #else
22654 #include <time.h>
22655 #endif
22656 #endif
22657 int
22658 main ()
22659 {
22660 struct timeval time;
22661 gettimeofday (&time, 0);
22662 ;
22663 return 0;
22664 }
22665 _ACEOF
22666 rm -f conftest.$ac_objext
22667 if { (ac_try="$ac_compile"
22668 case "(($ac_try" in
22669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22670 *) ac_try_echo=$ac_try;;
22671 esac
22672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22673 (eval "$ac_compile") 2>conftest.er1
22674 ac_status=$?
22675 grep -v '^ *+' conftest.er1 >conftest.err
22676 rm -f conftest.er1
22677 cat conftest.err >&5
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } && {
22680 test -z "$ac_c_werror_flag" ||
22681 test ! -s conftest.err
22682 } && test -s conftest.$ac_objext; then
22683 emacs_cv_gettimeofday_two_arguments=yes
22684 else
22685 echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22687
22688 emacs_cv_gettimeofday_two_arguments=no
22689 fi
22690
22691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 fi
22693 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22694 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22695 if test $emacs_cv_gettimeofday_two_arguments = no; then
22696
22697 cat >>confdefs.h <<\_ACEOF
22698 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22699 _ACEOF
22700
22701 fi
22702 fi
22703 fi
22704
22705 ok_so_far=yes
22706 { echo "$as_me:$LINENO: checking for socket" >&5
22707 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22708 if test "${ac_cv_func_socket+set}" = set; then
22709 echo $ECHO_N "(cached) $ECHO_C" >&6
22710 else
22711 cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h. */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22719 #define socket innocuous_socket
22720
22721 /* System header to define __stub macros and hopefully few prototypes,
22722 which can conflict with char socket (); below.
22723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22724 <limits.h> exists even on freestanding compilers. */
22725
22726 #ifdef __STDC__
22727 # include <limits.h>
22728 #else
22729 # include <assert.h>
22730 #endif
22731
22732 #undef socket
22733
22734 /* Override any GCC internal prototype to avoid an error.
22735 Use char because int might match the return type of a GCC
22736 builtin and then its argument prototype would still apply. */
22737 #ifdef __cplusplus
22738 extern "C"
22739 #endif
22740 char socket ();
22741 /* The GNU C library defines this for functions which it implements
22742 to always fail with ENOSYS. Some functions are actually named
22743 something starting with __ and the normal name is an alias. */
22744 #if defined __stub_socket || defined __stub___socket
22745 choke me
22746 #endif
22747
22748 int
22749 main ()
22750 {
22751 return socket ();
22752 ;
22753 return 0;
22754 }
22755 _ACEOF
22756 rm -f conftest.$ac_objext conftest$ac_exeext
22757 if { (ac_try="$ac_link"
22758 case "(($ac_try" in
22759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760 *) ac_try_echo=$ac_try;;
22761 esac
22762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22763 (eval "$ac_link") 2>conftest.er1
22764 ac_status=$?
22765 grep -v '^ *+' conftest.er1 >conftest.err
22766 rm -f conftest.er1
22767 cat conftest.err >&5
22768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); } && {
22770 test -z "$ac_c_werror_flag" ||
22771 test ! -s conftest.err
22772 } && test -s conftest$ac_exeext &&
22773 $as_test_x conftest$ac_exeext; then
22774 ac_cv_func_socket=yes
22775 else
22776 echo "$as_me: failed program was:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22778
22779 ac_cv_func_socket=no
22780 fi
22781
22782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22783 conftest$ac_exeext conftest.$ac_ext
22784 fi
22785 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22786 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22787 if test $ac_cv_func_socket = yes; then
22788 :
22789 else
22790 ok_so_far=no
22791 fi
22792
22793 if test $ok_so_far = yes; then
22794 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22795 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22796 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22797 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22798 echo $ECHO_N "(cached) $ECHO_C" >&6
22799 fi
22800 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22801 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22802 else
22803 # Is the header compilable?
22804 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22805 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22806 cat >conftest.$ac_ext <<_ACEOF
22807 /* confdefs.h. */
22808 _ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h. */
22812 $ac_includes_default
22813 #include <netinet/in.h>
22814 _ACEOF
22815 rm -f conftest.$ac_objext
22816 if { (ac_try="$ac_compile"
22817 case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22820 esac
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822 (eval "$ac_compile") 2>conftest.er1
22823 ac_status=$?
22824 grep -v '^ *+' conftest.er1 >conftest.err
22825 rm -f conftest.er1
22826 cat conftest.err >&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } && {
22829 test -z "$ac_c_werror_flag" ||
22830 test ! -s conftest.err
22831 } && test -s conftest.$ac_objext; then
22832 ac_header_compiler=yes
22833 else
22834 echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837 ac_header_compiler=no
22838 fi
22839
22840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22842 echo "${ECHO_T}$ac_header_compiler" >&6; }
22843
22844 # Is the header present?
22845 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22846 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22847 cat >conftest.$ac_ext <<_ACEOF
22848 /* confdefs.h. */
22849 _ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h. */
22853 #include <netinet/in.h>
22854 _ACEOF
22855 if { (ac_try="$ac_cpp conftest.$ac_ext"
22856 case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22862 ac_status=$?
22863 grep -v '^ *+' conftest.er1 >conftest.err
22864 rm -f conftest.er1
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } >/dev/null && {
22868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 }; then
22871 ac_header_preproc=yes
22872 else
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22875
22876 ac_header_preproc=no
22877 fi
22878
22879 rm -f conftest.err conftest.$ac_ext
22880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22881 echo "${ECHO_T}$ac_header_preproc" >&6; }
22882
22883 # So? What about this header?
22884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22885 yes:no: )
22886 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22887 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22888 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22889 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22890 ac_header_preproc=yes
22891 ;;
22892 no:yes:* )
22893 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22894 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22895 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22896 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22897 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22898 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22899 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22900 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22901 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22902 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22903 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22904 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22905
22906 ;;
22907 esac
22908 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22909 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22910 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913 ac_cv_header_netinet_in_h=$ac_header_preproc
22914 fi
22915 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22916 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22917
22918 fi
22919 if test $ac_cv_header_netinet_in_h = yes; then
22920 :
22921 else
22922 ok_so_far=no
22923 fi
22924
22925
22926 fi
22927 if test $ok_so_far = yes; then
22928 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22929 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22930 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22931 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22932 echo $ECHO_N "(cached) $ECHO_C" >&6
22933 fi
22934 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22935 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22936 else
22937 # Is the header compilable?
22938 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22939 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22940 cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h. */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22946 $ac_includes_default
22947 #include <arpa/inet.h>
22948 _ACEOF
22949 rm -f conftest.$ac_objext
22950 if { (ac_try="$ac_compile"
22951 case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22954 esac
22955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_compile") 2>conftest.er1
22957 ac_status=$?
22958 grep -v '^ *+' conftest.er1 >conftest.err
22959 rm -f conftest.er1
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } && {
22963 test -z "$ac_c_werror_flag" ||
22964 test ! -s conftest.err
22965 } && test -s conftest.$ac_objext; then
22966 ac_header_compiler=yes
22967 else
22968 echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22970
22971 ac_header_compiler=no
22972 fi
22973
22974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22976 echo "${ECHO_T}$ac_header_compiler" >&6; }
22977
22978 # Is the header present?
22979 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22980 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22981 cat >conftest.$ac_ext <<_ACEOF
22982 /* confdefs.h. */
22983 _ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22987 #include <arpa/inet.h>
22988 _ACEOF
22989 if { (ac_try="$ac_cpp conftest.$ac_ext"
22990 case "(($ac_try" in
22991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992 *) ac_try_echo=$ac_try;;
22993 esac
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22996 ac_status=$?
22997 grep -v '^ *+' conftest.er1 >conftest.err
22998 rm -f conftest.er1
22999 cat conftest.err >&5
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); } >/dev/null && {
23002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23003 test ! -s conftest.err
23004 }; then
23005 ac_header_preproc=yes
23006 else
23007 echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23009
23010 ac_header_preproc=no
23011 fi
23012
23013 rm -f conftest.err conftest.$ac_ext
23014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23015 echo "${ECHO_T}$ac_header_preproc" >&6; }
23016
23017 # So? What about this header?
23018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23019 yes:no: )
23020 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23021 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23022 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23023 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23024 ac_header_preproc=yes
23025 ;;
23026 no:yes:* )
23027 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23028 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23029 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23030 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23031 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23032 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23033 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23034 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23035 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23036 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23037 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23038 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23039
23040 ;;
23041 esac
23042 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23043 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23044 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23045 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 else
23047 ac_cv_header_arpa_inet_h=$ac_header_preproc
23048 fi
23049 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23050 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23051
23052 fi
23053 if test $ac_cv_header_arpa_inet_h = yes; then
23054 :
23055 else
23056 ok_so_far=no
23057 fi
23058
23059
23060 fi
23061 if test $ok_so_far = yes; then
23062
23063 cat >>confdefs.h <<\_ACEOF
23064 #define HAVE_INET_SOCKETS 1
23065 _ACEOF
23066
23067 fi
23068
23069
23070 for ac_header in sys/ioctl.h
23071 do
23072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23077 echo $ECHO_N "(cached) $ECHO_C" >&6
23078 fi
23079 ac_res=`eval echo '${'$as_ac_Header'}'`
23080 { echo "$as_me:$LINENO: result: $ac_res" >&5
23081 echo "${ECHO_T}$ac_res" >&6; }
23082 else
23083 # Is the header compilable?
23084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23086 cat >conftest.$ac_ext <<_ACEOF
23087 /* confdefs.h. */
23088 _ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23092 $ac_includes_default
23093 #include <$ac_header>
23094 _ACEOF
23095 rm -f conftest.$ac_objext
23096 if { (ac_try="$ac_compile"
23097 case "(($ac_try" in
23098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099 *) ac_try_echo=$ac_try;;
23100 esac
23101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23102 (eval "$ac_compile") 2>conftest.er1
23103 ac_status=$?
23104 grep -v '^ *+' conftest.er1 >conftest.err
23105 rm -f conftest.er1
23106 cat conftest.err >&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } && {
23109 test -z "$ac_c_werror_flag" ||
23110 test ! -s conftest.err
23111 } && test -s conftest.$ac_objext; then
23112 ac_header_compiler=yes
23113 else
23114 echo "$as_me: failed program was:" >&5
23115 sed 's/^/| /' conftest.$ac_ext >&5
23116
23117 ac_header_compiler=no
23118 fi
23119
23120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23122 echo "${ECHO_T}$ac_header_compiler" >&6; }
23123
23124 # Is the header present?
23125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23127 cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h. */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23133 #include <$ac_header>
23134 _ACEOF
23135 if { (ac_try="$ac_cpp conftest.$ac_ext"
23136 case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23139 esac
23140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23142 ac_status=$?
23143 grep -v '^ *+' conftest.er1 >conftest.err
23144 rm -f conftest.er1
23145 cat conftest.err >&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } >/dev/null && {
23148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23149 test ! -s conftest.err
23150 }; then
23151 ac_header_preproc=yes
23152 else
23153 echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23155
23156 ac_header_preproc=no
23157 fi
23158
23159 rm -f conftest.err conftest.$ac_ext
23160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23161 echo "${ECHO_T}$ac_header_preproc" >&6; }
23162
23163 # So? What about this header?
23164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23165 yes:no: )
23166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23170 ac_header_preproc=yes
23171 ;;
23172 no:yes:* )
23173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23185
23186 ;;
23187 esac
23188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23191 echo $ECHO_N "(cached) $ECHO_C" >&6
23192 else
23193 eval "$as_ac_Header=\$ac_header_preproc"
23194 fi
23195 ac_res=`eval echo '${'$as_ac_Header'}'`
23196 { echo "$as_me:$LINENO: result: $ac_res" >&5
23197 echo "${ECHO_T}$ac_res" >&6; }
23198
23199 fi
23200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23201 cat >>confdefs.h <<_ACEOF
23202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23203 _ACEOF
23204
23205 fi
23206
23207 done
23208
23209
23210 if test -f /usr/lpp/X11/bin/smt.exp; then
23211
23212 cat >>confdefs.h <<\_ACEOF
23213 #define HAVE_AIX_SMT_EXP 1
23214 _ACEOF
23215
23216 fi
23217
23218 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23219 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23220 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23221 { echo "$as_me:$LINENO: result: yes" >&5
23222 echo "${ECHO_T}yes" >&6; }
23223
23224 cat >>confdefs.h <<\_ACEOF
23225 #define HAVE_DEV_PTMX 1
23226 _ACEOF
23227
23228 else
23229 { echo "$as_me:$LINENO: result: no" >&5
23230 echo "${ECHO_T}no" >&6; }
23231 fi
23232
23233 { echo "$as_me:$LINENO: checking for pid_t" >&5
23234 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23235 if test "${ac_cv_type_pid_t+set}" = set; then
23236 echo $ECHO_N "(cached) $ECHO_C" >&6
23237 else
23238 cat >conftest.$ac_ext <<_ACEOF
23239 /* confdefs.h. */
23240 _ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 $ac_includes_default
23245 typedef pid_t ac__type_new_;
23246 int
23247 main ()
23248 {
23249 if ((ac__type_new_ *) 0)
23250 return 0;
23251 if (sizeof (ac__type_new_))
23252 return 0;
23253 ;
23254 return 0;
23255 }
23256 _ACEOF
23257 rm -f conftest.$ac_objext
23258 if { (ac_try="$ac_compile"
23259 case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_compile") 2>conftest.er1
23265 ac_status=$?
23266 grep -v '^ *+' conftest.er1 >conftest.err
23267 rm -f conftest.er1
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } && {
23271 test -z "$ac_c_werror_flag" ||
23272 test ! -s conftest.err
23273 } && test -s conftest.$ac_objext; then
23274 ac_cv_type_pid_t=yes
23275 else
23276 echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23278
23279 ac_cv_type_pid_t=no
23280 fi
23281
23282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23283 fi
23284 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23285 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23286 if test $ac_cv_type_pid_t = yes; then
23287 :
23288 else
23289
23290 cat >>confdefs.h <<_ACEOF
23291 #define pid_t int
23292 _ACEOF
23293
23294 fi
23295
23296
23297 for ac_header in vfork.h
23298 do
23299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23305 fi
23306 ac_res=`eval echo '${'$as_ac_Header'}'`
23307 { echo "$as_me:$LINENO: result: $ac_res" >&5
23308 echo "${ECHO_T}$ac_res" >&6; }
23309 else
23310 # Is the header compilable?
23311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23313 cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h. */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23319 $ac_includes_default
23320 #include <$ac_header>
23321 _ACEOF
23322 rm -f conftest.$ac_objext
23323 if { (ac_try="$ac_compile"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23327 esac
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_compile") 2>conftest.er1
23330 ac_status=$?
23331 grep -v '^ *+' conftest.er1 >conftest.err
23332 rm -f conftest.er1
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest.$ac_objext; then
23339 ac_header_compiler=yes
23340 else
23341 echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23343
23344 ac_header_compiler=no
23345 fi
23346
23347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23349 echo "${ECHO_T}$ac_header_compiler" >&6; }
23350
23351 # Is the header present?
23352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23354 cat >conftest.$ac_ext <<_ACEOF
23355 /* confdefs.h. */
23356 _ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h. */
23360 #include <$ac_header>
23361 _ACEOF
23362 if { (ac_try="$ac_cpp conftest.$ac_ext"
23363 case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23366 esac
23367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23369 ac_status=$?
23370 grep -v '^ *+' conftest.er1 >conftest.err
23371 rm -f conftest.er1
23372 cat conftest.err >&5
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } >/dev/null && {
23375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23376 test ! -s conftest.err
23377 }; then
23378 ac_header_preproc=yes
23379 else
23380 echo "$as_me: failed program was:" >&5
23381 sed 's/^/| /' conftest.$ac_ext >&5
23382
23383 ac_header_preproc=no
23384 fi
23385
23386 rm -f conftest.err conftest.$ac_ext
23387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23388 echo "${ECHO_T}$ac_header_preproc" >&6; }
23389
23390 # So? What about this header?
23391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23392 yes:no: )
23393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23397 ac_header_preproc=yes
23398 ;;
23399 no:yes:* )
23400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23412
23413 ;;
23414 esac
23415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23418 echo $ECHO_N "(cached) $ECHO_C" >&6
23419 else
23420 eval "$as_ac_Header=\$ac_header_preproc"
23421 fi
23422 ac_res=`eval echo '${'$as_ac_Header'}'`
23423 { echo "$as_me:$LINENO: result: $ac_res" >&5
23424 echo "${ECHO_T}$ac_res" >&6; }
23425
23426 fi
23427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23428 cat >>confdefs.h <<_ACEOF
23429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23430 _ACEOF
23431
23432 fi
23433
23434 done
23435
23436
23437
23438 for ac_func in fork vfork
23439 do
23440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23445 else
23446 cat >conftest.$ac_ext <<_ACEOF
23447 /* confdefs.h. */
23448 _ACEOF
23449 cat confdefs.h >>conftest.$ac_ext
23450 cat >>conftest.$ac_ext <<_ACEOF
23451 /* end confdefs.h. */
23452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23454 #define $ac_func innocuous_$ac_func
23455
23456 /* System header to define __stub macros and hopefully few prototypes,
23457 which can conflict with char $ac_func (); below.
23458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23459 <limits.h> exists even on freestanding compilers. */
23460
23461 #ifdef __STDC__
23462 # include <limits.h>
23463 #else
23464 # include <assert.h>
23465 #endif
23466
23467 #undef $ac_func
23468
23469 /* Override any GCC internal prototype to avoid an error.
23470 Use char because int might match the return type of a GCC
23471 builtin and then its argument prototype would still apply. */
23472 #ifdef __cplusplus
23473 extern "C"
23474 #endif
23475 char $ac_func ();
23476 /* The GNU C library defines this for functions which it implements
23477 to always fail with ENOSYS. Some functions are actually named
23478 something starting with __ and the normal name is an alias. */
23479 #if defined __stub_$ac_func || defined __stub___$ac_func
23480 choke me
23481 #endif
23482
23483 int
23484 main ()
23485 {
23486 return $ac_func ();
23487 ;
23488 return 0;
23489 }
23490 _ACEOF
23491 rm -f conftest.$ac_objext conftest$ac_exeext
23492 if { (ac_try="$ac_link"
23493 case "(($ac_try" in
23494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23495 *) ac_try_echo=$ac_try;;
23496 esac
23497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23498 (eval "$ac_link") 2>conftest.er1
23499 ac_status=$?
23500 grep -v '^ *+' conftest.er1 >conftest.err
23501 rm -f conftest.er1
23502 cat conftest.err >&5
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); } && {
23505 test -z "$ac_c_werror_flag" ||
23506 test ! -s conftest.err
23507 } && test -s conftest$ac_exeext &&
23508 $as_test_x conftest$ac_exeext; then
23509 eval "$as_ac_var=yes"
23510 else
23511 echo "$as_me: failed program was:" >&5
23512 sed 's/^/| /' conftest.$ac_ext >&5
23513
23514 eval "$as_ac_var=no"
23515 fi
23516
23517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23518 conftest$ac_exeext conftest.$ac_ext
23519 fi
23520 ac_res=`eval echo '${'$as_ac_var'}'`
23521 { echo "$as_me:$LINENO: result: $ac_res" >&5
23522 echo "${ECHO_T}$ac_res" >&6; }
23523 if test `eval echo '${'$as_ac_var'}'` = yes; then
23524 cat >>confdefs.h <<_ACEOF
23525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23526 _ACEOF
23527
23528 fi
23529 done
23530
23531 if test "x$ac_cv_func_fork" = xyes; then
23532 { echo "$as_me:$LINENO: checking for working fork" >&5
23533 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23534 if test "${ac_cv_func_fork_works+set}" = set; then
23535 echo $ECHO_N "(cached) $ECHO_C" >&6
23536 else
23537 if test "$cross_compiling" = yes; then
23538 ac_cv_func_fork_works=cross
23539 else
23540 cat >conftest.$ac_ext <<_ACEOF
23541 /* confdefs.h. */
23542 _ACEOF
23543 cat confdefs.h >>conftest.$ac_ext
23544 cat >>conftest.$ac_ext <<_ACEOF
23545 /* end confdefs.h. */
23546 $ac_includes_default
23547 int
23548 main ()
23549 {
23550
23551 /* By Ruediger Kuhlmann. */
23552 return fork () < 0;
23553
23554 ;
23555 return 0;
23556 }
23557 _ACEOF
23558 rm -f conftest$ac_exeext
23559 if { (ac_try="$ac_link"
23560 case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23563 esac
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565 (eval "$ac_link") 2>&5
23566 ac_status=$?
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23569 { (case "(($ac_try" in
23570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571 *) ac_try_echo=$ac_try;;
23572 esac
23573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23574 (eval "$ac_try") 2>&5
23575 ac_status=$?
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); }; }; then
23578 ac_cv_func_fork_works=yes
23579 else
23580 echo "$as_me: program exited with status $ac_status" >&5
23581 echo "$as_me: failed program was:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23583
23584 ( exit $ac_status )
23585 ac_cv_func_fork_works=no
23586 fi
23587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23588 fi
23589
23590
23591 fi
23592 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23593 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23594
23595 else
23596 ac_cv_func_fork_works=$ac_cv_func_fork
23597 fi
23598 if test "x$ac_cv_func_fork_works" = xcross; then
23599 case $host in
23600 *-*-amigaos* | *-*-msdosdjgpp*)
23601 # Override, as these systems have only a dummy fork() stub
23602 ac_cv_func_fork_works=no
23603 ;;
23604 *)
23605 ac_cv_func_fork_works=yes
23606 ;;
23607 esac
23608 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23609 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23610 fi
23611 ac_cv_func_vfork_works=$ac_cv_func_vfork
23612 if test "x$ac_cv_func_vfork" = xyes; then
23613 { echo "$as_me:$LINENO: checking for working vfork" >&5
23614 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23615 if test "${ac_cv_func_vfork_works+set}" = set; then
23616 echo $ECHO_N "(cached) $ECHO_C" >&6
23617 else
23618 if test "$cross_compiling" = yes; then
23619 ac_cv_func_vfork_works=cross
23620 else
23621 cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h. */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 /* Thanks to Paul Eggert for this test. */
23628 $ac_includes_default
23629 #include <sys/wait.h>
23630 #ifdef HAVE_VFORK_H
23631 # include <vfork.h>
23632 #endif
23633 /* On some sparc systems, changes by the child to local and incoming
23634 argument registers are propagated back to the parent. The compiler
23635 is told about this with #include <vfork.h>, but some compilers
23636 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23637 static variable whose address is put into a register that is
23638 clobbered by the vfork. */
23639 static void
23640 #ifdef __cplusplus
23641 sparc_address_test (int arg)
23642 # else
23643 sparc_address_test (arg) int arg;
23644 #endif
23645 {
23646 static pid_t child;
23647 if (!child) {
23648 child = vfork ();
23649 if (child < 0) {
23650 perror ("vfork");
23651 _exit(2);
23652 }
23653 if (!child) {
23654 arg = getpid();
23655 write(-1, "", 0);
23656 _exit (arg);
23657 }
23658 }
23659 }
23660
23661 int
23662 main ()
23663 {
23664 pid_t parent = getpid ();
23665 pid_t child;
23666
23667 sparc_address_test (0);
23668
23669 child = vfork ();
23670
23671 if (child == 0) {
23672 /* Here is another test for sparc vfork register problems. This
23673 test uses lots of local variables, at least as many local
23674 variables as main has allocated so far including compiler
23675 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23676 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23677 reuse the register of parent for one of the local variables,
23678 since it will think that parent can't possibly be used any more
23679 in this routine. Assigning to the local variable will thus
23680 munge parent in the parent process. */
23681 pid_t
23682 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23683 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23684 /* Convince the compiler that p..p7 are live; otherwise, it might
23685 use the same hardware register for all 8 local variables. */
23686 if (p != p1 || p != p2 || p != p3 || p != p4
23687 || p != p5 || p != p6 || p != p7)
23688 _exit(1);
23689
23690 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23691 from child file descriptors. If the child closes a descriptor
23692 before it execs or exits, this munges the parent's descriptor
23693 as well. Test for this by closing stdout in the child. */
23694 _exit(close(fileno(stdout)) != 0);
23695 } else {
23696 int status;
23697 struct stat st;
23698
23699 while (wait(&status) != child)
23700 ;
23701 return (
23702 /* Was there some problem with vforking? */
23703 child < 0
23704
23705 /* Did the child fail? (This shouldn't happen.) */
23706 || status
23707
23708 /* Did the vfork/compiler bug occur? */
23709 || parent != getpid()
23710
23711 /* Did the file descriptor bug occur? */
23712 || fstat(fileno(stdout), &st) != 0
23713 );
23714 }
23715 }
23716 _ACEOF
23717 rm -f conftest$ac_exeext
23718 if { (ac_try="$ac_link"
23719 case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23722 esac
23723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23724 (eval "$ac_link") 2>&5
23725 ac_status=$?
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23728 { (case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_try") 2>&5
23734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; }; then
23737 ac_cv_func_vfork_works=yes
23738 else
23739 echo "$as_me: program exited with status $ac_status" >&5
23740 echo "$as_me: failed program was:" >&5
23741 sed 's/^/| /' conftest.$ac_ext >&5
23742
23743 ( exit $ac_status )
23744 ac_cv_func_vfork_works=no
23745 fi
23746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23747 fi
23748
23749
23750 fi
23751 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23752 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23753
23754 fi;
23755 if test "x$ac_cv_func_fork_works" = xcross; then
23756 ac_cv_func_vfork_works=$ac_cv_func_vfork
23757 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23758 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23759 fi
23760
23761 if test "x$ac_cv_func_vfork_works" = xyes; then
23762
23763 cat >>confdefs.h <<\_ACEOF
23764 #define HAVE_WORKING_VFORK 1
23765 _ACEOF
23766
23767 else
23768
23769 cat >>confdefs.h <<\_ACEOF
23770 #define vfork fork
23771 _ACEOF
23772
23773 fi
23774 if test "x$ac_cv_func_fork_works" = xyes; then
23775
23776 cat >>confdefs.h <<\_ACEOF
23777 #define HAVE_WORKING_FORK 1
23778 _ACEOF
23779
23780 fi
23781
23782
23783 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23784 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23785 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23786 echo $ECHO_N "(cached) $ECHO_C" >&6
23787 else
23788 cat >conftest.$ac_ext <<_ACEOF
23789 /* confdefs.h. */
23790 _ACEOF
23791 cat confdefs.h >>conftest.$ac_ext
23792 cat >>conftest.$ac_ext <<_ACEOF
23793 /* end confdefs.h. */
23794 #include <langinfo.h>
23795 int
23796 main ()
23797 {
23798 char* cs = nl_langinfo(CODESET);
23799 ;
23800 return 0;
23801 }
23802 _ACEOF
23803 rm -f conftest.$ac_objext conftest$ac_exeext
23804 if { (ac_try="$ac_link"
23805 case "(($ac_try" in
23806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23807 *) ac_try_echo=$ac_try;;
23808 esac
23809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23810 (eval "$ac_link") 2>conftest.er1
23811 ac_status=$?
23812 grep -v '^ *+' conftest.er1 >conftest.err
23813 rm -f conftest.er1
23814 cat conftest.err >&5
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } && {
23817 test -z "$ac_c_werror_flag" ||
23818 test ! -s conftest.err
23819 } && test -s conftest$ac_exeext &&
23820 $as_test_x conftest$ac_exeext; then
23821 emacs_cv_langinfo_codeset=yes
23822 else
23823 echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23825
23826 emacs_cv_langinfo_codeset=no
23827 fi
23828
23829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23830 conftest$ac_exeext conftest.$ac_ext
23831
23832 fi
23833 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23834 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23835 if test $emacs_cv_langinfo_codeset = yes; then
23836
23837 cat >>confdefs.h <<\_ACEOF
23838 #define HAVE_LANGINFO_CODESET 1
23839 _ACEOF
23840
23841 fi
23842
23843 { echo "$as_me:$LINENO: checking for size_t" >&5
23844 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23845 if test "${ac_cv_type_size_t+set}" = set; then
23846 echo $ECHO_N "(cached) $ECHO_C" >&6
23847 else
23848 cat >conftest.$ac_ext <<_ACEOF
23849 /* confdefs.h. */
23850 _ACEOF
23851 cat confdefs.h >>conftest.$ac_ext
23852 cat >>conftest.$ac_ext <<_ACEOF
23853 /* end confdefs.h. */
23854 $ac_includes_default
23855 typedef size_t ac__type_new_;
23856 int
23857 main ()
23858 {
23859 if ((ac__type_new_ *) 0)
23860 return 0;
23861 if (sizeof (ac__type_new_))
23862 return 0;
23863 ;
23864 return 0;
23865 }
23866 _ACEOF
23867 rm -f conftest.$ac_objext
23868 if { (ac_try="$ac_compile"
23869 case "(($ac_try" in
23870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871 *) ac_try_echo=$ac_try;;
23872 esac
23873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874 (eval "$ac_compile") 2>conftest.er1
23875 ac_status=$?
23876 grep -v '^ *+' conftest.er1 >conftest.err
23877 rm -f conftest.er1
23878 cat conftest.err >&5
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); } && {
23881 test -z "$ac_c_werror_flag" ||
23882 test ! -s conftest.err
23883 } && test -s conftest.$ac_objext; then
23884 ac_cv_type_size_t=yes
23885 else
23886 echo "$as_me: failed program was:" >&5
23887 sed 's/^/| /' conftest.$ac_ext >&5
23888
23889 ac_cv_type_size_t=no
23890 fi
23891
23892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23893 fi
23894 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23895 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23896 if test $ac_cv_type_size_t = yes; then
23897
23898 cat >>confdefs.h <<_ACEOF
23899 #define HAVE_SIZE_T 1
23900 _ACEOF
23901
23902
23903 fi
23904
23905
23906 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23907 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23908 if test "${ac_cv_type_mbstate_t+set}" = set; then
23909 echo $ECHO_N "(cached) $ECHO_C" >&6
23910 else
23911 cat >conftest.$ac_ext <<_ACEOF
23912 /* confdefs.h. */
23913 _ACEOF
23914 cat confdefs.h >>conftest.$ac_ext
23915 cat >>conftest.$ac_ext <<_ACEOF
23916 /* end confdefs.h. */
23917 $ac_includes_default
23918 # include <wchar.h>
23919 int
23920 main ()
23921 {
23922 mbstate_t x; return sizeof x;
23923 ;
23924 return 0;
23925 }
23926 _ACEOF
23927 rm -f conftest.$ac_objext
23928 if { (ac_try="$ac_compile"
23929 case "(($ac_try" in
23930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23931 *) ac_try_echo=$ac_try;;
23932 esac
23933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23934 (eval "$ac_compile") 2>conftest.er1
23935 ac_status=$?
23936 grep -v '^ *+' conftest.er1 >conftest.err
23937 rm -f conftest.er1
23938 cat conftest.err >&5
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); } && {
23941 test -z "$ac_c_werror_flag" ||
23942 test ! -s conftest.err
23943 } && test -s conftest.$ac_objext; then
23944 ac_cv_type_mbstate_t=yes
23945 else
23946 echo "$as_me: failed program was:" >&5
23947 sed 's/^/| /' conftest.$ac_ext >&5
23948
23949 ac_cv_type_mbstate_t=no
23950 fi
23951
23952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23953 fi
23954 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23955 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23956 if test $ac_cv_type_mbstate_t = yes; then
23957
23958 cat >>confdefs.h <<\_ACEOF
23959 #define HAVE_MBSTATE_T 1
23960 _ACEOF
23961
23962 else
23963
23964 cat >>confdefs.h <<\_ACEOF
23965 #define mbstate_t int
23966 _ACEOF
23967
23968 fi
23969
23970 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23971 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23972 if test "${emacs_cv_c_restrict+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23974 else
23975 cat >conftest.$ac_ext <<_ACEOF
23976 /* confdefs.h. */
23977 _ACEOF
23978 cat confdefs.h >>conftest.$ac_ext
23979 cat >>conftest.$ac_ext <<_ACEOF
23980 /* end confdefs.h. */
23981 void fred (int *restrict x);
23982 int
23983 main ()
23984 {
23985
23986 ;
23987 return 0;
23988 }
23989 _ACEOF
23990 rm -f conftest.$ac_objext
23991 if { (ac_try="$ac_compile"
23992 case "(($ac_try" in
23993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994 *) ac_try_echo=$ac_try;;
23995 esac
23996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23997 (eval "$ac_compile") 2>conftest.er1
23998 ac_status=$?
23999 grep -v '^ *+' conftest.er1 >conftest.err
24000 rm -f conftest.er1
24001 cat conftest.err >&5
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); } && {
24004 test -z "$ac_c_werror_flag" ||
24005 test ! -s conftest.err
24006 } && test -s conftest.$ac_objext; then
24007 emacs_cv_c_restrict=yes
24008 else
24009 echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24011
24012 cat >conftest.$ac_ext <<_ACEOF
24013 /* confdefs.h. */
24014 _ACEOF
24015 cat confdefs.h >>conftest.$ac_ext
24016 cat >>conftest.$ac_ext <<_ACEOF
24017 /* end confdefs.h. */
24018 void fred (int *__restrict x);
24019 int
24020 main ()
24021 {
24022
24023 ;
24024 return 0;
24025 }
24026 _ACEOF
24027 rm -f conftest.$ac_objext
24028 if { (ac_try="$ac_compile"
24029 case "(($ac_try" in
24030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24031 *) ac_try_echo=$ac_try;;
24032 esac
24033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24034 (eval "$ac_compile") 2>conftest.er1
24035 ac_status=$?
24036 grep -v '^ *+' conftest.er1 >conftest.err
24037 rm -f conftest.er1
24038 cat conftest.err >&5
24039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040 (exit $ac_status); } && {
24041 test -z "$ac_c_werror_flag" ||
24042 test ! -s conftest.err
24043 } && test -s conftest.$ac_objext; then
24044 emacs_cv_c_restrict=__restrict
24045 else
24046 echo "$as_me: failed program was:" >&5
24047 sed 's/^/| /' conftest.$ac_ext >&5
24048
24049 emacs_cv_c_restrict=no
24050 fi
24051
24052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24053 fi
24054
24055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24056 fi
24057 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24058 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24059 case "$emacs_cv_c_restrict" in
24060 yes) emacs_restrict=restrict;;
24061 no) emacs_restrict="";;
24062 *) emacs_restrict="$emacs_cv_c_restrict";;
24063 esac
24064 if test "$emacs_restrict" != __restrict; then
24065
24066 cat >>confdefs.h <<_ACEOF
24067 #define __restrict $emacs_restrict
24068 _ACEOF
24069
24070 fi
24071
24072 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24073 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24074 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24075 echo $ECHO_N "(cached) $ECHO_C" >&6
24076 else
24077 cat >conftest.$ac_ext <<_ACEOF
24078 /* confdefs.h. */
24079 _ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 void fred (int x[__restrict]);
24084 int
24085 main ()
24086 {
24087
24088 ;
24089 return 0;
24090 }
24091 _ACEOF
24092 rm -f conftest.$ac_objext
24093 if { (ac_try="$ac_compile"
24094 case "(($ac_try" in
24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24097 esac
24098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099 (eval "$ac_compile") 2>conftest.er1
24100 ac_status=$?
24101 grep -v '^ *+' conftest.er1 >conftest.err
24102 rm -f conftest.er1
24103 cat conftest.err >&5
24104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105 (exit $ac_status); } && {
24106 test -z "$ac_c_werror_flag" ||
24107 test ! -s conftest.err
24108 } && test -s conftest.$ac_objext; then
24109 emacs_cv_c_restrict_arr=yes
24110 else
24111 echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24113
24114 emacs_cv_c_restrict_arr=no
24115 fi
24116
24117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24118 fi
24119 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24120 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24121 if test "$emacs_cv_c_restrict_arr" = yes; then
24122
24123 cat >>confdefs.h <<\_ACEOF
24124 #define __restrict_arr __restrict
24125 _ACEOF
24126
24127 fi
24128
24129
24130
24131 # Set up the CFLAGS for real compilation, so we can substitute it.
24132 CFLAGS="$REAL_CFLAGS"
24133 CPPFLAGS="$REAL_CPPFLAGS"
24134
24135 #### Find out which version of Emacs this is.
24136 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24137 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24138 if test x"${version}" = x; then
24139 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24140 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24141 { (exit 1); exit 1; }; }
24142 fi
24143
24144 ### Specify what sort of things we'll be editing into Makefile and config.h.
24145 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181 cat >>confdefs.h <<_ACEOF
24182 #define EMACS_CONFIGURATION "${canonical}"
24183 _ACEOF
24184
24185
24186 cat >>confdefs.h <<_ACEOF
24187 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24188 _ACEOF
24189
24190
24191 cat >>confdefs.h <<_ACEOF
24192 #define config_machfile "${machfile}"
24193 _ACEOF
24194
24195
24196 cat >>confdefs.h <<_ACEOF
24197 #define config_opsysfile "${opsysfile}"
24198 _ACEOF
24199
24200
24201 cat >>confdefs.h <<_ACEOF
24202 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24203 _ACEOF
24204
24205
24206 cat >>confdefs.h <<_ACEOF
24207 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24208 _ACEOF
24209
24210
24211 cat >>confdefs.h <<_ACEOF
24212 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24213 _ACEOF
24214
24215
24216 cat >>confdefs.h <<_ACEOF
24217 #define UNEXEC_SRC ${UNEXEC_SRC}
24218 _ACEOF
24219
24220
24221 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24222
24223 cat >>confdefs.h <<\_ACEOF
24224 #define HAVE_X_WINDOWS 1
24225 _ACEOF
24226
24227 fi
24228 if test "${USE_X_TOOLKIT}" != "none" ; then
24229
24230 cat >>confdefs.h <<\_ACEOF
24231 #define USE_X_TOOLKIT 1
24232 _ACEOF
24233
24234 if test "${USE_X_TOOLKIT}" == "LUCID"; then
24235
24236 cat >>confdefs.h <<\_ACEOF
24237 #define USE_LUCID 1
24238 _ACEOF
24239
24240 elif test "${USE_X_TOOLKIT}" == "MOTIF"; then
24241
24242 cat >>confdefs.h <<\_ACEOF
24243 #define USE_MOTIF 1
24244 _ACEOF
24245
24246 fi
24247 fi
24248 if test "${HAVE_X11}" = "yes" ; then
24249
24250 cat >>confdefs.h <<\_ACEOF
24251 #define HAVE_X11 1
24252 _ACEOF
24253
24254 fi
24255 if test "${HAVE_MENUS}" = "yes" ; then
24256
24257 cat >>confdefs.h <<\_ACEOF
24258 #define HAVE_MENUS 1
24259 _ACEOF
24260
24261 fi
24262 if test "${GNU_MALLOC}" = "yes" ; then
24263
24264 cat >>confdefs.h <<\_ACEOF
24265 #define GNU_MALLOC 1
24266 _ACEOF
24267
24268 fi
24269 if test "${REL_ALLOC}" = "yes" ; then
24270
24271 cat >>confdefs.h <<\_ACEOF
24272 #define REL_ALLOC 1
24273 _ACEOF
24274
24275 fi
24276
24277
24278
24279
24280
24281
24282 #### Report on what we decided to do.
24283 #### Report GTK as a toolkit, even if it doesn't use Xt.
24284 #### It makes printing result more understandable as using GTK sets
24285 #### toolkit_scroll_bars to yes by default.
24286 if test "${HAVE_GTK}" = "yes"; then
24287 USE_X_TOOLKIT=GTK
24288 fi
24289
24290 echo "
24291 Configured for \`${canonical}'.
24292
24293 Where should the build process find the source code? ${srcdir}
24294 What operating system and machine description files should Emacs use?
24295 \`${opsysfile}' and \`${machfile}'
24296 What compiler should emacs be built with? ${CC} ${CFLAGS}
24297 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24298 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24299 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24300 What window system should Emacs use? ${window_system}
24301 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24302
24303 if test -n "${x_includes}"; then
24304 echo " Where do we find X Windows header files? ${x_includes}"
24305 else
24306 echo " Where do we find X Windows header files? Standard dirs"
24307 fi
24308 if test -n "${x_libraries}"; then
24309 echo " Where do we find X Windows libraries? ${x_libraries}"
24310 else
24311 echo " Where do we find X Windows libraries? Standard dirs"
24312 fi
24313
24314 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24315 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24316 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24317 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24318 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24319 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24320 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24321 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24322 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24323 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
24324
24325 if test "${USE_FONT_BACKEND}" = "yes"; then
24326 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24327 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24328 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24329 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24330 fi
24331 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24332 echo
24333
24334 if test $USE_XASSERTS = yes; then
24335 echo " Compiling with asserts turned on."
24336 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24337 fi
24338
24339 echo
24340
24341 if test "$USE_X_TOOLKIT" = GTK; then
24342 case "$canonical" in
24343 *cygwin*)
24344 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24345 will probably get a crash on startup. If this happens, please use another
24346 toolkit for Emacs. See etc/PROBLEMS for more information."
24347 ;;
24348 esac
24349 fi
24350
24351
24352 if test "$HAVE_CARBON" = "yes"; then
24353 echo
24354 echo "Warning: The Mac Carbon port is currently unsupported and has
24355 known problems. It is not recommended for use by non-developers.
24356 Read the emacs-devel archives for more information."
24357 echo
24358 fi
24359
24360 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24361 echo "D-Bus integration has been tested for GNU/Linux only."
24362 echo
24363 fi
24364
24365
24366 # Remove any trailing slashes in these variables.
24367 test "${prefix}" != NONE &&
24368 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24369 test "${exec_prefix}" != NONE &&
24370 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24371
24372 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24373 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24374 ## from Makefile.c can correctly provide the arg `-traditional' to the
24375 ## C preprocessor.
24376
24377 cat >conftest.$ac_ext <<_ACEOF
24378 /* confdefs.h. */
24379 _ACEOF
24380 cat confdefs.h >>conftest.$ac_ext
24381 cat >>conftest.$ac_ext <<_ACEOF
24382 /* end confdefs.h. */
24383 yes..yes
24384 _ACEOF
24385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24386 $EGREP "yes..yes" >/dev/null 2>&1; then
24387 CPP_NEED_TRADITIONAL=no
24388 else
24389 CPP_NEED_TRADITIONAL=yes
24390 fi
24391 rm -f conftest*
24392
24393
24394 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
24395
24396 ac_config_commands="$ac_config_commands default"
24397
24398 cat >confcache <<\_ACEOF
24399 # This file is a shell script that caches the results of configure
24400 # tests run on this system so they can be shared between configure
24401 # scripts and configure runs, see configure's option --config-cache.
24402 # It is not useful on other systems. If it contains results you don't
24403 # want to keep, you may remove or edit it.
24404 #
24405 # config.status only pays attention to the cache file if you give it
24406 # the --recheck option to rerun configure.
24407 #
24408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24410 # following values.
24411
24412 _ACEOF
24413
24414 # The following way of writing the cache mishandles newlines in values,
24415 # but we know of no workaround that is simple, portable, and efficient.
24416 # So, we kill variables containing newlines.
24417 # Ultrix sh set writes to stderr and can't be redirected directly,
24418 # and sets the high bit in the cache file unless we assign to the vars.
24419 (
24420 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24421 eval ac_val=\$$ac_var
24422 case $ac_val in #(
24423 *${as_nl}*)
24424 case $ac_var in #(
24425 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24426 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24427 esac
24428 case $ac_var in #(
24429 _ | IFS | as_nl) ;; #(
24430 *) $as_unset $ac_var ;;
24431 esac ;;
24432 esac
24433 done
24434
24435 (set) 2>&1 |
24436 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24437 *${as_nl}ac_space=\ *)
24438 # `set' does not quote correctly, so add quotes (double-quote
24439 # substitution turns \\\\ into \\, and sed turns \\ into \).
24440 sed -n \
24441 "s/'/'\\\\''/g;
24442 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24443 ;; #(
24444 *)
24445 # `set' quotes correctly as required by POSIX, so do not add quotes.
24446 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24447 ;;
24448 esac |
24449 sort
24450 ) |
24451 sed '
24452 /^ac_cv_env_/b end
24453 t clear
24454 :clear
24455 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24456 t end
24457 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24458 :end' >>confcache
24459 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24460 if test -w "$cache_file"; then
24461 test "x$cache_file" != "x/dev/null" &&
24462 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24463 echo "$as_me: updating cache $cache_file" >&6;}
24464 cat confcache >$cache_file
24465 else
24466 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24467 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24468 fi
24469 fi
24470 rm -f confcache
24471
24472 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24473 # Let make expand exec_prefix.
24474 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24475
24476 DEFS=-DHAVE_CONFIG_H
24477
24478 ac_libobjs=
24479 ac_ltlibobjs=
24480 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24481 # 1. Remove the extension, and $U if already installed.
24482 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24483 ac_i=`echo "$ac_i" | sed "$ac_script"`
24484 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24485 # will be set to the directory where LIBOBJS objects are built.
24486 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24487 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24488 done
24489 LIBOBJS=$ac_libobjs
24490
24491 LTLIBOBJS=$ac_ltlibobjs
24492
24493
24494
24495 : ${CONFIG_STATUS=./config.status}
24496 ac_clean_files_save=$ac_clean_files
24497 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24498 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24499 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24500 cat >$CONFIG_STATUS <<_ACEOF
24501 #! $SHELL
24502 # Generated by $as_me.
24503 # Run this file to recreate the current configuration.
24504 # Compiler output produced by configure, useful for debugging
24505 # configure, is in config.log if it exists.
24506
24507 debug=false
24508 ac_cs_recheck=false
24509 ac_cs_silent=false
24510 SHELL=\${CONFIG_SHELL-$SHELL}
24511 _ACEOF
24512
24513 cat >>$CONFIG_STATUS <<\_ACEOF
24514 ## --------------------- ##
24515 ## M4sh Initialization. ##
24516 ## --------------------- ##
24517
24518 # Be more Bourne compatible
24519 DUALCASE=1; export DUALCASE # for MKS sh
24520 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24521 emulate sh
24522 NULLCMD=:
24523 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24524 # is contrary to our usage. Disable this feature.
24525 alias -g '${1+"$@"}'='"$@"'
24526 setopt NO_GLOB_SUBST
24527 else
24528 case `(set -o) 2>/dev/null` in
24529 *posix*) set -o posix ;;
24530 esac
24531
24532 fi
24533
24534
24535
24536
24537 # PATH needs CR
24538 # Avoid depending upon Character Ranges.
24539 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24540 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24541 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24542 as_cr_digits='0123456789'
24543 as_cr_alnum=$as_cr_Letters$as_cr_digits
24544
24545 # The user is always right.
24546 if test "${PATH_SEPARATOR+set}" != set; then
24547 echo "#! /bin/sh" >conf$$.sh
24548 echo "exit 0" >>conf$$.sh
24549 chmod +x conf$$.sh
24550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24551 PATH_SEPARATOR=';'
24552 else
24553 PATH_SEPARATOR=:
24554 fi
24555 rm -f conf$$.sh
24556 fi
24557
24558 # Support unset when possible.
24559 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24560 as_unset=unset
24561 else
24562 as_unset=false
24563 fi
24564
24565
24566 # IFS
24567 # We need space, tab and new line, in precisely that order. Quoting is
24568 # there to prevent editors from complaining about space-tab.
24569 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24570 # splitting by setting IFS to empty value.)
24571 as_nl='
24572 '
24573 IFS=" "" $as_nl"
24574
24575 # Find who we are. Look in the path if we contain no directory separator.
24576 case $0 in
24577 *[\\/]* ) as_myself=$0 ;;
24578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24579 for as_dir in $PATH
24580 do
24581 IFS=$as_save_IFS
24582 test -z "$as_dir" && as_dir=.
24583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24584 done
24585 IFS=$as_save_IFS
24586
24587 ;;
24588 esac
24589 # We did not find ourselves, most probably we were run as `sh COMMAND'
24590 # in which case we are not to be found in the path.
24591 if test "x$as_myself" = x; then
24592 as_myself=$0
24593 fi
24594 if test ! -f "$as_myself"; then
24595 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24596 { (exit 1); exit 1; }
24597 fi
24598
24599 # Work around bugs in pre-3.0 UWIN ksh.
24600 for as_var in ENV MAIL MAILPATH
24601 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24602 done
24603 PS1='$ '
24604 PS2='> '
24605 PS4='+ '
24606
24607 # NLS nuisances.
24608 for as_var in \
24609 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24610 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24611 LC_TELEPHONE LC_TIME
24612 do
24613 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24614 eval $as_var=C; export $as_var
24615 else
24616 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24617 fi
24618 done
24619
24620 # Required to use basename.
24621 if expr a : '\(a\)' >/dev/null 2>&1 &&
24622 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24623 as_expr=expr
24624 else
24625 as_expr=false
24626 fi
24627
24628 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24629 as_basename=basename
24630 else
24631 as_basename=false
24632 fi
24633
24634
24635 # Name of the executable.
24636 as_me=`$as_basename -- "$0" ||
24637 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24638 X"$0" : 'X\(//\)$' \| \
24639 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24640 echo X/"$0" |
24641 sed '/^.*\/\([^/][^/]*\)\/*$/{
24642 s//\1/
24643 q
24644 }
24645 /^X\/\(\/\/\)$/{
24646 s//\1/
24647 q
24648 }
24649 /^X\/\(\/\).*/{
24650 s//\1/
24651 q
24652 }
24653 s/.*/./; q'`
24654
24655 # CDPATH.
24656 $as_unset CDPATH
24657
24658
24659
24660 as_lineno_1=$LINENO
24661 as_lineno_2=$LINENO
24662 test "x$as_lineno_1" != "x$as_lineno_2" &&
24663 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24664
24665 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24666 # uniformly replaced by the line number. The first 'sed' inserts a
24667 # line-number line after each line using $LINENO; the second 'sed'
24668 # does the real work. The second script uses 'N' to pair each
24669 # line-number line with the line containing $LINENO, and appends
24670 # trailing '-' during substitution so that $LINENO is not a special
24671 # case at line end.
24672 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24673 # scripts with optimization help from Paolo Bonzini. Blame Lee
24674 # E. McMahon (1931-1989) for sed's syntax. :-)
24675 sed -n '
24676 p
24677 /[$]LINENO/=
24678 ' <$as_myself |
24679 sed '
24680 s/[$]LINENO.*/&-/
24681 t lineno
24682 b
24683 :lineno
24684 N
24685 :loop
24686 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24687 t loop
24688 s/-\n.*//
24689 ' >$as_me.lineno &&
24690 chmod +x "$as_me.lineno" ||
24691 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24692 { (exit 1); exit 1; }; }
24693
24694 # Don't try to exec as it changes $[0], causing all sort of problems
24695 # (the dirname of $[0] is not the place where we might find the
24696 # original and so on. Autoconf is especially sensitive to this).
24697 . "./$as_me.lineno"
24698 # Exit status is that of the last command.
24699 exit
24700 }
24701
24702
24703 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24704 as_dirname=dirname
24705 else
24706 as_dirname=false
24707 fi
24708
24709 ECHO_C= ECHO_N= ECHO_T=
24710 case `echo -n x` in
24711 -n*)
24712 case `echo 'x\c'` in
24713 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24714 *) ECHO_C='\c';;
24715 esac;;
24716 *)
24717 ECHO_N='-n';;
24718 esac
24719
24720 if expr a : '\(a\)' >/dev/null 2>&1 &&
24721 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24722 as_expr=expr
24723 else
24724 as_expr=false
24725 fi
24726
24727 rm -f conf$$ conf$$.exe conf$$.file
24728 if test -d conf$$.dir; then
24729 rm -f conf$$.dir/conf$$.file
24730 else
24731 rm -f conf$$.dir
24732 mkdir conf$$.dir
24733 fi
24734 echo >conf$$.file
24735 if ln -s conf$$.file conf$$ 2>/dev/null; then
24736 as_ln_s='ln -s'
24737 # ... but there are two gotchas:
24738 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24739 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24740 # In both cases, we have to default to `cp -p'.
24741 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24742 as_ln_s='cp -p'
24743 elif ln conf$$.file conf$$ 2>/dev/null; then
24744 as_ln_s=ln
24745 else
24746 as_ln_s='cp -p'
24747 fi
24748 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24749 rmdir conf$$.dir 2>/dev/null
24750
24751 if mkdir -p . 2>/dev/null; then
24752 as_mkdir_p=:
24753 else
24754 test -d ./-p && rmdir ./-p
24755 as_mkdir_p=false
24756 fi
24757
24758 if test -x / >/dev/null 2>&1; then
24759 as_test_x='test -x'
24760 else
24761 if ls -dL / >/dev/null 2>&1; then
24762 as_ls_L_option=L
24763 else
24764 as_ls_L_option=
24765 fi
24766 as_test_x='
24767 eval sh -c '\''
24768 if test -d "$1"; then
24769 test -d "$1/.";
24770 else
24771 case $1 in
24772 -*)set "./$1";;
24773 esac;
24774 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24775 ???[sx]*):;;*)false;;esac;fi
24776 '\'' sh
24777 '
24778 fi
24779 as_executable_p=$as_test_x
24780
24781 # Sed expression to map a string onto a valid CPP name.
24782 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24783
24784 # Sed expression to map a string onto a valid variable name.
24785 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24786
24787
24788 exec 6>&1
24789
24790 # Save the log message, to keep $[0] and so on meaningful, and to
24791 # report actual input values of CONFIG_FILES etc. instead of their
24792 # values after options handling.
24793 ac_log="
24794 This file was extended by emacs $as_me 23.0.60, which was
24795 generated by GNU Autoconf 2.61. Invocation command line was
24796
24797 CONFIG_FILES = $CONFIG_FILES
24798 CONFIG_HEADERS = $CONFIG_HEADERS
24799 CONFIG_LINKS = $CONFIG_LINKS
24800 CONFIG_COMMANDS = $CONFIG_COMMANDS
24801 $ $0 $@
24802
24803 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24804 "
24805
24806 _ACEOF
24807
24808 cat >>$CONFIG_STATUS <<_ACEOF
24809 # Files that config.status was made for.
24810 config_files="$ac_config_files"
24811 config_headers="$ac_config_headers"
24812 config_commands="$ac_config_commands"
24813
24814 _ACEOF
24815
24816 cat >>$CONFIG_STATUS <<\_ACEOF
24817 ac_cs_usage="\
24818 \`$as_me' instantiates files from templates according to the
24819 current configuration.
24820
24821 Usage: $0 [OPTIONS] [FILE]...
24822
24823 -h, --help print this help, then exit
24824 -V, --version print version number and configuration settings, then exit
24825 -q, --quiet do not print progress messages
24826 -d, --debug don't remove temporary files
24827 --recheck update $as_me by reconfiguring in the same conditions
24828 --file=FILE[:TEMPLATE]
24829 instantiate the configuration file FILE
24830 --header=FILE[:TEMPLATE]
24831 instantiate the configuration header FILE
24832
24833 Configuration files:
24834 $config_files
24835
24836 Configuration headers:
24837 $config_headers
24838
24839 Configuration commands:
24840 $config_commands
24841
24842 Report bugs to <bug-autoconf@gnu.org>."
24843
24844 _ACEOF
24845 cat >>$CONFIG_STATUS <<_ACEOF
24846 ac_cs_version="\\
24847 emacs config.status 23.0.60
24848 configured by $0, generated by GNU Autoconf 2.61,
24849 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24850
24851 Copyright (C) 2006 Free Software Foundation, Inc.
24852 This config.status script is free software; the Free Software Foundation
24853 gives unlimited permission to copy, distribute and modify it."
24854
24855 ac_pwd='$ac_pwd'
24856 srcdir='$srcdir'
24857 INSTALL='$INSTALL'
24858 _ACEOF
24859
24860 cat >>$CONFIG_STATUS <<\_ACEOF
24861 # If no file are specified by the user, then we need to provide default
24862 # value. By we need to know if files were specified by the user.
24863 ac_need_defaults=:
24864 while test $# != 0
24865 do
24866 case $1 in
24867 --*=*)
24868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24869 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24870 ac_shift=:
24871 ;;
24872 *)
24873 ac_option=$1
24874 ac_optarg=$2
24875 ac_shift=shift
24876 ;;
24877 esac
24878
24879 case $ac_option in
24880 # Handling of the options.
24881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24882 ac_cs_recheck=: ;;
24883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24884 echo "$ac_cs_version"; exit ;;
24885 --debug | --debu | --deb | --de | --d | -d )
24886 debug=: ;;
24887 --file | --fil | --fi | --f )
24888 $ac_shift
24889 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24890 ac_need_defaults=false;;
24891 --header | --heade | --head | --hea )
24892 $ac_shift
24893 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24894 ac_need_defaults=false;;
24895 --he | --h)
24896 # Conflict between --help and --header
24897 { echo "$as_me: error: ambiguous option: $1
24898 Try \`$0 --help' for more information." >&2
24899 { (exit 1); exit 1; }; };;
24900 --help | --hel | -h )
24901 echo "$ac_cs_usage"; exit ;;
24902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24903 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24904 ac_cs_silent=: ;;
24905
24906 # This is an error.
24907 -*) { echo "$as_me: error: unrecognized option: $1
24908 Try \`$0 --help' for more information." >&2
24909 { (exit 1); exit 1; }; } ;;
24910
24911 *) ac_config_targets="$ac_config_targets $1"
24912 ac_need_defaults=false ;;
24913
24914 esac
24915 shift
24916 done
24917
24918 ac_configure_extra_args=
24919
24920 if $ac_cs_silent; then
24921 exec 6>/dev/null
24922 ac_configure_extra_args="$ac_configure_extra_args --silent"
24923 fi
24924
24925 _ACEOF
24926 cat >>$CONFIG_STATUS <<_ACEOF
24927 if \$ac_cs_recheck; then
24928 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24929 CONFIG_SHELL=$SHELL
24930 export CONFIG_SHELL
24931 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24932 fi
24933
24934 _ACEOF
24935 cat >>$CONFIG_STATUS <<\_ACEOF
24936 exec 5>>config.log
24937 {
24938 echo
24939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24940 ## Running $as_me. ##
24941 _ASBOX
24942 echo "$ac_log"
24943 } >&5
24944
24945 _ACEOF
24946 cat >>$CONFIG_STATUS <<_ACEOF
24947 #
24948 # INIT-COMMANDS
24949 #
24950 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24951
24952 _ACEOF
24953
24954 cat >>$CONFIG_STATUS <<\_ACEOF
24955
24956 # Handling of arguments.
24957 for ac_config_target in $ac_config_targets
24958 do
24959 case $ac_config_target in
24960 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24961 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24962 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24963 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24964 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24965 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24966 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24967 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24968 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24969 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24970 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24971 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24972 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24973
24974 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24975 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24976 { (exit 1); exit 1; }; };;
24977 esac
24978 done
24979
24980
24981 # If the user did not use the arguments to specify the items to instantiate,
24982 # then the envvar interface is used. Set only those that are not.
24983 # We use the long form for the default assignment because of an extremely
24984 # bizarre bug on SunOS 4.1.3.
24985 if $ac_need_defaults; then
24986 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24987 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24988 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24989 fi
24990
24991 # Have a temporary directory for convenience. Make it in the build tree
24992 # simply because there is no reason against having it here, and in addition,
24993 # creating and moving files from /tmp can sometimes cause problems.
24994 # Hook for its removal unless debugging.
24995 # Note that there is a small window in which the directory will not be cleaned:
24996 # after its creation but before its name has been assigned to `$tmp'.
24997 $debug ||
24998 {
24999 tmp=
25000 trap 'exit_status=$?
25001 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25002 ' 0
25003 trap '{ (exit 1); exit 1; }' 1 2 13 15
25004 }
25005 # Create a (secure) tmp directory for tmp files.
25006
25007 {
25008 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25009 test -n "$tmp" && test -d "$tmp"
25010 } ||
25011 {
25012 tmp=./conf$$-$RANDOM
25013 (umask 077 && mkdir "$tmp")
25014 } ||
25015 {
25016 echo "$me: cannot create a temporary directory in ." >&2
25017 { (exit 1); exit 1; }
25018 }
25019
25020 #
25021 # Set up the sed scripts for CONFIG_FILES section.
25022 #
25023
25024 # No need to generate the scripts if there are no CONFIG_FILES.
25025 # This happens for instance when ./config.status config.h
25026 if test -n "$CONFIG_FILES"; then
25027
25028 _ACEOF
25029
25030
25031
25032 ac_delim='%!_!# '
25033 for ac_last_try in false false false false false :; do
25034 cat >conf$$subs.sed <<_ACEOF
25035 SHELL!$SHELL$ac_delim
25036 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25037 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25038 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25039 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25040 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25041 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25042 exec_prefix!$exec_prefix$ac_delim
25043 prefix!$prefix$ac_delim
25044 program_transform_name!$program_transform_name$ac_delim
25045 bindir!$bindir$ac_delim
25046 sbindir!$sbindir$ac_delim
25047 libexecdir!$libexecdir$ac_delim
25048 datarootdir!$datarootdir$ac_delim
25049 datadir!$datadir$ac_delim
25050 sysconfdir!$sysconfdir$ac_delim
25051 sharedstatedir!$sharedstatedir$ac_delim
25052 localstatedir!$localstatedir$ac_delim
25053 includedir!$includedir$ac_delim
25054 oldincludedir!$oldincludedir$ac_delim
25055 docdir!$docdir$ac_delim
25056 infodir!$infodir$ac_delim
25057 htmldir!$htmldir$ac_delim
25058 dvidir!$dvidir$ac_delim
25059 pdfdir!$pdfdir$ac_delim
25060 psdir!$psdir$ac_delim
25061 libdir!$libdir$ac_delim
25062 localedir!$localedir$ac_delim
25063 mandir!$mandir$ac_delim
25064 DEFS!$DEFS$ac_delim
25065 ECHO_C!$ECHO_C$ac_delim
25066 ECHO_N!$ECHO_N$ac_delim
25067 ECHO_T!$ECHO_T$ac_delim
25068 LIBS!$LIBS$ac_delim
25069 build_alias!$build_alias$ac_delim
25070 host_alias!$host_alias$ac_delim
25071 target_alias!$target_alias$ac_delim
25072 MAINT!$MAINT$ac_delim
25073 build!$build$ac_delim
25074 build_cpu!$build_cpu$ac_delim
25075 build_vendor!$build_vendor$ac_delim
25076 build_os!$build_os$ac_delim
25077 host!$host$ac_delim
25078 host_cpu!$host_cpu$ac_delim
25079 host_vendor!$host_vendor$ac_delim
25080 host_os!$host_os$ac_delim
25081 CC!$CC$ac_delim
25082 CFLAGS!$CFLAGS$ac_delim
25083 LDFLAGS!$LDFLAGS$ac_delim
25084 CPPFLAGS!$CPPFLAGS$ac_delim
25085 ac_ct_CC!$ac_ct_CC$ac_delim
25086 EXEEXT!$EXEEXT$ac_delim
25087 OBJEXT!$OBJEXT$ac_delim
25088 CPP!$CPP$ac_delim
25089 GREP!$GREP$ac_delim
25090 EGREP!$EGREP$ac_delim
25091 LN_S!$LN_S$ac_delim
25092 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25093 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25094 INSTALL_DATA!$INSTALL_DATA$ac_delim
25095 RANLIB!$RANLIB$ac_delim
25096 INSTALL_INFO!$INSTALL_INFO$ac_delim
25097 GZIP_PROG!$GZIP_PROG$ac_delim
25098 MAKEINFO!$MAKEINFO$ac_delim
25099 LIBSOUND!$LIBSOUND$ac_delim
25100 PKG_CONFIG!$PKG_CONFIG$ac_delim
25101 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25102 ALSA_LIBS!$ALSA_LIBS$ac_delim
25103 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25104 SET_MAKE!$SET_MAKE$ac_delim
25105 XMKMF!$XMKMF$ac_delim
25106 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25107 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25108 RSVG_LIBS!$RSVG_LIBS$ac_delim
25109 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25110 GTK_LIBS!$GTK_LIBS$ac_delim
25111 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25112 DBUS_LIBS!$DBUS_LIBS$ac_delim
25113 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25114 XFT_LIBS!$XFT_LIBS$ac_delim
25115 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25116 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25117 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25118 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25119 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25120 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25121 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25122 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25123 ALLOCA!$ALLOCA$ac_delim
25124 liblockfile!$liblockfile$ac_delim
25125 LIBOBJS!$LIBOBJS$ac_delim
25126 NEED_SETGID!$NEED_SETGID$ac_delim
25127 KMEM_GROUP!$KMEM_GROUP$ac_delim
25128 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25129 GETOPT_H!$GETOPT_H$ac_delim
25130 GETOPTOBJS!$GETOPTOBJS$ac_delim
25131 version!$version$ac_delim
25132 _ACEOF
25133
25134 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25135 break
25136 elif $ac_last_try; then
25137 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25138 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25139 { (exit 1); exit 1; }; }
25140 else
25141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25142 fi
25143 done
25144
25145 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25146 if test -n "$ac_eof"; then
25147 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25148 ac_eof=`expr $ac_eof + 1`
25149 fi
25150
25151 cat >>$CONFIG_STATUS <<_ACEOF
25152 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25154 _ACEOF
25155 sed '
25156 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25157 s/^/s,@/; s/!/@,|#_!!_#|/
25158 :n
25159 t n
25160 s/'"$ac_delim"'$/,g/; t
25161 s/$/\\/; p
25162 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25163 ' >>$CONFIG_STATUS <conf$$subs.sed
25164 rm -f conf$$subs.sed
25165 cat >>$CONFIG_STATUS <<_ACEOF
25166 CEOF$ac_eof
25167 _ACEOF
25168
25169
25170 ac_delim='%!_!# '
25171 for ac_last_try in false false false false false :; do
25172 cat >conf$$subs.sed <<_ACEOF
25173 configuration!$configuration$ac_delim
25174 canonical!$canonical$ac_delim
25175 srcdir!$srcdir$ac_delim
25176 lispdir!$lispdir$ac_delim
25177 locallisppath!$locallisppath$ac_delim
25178 lisppath!$lisppath$ac_delim
25179 x_default_search_path!$x_default_search_path$ac_delim
25180 etcdir!$etcdir$ac_delim
25181 archlibdir!$archlibdir$ac_delim
25182 bitmapdir!$bitmapdir$ac_delim
25183 gamedir!$gamedir$ac_delim
25184 gameuser!$gameuser$ac_delim
25185 c_switch_system!$c_switch_system$ac_delim
25186 c_switch_machine!$c_switch_machine$ac_delim
25187 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25188 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25189 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25190 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25191 machfile!$machfile$ac_delim
25192 opsysfile!$opsysfile$ac_delim
25193 carbon_appdir!$carbon_appdir$ac_delim
25194 LTLIBOBJS!$LTLIBOBJS$ac_delim
25195 _ACEOF
25196
25197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25198 break
25199 elif $ac_last_try; then
25200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25201 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25202 { (exit 1); exit 1; }; }
25203 else
25204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25205 fi
25206 done
25207
25208 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25209 if test -n "$ac_eof"; then
25210 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25211 ac_eof=`expr $ac_eof + 1`
25212 fi
25213
25214 cat >>$CONFIG_STATUS <<_ACEOF
25215 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25217 _ACEOF
25218 sed '
25219 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25220 s/^/s,@/; s/!/@,|#_!!_#|/
25221 :n
25222 t n
25223 s/'"$ac_delim"'$/,g/; t
25224 s/$/\\/; p
25225 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25226 ' >>$CONFIG_STATUS <conf$$subs.sed
25227 rm -f conf$$subs.sed
25228 cat >>$CONFIG_STATUS <<_ACEOF
25229 :end
25230 s/|#_!!_#|//g
25231 CEOF$ac_eof
25232 _ACEOF
25233
25234
25235 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25236 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25237 # trailing colons and then remove the whole line if VPATH becomes empty
25238 # (actually we leave an empty line to preserve line numbers).
25239 if test "x$srcdir" = x.; then
25240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25241 s/:*\$(srcdir):*/:/
25242 s/:*\${srcdir}:*/:/
25243 s/:*@srcdir@:*/:/
25244 s/^\([^=]*=[ ]*\):*/\1/
25245 s/:*$//
25246 s/^[^=]*=[ ]*$//
25247 }'
25248 fi
25249
25250 cat >>$CONFIG_STATUS <<\_ACEOF
25251 fi # test -n "$CONFIG_FILES"
25252
25253
25254 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25255 do
25256 case $ac_tag in
25257 :[FHLC]) ac_mode=$ac_tag; continue;;
25258 esac
25259 case $ac_mode$ac_tag in
25260 :[FHL]*:*);;
25261 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25262 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25263 { (exit 1); exit 1; }; };;
25264 :[FH]-) ac_tag=-:-;;
25265 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25266 esac
25267 ac_save_IFS=$IFS
25268 IFS=:
25269 set x $ac_tag
25270 IFS=$ac_save_IFS
25271 shift
25272 ac_file=$1
25273 shift
25274
25275 case $ac_mode in
25276 :L) ac_source=$1;;
25277 :[FH])
25278 ac_file_inputs=
25279 for ac_f
25280 do
25281 case $ac_f in
25282 -) ac_f="$tmp/stdin";;
25283 *) # Look for the file first in the build tree, then in the source tree
25284 # (if the path is not absolute). The absolute path cannot be DOS-style,
25285 # because $ac_f cannot contain `:'.
25286 test -f "$ac_f" ||
25287 case $ac_f in
25288 [\\/$]*) false;;
25289 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25290 esac ||
25291 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25292 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25293 { (exit 1); exit 1; }; };;
25294 esac
25295 ac_file_inputs="$ac_file_inputs $ac_f"
25296 done
25297
25298 # Let's still pretend it is `configure' which instantiates (i.e., don't
25299 # use $as_me), people would be surprised to read:
25300 # /* config.h. Generated by config.status. */
25301 configure_input="Generated from "`IFS=:
25302 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25303 if test x"$ac_file" != x-; then
25304 configure_input="$ac_file. $configure_input"
25305 { echo "$as_me:$LINENO: creating $ac_file" >&5
25306 echo "$as_me: creating $ac_file" >&6;}
25307 fi
25308
25309 case $ac_tag in
25310 *:-:* | *:-) cat >"$tmp/stdin";;
25311 esac
25312 ;;
25313 esac
25314
25315 ac_dir=`$as_dirname -- "$ac_file" ||
25316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25317 X"$ac_file" : 'X\(//\)[^/]' \| \
25318 X"$ac_file" : 'X\(//\)$' \| \
25319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25320 echo X"$ac_file" |
25321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25322 s//\1/
25323 q
25324 }
25325 /^X\(\/\/\)[^/].*/{
25326 s//\1/
25327 q
25328 }
25329 /^X\(\/\/\)$/{
25330 s//\1/
25331 q
25332 }
25333 /^X\(\/\).*/{
25334 s//\1/
25335 q
25336 }
25337 s/.*/./; q'`
25338 { as_dir="$ac_dir"
25339 case $as_dir in #(
25340 -*) as_dir=./$as_dir;;
25341 esac
25342 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25343 as_dirs=
25344 while :; do
25345 case $as_dir in #(
25346 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25347 *) as_qdir=$as_dir;;
25348 esac
25349 as_dirs="'$as_qdir' $as_dirs"
25350 as_dir=`$as_dirname -- "$as_dir" ||
25351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25352 X"$as_dir" : 'X\(//\)[^/]' \| \
25353 X"$as_dir" : 'X\(//\)$' \| \
25354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25355 echo X"$as_dir" |
25356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25357 s//\1/
25358 q
25359 }
25360 /^X\(\/\/\)[^/].*/{
25361 s//\1/
25362 q
25363 }
25364 /^X\(\/\/\)$/{
25365 s//\1/
25366 q
25367 }
25368 /^X\(\/\).*/{
25369 s//\1/
25370 q
25371 }
25372 s/.*/./; q'`
25373 test -d "$as_dir" && break
25374 done
25375 test -z "$as_dirs" || eval "mkdir $as_dirs"
25376 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25377 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25378 { (exit 1); exit 1; }; }; }
25379 ac_builddir=.
25380
25381 case "$ac_dir" in
25382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25383 *)
25384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25385 # A ".." for each directory in $ac_dir_suffix.
25386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25387 case $ac_top_builddir_sub in
25388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25390 esac ;;
25391 esac
25392 ac_abs_top_builddir=$ac_pwd
25393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25394 # for backward compatibility:
25395 ac_top_builddir=$ac_top_build_prefix
25396
25397 case $srcdir in
25398 .) # We are building in place.
25399 ac_srcdir=.
25400 ac_top_srcdir=$ac_top_builddir_sub
25401 ac_abs_top_srcdir=$ac_pwd ;;
25402 [\\/]* | ?:[\\/]* ) # Absolute name.
25403 ac_srcdir=$srcdir$ac_dir_suffix;
25404 ac_top_srcdir=$srcdir
25405 ac_abs_top_srcdir=$srcdir ;;
25406 *) # Relative name.
25407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25408 ac_top_srcdir=$ac_top_build_prefix$srcdir
25409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25410 esac
25411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25412
25413
25414 case $ac_mode in
25415 :F)
25416 #
25417 # CONFIG_FILE
25418 #
25419
25420 case $INSTALL in
25421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25423 esac
25424 _ACEOF
25425
25426 cat >>$CONFIG_STATUS <<\_ACEOF
25427 # If the template does not know about datarootdir, expand it.
25428 # FIXME: This hack should be removed a few years after 2.60.
25429 ac_datarootdir_hack=; ac_datarootdir_seen=
25430
25431 case `sed -n '/datarootdir/ {
25432 p
25433 q
25434 }
25435 /@datadir@/p
25436 /@docdir@/p
25437 /@infodir@/p
25438 /@localedir@/p
25439 /@mandir@/p
25440 ' $ac_file_inputs` in
25441 *datarootdir*) ac_datarootdir_seen=yes;;
25442 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25443 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25444 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25445 _ACEOF
25446 cat >>$CONFIG_STATUS <<_ACEOF
25447 ac_datarootdir_hack='
25448 s&@datadir@&$datadir&g
25449 s&@docdir@&$docdir&g
25450 s&@infodir@&$infodir&g
25451 s&@localedir@&$localedir&g
25452 s&@mandir@&$mandir&g
25453 s&\\\${datarootdir}&$datarootdir&g' ;;
25454 esac
25455 _ACEOF
25456
25457 # Neutralize VPATH when `$srcdir' = `.'.
25458 # Shell code in configure.ac might set extrasub.
25459 # FIXME: do we really want to maintain this feature?
25460 cat >>$CONFIG_STATUS <<_ACEOF
25461 sed "$ac_vpsub
25462 $extrasub
25463 _ACEOF
25464 cat >>$CONFIG_STATUS <<\_ACEOF
25465 :t
25466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25467 s&@configure_input@&$configure_input&;t t
25468 s&@top_builddir@&$ac_top_builddir_sub&;t t
25469 s&@srcdir@&$ac_srcdir&;t t
25470 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25471 s&@top_srcdir@&$ac_top_srcdir&;t t
25472 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25473 s&@builddir@&$ac_builddir&;t t
25474 s&@abs_builddir@&$ac_abs_builddir&;t t
25475 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25476 s&@INSTALL@&$ac_INSTALL&;t t
25477 $ac_datarootdir_hack
25478 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25479
25480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25483 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25484 which seems to be undefined. Please make sure it is defined." >&5
25485 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25486 which seems to be undefined. Please make sure it is defined." >&2;}
25487
25488 rm -f "$tmp/stdin"
25489 case $ac_file in
25490 -) cat "$tmp/out"; rm -f "$tmp/out";;
25491 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25492 esac
25493 ;;
25494 :H)
25495 #
25496 # CONFIG_HEADER
25497 #
25498 _ACEOF
25499
25500 # Transform confdefs.h into a sed script `conftest.defines', that
25501 # substitutes the proper values into config.h.in to produce config.h.
25502 rm -f conftest.defines conftest.tail
25503 # First, append a space to every undef/define line, to ease matching.
25504 echo 's/$/ /' >conftest.defines
25505 # Then, protect against being on the right side of a sed subst, or in
25506 # an unquoted here document, in config.status. If some macros were
25507 # called several times there might be several #defines for the same
25508 # symbol, which is useless. But do not sort them, since the last
25509 # AC_DEFINE must be honored.
25510 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25511 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25512 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25513 # PARAMS is the parameter list in the macro definition--in most cases, it's
25514 # just an empty string.
25515 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25516 ac_dB='\\)[ (].*,\\1define\\2'
25517 ac_dC=' '
25518 ac_dD=' ,'
25519
25520 uniq confdefs.h |
25521 sed -n '
25522 t rset
25523 :rset
25524 s/^[ ]*#[ ]*define[ ][ ]*//
25525 t ok
25526 d
25527 :ok
25528 s/[\\&,]/\\&/g
25529 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25530 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25531 ' >>conftest.defines
25532
25533 # Remove the space that was appended to ease matching.
25534 # Then replace #undef with comments. This is necessary, for
25535 # example, in the case of _POSIX_SOURCE, which is predefined and required
25536 # on some systems where configure will not decide to define it.
25537 # (The regexp can be short, since the line contains either #define or #undef.)
25538 echo 's/ $//
25539 s,^[ #]*u.*,/* & */,' >>conftest.defines
25540
25541 # Break up conftest.defines:
25542 ac_max_sed_lines=50
25543
25544 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25545 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25546 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25547 # et cetera.
25548 ac_in='$ac_file_inputs'
25549 ac_out='"$tmp/out1"'
25550 ac_nxt='"$tmp/out2"'
25551
25552 while :
25553 do
25554 # Write a here document:
25555 cat >>$CONFIG_STATUS <<_ACEOF
25556 # First, check the format of the line:
25557 cat >"\$tmp/defines.sed" <<\\CEOF
25558 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25559 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25560 b
25561 :def
25562 _ACEOF
25563 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25564 echo 'CEOF
25565 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25566 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25567 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25568 grep . conftest.tail >/dev/null || break
25569 rm -f conftest.defines
25570 mv conftest.tail conftest.defines
25571 done
25572 rm -f conftest.defines conftest.tail
25573
25574 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25575 cat >>$CONFIG_STATUS <<\_ACEOF
25576 if test x"$ac_file" != x-; then
25577 echo "/* $configure_input */" >"$tmp/config.h"
25578 cat "$ac_result" >>"$tmp/config.h"
25579 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25580 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25581 echo "$as_me: $ac_file is unchanged" >&6;}
25582 else
25583 rm -f $ac_file
25584 mv "$tmp/config.h" $ac_file
25585 fi
25586 else
25587 echo "/* $configure_input */"
25588 cat "$ac_result"
25589 fi
25590 rm -f "$tmp/out12"
25591 ;;
25592
25593 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25594 echo "$as_me: executing $ac_file commands" >&6;}
25595 ;;
25596 esac
25597
25598
25599 case $ac_file$ac_mode in
25600 "default":C)
25601
25602 ### Make the necessary directories, if they don't exist.
25603 for dir in etc lisp ; do
25604 test -d ${dir} || mkdir ${dir}
25605 done
25606
25607 # Build src/Makefile from ${srcdir}/src/Makefile.c
25608 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25609 # This must be done after src/config.h is built, since we rely on that file.
25610
25611 # Now get this: Some word that is part of the ${srcdir} directory name
25612 # or the ${configuration} value might, just might, happen to be an
25613 # identifier like `sun4' or `i386' or something, and be predefined by
25614 # the C preprocessor to some helpful value like 1, or maybe the empty
25615 # string. Needless to say consequent macro substitutions are less
25616 # than conducive to the makefile finding the correct directory.
25617 undefs="`echo $top_srcdir $configuration $canonical |
25618 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25619 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25620 `"
25621
25622 echo creating src/epaths.h
25623 ${MAKE-make} epaths-force
25624
25625 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25626 # `..' to `. .' unless invoked with -traditional
25627
25628 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25629 CPPFLAGS="$CPPFLAGS -traditional"
25630 fi
25631
25632 echo creating lib-src/Makefile
25633 ( cd lib-src
25634 rm -f junk.c junk1.c junk2.c
25635 sed -e '/start of cpp stuff/q' \
25636 < Makefile.c > junk1.c
25637 sed -e '1,/start of cpp stuff/d'\
25638 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25639 < Makefile.c > junk.c
25640 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25641 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25642 cat junk1.c junk2.c > Makefile.new
25643 rm -f junk.c junk1.c junk2.c
25644 chmod 444 Makefile.new
25645 mv -f Makefile.new Makefile
25646 )
25647
25648 echo creating src/Makefile
25649 ( cd src
25650 rm -f junk.c junk1.c junk2.c
25651 sed -e '/start of cpp stuff/q' \
25652 < Makefile.c > junk1.c
25653 sed -e '1,/start of cpp stuff/d'\
25654 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25655 < Makefile.c > junk.c
25656 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25657 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25658 cat junk1.c junk2.c > Makefile.new
25659 rm -f junk.c junk1.c junk2.c
25660 chmod 444 Makefile.new
25661 mv -f Makefile.new Makefile
25662 )
25663
25664 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25665 echo creating src/.gdbinit
25666 echo source $srcdir/src/.gdbinit > src/.gdbinit
25667 fi
25668
25669 # This is how we know whether to re-run configure in certain cases.
25670 touch src/config.stamp
25671
25672 ;;
25673
25674 esac
25675 done # for ac_tag
25676
25677
25678 { (exit 0); exit 0; }
25679 _ACEOF
25680 chmod +x $CONFIG_STATUS
25681 ac_clean_files=$ac_clean_files_save
25682
25683
25684 # configure is writing to config.log, and then calls config.status.
25685 # config.status does its own redirection, appending to config.log.
25686 # Unfortunately, on DOS this fails, as config.log is still kept open
25687 # by configure, so config.status won't be able to write to it; its
25688 # output is simply discarded. So we exec the FD to /dev/null,
25689 # effectively closing config.log, so it can be properly (re)opened and
25690 # appended to by config.status. When coming back to configure, we
25691 # need to make the FD available again.
25692 if test "$no_create" != yes; then
25693 ac_cs_success=:
25694 ac_config_status_args=
25695 test "$silent" = yes &&
25696 ac_config_status_args="$ac_config_status_args --quiet"
25697 exec 5>/dev/null
25698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25699 exec 5>>config.log
25700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25701 # would make configure fail if this is the last instruction.
25702 $ac_cs_success || { (exit 1); exit 1; }
25703 fi
25704
25705