New file.
[bpt/emacs.git] / 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 ns_appdir
737 ns_appbindir
738 ns_appresdir
739 ns_appsrc
740 GNUSTEP_MAKEFILES
741 GNU_OBJC_CFLAGS
742 LIB_SRC_EXTRA_INSTALLABLES
743 LTLIBOBJS'
744 ac_subst_files=''
745 ac_precious_vars='build_alias
746 host_alias
747 target_alias
748 CC
749 CFLAGS
750 LDFLAGS
751 LIBS
752 CPPFLAGS
753 CPP
754 XMKMF'
755
756
757 # Initialize some variables set by options.
758 ac_init_help=
759 ac_init_version=false
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
762 cache_file=/dev/null
763 exec_prefix=NONE
764 no_create=
765 no_recursion=
766 prefix=NONE
767 program_prefix=NONE
768 program_suffix=NONE
769 program_transform_name=s,x,x,
770 silent=
771 site=
772 srcdir=
773 verbose=
774 x_includes=NONE
775 x_libraries=NONE
776
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
795 htmldir='${docdir}'
796 dvidir='${docdir}'
797 pdfdir='${docdir}'
798 psdir='${docdir}'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
802
803 ac_prev=
804 ac_dashdash=
805 for ac_option
806 do
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
810 ac_prev=
811 continue
812 fi
813
814 case $ac_option in
815 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816 *) ac_optarg=yes ;;
817 esac
818
819 # Accept the important Cygnus configure options, so we can diagnose typos.
820
821 case $ac_dashdash$ac_option in
822 --)
823 ac_dashdash=yes ;;
824
825 -bindir | --bindir | --bindi | --bind | --bin | --bi)
826 ac_prev=bindir ;;
827 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
828 bindir=$ac_optarg ;;
829
830 -build | --build | --buil | --bui | --bu)
831 ac_prev=build_alias ;;
832 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833 build_alias=$ac_optarg ;;
834
835 -cache-file | --cache-file | --cache-fil | --cache-fi \
836 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837 ac_prev=cache_file ;;
838 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840 cache_file=$ac_optarg ;;
841
842 --config-cache | -C)
843 cache_file=config.cache ;;
844
845 -datadir | --datadir | --datadi | --datad)
846 ac_prev=datadir ;;
847 -datadir=* | --datadir=* | --datadi=* | --datad=*)
848 datadir=$ac_optarg ;;
849
850 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851 | --dataroo | --dataro | --datar)
852 ac_prev=datarootdir ;;
853 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855 datarootdir=$ac_optarg ;;
856
857 -disable-* | --disable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_$ac_feature=no ;;
865
866 -docdir | --docdir | --docdi | --doc | --do)
867 ac_prev=docdir ;;
868 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
869 docdir=$ac_optarg ;;
870
871 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
872 ac_prev=dvidir ;;
873 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
874 dvidir=$ac_optarg ;;
875
876 -enable-* | --enable-*)
877 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
880 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
881 { (exit 1); exit 1; }; }
882 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
883 eval enable_$ac_feature=\$ac_optarg ;;
884
885 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887 | --exec | --exe | --ex)
888 ac_prev=exec_prefix ;;
889 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891 | --exec=* | --exe=* | --ex=*)
892 exec_prefix=$ac_optarg ;;
893
894 -gas | --gas | --ga | --g)
895 # Obsolete; use --with-gas.
896 with_gas=yes ;;
897
898 -help | --help | --hel | --he | -h)
899 ac_init_help=long ;;
900 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901 ac_init_help=recursive ;;
902 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903 ac_init_help=short ;;
904
905 -host | --host | --hos | --ho)
906 ac_prev=host_alias ;;
907 -host=* | --host=* | --hos=* | --ho=*)
908 host_alias=$ac_optarg ;;
909
910 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911 ac_prev=htmldir ;;
912 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913 | --ht=*)
914 htmldir=$ac_optarg ;;
915
916 -includedir | --includedir | --includedi | --included | --include \
917 | --includ | --inclu | --incl | --inc)
918 ac_prev=includedir ;;
919 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920 | --includ=* | --inclu=* | --incl=* | --inc=*)
921 includedir=$ac_optarg ;;
922
923 -infodir | --infodir | --infodi | --infod | --info | --inf)
924 ac_prev=infodir ;;
925 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926 infodir=$ac_optarg ;;
927
928 -libdir | --libdir | --libdi | --libd)
929 ac_prev=libdir ;;
930 -libdir=* | --libdir=* | --libdi=* | --libd=*)
931 libdir=$ac_optarg ;;
932
933 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934 | --libexe | --libex | --libe)
935 ac_prev=libexecdir ;;
936 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937 | --libexe=* | --libex=* | --libe=*)
938 libexecdir=$ac_optarg ;;
939
940 -localedir | --localedir | --localedi | --localed | --locale)
941 ac_prev=localedir ;;
942 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943 localedir=$ac_optarg ;;
944
945 -localstatedir | --localstatedir | --localstatedi | --localstated \
946 | --localstate | --localstat | --localsta | --localst | --locals)
947 ac_prev=localstatedir ;;
948 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950 localstatedir=$ac_optarg ;;
951
952 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
953 ac_prev=mandir ;;
954 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
955 mandir=$ac_optarg ;;
956
957 -nfp | --nfp | --nf)
958 # Obsolete; use --without-fp.
959 with_fp=no ;;
960
961 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
962 | --no-cr | --no-c | -n)
963 no_create=yes ;;
964
965 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
967 no_recursion=yes ;;
968
969 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971 | --oldin | --oldi | --old | --ol | --o)
972 ac_prev=oldincludedir ;;
973 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976 oldincludedir=$ac_optarg ;;
977
978 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
979 ac_prev=prefix ;;
980 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
981 prefix=$ac_optarg ;;
982
983 -program-prefix | --program-prefix | --program-prefi | --program-pref \
984 | --program-pre | --program-pr | --program-p)
985 ac_prev=program_prefix ;;
986 -program-prefix=* | --program-prefix=* | --program-prefi=* \
987 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988 program_prefix=$ac_optarg ;;
989
990 -program-suffix | --program-suffix | --program-suffi | --program-suff \
991 | --program-suf | --program-su | --program-s)
992 ac_prev=program_suffix ;;
993 -program-suffix=* | --program-suffix=* | --program-suffi=* \
994 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995 program_suffix=$ac_optarg ;;
996
997 -program-transform-name | --program-transform-name \
998 | --program-transform-nam | --program-transform-na \
999 | --program-transform-n | --program-transform- \
1000 | --program-transform | --program-transfor \
1001 | --program-transfo | --program-transf \
1002 | --program-trans | --program-tran \
1003 | --progr-tra | --program-tr | --program-t)
1004 ac_prev=program_transform_name ;;
1005 -program-transform-name=* | --program-transform-name=* \
1006 | --program-transform-nam=* | --program-transform-na=* \
1007 | --program-transform-n=* | --program-transform-=* \
1008 | --program-transform=* | --program-transfor=* \
1009 | --program-transfo=* | --program-transf=* \
1010 | --program-trans=* | --program-tran=* \
1011 | --progr-tra=* | --program-tr=* | --program-t=*)
1012 program_transform_name=$ac_optarg ;;
1013
1014 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015 ac_prev=pdfdir ;;
1016 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017 pdfdir=$ac_optarg ;;
1018
1019 -psdir | --psdir | --psdi | --psd | --ps)
1020 ac_prev=psdir ;;
1021 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1022 psdir=$ac_optarg ;;
1023
1024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025 | -silent | --silent | --silen | --sile | --sil)
1026 silent=yes ;;
1027
1028 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1029 ac_prev=sbindir ;;
1030 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1031 | --sbi=* | --sb=*)
1032 sbindir=$ac_optarg ;;
1033
1034 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1035 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1036 | --sharedst | --shareds | --shared | --share | --shar \
1037 | --sha | --sh)
1038 ac_prev=sharedstatedir ;;
1039 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1040 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1041 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1042 | --sha=* | --sh=*)
1043 sharedstatedir=$ac_optarg ;;
1044
1045 -site | --site | --sit)
1046 ac_prev=site ;;
1047 -site=* | --site=* | --sit=*)
1048 site=$ac_optarg ;;
1049
1050 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1051 ac_prev=srcdir ;;
1052 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1053 srcdir=$ac_optarg ;;
1054
1055 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1056 | --syscon | --sysco | --sysc | --sys | --sy)
1057 ac_prev=sysconfdir ;;
1058 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1059 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1060 sysconfdir=$ac_optarg ;;
1061
1062 -target | --target | --targe | --targ | --tar | --ta | --t)
1063 ac_prev=target_alias ;;
1064 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1065 target_alias=$ac_optarg ;;
1066
1067 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1068 verbose=yes ;;
1069
1070 -version | --version | --versio | --versi | --vers | -V)
1071 ac_init_version=: ;;
1072
1073 -with-* | --with-*)
1074 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid package name: $ac_package" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1080 eval with_$ac_package=\$ac_optarg ;;
1081
1082 -without-* | --without-*)
1083 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086 { echo "$as_me: error: invalid package name: $ac_package" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1089 eval with_$ac_package=no ;;
1090
1091 --x)
1092 # Obsolete; use --with-x.
1093 with_x=yes ;;
1094
1095 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1096 | --x-incl | --x-inc | --x-in | --x-i)
1097 ac_prev=x_includes ;;
1098 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1099 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1100 x_includes=$ac_optarg ;;
1101
1102 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1103 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1104 ac_prev=x_libraries ;;
1105 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1106 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1107 x_libraries=$ac_optarg ;;
1108
1109 -*) { echo "$as_me: error: unrecognized option: $ac_option
1110 Try \`$0 --help' for more information." >&2
1111 { (exit 1); exit 1; }; }
1112 ;;
1113
1114 *=*)
1115 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1118 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1119 { (exit 1); exit 1; }; }
1120 eval $ac_envvar=\$ac_optarg
1121 export $ac_envvar ;;
1122
1123 *)
1124 # FIXME: should be removed in autoconf 3.0.
1125 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1126 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1128 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 ;;
1130
1131 esac
1132 done
1133
1134 if test -n "$ac_prev"; then
1135 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1136 { echo "$as_me: error: missing argument to $ac_option" >&2
1137 { (exit 1); exit 1; }; }
1138 fi
1139
1140 # Be sure to have absolute directory names.
1141 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
1145 do
1146 eval ac_val=\$$ac_var
1147 case $ac_val in
1148 [\\/$]* | ?:[\\/]* ) continue;;
1149 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1150 esac
1151 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1152 { (exit 1); exit 1; }; }
1153 done
1154
1155 # There might be people who depend on the old broken behavior: `$host'
1156 # used to hold the argument of --host etc.
1157 # FIXME: To remove some day.
1158 build=$build_alias
1159 host=$host_alias
1160 target=$target_alias
1161
1162 # FIXME: To remove some day.
1163 if test "x$host_alias" != x; then
1164 if test "x$build_alias" = x; then
1165 cross_compiling=maybe
1166 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1167 If a cross compiler is detected then cross compile mode will be used." >&2
1168 elif test "x$build_alias" != "x$host_alias"; then
1169 cross_compiling=yes
1170 fi
1171 fi
1172
1173 ac_tool_prefix=
1174 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1175
1176 test "$silent" = yes && exec 6>/dev/null
1177
1178
1179 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1180 ac_ls_di=`ls -di .` &&
1181 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1182 { echo "$as_me: error: Working directory cannot be determined" >&2
1183 { (exit 1); exit 1; }; }
1184 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1185 { echo "$as_me: error: pwd does not report name of working directory" >&2
1186 { (exit 1); exit 1; }; }
1187
1188
1189 # Find the source files, if location was not specified.
1190 if test -z "$srcdir"; then
1191 ac_srcdir_defaulted=yes
1192 # Try the directory containing this script, then the parent directory.
1193 ac_confdir=`$as_dirname -- "$0" ||
1194 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195 X"$0" : 'X\(//\)[^/]' \| \
1196 X"$0" : 'X\(//\)$' \| \
1197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1198 echo X"$0" |
1199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200 s//\1/
1201 q
1202 }
1203 /^X\(\/\/\)[^/].*/{
1204 s//\1/
1205 q
1206 }
1207 /^X\(\/\/\)$/{
1208 s//\1/
1209 q
1210 }
1211 /^X\(\/\).*/{
1212 s//\1/
1213 q
1214 }
1215 s/.*/./; q'`
1216 srcdir=$ac_confdir
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 srcdir=..
1219 fi
1220 else
1221 ac_srcdir_defaulted=no
1222 fi
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1225 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1226 { (exit 1); exit 1; }; }
1227 fi
1228 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1229 ac_abs_confdir=`(
1230 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1231 { (exit 1); exit 1; }; }
1232 pwd)`
1233 # When building in place, set srcdir=.
1234 if test "$ac_abs_confdir" = "$ac_pwd"; then
1235 srcdir=.
1236 fi
1237 # Remove unnecessary trailing slashes from srcdir.
1238 # Double slashes in file names in object file debugging info
1239 # mess up M-x gdb in Emacs.
1240 case $srcdir in
1241 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1242 esac
1243 for ac_var in $ac_precious_vars; do
1244 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_env_${ac_var}_value=\$${ac_var}
1246 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1248 done
1249
1250 #
1251 # Report the --help message.
1252 #
1253 if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1256 cat <<_ACEOF
1257 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1258
1259 Usage: $0 [OPTION]... [VAR=VALUE]...
1260
1261 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262 VAR=VALUE. See below for descriptions of some of the useful variables.
1263
1264 Defaults for the options are specified in brackets.
1265
1266 Configuration:
1267 -h, --help display this help and exit
1268 --help=short display options specific to this package
1269 --help=recursive display the short help of all the included packages
1270 -V, --version display version information and exit
1271 -q, --quiet, --silent do not print \`checking...' messages
1272 --cache-file=FILE cache test results in FILE [disabled]
1273 -C, --config-cache alias for \`--cache-file=config.cache'
1274 -n, --no-create do not create output files
1275 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1276
1277 Installation directories:
1278 --prefix=PREFIX install architecture-independent files in PREFIX
1279 [$ac_default_prefix]
1280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1281 [PREFIX]
1282
1283 By default, \`make install' will install all the files in
1284 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1285 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1286 for instance \`--prefix=\$HOME'.
1287
1288 For better control, use the options below.
1289
1290 Fine tuning of the installation directories:
1291 --bindir=DIR user executables [EPREFIX/bin]
1292 --sbindir=DIR system admin executables [EPREFIX/sbin]
1293 --libexecdir=DIR program executables [EPREFIX/libexec]
1294 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1295 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1296 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1297 --libdir=DIR object code libraries [EPREFIX/lib]
1298 --includedir=DIR C header files [PREFIX/include]
1299 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1300 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1301 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1302 --infodir=DIR info documentation [DATAROOTDIR/info]
1303 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1304 --mandir=DIR man documentation [DATAROOTDIR/man]
1305 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1306 --htmldir=DIR html documentation [DOCDIR]
1307 --dvidir=DIR dvi documentation [DOCDIR]
1308 --pdfdir=DIR pdf documentation [DOCDIR]
1309 --psdir=DIR ps documentation [DOCDIR]
1310 _ACEOF
1311
1312 cat <<\_ACEOF
1313
1314 Program names:
1315 --program-prefix=PREFIX prepend PREFIX to installed program names
1316 --program-suffix=SUFFIX append SUFFIX to installed program names
1317 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1318
1319 X features:
1320 --x-includes=DIR X include files are in DIR
1321 --x-libraries=DIR X library files are in DIR
1322
1323 System types:
1324 --build=BUILD configure for building on BUILD [guessed]
1325 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1326 _ACEOF
1327 fi
1328
1329 if test -n "$ac_init_help"; then
1330 case $ac_init_help in
1331 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1332 esac
1333 cat <<\_ACEOF
1334
1335 Optional Features:
1336 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1337 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1338 --enable-cocoa-experimental-ctrl-g
1339 enable experimental improved ctrl-g recognition
1340 --disable-ns-self-contained
1341 disable self contained build under NeXTstep
1342 --enable-asserts compile code with asserts enabled
1343 --enable-maintainer-mode
1344 enable make rules and dependencies not useful (and
1345 sometimes confusing) to the casual installer
1346 --enable-locallisppath=PATH
1347 directories Emacs should search for lisp files
1348 specific to this site
1349 --disable-largefile omit support for large files
1350
1351 Optional Packages:
1352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1354 --without-pop don't support POP mail retrieval with movemail
1355 --with-kerberos support Kerberos-authenticated POP
1356 --with-kerberos5 support Kerberos version 5 authenticated POP
1357 --with-hesiod support Hesiod to get the POP server host
1358 --without-sound don't compile with sound support
1359 --without-sync-input Process async input synchronously
1360 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1361 motif, gtk, no)
1362 --without-xpm don't compile with XPM image support
1363 --without-jpeg don't compile with JPEG image support
1364 --without-tiff don't compile with TIFF image support
1365 --without-gif don't compile with GIF image support
1366 --without-png don't compile with PNG image support
1367 --without-rsvg don't compile with SVG image support
1368 --without-freetype don't use Freetype for local font support
1369 --without-xft don't use XFT for anti aliased fonts
1370 --without-libotf don't use libotf for OpenType font support
1371 --without-m17n-flt don't use m17n-flt for text shaping
1372 --without-toolkit-scroll-bars
1373 don't use Motif or Xaw3d scroll bars
1374 --without-xaw3d don't use Xaw3d
1375 --without-xim don't use X11 XIM
1376 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1377 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1378 console
1379 --without-dbus don't compile with D-Bus support
1380 --without-makeinfo don't require makeinfo for building manuals
1381
1382 --with-pkg-config-prog=PATH
1383 Path to pkg-config for finding GTK and librsvg
1384 --with-x use the X Window System
1385
1386 Some influential environment variables:
1387 CC C compiler command
1388 CFLAGS C compiler flags
1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1390 nonstandard directory <lib dir>
1391 LIBS libraries to pass to the linker, e.g. -l<library>
1392 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1393 you have headers in a nonstandard directory <include dir>
1394 CPP C preprocessor
1395 XMKMF Path to xmkmf, Makefile generator for X Window System
1396
1397 Use these variables to override the choices made by `configure' or to help
1398 it to find libraries and programs with nonstandard names/locations.
1399
1400 _ACEOF
1401 ac_status=$?
1402 fi
1403
1404 if test "$ac_init_help" = "recursive"; then
1405 # If there are subdirs, report their specific --help.
1406 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1407 test -d "$ac_dir" || continue
1408 ac_builddir=.
1409
1410 case "$ac_dir" in
1411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *)
1413 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1414 # A ".." for each directory in $ac_dir_suffix.
1415 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1416 case $ac_top_builddir_sub in
1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 esac ;;
1420 esac
1421 ac_abs_top_builddir=$ac_pwd
1422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1423 # for backward compatibility:
1424 ac_top_builddir=$ac_top_build_prefix
1425
1426 case $srcdir in
1427 .) # We are building in place.
1428 ac_srcdir=.
1429 ac_top_srcdir=$ac_top_builddir_sub
1430 ac_abs_top_srcdir=$ac_pwd ;;
1431 [\\/]* | ?:[\\/]* ) # Absolute name.
1432 ac_srcdir=$srcdir$ac_dir_suffix;
1433 ac_top_srcdir=$srcdir
1434 ac_abs_top_srcdir=$srcdir ;;
1435 *) # Relative name.
1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1437 ac_top_srcdir=$ac_top_build_prefix$srcdir
1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1439 esac
1440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1441
1442 cd "$ac_dir" || { ac_status=$?; continue; }
1443 # Check for guested configure.
1444 if test -f "$ac_srcdir/configure.gnu"; then
1445 echo &&
1446 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1447 elif test -f "$ac_srcdir/configure"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure" --help=recursive
1450 else
1451 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1452 fi || ac_status=$?
1453 cd "$ac_pwd" || { ac_status=$?; break; }
1454 done
1455 fi
1456
1457 test -n "$ac_init_help" && exit $ac_status
1458 if $ac_init_version; then
1459 cat <<\_ACEOF
1460 emacs configure 23.0.60
1461 generated by GNU Autoconf 2.61
1462
1463 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1464 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1465 This configure script is free software; the Free Software Foundation
1466 gives unlimited permission to copy, distribute and modify it.
1467 _ACEOF
1468 exit
1469 fi
1470 cat >config.log <<_ACEOF
1471 This file contains any messages produced by compilers while
1472 running configure, to aid debugging if configure makes a mistake.
1473
1474 It was created by emacs $as_me 23.0.60, which was
1475 generated by GNU Autoconf 2.61. Invocation command line was
1476
1477 $ $0 $@
1478
1479 _ACEOF
1480 exec 5>>config.log
1481 {
1482 cat <<_ASUNAME
1483 ## --------- ##
1484 ## Platform. ##
1485 ## --------- ##
1486
1487 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1488 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1489 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1490 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1491 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1492
1493 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1494 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1495
1496 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1497 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1498 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1499 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1500 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1501 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1502 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1503
1504 _ASUNAME
1505
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1508 do
1509 IFS=$as_save_IFS
1510 test -z "$as_dir" && as_dir=.
1511 echo "PATH: $as_dir"
1512 done
1513 IFS=$as_save_IFS
1514
1515 } >&5
1516
1517 cat >&5 <<_ACEOF
1518
1519
1520 ## ----------- ##
1521 ## Core tests. ##
1522 ## ----------- ##
1523
1524 _ACEOF
1525
1526
1527 # Keep a trace of the command line.
1528 # Strip out --no-create and --no-recursion so they do not pile up.
1529 # Strip out --silent because we don't want to record it for future runs.
1530 # Also quote any args containing shell meta-characters.
1531 # Make two passes to allow for proper duplicate-argument suppression.
1532 ac_configure_args=
1533 ac_configure_args0=
1534 ac_configure_args1=
1535 ac_must_keep_next=false
1536 for ac_pass in 1 2
1537 do
1538 for ac_arg
1539 do
1540 case $ac_arg in
1541 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1543 | -silent | --silent | --silen | --sile | --sil)
1544 continue ;;
1545 *\'*)
1546 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1547 esac
1548 case $ac_pass in
1549 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1550 2)
1551 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1552 if test $ac_must_keep_next = true; then
1553 ac_must_keep_next=false # Got value, back to normal.
1554 else
1555 case $ac_arg in
1556 *=* | --config-cache | -C | -disable-* | --disable-* \
1557 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1558 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1559 | -with-* | --with-* | -without-* | --without-* | --x)
1560 case "$ac_configure_args0 " in
1561 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1562 esac
1563 ;;
1564 -* ) ac_must_keep_next=true ;;
1565 esac
1566 fi
1567 ac_configure_args="$ac_configure_args '$ac_arg'"
1568 ;;
1569 esac
1570 done
1571 done
1572 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1573 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1574
1575 # When interrupted or exit'd, cleanup temporary files, and complete
1576 # config.log. We remove comments because anyway the quotes in there
1577 # would cause problems or look ugly.
1578 # WARNING: Use '\'' to represent an apostrophe within the trap.
1579 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1580 trap 'exit_status=$?
1581 # Save into config.log some information that might help in debugging.
1582 {
1583 echo
1584
1585 cat <<\_ASBOX
1586 ## ---------------- ##
1587 ## Cache variables. ##
1588 ## ---------------- ##
1589 _ASBOX
1590 echo
1591 # The following way of writing the cache mishandles newlines in values,
1592 (
1593 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1594 eval ac_val=\$$ac_var
1595 case $ac_val in #(
1596 *${as_nl}*)
1597 case $ac_var in #(
1598 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1599 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1600 esac
1601 case $ac_var in #(
1602 _ | IFS | as_nl) ;; #(
1603 *) $as_unset $ac_var ;;
1604 esac ;;
1605 esac
1606 done
1607 (set) 2>&1 |
1608 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1609 *${as_nl}ac_space=\ *)
1610 sed -n \
1611 "s/'\''/'\''\\\\'\'''\''/g;
1612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1613 ;; #(
1614 *)
1615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1616 ;;
1617 esac |
1618 sort
1619 )
1620 echo
1621
1622 cat <<\_ASBOX
1623 ## ----------------- ##
1624 ## Output variables. ##
1625 ## ----------------- ##
1626 _ASBOX
1627 echo
1628 for ac_var in $ac_subst_vars
1629 do
1630 eval ac_val=\$$ac_var
1631 case $ac_val in
1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633 esac
1634 echo "$ac_var='\''$ac_val'\''"
1635 done | sort
1636 echo
1637
1638 if test -n "$ac_subst_files"; then
1639 cat <<\_ASBOX
1640 ## ------------------- ##
1641 ## File substitutions. ##
1642 ## ------------------- ##
1643 _ASBOX
1644 echo
1645 for ac_var in $ac_subst_files
1646 do
1647 eval ac_val=\$$ac_var
1648 case $ac_val in
1649 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 esac
1651 echo "$ac_var='\''$ac_val'\''"
1652 done | sort
1653 echo
1654 fi
1655
1656 if test -s confdefs.h; then
1657 cat <<\_ASBOX
1658 ## ----------- ##
1659 ## confdefs.h. ##
1660 ## ----------- ##
1661 _ASBOX
1662 echo
1663 cat confdefs.h
1664 echo
1665 fi
1666 test "$ac_signal" != 0 &&
1667 echo "$as_me: caught signal $ac_signal"
1668 echo "$as_me: exit $exit_status"
1669 } >&5
1670 rm -f core *.core core.conftest.* &&
1671 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1672 exit $exit_status
1673 ' 0
1674 for ac_signal in 1 2 13 15; do
1675 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1676 done
1677 ac_signal=0
1678
1679 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1680 rm -f -r conftest* confdefs.h
1681
1682 # Predefined preprocessor variables.
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_NAME "$PACKAGE_NAME"
1686 _ACEOF
1687
1688
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1691 _ACEOF
1692
1693
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1696 _ACEOF
1697
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_STRING "$PACKAGE_STRING"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1706 _ACEOF
1707
1708
1709 # Let the site file select an alternate cache file if it wants to.
1710 # Prefer explicitly selected file to automatically selected ones.
1711 if test -n "$CONFIG_SITE"; then
1712 set x "$CONFIG_SITE"
1713 elif test "x$prefix" != xNONE; then
1714 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1715 else
1716 set x "$ac_default_prefix/share/config.site" \
1717 "$ac_default_prefix/etc/config.site"
1718 fi
1719 shift
1720 for ac_site_file
1721 do
1722 if test -r "$ac_site_file"; then
1723 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1724 echo "$as_me: loading site script $ac_site_file" >&6;}
1725 sed 's/^/| /' "$ac_site_file" >&5
1726 . "$ac_site_file"
1727 fi
1728 done
1729
1730 if test -r "$cache_file"; then
1731 # Some versions of bash will fail to source /dev/null (special
1732 # files actually), so we avoid doing that.
1733 if test -f "$cache_file"; then
1734 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1735 echo "$as_me: loading cache $cache_file" >&6;}
1736 case $cache_file in
1737 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1738 *) . "./$cache_file";;
1739 esac
1740 fi
1741 else
1742 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1743 echo "$as_me: creating cache $cache_file" >&6;}
1744 >$cache_file
1745 fi
1746
1747 ac_header_list="$ac_header_list sys/time.h"
1748 ac_header_list="$ac_header_list unistd.h"
1749 ac_func_list="$ac_func_list alarm"
1750 # Check that the precious variables saved in the cache have kept the same
1751 # value.
1752 ac_cache_corrupted=false
1753 for ac_var in $ac_precious_vars; do
1754 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1755 eval ac_new_set=\$ac_env_${ac_var}_set
1756 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1757 eval ac_new_val=\$ac_env_${ac_var}_value
1758 case $ac_old_set,$ac_new_set in
1759 set,)
1760 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1761 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1763 ,set)
1764 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1765 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1766 ac_cache_corrupted=: ;;
1767 ,);;
1768 *)
1769 if test "x$ac_old_val" != "x$ac_new_val"; then
1770 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1771 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1772 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1773 echo "$as_me: former value: $ac_old_val" >&2;}
1774 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1775 echo "$as_me: current value: $ac_new_val" >&2;}
1776 ac_cache_corrupted=:
1777 fi;;
1778 esac
1779 # Pass precious variables to config.status.
1780 if test "$ac_new_set" = set; then
1781 case $ac_new_val in
1782 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1783 *) ac_arg=$ac_var=$ac_new_val ;;
1784 esac
1785 case " $ac_configure_args " in
1786 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1787 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1788 esac
1789 fi
1790 done
1791 if $ac_cache_corrupted; then
1792 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1793 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1794 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1795 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1796 { (exit 1); exit 1; }; }
1797 fi
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823 ac_ext=c
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828
1829
1830 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1831
1832
1833
1834 test "$program_prefix" != NONE &&
1835 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1836 # Use a double $ so make ignores it.
1837 test "$program_suffix" != NONE &&
1838 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1839 # Double any \ or $. echo might interpret backslashes.
1840 # By default was `s,x,x', remove it if useless.
1841 cat <<\_ACEOF >conftest.sed
1842 s/[\\$]/&&/g;s/;s,x,x,$//
1843 _ACEOF
1844 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1845 rm -f conftest.sed
1846
1847
1848 lispdir='${datadir}/emacs/${version}/lisp'
1849 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1850 '${datadir}/emacs/site-lisp'
1851 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1852 etcdir='${datadir}/emacs/${version}/etc'
1853 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1854 docdir='${datadir}/emacs/${version}/etc'
1855 gamedir='${localstatedir}/games/emacs'
1856
1857 gameuser=games
1858
1859
1860
1861
1862 # Check whether --with-pop was given.
1863 if test "${with_pop+set}" = set; then
1864 withval=$with_pop;
1865 else
1866 with_pop=yes
1867 fi
1868
1869 if test "$with_pop" = yes; then
1870 cat >>confdefs.h <<\_ACEOF
1871 #define MAIL_USE_POP 1
1872 _ACEOF
1873
1874 fi
1875
1876
1877
1878 # Check whether --with-kerberos was given.
1879 if test "${with_kerberos+set}" = set; then
1880 withval=$with_kerberos;
1881 else
1882 with_kerberos=no
1883 fi
1884
1885 if test "$with_kerberos" != no; then
1886 cat >>confdefs.h <<\_ACEOF
1887 #define KERBEROS 1
1888 _ACEOF
1889
1890 fi
1891
1892
1893
1894 # Check whether --with-kerberos5 was given.
1895 if test "${with_kerberos5+set}" = set; then
1896 withval=$with_kerberos5;
1897 else
1898 with_kerberos5=no
1899 fi
1900
1901 if test "${with_kerberos5}" != no; then
1902 if test "${with_kerberos}" = no; then
1903 with_kerberos=yes
1904 cat >>confdefs.h <<\_ACEOF
1905 #define KERBEROS 1
1906 _ACEOF
1907
1908 fi
1909
1910 cat >>confdefs.h <<\_ACEOF
1911 #define KERBEROS5 1
1912 _ACEOF
1913
1914 fi
1915
1916
1917 # Check whether --with-hesiod was given.
1918 if test "${with_hesiod+set}" = set; then
1919 withval=$with_hesiod;
1920 else
1921 with_hesiod=no
1922 fi
1923
1924 if test "$with_hesiod" != no; then
1925
1926 cat >>confdefs.h <<\_ACEOF
1927 #define HESIOD 1
1928 _ACEOF
1929
1930 fi
1931
1932
1933 # Check whether --with-sound was given.
1934 if test "${with_sound+set}" = set; then
1935 withval=$with_sound;
1936 else
1937 with_sound=yes
1938 fi
1939
1940
1941
1942 # Check whether --with-sync-input was given.
1943 if test "${with_sync_input+set}" = set; then
1944 withval=$with_sync_input;
1945 else
1946 with_sync_input=yes
1947 fi
1948
1949 if test "$with_sync_input" = yes; then
1950
1951 cat >>confdefs.h <<\_ACEOF
1952 #define SYNC_INPUT 1
1953 _ACEOF
1954
1955 fi
1956
1957
1958 # Check whether --with-x-toolkit was given.
1959 if test "${with_x_toolkit+set}" = set; then
1960 withval=$with_x_toolkit; case "${withval}" in
1961 y | ye | yes ) val=gtk ;;
1962 n | no ) val=no ;;
1963 l | lu | luc | luci | lucid ) val=lucid ;;
1964 a | at | ath | athe | athen | athena ) val=athena ;;
1965 m | mo | mot | moti | motif ) val=motif ;;
1966 g | gt | gtk ) val=gtk ;;
1967 * )
1968 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1969 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1970 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1971 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1972 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1973 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1974 { (exit 1); exit 1; }; }
1975 ;;
1976 esac
1977 with_x_toolkit=$val
1978
1979 fi
1980
1981
1982
1983 # Check whether --with-xpm was given.
1984 if test "${with_xpm+set}" = set; then
1985 withval=$with_xpm;
1986 else
1987 with_xpm=yes
1988 fi
1989
1990
1991 # Check whether --with-jpeg was given.
1992 if test "${with_jpeg+set}" = set; then
1993 withval=$with_jpeg;
1994 else
1995 with_jpeg=yes
1996 fi
1997
1998
1999 # Check whether --with-tiff was given.
2000 if test "${with_tiff+set}" = set; then
2001 withval=$with_tiff;
2002 else
2003 with_tiff=yes
2004 fi
2005
2006
2007 # Check whether --with-gif was given.
2008 if test "${with_gif+set}" = set; then
2009 withval=$with_gif;
2010 else
2011 with_gif=yes
2012 fi
2013
2014
2015 # Check whether --with-png was given.
2016 if test "${with_png+set}" = set; then
2017 withval=$with_png;
2018 else
2019 with_png=yes
2020 fi
2021
2022
2023 # Check whether --with-rsvg was given.
2024 if test "${with_rsvg+set}" = set; then
2025 withval=$with_rsvg;
2026 else
2027 with_rsvg=yes
2028 fi
2029
2030
2031
2032 # Check whether --with-freetype was given.
2033 if test "${with_freetype+set}" = set; then
2034 withval=$with_freetype;
2035 else
2036 with_freetype=yes
2037 fi
2038
2039
2040 # Check whether --with-xft was given.
2041 if test "${with_xft+set}" = set; then
2042 withval=$with_xft;
2043 else
2044 with_xft=yes
2045 fi
2046
2047
2048 # Check whether --with-libotf was given.
2049 if test "${with_libotf+set}" = set; then
2050 withval=$with_libotf;
2051 else
2052 with_libotf=yes
2053 fi
2054
2055
2056 # Check whether --with-m17n-flt was given.
2057 if test "${with_m17n_flt+set}" = set; then
2058 withval=$with_m17n_flt;
2059 else
2060 with_m17n_flt=yes
2061 fi
2062
2063
2064
2065 # Check whether --with-toolkit-scroll-bars was given.
2066 if test "${with_toolkit_scroll_bars+set}" = set; then
2067 withval=$with_toolkit_scroll_bars;
2068 else
2069 with_toolkit_scroll_bars=yes
2070 fi
2071
2072
2073 # Check whether --with-xaw3d was given.
2074 if test "${with_xaw3d+set}" = set; then
2075 withval=$with_xaw3d;
2076 else
2077 with_xaw3d=yes
2078 fi
2079
2080
2081 # Check whether --with-xim was given.
2082 if test "${with_xim+set}" = set; then
2083 withval=$with_xim;
2084 else
2085 with_xim=yes
2086 fi
2087
2088
2089 # Check whether --with-ns was given.
2090 if test "${with_ns+set}" = set; then
2091 withval=$with_ns;
2092 else
2093 with_ns=no
2094 fi
2095
2096
2097
2098 # Check whether --with-gpm was given.
2099 if test "${with_gpm+set}" = set; then
2100 withval=$with_gpm;
2101 else
2102 with_gpm=yes
2103 fi
2104
2105
2106 # Check whether --with-dbus was given.
2107 if test "${with_dbus+set}" = set; then
2108 withval=$with_dbus;
2109 else
2110 with_dbus=yes
2111 fi
2112
2113
2114 ## For the times when you want to build Emacs but don't have
2115 ## a suitable makeinfo, and can live without the manuals.
2116
2117 # Check whether --with-makeinfo was given.
2118 if test "${with_makeinfo+set}" = set; then
2119 withval=$with_makeinfo;
2120 else
2121 with_makeinfo=yes
2122 fi
2123
2124
2125
2126 # Check whether --with-gtk was given.
2127 if test "${with_gtk+set}" = set; then
2128 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2129 specify a toolkit." >&5
2130 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2131 specify a toolkit." >&2;}
2132 { (exit 1); exit 1; }; }
2133 fi
2134
2135
2136
2137 # Check whether --with-gcc was given.
2138 if test "${with_gcc+set}" = set; then
2139 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2140 variable to specify a compiler." >&5
2141 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2142 variable to specify a compiler." >&2;}
2143 { (exit 1); exit 1; }; }
2144 fi
2145
2146
2147
2148 # Check whether --with-pkg-config-prog was given.
2149 if test "${with_pkg_config_prog+set}" = set; then
2150 withval=$with_pkg_config_prog;
2151 fi
2152
2153 if test "X${with_pkg_config_prog}" != X; then
2154 if test "${with_pkg_config_prog}" != yes; then
2155 PKG_CONFIG="${with_pkg_config_prog}"
2156 fi
2157 fi
2158
2159 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2160 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2161 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=$enableval
2162 else
2163 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2164 fi
2165
2166
2167 # Check whether --enable-ns-self-contained was given.
2168 if test "${enable_ns_self_contained+set}" = set; then
2169 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2170 else
2171 EN_NS_SELF_CONTAINED=yes
2172 fi
2173
2174
2175 # Check whether --enable-asserts was given.
2176 if test "${enable_asserts+set}" = set; then
2177 enableval=$enable_asserts; USE_XASSERTS=$enableval
2178 else
2179 USE_XASSERTS=no
2180 fi
2181
2182
2183 # Check whether --enable-maintainer-mode was given.
2184 if test "${enable_maintainer_mode+set}" = set; then
2185 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2186 else
2187 USE_MAINTAINER_MODE=no
2188 fi
2189
2190 if test $USE_MAINTAINER_MODE = yes; then
2191 MAINT=
2192 else
2193 MAINT=#
2194 fi
2195
2196
2197 # Check whether --enable-locallisppath was given.
2198 if test "${enable_locallisppath+set}" = set; then
2199 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2200 locallisppath=
2201 elif test "${enableval}" != "yes"; then
2202 locallisppath=${enableval}
2203 fi
2204 fi
2205
2206
2207 #### Make srcdir absolute, if it isn't already. It's important to
2208 #### avoid running the path through pwd unnecessarily, since pwd can
2209 #### give you automounter prefixes, which can go away. We do all this
2210 #### so Emacs can find its files when run uninstalled.
2211 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2212 unset CDPATH
2213 case "${srcdir}" in
2214 /* ) ;;
2215 . )
2216 ## We may be able to use the $PWD environment variable to make this
2217 ## absolute. But sometimes PWD is inaccurate.
2218 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2219 ## but that tested only for a well-formed and valid PWD,
2220 ## it did not object when PWD was well-formed and valid but just wrong.
2221 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2222 then
2223 srcdir="$PWD"
2224 else
2225 srcdir="`(cd ${srcdir}; pwd)`"
2226 fi
2227 ;;
2228 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2229 esac
2230
2231 #### Check if the source directory already has a configured system in it.
2232 if test `pwd` != `(cd ${srcdir} && pwd)` \
2233 && test -f "${srcdir}/src/config.h" ; then
2234 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2235 as a build directory right now; it has been configured in its own
2236 right. To configure in another directory as well, you MUST
2237 use GNU make. If you do not have GNU make, then you must
2238 now do \`make distclean' in ${srcdir},
2239 and then run $0 again." >&5
2240 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2241 as a build directory right now; it has been configured in its own
2242 right. To configure in another directory as well, you MUST
2243 use GNU make. If you do not have GNU make, then you must
2244 now do \`make distclean' in ${srcdir},
2245 and then run $0 again." >&2;}
2246 fi
2247
2248 #### Given the configuration name, set machfile and opsysfile to the
2249 #### names of the m/*.h and s/*.h files we should use.
2250
2251 ### Canonicalize the configuration name.
2252
2253 ac_aux_dir=
2254 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2255 if test -f "$ac_dir/install-sh"; then
2256 ac_aux_dir=$ac_dir
2257 ac_install_sh="$ac_aux_dir/install-sh -c"
2258 break
2259 elif test -f "$ac_dir/install.sh"; then
2260 ac_aux_dir=$ac_dir
2261 ac_install_sh="$ac_aux_dir/install.sh -c"
2262 break
2263 elif test -f "$ac_dir/shtool"; then
2264 ac_aux_dir=$ac_dir
2265 ac_install_sh="$ac_aux_dir/shtool install -c"
2266 break
2267 fi
2268 done
2269 if test -z "$ac_aux_dir"; then
2270 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2271 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2272 { (exit 1); exit 1; }; }
2273 fi
2274
2275 # These three variables are undocumented and unsupported,
2276 # and are intended to be withdrawn in a future Autoconf release.
2277 # They can cause serious problems if a builder's source tree is in a directory
2278 # whose full name contains unusual characters.
2279 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2282
2283
2284 # Make sure we can run config.sub.
2285 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2286 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2287 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2288 { (exit 1); exit 1; }; }
2289
2290 { echo "$as_me:$LINENO: checking build system type" >&5
2291 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2292 if test "${ac_cv_build+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295 ac_build_alias=$build_alias
2296 test "x$ac_build_alias" = x &&
2297 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2298 test "x$ac_build_alias" = x &&
2299 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2300 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2301 { (exit 1); exit 1; }; }
2302 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2303 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2304 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2305 { (exit 1); exit 1; }; }
2306
2307 fi
2308 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2309 echo "${ECHO_T}$ac_cv_build" >&6; }
2310 case $ac_cv_build in
2311 *-*-*) ;;
2312 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2313 echo "$as_me: error: invalid value of canonical build" >&2;}
2314 { (exit 1); exit 1; }; };;
2315 esac
2316 build=$ac_cv_build
2317 ac_save_IFS=$IFS; IFS='-'
2318 set x $ac_cv_build
2319 shift
2320 build_cpu=$1
2321 build_vendor=$2
2322 shift; shift
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2325 build_os=$*
2326 IFS=$ac_save_IFS
2327 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2328
2329
2330 { echo "$as_me:$LINENO: checking host system type" >&5
2331 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2332 if test "${ac_cv_host+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 if test "x$host_alias" = x; then
2336 ac_cv_host=$ac_cv_build
2337 else
2338 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2339 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2340 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2341 { (exit 1); exit 1; }; }
2342 fi
2343
2344 fi
2345 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2346 echo "${ECHO_T}$ac_cv_host" >&6; }
2347 case $ac_cv_host in
2348 *-*-*) ;;
2349 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2350 echo "$as_me: error: invalid value of canonical host" >&2;}
2351 { (exit 1); exit 1; }; };;
2352 esac
2353 host=$ac_cv_host
2354 ac_save_IFS=$IFS; IFS='-'
2355 set x $ac_cv_host
2356 shift
2357 host_cpu=$1
2358 host_vendor=$2
2359 shift; shift
2360 # Remember, the first character of IFS is used to create $*,
2361 # except with old shells:
2362 host_os=$*
2363 IFS=$ac_save_IFS
2364 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2365
2366
2367 canonical=$host
2368 configuration=${host_alias-${build_alias-$host}}
2369
2370
2371
2372 ### If you add support for a new configuration, add code to this
2373 ### switch statement to recognize your configuration name and select
2374 ### the appropriate operating system and machine description files.
2375
2376 ### You would hope that you could choose an m/*.h file pretty much
2377 ### based on the machine portion of the configuration name, and an s-
2378 ### file based on the operating system portion. However, it turns out
2379 ### that each m/*.h file is pretty manufacturer-specific - for
2380 ### example mips.h is MIPS
2381 ### So we basically have to have a special case for each
2382 ### configuration name.
2383 ###
2384 ### As far as handling version numbers on operating systems is
2385 ### concerned, make sure things will fail in a fixable way. If
2386 ### /etc/MACHINES doesn't say anything about version numbers, be
2387 ### prepared to handle anything reasonably. If version numbers
2388 ### matter, be sure /etc/MACHINES says something about it.
2389 ###
2390 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2391 ### "System V Release 4"; he writes, "The old convention encouraged
2392 ### confusion between `system' and `release' levels'."
2393
2394 machine='' opsys='' unported=no
2395 case "${canonical}" in
2396
2397 ## FreeBSD ports
2398 *-*-freebsd* )
2399 opsys=freebsd
2400 case "${canonical}" in
2401 alpha*-*-freebsd*) machine=alpha ;;
2402 arm*-*-freebsd*) machine=arm ;;
2403 ia64-*-freebsd*) machine=ia64 ;;
2404 sparc-*-freebsd*) machine=sparc ;;
2405 sparc64-*-freebsd*) machine=sparc ;;
2406 powerpc-*-freebsd*) machine=macppc ;;
2407 i[3456]86-*-freebsd*) machine=intel386 ;;
2408 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2409 esac
2410 ;;
2411
2412 ## FreeBSD kernel + glibc based userland
2413 *-*-kfreebsd*gnu* )
2414 opsys=gnu-kfreebsd
2415 case "${canonical}" in
2416 alpha*-*-kfreebsd*) machine=alpha ;;
2417 ia64-*-kfreebsd*) machine=ia64 ;;
2418 sparc-*-kfreebsd*) machine=sparc ;;
2419 sparc64-*-kfreebsd*) machine=sparc ;;
2420 powerpc-*-kfreebsd*) machine=macppc ;;
2421 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2422 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2423 esac
2424 ;;
2425
2426 ## NetBSD ports
2427 *-*-netbsd* )
2428 opsys=netbsd
2429 if test -f /usr/lib/crti.o; then
2430
2431 cat >>confdefs.h <<\_ACEOF
2432 #define HAVE_CRTIN
2433 _ACEOF
2434
2435 fi
2436
2437 case "${canonical}" in
2438 alpha*-*-netbsd*) machine=alpha ;;
2439 i[3456]86-*-netbsd*) machine=intel386 ;;
2440 powerpc-*-netbsd*) machine=macppc ;;
2441 sparc*-*-netbsd*) machine=sparc ;;
2442 vax-*-netbsd*) machine=vax ;;
2443 arm-*-netbsd*) machine=arm ;;
2444 x86_64-*-netbsd*) machine=amdx86-64 ;;
2445 hppa-*-netbsd*) machine=hp800 ;;
2446 esac
2447 ;;
2448
2449 ## OpenBSD ports
2450 *-*-openbsd* )
2451 opsys=openbsd
2452 case "${canonical}" in
2453 alpha*-*-openbsd*) machine=alpha ;;
2454 arm-*-openbsd*) machine=arm ;;
2455 i386-*-openbsd*) machine=intel386 ;;
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 alpha*-*-linux-gnu* )
2473 machine=alpha opsys=gnu-linux
2474 ;;
2475
2476 arm*-*-linux-gnu* )
2477 machine=arm opsys=gnu-linux
2478 ;;
2479
2480 ## Apple Darwin / Mac OS X
2481 *-apple-darwin* )
2482 case "${canonical}" in
2483 i[3456]86-* ) machine=intel386 ;;
2484 powerpc-* ) machine=macppc ;;
2485 * ) unported=yes ;;
2486 esac
2487 opsys=darwin
2488 # Define CPP as follows to make autoconf work correctly.
2489 CPP="${CC-cc} -E -no-cpp-precomp"
2490 # Use fink packages if available.
2491 if test -d /sw/include && test -d /sw/lib; then
2492 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2493 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2494 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2495 fi
2496 ;;
2497
2498 ## HP 9000 series 700 and 800, running HP/UX
2499 hppa*-hp-hpux10.2* )
2500 machine=hp800 opsys=hpux10-20
2501 ;;
2502 hppa*-hp-hpux1[1-9]* )
2503 machine=hp800 opsys=hpux11
2504 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2505 ;;
2506
2507 hppa*-*-linux-gnu* )
2508 machine=hp800 opsys=gnu-linux
2509 ;;
2510
2511 ## IBM machines
2512 s390-*-linux-gnu* )
2513 machine=ibms390 opsys=gnu-linux
2514 ;;
2515 s390x-*-linux-gnu* )
2516 machine=ibms390x opsys=gnu-linux
2517 ;;
2518 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2519 machine=ibmrs6000 opsys=aix4-2
2520 ;;
2521 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2522 machine=ibmrs6000 opsys=aix4-2
2523 ;;
2524 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2525 machine=ibmrs6000 opsys=aix4-2
2526 ;;
2527 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2528 machine=ibmrs6000 opsys=aix4-2
2529 ;;
2530
2531 ## Macintosh PowerPC
2532 powerpc*-*-linux-gnu* )
2533 machine=macppc opsys=gnu-linux
2534 ;;
2535
2536 ## Silicon Graphics machines
2537 ## Iris 4D
2538 mips-sgi-irix6.5 )
2539 machine=iris4d opsys=irix6-5
2540 # Without defining _LANGUAGE_C, things get masked out in the headers
2541 # so that, for instance, grepping for `free' in stdlib.h fails and
2542 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2543 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2544 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2545 ;;
2546
2547 ## Suns
2548 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2549 machine=sparc opsys=gnu-linux
2550 ;;
2551
2552 *-sun-solaris* \
2553 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2554 | rs6000-*-solaris2*)
2555 case "${canonical}" in
2556 i[3456]86-*-* ) machine=intel386 ;;
2557 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2558 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2559 sparc* ) machine=sparc ;;
2560 * ) unported=yes ;;
2561 esac
2562 case "${canonical}" in
2563 *-sunos5.3* | *-solaris2.3* )
2564 opsys=sol2-3
2565 NON_GNU_CPP=/usr/ccs/lib/cpp
2566 ;;
2567 *-sunos5.4* | *-solaris2.4* )
2568 opsys=sol2-4
2569 NON_GNU_CPP=/usr/ccs/lib/cpp
2570 RANLIB="ar -ts"
2571 ;;
2572 *-sunos5.5* | *-solaris2.5* )
2573 opsys=sol2-5
2574 NON_GNU_CPP=/usr/ccs/lib/cpp
2575 RANLIB="ar -ts"
2576 ;;
2577 *-sunos5.6* | *-solaris2.6* )
2578 opsys=sol2-6
2579 NON_GNU_CPP=/usr/ccs/lib/cpp
2580 RANLIB="ar -ts"
2581 ;;
2582 *-sunos5* | *-solaris* )
2583 opsys=sol2-6
2584 emacs_check_sunpro_c=yes
2585 NON_GNU_CPP=/usr/ccs/lib/cpp
2586 ;;
2587 esac
2588 ## Watch out for a compiler that we know will not work.
2589 case "${canonical}" in
2590 *-solaris* | *-sunos5* )
2591 if [ "x$CC" = x/usr/ucb/cc ]; then
2592 ## /usr/ucb/cc doesn't work;
2593 ## we should find some other compiler that does work.
2594 unset CC
2595 fi
2596 ;;
2597 *) ;;
2598 esac
2599 ;;
2600
2601 ## Vaxen.
2602 vax-dec-* )
2603 machine=vax
2604 case "${canonical}" in
2605 *-vms* ) opsys=vms ;;
2606 * ) unported=yes
2607 esac
2608 ;;
2609
2610 ## IA-64
2611 ia64*-*-linux* )
2612 machine=ia64 opsys=gnu-linux
2613 ;;
2614
2615 ## Intel 386 machines where we don't care about the manufacturer
2616 i[3456]86-*-* )
2617 machine=intel386
2618 case "${canonical}" in
2619 *-cygwin ) opsys=cygwin ;;
2620 *-darwin* ) opsys=darwin
2621 CPP="${CC-cc} -E -no-cpp-precomp"
2622 ;;
2623 *-linux-gnu* ) opsys=gnu-linux ;;
2624 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2625 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2626 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2627 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2628 esac
2629 ;;
2630
2631 ## m68k Linux-based GNU system
2632 m68k-*-linux-gnu* )
2633 machine=m68k opsys=gnu-linux
2634 ;;
2635
2636 ## Mips Linux-based GNU system
2637 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2638 machine=mips opsys=gnu-linux
2639 ;;
2640
2641 ## AMD x86-64 Linux-based GNU system
2642 x86_64-*-linux-gnu* )
2643 machine=amdx86-64 opsys=gnu-linux
2644 ;;
2645
2646 ## Tensilica Xtensa Linux-based GNU system
2647 xtensa*-*-linux-gnu* )
2648 machine=xtensa opsys=gnu-linux
2649 ;;
2650
2651 * )
2652 unported=yes
2653 ;;
2654 esac
2655
2656 ### If the code above didn't choose an operating system, just choose
2657 ### an operating system based on the configuration name. You really
2658 ### only want to use this when you have no idea what the right
2659 ### operating system is; if you know what operating systems a machine
2660 ### runs, it's cleaner to make it explicit in the case statement
2661 ### above.
2662 if test x"${opsys}" = x; then
2663 case "${canonical}" in
2664 *-gnu* ) opsys=gnu ;;
2665 *-sysv4.2uw* ) opsys=unixware ;;
2666 *-sysv5uw* ) opsys=unixware ;;
2667 *-sysv5OpenUNIX* ) opsys=unixware ;;
2668 *-sysv4.1* | *-sysvr4.1* )
2669 NON_GNU_CPP=/usr/lib/cpp
2670 opsys=usg5-4 ;;
2671 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2672 if [ x$NON_GNU_CPP = x ]; then
2673 if [ -f /usr/ccs/lib/cpp ]; then
2674 NON_GNU_CPP=/usr/ccs/lib/cpp
2675 else
2676 NON_GNU_CPP=/lib/cpp
2677 fi
2678 fi
2679 opsys=usg5-4-2 ;;
2680 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2681 * )
2682 unported=yes
2683 ;;
2684 esac
2685 fi
2686
2687
2688
2689 if test $unported = yes; then
2690 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2691 Check \`etc/MACHINES' for recognized configuration names." >&5
2692 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2693 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2694 { (exit 1); exit 1; }; }
2695 fi
2696
2697 machfile="m/${machine}.h"
2698 opsysfile="s/${opsys}.h"
2699
2700
2701 #### Choose a compiler.
2702 test -n "$CC" && cc_specified=yes
2703
2704 # Save the value of CFLAGS that the user specified.
2705 SPECIFIED_CFLAGS="$CFLAGS"
2706
2707 ac_ext=c
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2717 if test "${ac_cv_prog_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2733 fi
2734 done
2735 done
2736 IFS=$as_save_IFS
2737
2738 fi
2739 fi
2740 CC=$ac_cv_prog_CC
2741 if test -n "$CC"; then
2742 { echo "$as_me:$LINENO: result: $CC" >&5
2743 echo "${ECHO_T}$CC" >&6; }
2744 else
2745 { echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6; }
2747 fi
2748
2749
2750 fi
2751 if test -z "$ac_cv_prog_CC"; then
2752 ac_ct_CC=$CC
2753 # Extract the first word of "gcc", so it can be a program name with args.
2754 set dummy gcc; ac_word=$2
2755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760 if test -n "$ac_ct_CC"; then
2761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2765 do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_ac_ct_CC="gcc"
2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774 done
2775 done
2776 IFS=$as_save_IFS
2777
2778 fi
2779 fi
2780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2781 if test -n "$ac_ct_CC"; then
2782 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2783 echo "${ECHO_T}$ac_ct_CC" >&6; }
2784 else
2785 { echo "$as_me:$LINENO: result: no" >&5
2786 echo "${ECHO_T}no" >&6; }
2787 fi
2788
2789 if test "x$ac_ct_CC" = x; then
2790 CC=""
2791 else
2792 case $cross_compiling:$ac_tool_warned in
2793 yes:)
2794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2795 whose name does not start with the host triplet. If you think this
2796 configuration is useful to you, please write to autoconf@gnu.org." >&5
2797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2798 whose name does not start with the host triplet. If you think this
2799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2800 ac_tool_warned=yes ;;
2801 esac
2802 CC=$ac_ct_CC
2803 fi
2804 else
2805 CC="$ac_cv_prog_CC"
2806 fi
2807
2808 if test -z "$CC"; then
2809 if test -n "$ac_tool_prefix"; then
2810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2811 set dummy ${ac_tool_prefix}cc; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_CC+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH
2822 do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_CC="${ac_tool_prefix}cc"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831 done
2832 done
2833 IFS=$as_save_IFS
2834
2835 fi
2836 fi
2837 CC=$ac_cv_prog_CC
2838 if test -n "$CC"; then
2839 { echo "$as_me:$LINENO: result: $CC" >&5
2840 echo "${ECHO_T}$CC" >&6; }
2841 else
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 fi
2845
2846
2847 fi
2848 fi
2849 if test -z "$CC"; then
2850 # Extract the first word of "cc", so it can be a program name with args.
2851 set dummy cc; ac_word=$2
2852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2854 if test "${ac_cv_prog_CC+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 else
2860 ac_prog_rejected=no
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2869 ac_prog_rejected=yes
2870 continue
2871 fi
2872 ac_cv_prog_CC="cc"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy $ac_cv_prog_CC
2883 shift
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2888 shift
2889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890 fi
2891 fi
2892 fi
2893 fi
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 { echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6; }
2898 else
2899 { echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6; }
2901 fi
2902
2903
2904 fi
2905 if test -z "$CC"; then
2906 if test -n "$ac_tool_prefix"; then
2907 for ac_prog in cl.exe
2908 do
2909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938 { echo "$as_me:$LINENO: result: $CC" >&5
2939 echo "${ECHO_T}$CC" >&6; }
2940 else
2941 { echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6; }
2943 fi
2944
2945
2946 test -n "$CC" && break
2947 done
2948 fi
2949 if test -z "$CC"; then
2950 ac_ct_CC=$CC
2951 for ac_prog in cl.exe
2952 do
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy $ac_prog; ac_word=$2
2955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 if test -n "$ac_ct_CC"; then
2961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_ac_ct_CC="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2981 if test -n "$ac_ct_CC"; then
2982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2983 echo "${ECHO_T}$ac_ct_CC" >&6; }
2984 else
2985 { echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6; }
2987 fi
2988
2989
2990 test -n "$ac_ct_CC" && break
2991 done
2992
2993 if test "x$ac_ct_CC" = x; then
2994 CC=""
2995 else
2996 case $cross_compiling:$ac_tool_warned in
2997 yes:)
2998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2999 whose name does not start with the host triplet. If you think this
3000 configuration is useful to you, please write to autoconf@gnu.org." >&5
3001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3002 whose name does not start with the host triplet. If you think this
3003 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006 CC=$ac_ct_CC
3007 fi
3008 fi
3009
3010 fi
3011
3012
3013 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." >&5
3015 echo "$as_me: error: no acceptable C compiler found in \$PATH
3016 See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }
3018
3019 # Provide some information about the compiler.
3020 echo "$as_me:$LINENO: checking for C compiler version" >&5
3021 ac_compiler=`set X $ac_compile; echo $2`
3022 { (ac_try="$ac_compiler --version >&5"
3023 case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compiler --version >&5") 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }
3032 { (ac_try="$ac_compiler -v >&5"
3033 case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compiler -v >&5") 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (ac_try="$ac_compiler -V >&5"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compiler -V >&5") 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3052
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059
3060 int
3061 main ()
3062 {
3063
3064 ;
3065 return 0;
3066 }
3067 _ACEOF
3068 ac_clean_files_save=$ac_clean_files
3069 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3072 # of exeext.
3073 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3075 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3076 #
3077 # List of possible output files, starting from the most likely.
3078 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3079 # only as a last resort. b.out is created by i960 compilers.
3080 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3081 #
3082 # The IRIX 6 linker writes into existing files which may not be
3083 # executable, retaining their permissions. Remove them first so a
3084 # subsequent execution test works.
3085 ac_rmfiles=
3086 for ac_file in $ac_files
3087 do
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3091 esac
3092 done
3093 rm -f $ac_rmfiles
3094
3095 if { (ac_try="$ac_link_default"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_link_default") 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3106 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3107 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3108 # so that the user can short-circuit this test for compilers unknown to
3109 # Autoconf.
3110 for ac_file in $ac_files ''
3111 do
3112 test -f "$ac_file" || continue
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3115 ;;
3116 [ab].out )
3117 # We found the default executable, but exeext='' is most
3118 # certainly right.
3119 break;;
3120 *.* )
3121 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3122 then :; else
3123 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124 fi
3125 # We set ac_cv_exeext here because the later test for it is not
3126 # safe: cross compilers may not add the suffix if given an `-o'
3127 # argument, so we may need to know it at that point already.
3128 # Even if this section looks crufty: it has the advantage of
3129 # actually working.
3130 break;;
3131 * )
3132 break;;
3133 esac
3134 done
3135 test "$ac_cv_exeext" = no && ac_cv_exeext=
3136
3137 else
3138 ac_file=''
3139 fi
3140
3141 { echo "$as_me:$LINENO: result: $ac_file" >&5
3142 echo "${ECHO_T}$ac_file" >&6; }
3143 if test -z "$ac_file"; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: C compiler cannot create executables
3150 See \`config.log' for more details." >&2;}
3151 { (exit 77); exit 77; }; }
3152 fi
3153
3154 ac_exeext=$ac_cv_exeext
3155
3156 # Check that the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3159 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3160 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3161 # If not cross compiling, check that we can run a simple program.
3162 if test "$cross_compiling" != yes; then
3163 if { ac_try='./$ac_file'
3164 { (case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_try") 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; }; then
3173 cross_compiling=no
3174 else
3175 if test "$cross_compiling" = maybe; then
3176 cross_compiling=yes
3177 else
3178 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3179 If you meant to cross compile, use \`--host'.
3180 See \`config.log' for more details." >&5
3181 echo "$as_me: error: cannot run C compiled programs.
3182 If you meant to cross compile, use \`--host'.
3183 See \`config.log' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3185 fi
3186 fi
3187 fi
3188 { echo "$as_me:$LINENO: result: yes" >&5
3189 echo "${ECHO_T}yes" >&6; }
3190
3191 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3192 ac_clean_files=$ac_clean_files_save
3193 # Check that the compiler produces executables we can run. If not, either
3194 # the compiler is broken, or we cross compile.
3195 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3196 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3197 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3198 echo "${ECHO_T}$cross_compiling" >&6; }
3199
3200 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3201 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3202 if { (ac_try="$ac_link"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_link") 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; then
3212 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3213 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3214 # work properly (i.e., refer to `conftest.exe'), while it won't with
3215 # `rm'.
3216 for ac_file in conftest.exe conftest conftest.*; do
3217 test -f "$ac_file" || continue
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3220 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221 break;;
3222 * ) break;;
3223 esac
3224 done
3225 else
3226 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3227 See \`config.log' for more details." >&5
3228 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3229 See \`config.log' for more details." >&2;}
3230 { (exit 1); exit 1; }; }
3231 fi
3232
3233 rm -f conftest$ac_cv_exeext
3234 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3235 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3236
3237 rm -f conftest.$ac_ext
3238 EXEEXT=$ac_cv_exeext
3239 ac_exeext=$EXEEXT
3240 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3241 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3242 if test "${ac_cv_objext+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245 cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h. */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3251
3252 int
3253 main ()
3254 {
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 rm -f conftest.o conftest.obj
3261 if { (ac_try="$ac_compile"
3262 case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267 (eval "$ac_compile") 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 for ac_file in conftest.o conftest.obj conftest.*; do
3272 test -f "$ac_file" || continue;
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276 break;;
3277 esac
3278 done
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details." >&5
3285 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details." >&2;}
3287 { (exit 1); exit 1; }; }
3288 fi
3289
3290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3291 fi
3292 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3293 echo "${ECHO_T}$ac_cv_objext" >&6; }
3294 OBJEXT=$ac_cv_objext
3295 ac_objext=$OBJEXT
3296 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3297 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3298 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301 cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h. */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3307
3308 int
3309 main ()
3310 {
3311 #ifndef __GNUC__
3312 choke me
3313 #endif
3314
3315 ;
3316 return 0;
3317 }
3318 _ACEOF
3319 rm -f conftest.$ac_objext
3320 if { (ac_try="$ac_compile"
3321 case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3327 ac_status=$?
3328 grep -v '^ *+' conftest.er1 >conftest.err
3329 rm -f conftest.er1
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } && {
3333 test -z "$ac_c_werror_flag" ||
3334 test ! -s conftest.err
3335 } && test -s conftest.$ac_objext; then
3336 ac_compiler_gnu=yes
3337 else
3338 echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 ac_compiler_gnu=no
3342 fi
3343
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3346
3347 fi
3348 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3349 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3350 GCC=`test $ac_compiler_gnu = yes && echo yes`
3351 ac_test_CFLAGS=${CFLAGS+set}
3352 ac_save_CFLAGS=$CFLAGS
3353 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3354 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3355 if test "${ac_cv_prog_cc_g+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 ac_save_c_werror_flag=$ac_c_werror_flag
3359 ac_c_werror_flag=yes
3360 ac_cv_prog_cc_g=no
3361 CFLAGS="-g"
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (ac_try="$ac_compile"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
3394 ac_cv_prog_cc_g=yes
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 CFLAGS=""
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406
3407 int
3408 main ()
3409 {
3410
3411 ;
3412 return 0;
3413 }
3414 _ACEOF
3415 rm -f conftest.$ac_objext
3416 if { (ac_try="$ac_compile"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_compile") 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } && {
3429 test -z "$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3431 } && test -s conftest.$ac_objext; then
3432 :
3433 else
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 ac_c_werror_flag=$ac_save_c_werror_flag
3438 CFLAGS="-g"
3439 cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h. */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445
3446 int
3447 main ()
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3456 case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_compile") 2>conftest.er1
3462 ac_status=$?
3463 grep -v '^ *+' conftest.er1 >conftest.err
3464 rm -f conftest.er1
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } && {
3468 test -z "$ac_c_werror_flag" ||
3469 test ! -s conftest.err
3470 } && test -s conftest.$ac_objext; then
3471 ac_cv_prog_cc_g=yes
3472 else
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3475
3476
3477 fi
3478
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 fi
3481
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 fi
3484
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3487 fi
3488 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3490 if test "$ac_test_CFLAGS" = set; then
3491 CFLAGS=$ac_save_CFLAGS
3492 elif test $ac_cv_prog_cc_g = yes; then
3493 if test "$GCC" = yes; then
3494 CFLAGS="-g -O2"
3495 else
3496 CFLAGS="-g"
3497 fi
3498 else
3499 if test "$GCC" = yes; then
3500 CFLAGS="-O2"
3501 else
3502 CFLAGS=
3503 fi
3504 fi
3505 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3506 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3507 if test "${ac_cv_prog_cc_c89+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510 ac_cv_prog_cc_c89=no
3511 ac_save_CC=$CC
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518 #include <stdarg.h>
3519 #include <stdio.h>
3520 #include <sys/types.h>
3521 #include <sys/stat.h>
3522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3523 struct buf { int x; };
3524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3525 static char *e (p, i)
3526 char **p;
3527 int i;
3528 {
3529 return p[i];
3530 }
3531 static char *f (char * (*g) (char **, int), char **p, ...)
3532 {
3533 char *s;
3534 va_list v;
3535 va_start (v,p);
3536 s = g (p, va_arg (v,int));
3537 va_end (v);
3538 return s;
3539 }
3540
3541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3542 function prototypes and stuff, but not '\xHH' hex character constants.
3543 These don't provoke an error unfortunately, instead are silently treated
3544 as 'x'. The following induces an error, until -std is added to get
3545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3546 array size at least. It's necessary to write '\x00'==0 to get something
3547 that's true only with -std. */
3548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3549
3550 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3551 inside strings and character constants. */
3552 #define FOO(x) 'x'
3553 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3554
3555 int test (int i, double x);
3556 struct s1 {int (*f) (int a);};
3557 struct s2 {int (*f) (double a);};
3558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3559 int argc;
3560 char **argv;
3561 int
3562 main ()
3563 {
3564 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3570 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3571 do
3572 CC="$ac_save_CC $ac_arg"
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compile") 2>conftest.er1
3581 ac_status=$?
3582 grep -v '^ *+' conftest.er1 >conftest.err
3583 rm -f conftest.er1
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } && {
3587 test -z "$ac_c_werror_flag" ||
3588 test ! -s conftest.err
3589 } && test -s conftest.$ac_objext; then
3590 ac_cv_prog_cc_c89=$ac_arg
3591 else
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595
3596 fi
3597
3598 rm -f core conftest.err conftest.$ac_objext
3599 test "x$ac_cv_prog_cc_c89" != "xno" && break
3600 done
3601 rm -f conftest.$ac_ext
3602 CC=$ac_save_CC
3603
3604 fi
3605 # AC_CACHE_VAL
3606 case "x$ac_cv_prog_cc_c89" in
3607 x)
3608 { echo "$as_me:$LINENO: result: none needed" >&5
3609 echo "${ECHO_T}none needed" >&6; } ;;
3610 xno)
3611 { echo "$as_me:$LINENO: result: unsupported" >&5
3612 echo "${ECHO_T}unsupported" >&6; } ;;
3613 *)
3614 CC="$CC $ac_cv_prog_cc_c89"
3615 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3616 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3617 esac
3618
3619
3620 ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625
3626
3627 # On Suns, sometimes $CPP names a directory.
3628 if test -n "$CPP" && test -d "$CPP"; then
3629 CPP=
3630 fi
3631
3632 ## If not using gcc, and on Solaris, and no CPP specified, see if
3633 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3634 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3635 test x"$CPP" = x; then
3636 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3637 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3638
3639 if test "${emacs_cv_sunpro_c+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648
3649 int
3650 main ()
3651 {
3652 #ifndef __SUNPRO_C
3653 fail;
3654 #endif
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (ac_try="$ac_link"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_link") 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest$ac_exeext &&
3677 $as_test_x conftest$ac_exeext; then
3678 emacs_cv_sunpro_c=yes
3679 else
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683 emacs_cv_sunpro_c=no
3684 fi
3685
3686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3687 conftest$ac_exeext conftest.$ac_ext
3688 fi
3689
3690 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3691 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3692
3693 if test x"$emacs_cv_sunpro_c" = xyes; then
3694 NON_GNU_CPP="$CC -E -Xs"
3695 fi
3696 fi
3697
3698 #### Some systems specify a CPP to use unless we are using GCC.
3699 #### Now that we know whether we are using GCC, we can decide whether
3700 #### to use that one.
3701 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3702 then
3703 CPP="$NON_GNU_CPP"
3704 fi
3705
3706 #### Some systems specify a CC to use unless we are using GCC.
3707 #### Now that we know whether we are using GCC, we can decide whether
3708 #### to use that one.
3709 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3710 test x$cc_specified != xyes
3711 then
3712 CC="$NON_GNU_CC"
3713 fi
3714
3715 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3716 then
3717 CC="$CC $GCC_TEST_OPTIONS"
3718 fi
3719
3720 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3721 then
3722 CC="$CC $NON_GCC_TEST_OPTIONS"
3723 fi
3724
3725
3726 cat >>confdefs.h <<\_ACEOF
3727 #define _GNU_SOURCE 1
3728 _ACEOF
3729
3730
3731 ac_ext=c
3732 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3737 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3738 # On Suns, sometimes $CPP names a directory.
3739 if test -n "$CPP" && test -d "$CPP"; then
3740 CPP=
3741 fi
3742 if test -z "$CPP"; then
3743 if test "${ac_cv_prog_CPP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746 # Double quotes because CPP needs to be expanded
3747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3748 do
3749 ac_preproc_ok=false
3750 for ac_c_preproc_warn_flag in '' yes
3751 do
3752 # Use a header file that comes with gcc, so configuring glibc
3753 # with a fresh cross-compiler works.
3754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755 # <limits.h> exists even on freestanding compilers.
3756 # On the NeXT, cc -E runs the code through the compiler's parser,
3757 # not just through cpp. "Syntax error" is here to catch this case.
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 #ifdef __STDC__
3765 # include <limits.h>
3766 #else
3767 # include <assert.h>
3768 #endif
3769 Syntax error
3770 _ACEOF
3771 if { (ac_try="$ac_cpp conftest.$ac_ext"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } >/dev/null && {
3784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3786 }; then
3787 :
3788 else
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792 # Broken: fails on valid input.
3793 continue
3794 fi
3795
3796 rm -f conftest.err conftest.$ac_ext
3797
3798 # OK, works on sane cases. Now check whether nonexistent headers
3799 # can be detected and how.
3800 cat >conftest.$ac_ext <<_ACEOF
3801 /* confdefs.h. */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806 #include <ac_nonexistent.h>
3807 _ACEOF
3808 if { (ac_try="$ac_cpp conftest.$ac_ext"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } >/dev/null && {
3821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3823 }; then
3824 # Broken: success on invalid input.
3825 continue
3826 else
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 # Passes both tests.
3831 ac_preproc_ok=:
3832 break
3833 fi
3834
3835 rm -f conftest.err conftest.$ac_ext
3836
3837 done
3838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3839 rm -f conftest.err conftest.$ac_ext
3840 if $ac_preproc_ok; then
3841 break
3842 fi
3843
3844 done
3845 ac_cv_prog_CPP=$CPP
3846
3847 fi
3848 CPP=$ac_cv_prog_CPP
3849 else
3850 ac_cv_prog_CPP=$CPP
3851 fi
3852 { echo "$as_me:$LINENO: result: $CPP" >&5
3853 echo "${ECHO_T}$CPP" >&6; }
3854 ac_preproc_ok=false
3855 for ac_c_preproc_warn_flag in '' yes
3856 do
3857 # Use a header file that comes with gcc, so configuring glibc
3858 # with a fresh cross-compiler works.
3859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860 # <limits.h> exists even on freestanding compilers.
3861 # On the NeXT, cc -E runs the code through the compiler's parser,
3862 # not just through cpp. "Syntax error" is here to catch this case.
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #ifdef __STDC__
3870 # include <limits.h>
3871 #else
3872 # include <assert.h>
3873 #endif
3874 Syntax error
3875 _ACEOF
3876 if { (ac_try="$ac_cpp conftest.$ac_ext"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } >/dev/null && {
3889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3891 }; then
3892 :
3893 else
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3896
3897 # Broken: fails on valid input.
3898 continue
3899 fi
3900
3901 rm -f conftest.err conftest.$ac_ext
3902
3903 # OK, works on sane cases. Now check whether nonexistent headers
3904 # can be detected and how.
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <ac_nonexistent.h>
3912 _ACEOF
3913 if { (ac_try="$ac_cpp conftest.$ac_ext"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null && {
3926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 }; then
3929 # Broken: success on invalid input.
3930 continue
3931 else
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 # Passes both tests.
3936 ac_preproc_ok=:
3937 break
3938 fi
3939
3940 rm -f conftest.err conftest.$ac_ext
3941
3942 done
3943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3944 rm -f conftest.err conftest.$ac_ext
3945 if $ac_preproc_ok; then
3946 :
3947 else
3948 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3949 See \`config.log' for more details." >&5
3950 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3951 See \`config.log' for more details." >&2;}
3952 { (exit 1); exit 1; }; }
3953 fi
3954
3955 ac_ext=c
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
3961
3962 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3963 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3964 if test "${ac_cv_path_GREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 # Extract the first word of "grep ggrep" to use in msg output
3968 if test -z "$GREP"; then
3969 set dummy grep ggrep; ac_prog_name=$2
3970 if test "${ac_cv_path_GREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973 ac_path_GREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_prog in grep ggrep; do
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3983 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3984 # Check for GNU ac_path_GREP and select it if it is found.
3985 # Check for GNU $ac_path_GREP
3986 case `"$ac_path_GREP" --version 2>&1` in
3987 *GNU*)
3988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3989 *)
3990 ac_count=0
3991 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3992 while :
3993 do
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
3997 echo 'GREP' >> "conftest.nl"
3998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000 ac_count=`expr $ac_count + 1`
4001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_GREP="$ac_path_GREP"
4004 ac_path_GREP_max=$ac_count
4005 fi
4006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4008 done
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 esac
4011
4012
4013 $ac_path_GREP_found && break 3
4014 done
4015 done
4016
4017 done
4018 IFS=$as_save_IFS
4019
4020
4021 fi
4022
4023 GREP="$ac_cv_path_GREP"
4024 if test -z "$GREP"; then
4025 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027 { (exit 1); exit 1; }; }
4028 fi
4029
4030 else
4031 ac_cv_path_GREP=$GREP
4032 fi
4033
4034
4035 fi
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4038 GREP="$ac_cv_path_GREP"
4039
4040
4041 { echo "$as_me:$LINENO: checking for egrep" >&5
4042 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4043 if test "${ac_cv_path_EGREP+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4047 then ac_cv_path_EGREP="$GREP -E"
4048 else
4049 # Extract the first word of "egrep" to use in msg output
4050 if test -z "$EGREP"; then
4051 set dummy egrep; ac_prog_name=$2
4052 if test "${ac_cv_path_EGREP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055 ac_path_EGREP_found=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4059 do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_prog in egrep; do
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4065 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4066 # Check for GNU ac_path_EGREP and select it if it is found.
4067 # Check for GNU $ac_path_EGREP
4068 case `"$ac_path_EGREP" --version 2>&1` in
4069 *GNU*)
4070 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4071 *)
4072 ac_count=0
4073 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4074 while :
4075 do
4076 cat "conftest.in" "conftest.in" >"conftest.tmp"
4077 mv "conftest.tmp" "conftest.in"
4078 cp "conftest.in" "conftest.nl"
4079 echo 'EGREP' >> "conftest.nl"
4080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4082 ac_count=`expr $ac_count + 1`
4083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4084 # Best one so far, save it but keep looking for a better one
4085 ac_cv_path_EGREP="$ac_path_EGREP"
4086 ac_path_EGREP_max=$ac_count
4087 fi
4088 # 10*(2^10) chars as input seems more than enough
4089 test $ac_count -gt 10 && break
4090 done
4091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092 esac
4093
4094
4095 $ac_path_EGREP_found && break 3
4096 done
4097 done
4098
4099 done
4100 IFS=$as_save_IFS
4101
4102
4103 fi
4104
4105 EGREP="$ac_cv_path_EGREP"
4106 if test -z "$EGREP"; then
4107 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4108 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4109 { (exit 1); exit 1; }; }
4110 fi
4111
4112 else
4113 ac_cv_path_EGREP=$EGREP
4114 fi
4115
4116
4117 fi
4118 fi
4119 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4121 EGREP="$ac_cv_path_EGREP"
4122
4123
4124
4125 { echo "$as_me:$LINENO: checking for AIX" >&5
4126 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4127 cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h. */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4133 #ifdef _AIX
4134 yes
4135 #endif
4136
4137 _ACEOF
4138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139 $EGREP "yes" >/dev/null 2>&1; then
4140 { echo "$as_me:$LINENO: result: yes" >&5
4141 echo "${ECHO_T}yes" >&6; }
4142 cat >>confdefs.h <<\_ACEOF
4143 #define _ALL_SOURCE 1
4144 _ACEOF
4145
4146 else
4147 { echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6; }
4149 fi
4150 rm -f conftest*
4151
4152
4153 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4154 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4155 if test "${ac_cv_header_stdc+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h. */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4164 #include <stdlib.h>
4165 #include <stdarg.h>
4166 #include <string.h>
4167 #include <float.h>
4168
4169 int
4170 main ()
4171 {
4172
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 rm -f conftest.$ac_objext
4178 if { (ac_try="$ac_compile"
4179 case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182 esac
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4185 ac_status=$?
4186 grep -v '^ *+' conftest.er1 >conftest.err
4187 rm -f conftest.er1
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && {
4191 test -z "$ac_c_werror_flag" ||
4192 test ! -s conftest.err
4193 } && test -s conftest.$ac_objext; then
4194 ac_cv_header_stdc=yes
4195 else
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 ac_cv_header_stdc=no
4200 fi
4201
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203
4204 if test $ac_cv_header_stdc = yes; then
4205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4206 cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h. */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 #include <string.h>
4213
4214 _ACEOF
4215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216 $EGREP "memchr" >/dev/null 2>&1; then
4217 :
4218 else
4219 ac_cv_header_stdc=no
4220 fi
4221 rm -f conftest*
4222
4223 fi
4224
4225 if test $ac_cv_header_stdc = yes; then
4226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4227 cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h. */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 #include <stdlib.h>
4234
4235 _ACEOF
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 $EGREP "free" >/dev/null 2>&1; then
4238 :
4239 else
4240 ac_cv_header_stdc=no
4241 fi
4242 rm -f conftest*
4243
4244 fi
4245
4246 if test $ac_cv_header_stdc = yes; then
4247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4248 if test "$cross_compiling" = yes; then
4249 :
4250 else
4251 cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h. */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 #include <ctype.h>
4258 #include <stdlib.h>
4259 #if ((' ' & 0x0FF) == 0x020)
4260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4262 #else
4263 # define ISLOWER(c) \
4264 (('a' <= (c) && (c) <= 'i') \
4265 || ('j' <= (c) && (c) <= 'r') \
4266 || ('s' <= (c) && (c) <= 'z'))
4267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4268 #endif
4269
4270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4271 int
4272 main ()
4273 {
4274 int i;
4275 for (i = 0; i < 256; i++)
4276 if (XOR (islower (i), ISLOWER (i))
4277 || toupper (i) != TOUPPER (i))
4278 return 2;
4279 return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest$ac_exeext
4283 if { (ac_try="$ac_link"
4284 case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_link") 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4293 { (case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 :
4303 else
4304 echo "$as_me: program exited with status $ac_status" >&5
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4307
4308 ( exit $ac_status )
4309 ac_cv_header_stdc=no
4310 fi
4311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4312 fi
4313
4314
4315 fi
4316 fi
4317 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4318 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4319 if test $ac_cv_header_stdc = yes; then
4320
4321 cat >>confdefs.h <<\_ACEOF
4322 #define STDC_HEADERS 1
4323 _ACEOF
4324
4325 fi
4326
4327 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4338 inttypes.h stdint.h unistd.h
4339 do
4340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h. */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 $ac_includes_default
4353
4354 #include <$ac_header>
4355 _ACEOF
4356 rm -f conftest.$ac_objext
4357 if { (ac_try="$ac_compile"
4358 case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361 esac
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_compile") 2>conftest.er1
4364 ac_status=$?
4365 grep -v '^ *+' conftest.er1 >conftest.err
4366 rm -f conftest.er1
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && {
4370 test -z "$ac_c_werror_flag" ||
4371 test ! -s conftest.err
4372 } && test -s conftest.$ac_objext; then
4373 eval "$as_ac_Header=yes"
4374 else
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378 eval "$as_ac_Header=no"
4379 fi
4380
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 fi
4383 ac_res=`eval echo '${'$as_ac_Header'}'`
4384 { echo "$as_me:$LINENO: result: $ac_res" >&5
4385 echo "${ECHO_T}$ac_res" >&6; }
4386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4387 cat >>confdefs.h <<_ACEOF
4388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4389 _ACEOF
4390
4391 fi
4392
4393 done
4394
4395
4396 if test "${ac_cv_header_minix_config_h+set}" = set; then
4397 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4398 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4399 if test "${ac_cv_header_minix_config_h+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 fi
4402 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4403 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4404 else
4405 # Is the header compilable?
4406 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4407 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h. */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 $ac_includes_default
4415 #include <minix/config.h>
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (ac_try="$ac_compile"
4419 case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_compile") 2>conftest.er1
4425 ac_status=$?
4426 grep -v '^ *+' conftest.er1 >conftest.err
4427 rm -f conftest.er1
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } && {
4431 test -z "$ac_c_werror_flag" ||
4432 test ! -s conftest.err
4433 } && test -s conftest.$ac_objext; then
4434 ac_header_compiler=yes
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439 ac_header_compiler=no
4440 fi
4441
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4444 echo "${ECHO_T}$ac_header_compiler" >&6; }
4445
4446 # Is the header present?
4447 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4448 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4449 cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h. */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 #include <minix/config.h>
4456 _ACEOF
4457 if { (ac_try="$ac_cpp conftest.$ac_ext"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev/null && {
4470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4471 test ! -s conftest.err
4472 }; then
4473 ac_header_preproc=yes
4474 else
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 ac_header_preproc=no
4479 fi
4480
4481 rm -f conftest.err conftest.$ac_ext
4482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4483 echo "${ECHO_T}$ac_header_preproc" >&6; }
4484
4485 # So? What about this header?
4486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4487 yes:no: )
4488 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4489 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4490 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4491 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4492 ac_header_preproc=yes
4493 ;;
4494 no:yes:* )
4495 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4496 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4498 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4500 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4502 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4504 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4506 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4507
4508 ;;
4509 esac
4510 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4511 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4512 if test "${ac_cv_header_minix_config_h+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 ac_cv_header_minix_config_h=$ac_header_preproc
4516 fi
4517 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4518 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4519
4520 fi
4521 if test $ac_cv_header_minix_config_h = yes; then
4522 MINIX=yes
4523 else
4524 MINIX=
4525 fi
4526
4527
4528 if test "$MINIX" = yes; then
4529
4530 cat >>confdefs.h <<\_ACEOF
4531 #define _POSIX_SOURCE 1
4532 _ACEOF
4533
4534
4535 cat >>confdefs.h <<\_ACEOF
4536 #define _POSIX_1_SOURCE 2
4537 _ACEOF
4538
4539
4540 cat >>confdefs.h <<\_ACEOF
4541 #define _MINIX 1
4542 _ACEOF
4543
4544 fi
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4557 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4558 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567
4568 # define __EXTENSIONS__ 1
4569 $ac_includes_default
4570 int
4571 main ()
4572 {
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.$ac_objext
4579 if { (ac_try="$ac_compile"
4580 case "(($ac_try" in
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4583 esac
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585 (eval "$ac_compile") 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } && {
4592 test -z "$ac_c_werror_flag" ||
4593 test ! -s conftest.err
4594 } && test -s conftest.$ac_objext; then
4595 ac_cv_safe_to_define___extensions__=yes
4596 else
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600 ac_cv_safe_to_define___extensions__=no
4601 fi
4602
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 fi
4605 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4606 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4607 test $ac_cv_safe_to_define___extensions__ = yes &&
4608 cat >>confdefs.h <<\_ACEOF
4609 #define __EXTENSIONS__ 1
4610 _ACEOF
4611
4612 cat >>confdefs.h <<\_ACEOF
4613 #define _POSIX_PTHREAD_SEMANTICS 1
4614 _ACEOF
4615
4616 cat >>confdefs.h <<\_ACEOF
4617 #define _TANDEM_SOURCE 1
4618 _ACEOF
4619
4620
4621
4622 ### Use -Wno-pointer-sign if the compiler supports it
4623 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4624 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4625 SAVE_CFLAGS="$CFLAGS"
4626 CFLAGS="$CFLAGS -Wno-pointer-sign"
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h. */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633
4634 int
4635 main ()
4636 {
4637
4638 ;
4639 return 0;
4640 }
4641 _ACEOF
4642 rm -f conftest.$ac_objext
4643 if { (ac_try="$ac_compile"
4644 case "(($ac_try" in
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4647 esac
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649 (eval "$ac_compile") 2>conftest.er1
4650 ac_status=$?
4651 grep -v '^ *+' conftest.er1 >conftest.err
4652 rm -f conftest.er1
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } && {
4656 test -z "$ac_c_werror_flag" ||
4657 test ! -s conftest.err
4658 } && test -s conftest.$ac_objext; then
4659 has_option=yes
4660 else
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 has_option=no
4665 fi
4666
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 if test $has_option = yes; then
4669 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4670 fi
4671 { echo "$as_me:$LINENO: result: $has_option" >&5
4672 echo "${ECHO_T}$has_option" >&6; }
4673 CFLAGS="$SAVE_CFLAGS"
4674 unset has_option
4675 unset SAVE_CFLAGS
4676
4677 #### Some other nice autoconf tests.
4678
4679 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4680 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4681 LN_S=$as_ln_s
4682 if test "$LN_S" = "ln -s"; then
4683 { echo "$as_me:$LINENO: result: yes" >&5
4684 echo "${ECHO_T}yes" >&6; }
4685 else
4686 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4687 echo "${ECHO_T}no, using $LN_S" >&6; }
4688 fi
4689
4690 ac_ext=c
4691 ac_cpp='$CPP $CPPFLAGS'
4692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4696 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4697 # On Suns, sometimes $CPP names a directory.
4698 if test -n "$CPP" && test -d "$CPP"; then
4699 CPP=
4700 fi
4701 if test -z "$CPP"; then
4702 if test "${ac_cv_prog_CPP+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705 # Double quotes because CPP needs to be expanded
4706 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4707 do
4708 ac_preproc_ok=false
4709 for ac_c_preproc_warn_flag in '' yes
4710 do
4711 # Use a header file that comes with gcc, so configuring glibc
4712 # with a fresh cross-compiler works.
4713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4714 # <limits.h> exists even on freestanding compilers.
4715 # On the NeXT, cc -E runs the code through the compiler's parser,
4716 # not just through cpp. "Syntax error" is here to catch this case.
4717 cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h. */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4723 #ifdef __STDC__
4724 # include <limits.h>
4725 #else
4726 # include <assert.h>
4727 #endif
4728 Syntax error
4729 _ACEOF
4730 if { (ac_try="$ac_cpp conftest.$ac_ext"
4731 case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734 esac
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4737 ac_status=$?
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } >/dev/null && {
4743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4745 }; then
4746 :
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 # Broken: fails on valid input.
4752 continue
4753 fi
4754
4755 rm -f conftest.err conftest.$ac_ext
4756
4757 # OK, works on sane cases. Now check whether nonexistent headers
4758 # can be detected and how.
4759 cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h. */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 #include <ac_nonexistent.h>
4766 _ACEOF
4767 if { (ac_try="$ac_cpp conftest.$ac_ext"
4768 case "(($ac_try" in
4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4771 esac
4772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } >/dev/null && {
4780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4781 test ! -s conftest.err
4782 }; then
4783 # Broken: success on invalid input.
4784 continue
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789 # Passes both tests.
4790 ac_preproc_ok=:
4791 break
4792 fi
4793
4794 rm -f conftest.err conftest.$ac_ext
4795
4796 done
4797 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4798 rm -f conftest.err conftest.$ac_ext
4799 if $ac_preproc_ok; then
4800 break
4801 fi
4802
4803 done
4804 ac_cv_prog_CPP=$CPP
4805
4806 fi
4807 CPP=$ac_cv_prog_CPP
4808 else
4809 ac_cv_prog_CPP=$CPP
4810 fi
4811 { echo "$as_me:$LINENO: result: $CPP" >&5
4812 echo "${ECHO_T}$CPP" >&6; }
4813 ac_preproc_ok=false
4814 for ac_c_preproc_warn_flag in '' yes
4815 do
4816 # Use a header file that comes with gcc, so configuring glibc
4817 # with a fresh cross-compiler works.
4818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4819 # <limits.h> exists even on freestanding compilers.
4820 # On the NeXT, cc -E runs the code through the compiler's parser,
4821 # not just through cpp. "Syntax error" is here to catch this case.
4822 cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h. */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4828 #ifdef __STDC__
4829 # include <limits.h>
4830 #else
4831 # include <assert.h>
4832 #endif
4833 Syntax error
4834 _ACEOF
4835 if { (ac_try="$ac_cpp conftest.$ac_ext"
4836 case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839 esac
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } >/dev/null && {
4848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4850 }; then
4851 :
4852 else
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4855
4856 # Broken: fails on valid input.
4857 continue
4858 fi
4859
4860 rm -f conftest.err conftest.$ac_ext
4861
4862 # OK, works on sane cases. Now check whether nonexistent headers
4863 # can be detected and how.
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <ac_nonexistent.h>
4871 _ACEOF
4872 if { (ac_try="$ac_cpp conftest.$ac_ext"
4873 case "(($ac_try" in
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4876 esac
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } >/dev/null && {
4885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4887 }; then
4888 # Broken: success on invalid input.
4889 continue
4890 else
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894 # Passes both tests.
4895 ac_preproc_ok=:
4896 break
4897 fi
4898
4899 rm -f conftest.err conftest.$ac_ext
4900
4901 done
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.$ac_ext
4904 if $ac_preproc_ok; then
4905 :
4906 else
4907 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4908 See \`config.log' for more details." >&5
4909 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4910 See \`config.log' for more details." >&2;}
4911 { (exit 1); exit 1; }; }
4912 fi
4913
4914 ac_ext=c
4915 ac_cpp='$CPP $CPPFLAGS'
4916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4919
4920 # Find a good install program. We prefer a C program (faster),
4921 # so one script is as good as another. But avoid the broken or
4922 # incompatible versions:
4923 # SysV /etc/install, /usr/sbin/install
4924 # SunOS /usr/etc/install
4925 # IRIX /sbin/install
4926 # AIX /bin/install
4927 # AmigaOS /C/install, which installs bootblocks on floppy discs
4928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4931 # OS/2's system install, which has a completely different semantic
4932 # ./install, which can be erroneously created by make from ./install.sh.
4933 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4934 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4935 if test -z "$INSTALL"; then
4936 if test "${ac_cv_path_install+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 # Account for people who put trailing slashes in PATH elements.
4945 case $as_dir/ in
4946 ./ | .// | /cC/* | \
4947 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4948 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4949 /usr/ucb/* ) ;;
4950 *)
4951 # OSF1 and SCO ODT 3.0 have their own names for install.
4952 # Don't use installbsd from OSF since it installs stuff as root
4953 # by default.
4954 for ac_prog in ginstall scoinst install; do
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4957 if test $ac_prog = install &&
4958 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4959 # AIX install. It has an incompatible calling convention.
4960 :
4961 elif test $ac_prog = install &&
4962 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4963 # program-specific install script used by HP pwplus--don't use.
4964 :
4965 else
4966 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4967 break 3
4968 fi
4969 fi
4970 done
4971 done
4972 ;;
4973 esac
4974 done
4975 IFS=$as_save_IFS
4976
4977
4978 fi
4979 if test "${ac_cv_path_install+set}" = set; then
4980 INSTALL=$ac_cv_path_install
4981 else
4982 # As a last resort, use the slow shell script. Don't cache a
4983 # value for INSTALL within a source directory, because that will
4984 # break other packages using the cache if that directory is
4985 # removed, or if the value is a relative name.
4986 INSTALL=$ac_install_sh
4987 fi
4988 fi
4989 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4990 echo "${ECHO_T}$INSTALL" >&6; }
4991
4992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4993 # It thinks the first close brace ends the variable substitution.
4994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4995
4996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4997
4998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4999
5000 if test "x$RANLIB" = x; then
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5003 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_prog_RANLIB+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009 if test -n "$RANLIB"; then
5010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027 fi
5028 fi
5029 RANLIB=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5032 echo "${ECHO_T}$RANLIB" >&6; }
5033 else
5034 { echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6; }
5036 fi
5037
5038
5039 fi
5040 if test -z "$ac_cv_prog_RANLIB"; then
5041 ac_ct_RANLIB=$RANLIB
5042 # Extract the first word of "ranlib", so it can be a program name with args.
5043 set dummy ranlib; ac_word=$2
5044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049 if test -n "$ac_ct_RANLIB"; then
5050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_RANLIB="ranlib"
5060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063 done
5064 done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5070 if test -n "$ac_ct_RANLIB"; then
5071 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5072 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5073 else
5074 { echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6; }
5076 fi
5077
5078 if test "x$ac_ct_RANLIB" = x; then
5079 RANLIB=":"
5080 else
5081 case $cross_compiling:$ac_tool_warned in
5082 yes:)
5083 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5084 whose name does not start with the host triplet. If you think this
5085 configuration is useful to you, please write to autoconf@gnu.org." >&5
5086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5087 whose name does not start with the host triplet. If you think this
5088 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5089 ac_tool_warned=yes ;;
5090 esac
5091 RANLIB=$ac_ct_RANLIB
5092 fi
5093 else
5094 RANLIB="$ac_cv_prog_RANLIB"
5095 fi
5096
5097 fi
5098 # Extract the first word of "install-info", so it can be a program name with args.
5099 set dummy install-info; ac_word=$2
5100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5102 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 case $INSTALL_INFO in
5106 [\\/]* | ?:[\\/]*)
5107 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5108 ;;
5109 *)
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121 done
5122 done
5123 IFS=$as_save_IFS
5124
5125 ;;
5126 esac
5127 fi
5128 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5129 if test -n "$INSTALL_INFO"; then
5130 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5131 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5132 else
5133 { echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6; }
5135 fi
5136
5137
5138 # Extract the first word of "install-info", so it can be a program name with args.
5139 set dummy install-info; ac_word=$2
5140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5142 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 case $INSTALL_INFO in
5146 [\\/]* | ?:[\\/]*)
5147 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5148 ;;
5149 *)
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in /usr/sbin
5152 do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161 done
5162 done
5163 IFS=$as_save_IFS
5164
5165 ;;
5166 esac
5167 fi
5168 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5169 if test -n "$INSTALL_INFO"; then
5170 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5171 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5172 else
5173 { echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6; }
5175 fi
5176
5177
5178 # Extract the first word of "install-info", so it can be a program name with args.
5179 set dummy install-info; ac_word=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185 case $INSTALL_INFO in
5186 [\\/]* | ?:[\\/]*)
5187 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5188 ;;
5189 *)
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in /sbin
5192 do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201 done
5202 done
5203 IFS=$as_save_IFS
5204
5205 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5206 ;;
5207 esac
5208 fi
5209 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5210 if test -n "$INSTALL_INFO"; then
5211 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5212 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5213 else
5214 { echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6; }
5216 fi
5217
5218
5219 # Extract the first word of "gzip", so it can be a program name with args.
5220 set dummy gzip; ac_word=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 case $GZIP_PROG in
5227 [\\/]* | ?:[\\/]*)
5228 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5229 ;;
5230 *)
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246 ;;
5247 esac
5248 fi
5249 GZIP_PROG=$ac_cv_path_GZIP_PROG
5250 if test -n "$GZIP_PROG"; then
5251 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5252 echo "${ECHO_T}$GZIP_PROG" >&6; }
5253 else
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5256 fi
5257
5258
5259
5260
5261 ## Need makeinfo >= 4.6 (?) to build the manuals.
5262 # Extract the first word of "makeinfo", so it can be a program name with args.
5263 set dummy makeinfo; ac_word=$2
5264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5266 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269 case $MAKEINFO in
5270 [\\/]* | ?:[\\/]*)
5271 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5272 ;;
5273 *)
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285 done
5286 done
5287 IFS=$as_save_IFS
5288
5289 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5290 ;;
5291 esac
5292 fi
5293 MAKEINFO=$ac_cv_path_MAKEINFO
5294 if test -n "$MAKEINFO"; then
5295 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5296 echo "${ECHO_T}$MAKEINFO" >&6; }
5297 else
5298 { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5300 fi
5301
5302
5303 if test "$MAKEINFO" != "no" && \
5304 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
5305 MAKEINFO=no
5306 fi
5307
5308 ## Makeinfo is unusual. For a released Emacs, the manuals are
5309 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5310 ## therefore in the category of "special tools" not normally required, which
5311 ## configure does not have to check for (eg autoconf itself).
5312 ## In a CVS checkout on the other hand, the manuals are not included.
5313 ## So makeinfo is a requirement to build from CVS, and configure
5314 ## should test for it as it does for any other build requirement.
5315 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5316 ## with pre-built manuals, from a CVS checkout.
5317 if test "$MAKEINFO" = "no"; then
5318 if test "x${with_makeinfo}" = "xno"; then
5319 MAKEINFO=off
5320 elif ! test -e $srcdir/info/emacs; then
5321 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5322 source tree does not seem to have pre-built manuals in the \`info' directory.
5323 Either install a suitable version of makeinfo, or re-run configure
5324 with the \`--without-makeinfo' option to build without the manuals. " >&5
5325 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5326 source tree does not seem to have pre-built manuals in the \`info' directory.
5327 Either install a suitable version of makeinfo, or re-run configure
5328 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5329 { (exit 1); exit 1; }; }
5330 fi
5331 fi
5332
5333
5334 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5335 then
5336 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5337 fi
5338
5339 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5340 then
5341 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5342 fi
5343
5344
5345 late_LDFLAGS=$LDFLAGS
5346 if test "$GCC" = yes; then
5347 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5348 else
5349 LDFLAGS="$LDFLAGS -znocombreloc"
5350 fi
5351
5352 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5353 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5354 cat >conftest.$ac_ext <<_ACEOF
5355 main(){return 0;}
5356 _ACEOF
5357 rm -f conftest.$ac_objext conftest$ac_exeext
5358 if { (ac_try="$ac_link"
5359 case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5362 esac
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_link") 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } && {
5371 test -z "$ac_c_werror_flag" ||
5372 test ! -s conftest.err
5373 } && test -s conftest$ac_exeext &&
5374 $as_test_x conftest$ac_exeext; then
5375 { echo "$as_me:$LINENO: result: yes" >&5
5376 echo "${ECHO_T}yes" >&6; }
5377 else
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 LDFLAGS=$late_LDFLAGS
5382 { echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6; }
5384 fi
5385
5386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5387 conftest$ac_exeext conftest.$ac_ext
5388
5389 #### Extract some information from the operating system and machine files.
5390
5391 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5392 - which libraries the lib-src programs will want, and
5393 - whether the GNU malloc routines are usable..." >&5
5394 echo "$as_me: checking the machine- and system-dependent files to find out
5395 - which libraries the lib-src programs will want, and
5396 - whether the GNU malloc routines are usable..." >&6;}
5397
5398 ### First figure out CFLAGS (which we use for running the compiler here)
5399 ### and REAL_CFLAGS (which we use for real compilation).
5400 ### The two are the same except on a few systems, where they are made
5401 ### different to work around various lossages. For example,
5402 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5403 ### as implying static linking.
5404
5405 ### If the CFLAGS env var is specified, we use that value
5406 ### instead of the default.
5407
5408 ### It's not important that this name contain the PID; you can't run
5409 ### two configures in the same directory and have anything work
5410 ### anyway.
5411 tempcname="conftest.c"
5412
5413 echo '
5414 #include "'${srcdir}'/src/'${opsysfile}'"
5415 #include "'${srcdir}'/src/'${machfile}'"
5416 #ifndef LIBS_MACHINE
5417 #define LIBS_MACHINE
5418 #endif
5419 #ifndef LIBS_SYSTEM
5420 #define LIBS_SYSTEM
5421 #endif
5422 #ifndef C_SWITCH_SYSTEM
5423 #define C_SWITCH_SYSTEM
5424 #endif
5425 #ifndef C_SWITCH_MACHINE
5426 #define C_SWITCH_MACHINE
5427 #endif
5428 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5429 configure___ c_switch_system=C_SWITCH_SYSTEM
5430 configure___ c_switch_machine=C_SWITCH_MACHINE
5431
5432 #ifndef LIB_X11_LIB
5433 #define LIB_X11_LIB -lX11
5434 #endif
5435
5436 #ifndef LIBX11_SYSTEM
5437 #define LIBX11_SYSTEM
5438 #endif
5439 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5440
5441 #ifdef UNEXEC
5442 configure___ unexec=UNEXEC
5443 #else
5444 configure___ unexec=unexec.o
5445 #endif
5446
5447 #ifdef SYSTEM_MALLOC
5448 configure___ system_malloc=yes
5449 #else
5450 configure___ system_malloc=no
5451 #endif
5452
5453 #ifdef USE_MMAP_FOR_BUFFERS
5454 configure___ use_mmap_for_buffers=yes
5455 #else
5456 configure___ use_mmap_for_buffers=no
5457 #endif
5458
5459 #ifndef C_DEBUG_SWITCH
5460 #define C_DEBUG_SWITCH -g
5461 #endif
5462
5463 #ifndef C_OPTIMIZE_SWITCH
5464 #ifdef __GNUC__
5465 #define C_OPTIMIZE_SWITCH -O2
5466 #else
5467 #define C_OPTIMIZE_SWITCH -O
5468 #endif
5469 #endif
5470
5471 #ifndef C_WARNINGS_SWITCH
5472 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5473 #endif
5474
5475 #ifndef LD_SWITCH_MACHINE
5476 #define LD_SWITCH_MACHINE
5477 #endif
5478
5479 #ifndef LD_SWITCH_SYSTEM
5480 #define LD_SWITCH_SYSTEM
5481 #endif
5482
5483 #ifndef LD_SWITCH_X_SITE_AUX
5484 #define LD_SWITCH_X_SITE_AUX
5485 #endif
5486
5487 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5488 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5489
5490 #ifdef THIS_IS_CONFIGURE
5491
5492 /* Get the CFLAGS for tests in configure. */
5493 #ifdef __GNUC__
5494 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5495 #else
5496 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5497 #endif
5498
5499 #else /* not THIS_IS_CONFIGURE */
5500
5501 /* Get the CFLAGS for real compilation. */
5502 #ifdef __GNUC__
5503 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5504 #else
5505 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5506 #endif
5507
5508 #endif /* not THIS_IS_CONFIGURE */
5509 ' > ${tempcname}
5510
5511 # The value of CPP is a quoted variable reference, so we need to do this
5512 # to get its actual value...
5513 CPP=`eval "echo $CPP"`
5514 eval `${CPP} -Isrc ${tempcname} \
5515 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5516 if test "x$SPECIFIED_CFLAGS" = x; then
5517 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5518 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5519 else
5520 REAL_CFLAGS="$CFLAGS"
5521 fi
5522 rm ${tempcname}
5523
5524 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5525
5526 ### Make sure subsequent tests use flags consistent with the build flags.
5527
5528 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5529 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5530 else
5531 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5532 fi
5533
5534
5535
5536 # Check whether --enable-largefile was given.
5537 if test "${enable_largefile+set}" = set; then
5538 enableval=$enable_largefile;
5539 fi
5540
5541 if test "$enable_largefile" != no; then
5542
5543 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5544 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5545 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548 ac_cv_sys_largefile_CC=no
5549 if test "$GCC" != yes; then
5550 ac_save_CC=$CC
5551 while :; do
5552 # IRIX 6.2 and later do not support large files by default,
5553 # so use the C compiler's -n32 option if that helps.
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h. */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560 #include <sys/types.h>
5561 /* Check that off_t can represent 2**63 - 1 correctly.
5562 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5563 since some C++ compilers masquerading as C compilers
5564 incorrectly reject 9223372036854775807. */
5565 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5566 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5567 && LARGE_OFF_T % 2147483647 == 1)
5568 ? 1 : -1];
5569 int
5570 main ()
5571 {
5572
5573 ;
5574 return 0;
5575 }
5576 _ACEOF
5577 rm -f conftest.$ac_objext
5578 if { (ac_try="$ac_compile"
5579 case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582 esac
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_compile") 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && {
5591 test -z "$ac_c_werror_flag" ||
5592 test ! -s conftest.err
5593 } && test -s conftest.$ac_objext; then
5594 break
5595 else
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5598
5599
5600 fi
5601
5602 rm -f core conftest.err conftest.$ac_objext
5603 CC="$CC -n32"
5604 rm -f conftest.$ac_objext
5605 if { (ac_try="$ac_compile"
5606 case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5609 esac
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compile") 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } && {
5618 test -z "$ac_c_werror_flag" ||
5619 test ! -s conftest.err
5620 } && test -s conftest.$ac_objext; then
5621 ac_cv_sys_largefile_CC=' -n32'; break
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626
5627 fi
5628
5629 rm -f core conftest.err conftest.$ac_objext
5630 break
5631 done
5632 CC=$ac_save_CC
5633 rm -f conftest.$ac_ext
5634 fi
5635 fi
5636 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5637 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5638 if test "$ac_cv_sys_largefile_CC" != no; then
5639 CC=$CC$ac_cv_sys_largefile_CC
5640 fi
5641
5642 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5643 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5644 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 while :; do
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <sys/types.h>
5655 /* Check that off_t can represent 2**63 - 1 correctly.
5656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5657 since some C++ compilers masquerading as C compilers
5658 incorrectly reject 9223372036854775807. */
5659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5661 && LARGE_OFF_T % 2147483647 == 1)
5662 ? 1 : -1];
5663 int
5664 main ()
5665 {
5666
5667 ;
5668 return 0;
5669 }
5670 _ACEOF
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5673 case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676 esac
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } && {
5685 test -z "$ac_c_werror_flag" ||
5686 test ! -s conftest.err
5687 } && test -s conftest.$ac_objext; then
5688 ac_cv_sys_file_offset_bits=no; break
5689 else
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693
5694 fi
5695
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #define _FILE_OFFSET_BITS 64
5704 #include <sys/types.h>
5705 /* Check that off_t can represent 2**63 - 1 correctly.
5706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5707 since some C++ compilers masquerading as C compilers
5708 incorrectly reject 9223372036854775807. */
5709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5711 && LARGE_OFF_T % 2147483647 == 1)
5712 ? 1 : -1];
5713 int
5714 main ()
5715 {
5716
5717 ;
5718 return 0;
5719 }
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (ac_try="$ac_compile"
5723 case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && {
5735 test -z "$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest.$ac_objext; then
5738 ac_cv_sys_file_offset_bits=64; break
5739 else
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743
5744 fi
5745
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 ac_cv_sys_file_offset_bits=unknown
5748 break
5749 done
5750 fi
5751 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5752 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5753 case $ac_cv_sys_file_offset_bits in #(
5754 no | unknown) ;;
5755 *)
5756 cat >>confdefs.h <<_ACEOF
5757 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5758 _ACEOF
5759 ;;
5760 esac
5761 rm -f conftest*
5762 if test $ac_cv_sys_file_offset_bits = unknown; then
5763 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5764 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5765 if test "${ac_cv_sys_large_files+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 while :; do
5769 cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h. */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5775 #include <sys/types.h>
5776 /* Check that off_t can represent 2**63 - 1 correctly.
5777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5778 since some C++ compilers masquerading as C compilers
5779 incorrectly reject 9223372036854775807. */
5780 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5782 && LARGE_OFF_T % 2147483647 == 1)
5783 ? 1 : -1];
5784 int
5785 main ()
5786 {
5787
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest.$ac_objext; then
5809 ac_cv_sys_large_files=no; break
5810 else
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814
5815 fi
5816
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 #define _LARGE_FILES 1
5825 #include <sys/types.h>
5826 /* Check that off_t can represent 2**63 - 1 correctly.
5827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5828 since some C++ compilers masquerading as C compilers
5829 incorrectly reject 9223372036854775807. */
5830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5832 && LARGE_OFF_T % 2147483647 == 1)
5833 ? 1 : -1];
5834 int
5835 main ()
5836 {
5837
5838 ;
5839 return 0;
5840 }
5841 _ACEOF
5842 rm -f conftest.$ac_objext
5843 if { (ac_try="$ac_compile"
5844 case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_compile") 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && {
5856 test -z "$ac_c_werror_flag" ||
5857 test ! -s conftest.err
5858 } && test -s conftest.$ac_objext; then
5859 ac_cv_sys_large_files=1; break
5860 else
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864
5865 fi
5866
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 ac_cv_sys_large_files=unknown
5869 break
5870 done
5871 fi
5872 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5873 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5874 case $ac_cv_sys_large_files in #(
5875 no | unknown) ;;
5876 *)
5877 cat >>confdefs.h <<_ACEOF
5878 #define _LARGE_FILES $ac_cv_sys_large_files
5879 _ACEOF
5880 ;;
5881 esac
5882 rm -f conftest*
5883 fi
5884 fi
5885
5886
5887
5888 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5889 ### be located in either /usr/lib64 or /usr/lib.
5890 case "${canonical}" in
5891 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5892 if test -d /usr/lib64; then
5893
5894 cat >>confdefs.h <<\_ACEOF
5895 #define HAVE_LIB64_DIR 1
5896 _ACEOF
5897
5898 fi
5899 esac
5900
5901
5902
5903
5904 if test "${with_sound}" != "no"; then
5905 # Sound support for GNU/Linux and the free BSDs.
5906
5907
5908
5909 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5910 do
5911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 fi
5918 ac_res=`eval echo '${'$as_ac_Header'}'`
5919 { echo "$as_me:$LINENO: result: $ac_res" >&5
5920 echo "${ECHO_T}$ac_res" >&6; }
5921 else
5922 # Is the header compilable?
5923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5925 cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h. */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 $ac_includes_default
5932 #include <$ac_header>
5933 _ACEOF
5934 rm -f conftest.$ac_objext
5935 if { (ac_try="$ac_compile"
5936 case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939 esac
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
5951 ac_header_compiler=yes
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 ac_header_compiler=no
5957 fi
5958
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5961 echo "${ECHO_T}$ac_header_compiler" >&6; }
5962
5963 # Is the header present?
5964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <$ac_header>
5973 _ACEOF
5974 if { (ac_try="$ac_cpp conftest.$ac_ext"
5975 case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } >/dev/null && {
5987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 }; then
5990 ac_header_preproc=yes
5991 else
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5994
5995 ac_header_preproc=no
5996 fi
5997
5998 rm -f conftest.err conftest.$ac_ext
5999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6000 echo "${ECHO_T}$ac_header_preproc" >&6; }
6001
6002 # So? What about this header?
6003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6004 yes:no: )
6005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6009 ac_header_preproc=yes
6010 ;;
6011 no:yes:* )
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6024
6025 ;;
6026 esac
6027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032 eval "$as_ac_Header=\$ac_header_preproc"
6033 fi
6034 ac_res=`eval echo '${'$as_ac_Header'}'`
6035 { echo "$as_me:$LINENO: result: $ac_res" >&5
6036 echo "${ECHO_T}$ac_res" >&6; }
6037
6038 fi
6039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6040 cat >>confdefs.h <<_ACEOF
6041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6042 _ACEOF
6043
6044 fi
6045
6046 done
6047
6048 # Emulation library used on NetBSD.
6049 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6050 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6051 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 ac_check_lib_save_LIBS=$LIBS
6055 LIBS="-lossaudio $LIBS"
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062
6063 /* Override any GCC internal prototype to avoid an error.
6064 Use char because int might match the return type of a GCC
6065 builtin and then its argument prototype would still apply. */
6066 #ifdef __cplusplus
6067 extern "C"
6068 #endif
6069 char _oss_ioctl ();
6070 int
6071 main ()
6072 {
6073 return _oss_ioctl ();
6074 ;
6075 return 0;
6076 }
6077 _ACEOF
6078 rm -f conftest.$ac_objext conftest$ac_exeext
6079 if { (ac_try="$ac_link"
6080 case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083 esac
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_link") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && {
6092 test -z "$ac_c_werror_flag" ||
6093 test ! -s conftest.err
6094 } && test -s conftest$ac_exeext &&
6095 $as_test_x conftest$ac_exeext; then
6096 ac_cv_lib_ossaudio__oss_ioctl=yes
6097 else
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_cv_lib_ossaudio__oss_ioctl=no
6102 fi
6103
6104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6105 conftest$ac_exeext conftest.$ac_ext
6106 LIBS=$ac_check_lib_save_LIBS
6107 fi
6108 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6109 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6110 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6111 LIBSOUND=-lossaudio
6112 else
6113 LIBSOUND=
6114 fi
6115
6116
6117
6118 ALSA_REQUIRED=1.0.0
6119 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6120
6121 succeeded=no
6122
6123 # Extract the first word of "pkg-config", so it can be a program name with args.
6124 set dummy pkg-config; ac_word=$2
6125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 case $PKG_CONFIG in
6131 [\\/]* | ?:[\\/]*)
6132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6133 ;;
6134 *)
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6145 fi
6146 done
6147 done
6148 IFS=$as_save_IFS
6149
6150 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6151 ;;
6152 esac
6153 fi
6154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6155 if test -n "$PKG_CONFIG"; then
6156 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6157 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6158 else
6159 { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6161 fi
6162
6163
6164
6165 if test "$PKG_CONFIG" = "no" ; then
6166 HAVE_ALSA=no
6167 else
6168 PKG_CONFIG_MIN_VERSION=0.9.0
6169 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6170 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6171 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6172
6173 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6174 { echo "$as_me:$LINENO: result: yes" >&5
6175 echo "${ECHO_T}yes" >&6; }
6176 succeeded=yes
6177
6178 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6179 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6180 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6181 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6182 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6183
6184 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6185 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6186 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6187 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6188 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6189 else
6190 { echo "$as_me:$LINENO: result: no" >&5
6191 echo "${ECHO_T}no" >&6; }
6192 ALSA_CFLAGS=""
6193 ALSA_LIBS=""
6194 ## If we have a custom action on failure, don't print errors, but
6195 ## do set a variable so people can do so.
6196 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6197
6198 fi
6199
6200
6201
6202 else
6203 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6204 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6205 fi
6206 fi
6207
6208 if test $succeeded = yes; then
6209 HAVE_ALSA=yes
6210 else
6211 HAVE_ALSA=no
6212 fi
6213
6214 if test $HAVE_ALSA = yes; then
6215 SAVE_CFLAGS="$CFLAGS"
6216 SAVE_LDFLAGS="$LDFLAGS"
6217 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6218 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #include <asoundlib.h>
6226 int
6227 main ()
6228 {
6229 snd_lib_error_set_handler (0);
6230 ;
6231 return 0;
6232 }
6233 _ACEOF
6234 rm -f conftest.$ac_objext
6235 if { (ac_try="$ac_compile"
6236 case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest.$ac_objext; then
6251 emacs_alsa_normal=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 emacs_alsa_normal=no
6257 fi
6258
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 if test "$emacs_alsa_normal" != yes; then
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <alsa/asoundlib.h>
6268 int
6269 main ()
6270 {
6271 snd_lib_error_set_handler (0);
6272 ;
6273 return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
6293 emacs_alsa_subdir=yes
6294 else
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6297
6298 emacs_alsa_subdir=no
6299 fi
6300
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 if test "$emacs_alsa_subdir" != yes; then
6303 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6304 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6305 { (exit 1); exit 1; }; }
6306 fi
6307 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6308 fi
6309
6310 CFLAGS="$SAVE_CFLAGS"
6311 LDFLAGS="$SAVE_LDFLAGS"
6312 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6313 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6314
6315 cat >>confdefs.h <<\_ACEOF
6316 #define HAVE_ALSA 1
6317 _ACEOF
6318
6319 fi
6320
6321 fi
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6349 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6350 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6351 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6352 sys/utsname.h pwd.h
6353 do
6354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 fi
6361 ac_res=`eval echo '${'$as_ac_Header'}'`
6362 { echo "$as_me:$LINENO: result: $ac_res" >&5
6363 echo "${ECHO_T}$ac_res" >&6; }
6364 else
6365 # Is the header compilable?
6366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 $ac_includes_default
6375 #include <$ac_header>
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6379 case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_compile") 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest.$ac_objext; then
6394 ac_header_compiler=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6398
6399 ac_header_compiler=no
6400 fi
6401
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6404 echo "${ECHO_T}$ac_header_compiler" >&6; }
6405
6406 # Is the header present?
6407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6409 cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h. */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6415 #include <$ac_header>
6416 _ACEOF
6417 if { (ac_try="$ac_cpp conftest.$ac_ext"
6418 case "(($ac_try" in
6419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420 *) ac_try_echo=$ac_try;;
6421 esac
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } >/dev/null && {
6430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6431 test ! -s conftest.err
6432 }; then
6433 ac_header_preproc=yes
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 ac_header_preproc=no
6439 fi
6440
6441 rm -f conftest.err conftest.$ac_ext
6442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6443 echo "${ECHO_T}$ac_header_preproc" >&6; }
6444
6445 # So? What about this header?
6446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6447 yes:no: )
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6452 ac_header_preproc=yes
6453 ;;
6454 no:yes:* )
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6467
6468 ;;
6469 esac
6470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475 eval "$as_ac_Header=\$ac_header_preproc"
6476 fi
6477 ac_res=`eval echo '${'$as_ac_Header'}'`
6478 { echo "$as_me:$LINENO: result: $ac_res" >&5
6479 echo "${ECHO_T}$ac_res" >&6; }
6480
6481 fi
6482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6483 cat >>confdefs.h <<_ACEOF
6484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6485 _ACEOF
6486
6487 fi
6488
6489 done
6490
6491
6492 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6493 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6494 cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h. */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <sys/personality.h>
6501 int
6502 main ()
6503 {
6504 personality (PER_LINUX32)
6505 ;
6506 return 0;
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (ac_try="$ac_compile"
6511 case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514 esac
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_compile") 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && {
6523 test -z "$ac_c_werror_flag" ||
6524 test ! -s conftest.err
6525 } && test -s conftest.$ac_objext; then
6526 emacs_cv_personality_linux32=yes
6527 else
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531 emacs_cv_personality_linux32=no
6532 fi
6533
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6536 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6537
6538 if test $emacs_cv_personality_linux32 = yes; then
6539
6540 cat >>confdefs.h <<\_ACEOF
6541 #define HAVE_PERSONALITY_LINUX32 1
6542 _ACEOF
6543
6544 fi
6545
6546
6547 for ac_header in term.h
6548 do
6549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h. */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 #include <$ac_header>
6562 _ACEOF
6563 if { (ac_try="$ac_cpp conftest.$ac_ext"
6564 case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567 esac
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6570 ac_status=$?
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } >/dev/null && {
6576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6577 test ! -s conftest.err
6578 }; then
6579 eval "$as_ac_Header=yes"
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6583
6584 eval "$as_ac_Header=no"
6585 fi
6586
6587 rm -f conftest.err conftest.$ac_ext
6588 fi
6589 ac_res=`eval echo '${'$as_ac_Header'}'`
6590 { echo "$as_me:$LINENO: result: $ac_res" >&5
6591 echo "${ECHO_T}$ac_res" >&6; }
6592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6593 cat >>confdefs.h <<_ACEOF
6594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6595 _ACEOF
6596
6597 fi
6598
6599 done
6600
6601 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6602 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6603 if test "${ac_cv_header_stdc+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606 cat >conftest.$ac_ext <<_ACEOF
6607 /* confdefs.h. */
6608 _ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6612 #include <stdlib.h>
6613 #include <stdarg.h>
6614 #include <string.h>
6615 #include <float.h>
6616
6617 int
6618 main ()
6619 {
6620
6621 ;
6622 return 0;
6623 }
6624 _ACEOF
6625 rm -f conftest.$ac_objext
6626 if { (ac_try="$ac_compile"
6627 case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6630 esac
6631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632 (eval "$ac_compile") 2>conftest.er1
6633 ac_status=$?
6634 grep -v '^ *+' conftest.er1 >conftest.err
6635 rm -f conftest.er1
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && {
6639 test -z "$ac_c_werror_flag" ||
6640 test ! -s conftest.err
6641 } && test -s conftest.$ac_objext; then
6642 ac_cv_header_stdc=yes
6643 else
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6646
6647 ac_cv_header_stdc=no
6648 fi
6649
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6651
6652 if test $ac_cv_header_stdc = yes; then
6653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 #include <string.h>
6661
6662 _ACEOF
6663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6664 $EGREP "memchr" >/dev/null 2>&1; then
6665 :
6666 else
6667 ac_cv_header_stdc=no
6668 fi
6669 rm -f conftest*
6670
6671 fi
6672
6673 if test $ac_cv_header_stdc = yes; then
6674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6675 cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h. */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6681 #include <stdlib.h>
6682
6683 _ACEOF
6684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6685 $EGREP "free" >/dev/null 2>&1; then
6686 :
6687 else
6688 ac_cv_header_stdc=no
6689 fi
6690 rm -f conftest*
6691
6692 fi
6693
6694 if test $ac_cv_header_stdc = yes; then
6695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6696 if test "$cross_compiling" = yes; then
6697 :
6698 else
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h. */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 #include <ctype.h>
6706 #include <stdlib.h>
6707 #if ((' ' & 0x0FF) == 0x020)
6708 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6709 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6710 #else
6711 # define ISLOWER(c) \
6712 (('a' <= (c) && (c) <= 'i') \
6713 || ('j' <= (c) && (c) <= 'r') \
6714 || ('s' <= (c) && (c) <= 'z'))
6715 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6716 #endif
6717
6718 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6719 int
6720 main ()
6721 {
6722 int i;
6723 for (i = 0; i < 256; i++)
6724 if (XOR (islower (i), ISLOWER (i))
6725 || toupper (i) != TOUPPER (i))
6726 return 2;
6727 return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest$ac_exeext
6731 if { (ac_try="$ac_link"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_link") 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6741 { (case "(($ac_try" in
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6744 esac
6745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_try") 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 :
6751 else
6752 echo "$as_me: program exited with status $ac_status" >&5
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6755
6756 ( exit $ac_status )
6757 ac_cv_header_stdc=no
6758 fi
6759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6760 fi
6761
6762
6763 fi
6764 fi
6765 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6766 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6767 if test $ac_cv_header_stdc = yes; then
6768
6769 cat >>confdefs.h <<\_ACEOF
6770 #define STDC_HEADERS 1
6771 _ACEOF
6772
6773 fi
6774
6775 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6776 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6777 if test "${ac_cv_header_time+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <sys/types.h>
6787 #include <sys/time.h>
6788 #include <time.h>
6789
6790 int
6791 main ()
6792 {
6793 if ((struct tm *) 0)
6794 return 0;
6795 ;
6796 return 0;
6797 }
6798 _ACEOF
6799 rm -f conftest.$ac_objext
6800 if { (ac_try="$ac_compile"
6801 case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804 esac
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_compile") 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.$ac_objext; then
6816 ac_cv_header_time=yes
6817 else
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6820
6821 ac_cv_header_time=no
6822 fi
6823
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 fi
6826 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6827 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6828 if test $ac_cv_header_time = yes; then
6829
6830 cat >>confdefs.h <<\_ACEOF
6831 #define TIME_WITH_SYS_TIME 1
6832 _ACEOF
6833
6834 fi
6835
6836 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6837 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6838 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h. */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 $ac_includes_default
6848 int
6849 main ()
6850 {
6851 #ifndef sys_siglist
6852 (void) sys_siglist;
6853 #endif
6854
6855 ;
6856 return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (ac_try="$ac_compile"
6861 case "(($ac_try" in
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6864 esac
6865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866 (eval "$ac_compile") 2>conftest.er1
6867 ac_status=$?
6868 grep -v '^ *+' conftest.er1 >conftest.err
6869 rm -f conftest.er1
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } && {
6873 test -z "$ac_c_werror_flag" ||
6874 test ! -s conftest.err
6875 } && test -s conftest.$ac_objext; then
6876 ac_cv_have_decl_sys_siglist=yes
6877 else
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6880
6881 ac_cv_have_decl_sys_siglist=no
6882 fi
6883
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 fi
6886 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6887 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6888 if test $ac_cv_have_decl_sys_siglist = yes; then
6889
6890 cat >>confdefs.h <<_ACEOF
6891 #define HAVE_DECL_SYS_SIGLIST 1
6892 _ACEOF
6893
6894
6895 else
6896 cat >>confdefs.h <<_ACEOF
6897 #define HAVE_DECL_SYS_SIGLIST 0
6898 _ACEOF
6899
6900
6901 fi
6902
6903
6904 if test $ac_cv_have_decl_sys_siglist != yes; then
6905 # For Tru64, at least:
6906 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6907 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6908 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 $ac_includes_default
6918 int
6919 main ()
6920 {
6921 #ifndef __sys_siglist
6922 (void) __sys_siglist;
6923 #endif
6924
6925 ;
6926 return 0;
6927 }
6928 _ACEOF
6929 rm -f conftest.$ac_objext
6930 if { (ac_try="$ac_compile"
6931 case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934 esac
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_compile") 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest.$ac_objext; then
6946 ac_cv_have_decl___sys_siglist=yes
6947 else
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951 ac_cv_have_decl___sys_siglist=no
6952 fi
6953
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955 fi
6956 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6957 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6958 if test $ac_cv_have_decl___sys_siglist = yes; then
6959
6960 cat >>confdefs.h <<_ACEOF
6961 #define HAVE_DECL___SYS_SIGLIST 1
6962 _ACEOF
6963
6964
6965 else
6966 cat >>confdefs.h <<_ACEOF
6967 #define HAVE_DECL___SYS_SIGLIST 0
6968 _ACEOF
6969
6970
6971 fi
6972
6973
6974 if test $ac_cv_have_decl___sys_siglist = yes; then
6975
6976 cat >>confdefs.h <<\_ACEOF
6977 #define sys_siglist __sys_siglist
6978 _ACEOF
6979
6980 fi
6981 fi
6982 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6983 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6984 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <sys/types.h>
6994 #include <sys/wait.h>
6995 #ifndef WEXITSTATUS
6996 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6997 #endif
6998 #ifndef WIFEXITED
6999 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7000 #endif
7001
7002 int
7003 main ()
7004 {
7005 int s;
7006 wait (&s);
7007 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7008 ;
7009 return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7014 case "(($ac_try" in
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7017 esac
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
7020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest.$ac_objext; then
7029 ac_cv_header_sys_wait_h=yes
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034 ac_cv_header_sys_wait_h=no
7035 fi
7036
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 fi
7039 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7040 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7041 if test $ac_cv_header_sys_wait_h = yes; then
7042
7043 cat >>confdefs.h <<\_ACEOF
7044 #define HAVE_SYS_WAIT_H 1
7045 _ACEOF
7046
7047 fi
7048
7049
7050 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7051 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7052 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h. */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 #ifdef TIME_WITH_SYS_TIME
7062 #include <sys/time.h>
7063 #include <time.h>
7064 #else
7065 #ifdef HAVE_SYS_TIME_H
7066 #include <sys/time.h>
7067 #else
7068 #include <time.h>
7069 #endif
7070 #endif
7071 #ifdef HAVE_UTIME_H
7072 #include <utime.h>
7073 #endif
7074 int
7075 main ()
7076 {
7077 static struct utimbuf x; x.actime = x.modtime;
7078 ;
7079 return 0;
7080 }
7081 _ACEOF
7082 rm -f conftest.$ac_objext
7083 if { (ac_try="$ac_compile"
7084 case "(($ac_try" in
7085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086 *) ac_try_echo=$ac_try;;
7087 esac
7088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089 (eval "$ac_compile") 2>conftest.er1
7090 ac_status=$?
7091 grep -v '^ *+' conftest.er1 >conftest.err
7092 rm -f conftest.er1
7093 cat conftest.err >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } && {
7096 test -z "$ac_c_werror_flag" ||
7097 test ! -s conftest.err
7098 } && test -s conftest.$ac_objext; then
7099 emacs_cv_struct_utimbuf=yes
7100 else
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7103
7104 emacs_cv_struct_utimbuf=no
7105 fi
7106
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108 fi
7109 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7110 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7111 if test $emacs_cv_struct_utimbuf = yes; then
7112
7113 cat >>confdefs.h <<\_ACEOF
7114 #define HAVE_STRUCT_UTIMBUF 1
7115 _ACEOF
7116
7117 fi
7118
7119 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7120 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7121 if test "${ac_cv_type_signal+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h. */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130 #include <sys/types.h>
7131 #include <signal.h>
7132
7133 int
7134 main ()
7135 {
7136 return *(signal (0, 0)) (0) == 1;
7137 ;
7138 return 0;
7139 }
7140 _ACEOF
7141 rm -f conftest.$ac_objext
7142 if { (ac_try="$ac_compile"
7143 case "(($ac_try" in
7144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7145 *) ac_try_echo=$ac_try;;
7146 esac
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148 (eval "$ac_compile") 2>conftest.er1
7149 ac_status=$?
7150 grep -v '^ *+' conftest.er1 >conftest.err
7151 rm -f conftest.er1
7152 cat conftest.err >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && {
7155 test -z "$ac_c_werror_flag" ||
7156 test ! -s conftest.err
7157 } && test -s conftest.$ac_objext; then
7158 ac_cv_type_signal=int
7159 else
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7162
7163 ac_cv_type_signal=void
7164 fi
7165
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 fi
7168 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7169 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7170
7171 cat >>confdefs.h <<_ACEOF
7172 #define RETSIGTYPE $ac_cv_type_signal
7173 _ACEOF
7174
7175
7176
7177 { echo "$as_me:$LINENO: checking for speed_t" >&5
7178 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7179 if test "${emacs_cv_speed_t+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h. */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 #include <termios.h>
7189 int
7190 main ()
7191 {
7192 speed_t x = 1;
7193 ;
7194 return 0;
7195 }
7196 _ACEOF
7197 rm -f conftest.$ac_objext
7198 if { (ac_try="$ac_compile"
7199 case "(($ac_try" in
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7202 esac
7203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.$ac_objext; then
7214 emacs_cv_speed_t=yes
7215 else
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7218
7219 emacs_cv_speed_t=no
7220 fi
7221
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 fi
7224 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7225 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7226 if test $emacs_cv_speed_t = yes; then
7227
7228 cat >>confdefs.h <<\_ACEOF
7229 #define HAVE_SPEED_T 1
7230 _ACEOF
7231
7232 fi
7233
7234 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7235 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7236 if test "${emacs_cv_struct_timeval+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 #ifdef TIME_WITH_SYS_TIME
7246 #include <sys/time.h>
7247 #include <time.h>
7248 #else
7249 #ifdef HAVE_SYS_TIME_H
7250 #include <sys/time.h>
7251 #else
7252 #include <time.h>
7253 #endif
7254 #endif
7255 int
7256 main ()
7257 {
7258 static struct timeval x; x.tv_sec = x.tv_usec;
7259 ;
7260 return 0;
7261 }
7262 _ACEOF
7263 rm -f conftest.$ac_objext
7264 if { (ac_try="$ac_compile"
7265 case "(($ac_try" in
7266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7267 *) ac_try_echo=$ac_try;;
7268 esac
7269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7270 (eval "$ac_compile") 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } && {
7277 test -z "$ac_c_werror_flag" ||
7278 test ! -s conftest.err
7279 } && test -s conftest.$ac_objext; then
7280 emacs_cv_struct_timeval=yes
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7284
7285 emacs_cv_struct_timeval=no
7286 fi
7287
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 fi
7290 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7291 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7292 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7293 if test $emacs_cv_struct_timeval = yes; then
7294
7295 cat >>confdefs.h <<\_ACEOF
7296 #define HAVE_TIMEVAL 1
7297 _ACEOF
7298
7299 fi
7300
7301 { echo "$as_me:$LINENO: checking for struct exception" >&5
7302 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7303 if test "${emacs_cv_struct_exception+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 cat >conftest.$ac_ext <<_ACEOF
7307 /* confdefs.h. */
7308 _ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7312 #include <math.h>
7313 int
7314 main ()
7315 {
7316 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7317 ;
7318 return 0;
7319 }
7320 _ACEOF
7321 rm -f conftest.$ac_objext
7322 if { (ac_try="$ac_compile"
7323 case "(($ac_try" in
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7326 esac
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_compile") 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && {
7335 test -z "$ac_c_werror_flag" ||
7336 test ! -s conftest.err
7337 } && test -s conftest.$ac_objext; then
7338 emacs_cv_struct_exception=yes
7339 else
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7342
7343 emacs_cv_struct_exception=no
7344 fi
7345
7346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 fi
7348 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7349 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7350 HAVE_EXCEPTION=$emacs_cv_struct_exception
7351 if test $emacs_cv_struct_exception != yes; then
7352
7353 cat >>confdefs.h <<\_ACEOF
7354 #define NO_MATHERR 1
7355 _ACEOF
7356
7357 fi
7358
7359
7360 for ac_header in sys/socket.h
7361 do
7362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 fi
7369 ac_res=`eval echo '${'$as_ac_Header'}'`
7370 { echo "$as_me:$LINENO: result: $ac_res" >&5
7371 echo "${ECHO_T}$ac_res" >&6; }
7372 else
7373 # Is the header compilable?
7374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7376 cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h. */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 $ac_includes_default
7383 #include <$ac_header>
7384 _ACEOF
7385 rm -f conftest.$ac_objext
7386 if { (ac_try="$ac_compile"
7387 case "(($ac_try" in
7388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389 *) ac_try_echo=$ac_try;;
7390 esac
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392 (eval "$ac_compile") 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest.$ac_objext; then
7402 ac_header_compiler=yes
7403 else
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7406
7407 ac_header_compiler=no
7408 fi
7409
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7412 echo "${ECHO_T}$ac_header_compiler" >&6; }
7413
7414 # Is the header present?
7415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 #include <$ac_header>
7424 _ACEOF
7425 if { (ac_try="$ac_cpp conftest.$ac_ext"
7426 case "(($ac_try" in
7427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7428 *) ac_try_echo=$ac_try;;
7429 esac
7430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7432 ac_status=$?
7433 grep -v '^ *+' conftest.er1 >conftest.err
7434 rm -f conftest.er1
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } >/dev/null && {
7438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7439 test ! -s conftest.err
7440 }; then
7441 ac_header_preproc=yes
7442 else
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7445
7446 ac_header_preproc=no
7447 fi
7448
7449 rm -f conftest.err conftest.$ac_ext
7450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7451 echo "${ECHO_T}$ac_header_preproc" >&6; }
7452
7453 # So? What about this header?
7454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7455 yes:no: )
7456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7460 ac_header_preproc=yes
7461 ;;
7462 no:yes:* )
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7475
7476 ;;
7477 esac
7478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483 eval "$as_ac_Header=\$ac_header_preproc"
7484 fi
7485 ac_res=`eval echo '${'$as_ac_Header'}'`
7486 { echo "$as_me:$LINENO: result: $ac_res" >&5
7487 echo "${ECHO_T}$ac_res" >&6; }
7488
7489 fi
7490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7491 cat >>confdefs.h <<_ACEOF
7492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7493 _ACEOF
7494
7495 fi
7496
7497 done
7498
7499
7500 for ac_header in net/if.h
7501 do
7502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508 cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h. */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 $ac_includes_default
7515 #if HAVE_SYS_SOCKET_H
7516 #include <sys/socket.h>
7517 #endif
7518
7519 #include <$ac_header>
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (ac_try="$ac_compile"
7523 case "(($ac_try" in
7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526 esac
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_compile") 2>conftest.er1
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest.$ac_objext; then
7538 eval "$as_ac_Header=yes"
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 eval "$as_ac_Header=no"
7544 fi
7545
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 fi
7548 ac_res=`eval echo '${'$as_ac_Header'}'`
7549 { echo "$as_me:$LINENO: result: $ac_res" >&5
7550 echo "${ECHO_T}$ac_res" >&6; }
7551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7552 cat >>confdefs.h <<_ACEOF
7553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7554 _ACEOF
7555
7556 fi
7557
7558 done
7559
7560
7561 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7562 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7563 if test "${ac_cv_struct_tm+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h. */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 #include <sys/types.h>
7573 #include <time.h>
7574
7575 int
7576 main ()
7577 {
7578 struct tm tm;
7579 int *p = &tm.tm_sec;
7580 return !p;
7581 ;
7582 return 0;
7583 }
7584 _ACEOF
7585 rm -f conftest.$ac_objext
7586 if { (ac_try="$ac_compile"
7587 case "(($ac_try" in
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7590 esac
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592 (eval "$ac_compile") 2>conftest.er1
7593 ac_status=$?
7594 grep -v '^ *+' conftest.er1 >conftest.err
7595 rm -f conftest.er1
7596 cat conftest.err >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest.$ac_objext; then
7602 ac_cv_struct_tm=time.h
7603 else
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7606
7607 ac_cv_struct_tm=sys/time.h
7608 fi
7609
7610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611 fi
7612 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7613 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7614 if test $ac_cv_struct_tm = sys/time.h; then
7615
7616 cat >>confdefs.h <<\_ACEOF
7617 #define TM_IN_SYS_TIME 1
7618 _ACEOF
7619
7620 fi
7621
7622 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7623 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7624 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 #include <sys/types.h>
7634 #include <$ac_cv_struct_tm>
7635
7636
7637 int
7638 main ()
7639 {
7640 static struct tm ac_aggr;
7641 if (ac_aggr.tm_zone)
7642 return 0;
7643 ;
7644 return 0;
7645 }
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (ac_try="$ac_compile"
7649 case "(($ac_try" in
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7652 esac
7653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654 (eval "$ac_compile") 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } && {
7661 test -z "$ac_c_werror_flag" ||
7662 test ! -s conftest.err
7663 } && test -s conftest.$ac_objext; then
7664 ac_cv_member_struct_tm_tm_zone=yes
7665 else
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7668
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 #include <sys/types.h>
7676 #include <$ac_cv_struct_tm>
7677
7678
7679 int
7680 main ()
7681 {
7682 static struct tm ac_aggr;
7683 if (sizeof ac_aggr.tm_zone)
7684 return 0;
7685 ;
7686 return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7691 case "(($ac_try" in
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7694 esac
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7697 ac_status=$?
7698 grep -v '^ *+' conftest.er1 >conftest.err
7699 rm -f conftest.er1
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.$ac_objext; then
7706 ac_cv_member_struct_tm_tm_zone=yes
7707 else
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 ac_cv_member_struct_tm_tm_zone=no
7712 fi
7713
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 fi
7716
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 fi
7719 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7720 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7721 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7722
7723 cat >>confdefs.h <<_ACEOF
7724 #define HAVE_STRUCT_TM_TM_ZONE 1
7725 _ACEOF
7726
7727
7728 fi
7729
7730 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7731
7732 cat >>confdefs.h <<\_ACEOF
7733 #define HAVE_TM_ZONE 1
7734 _ACEOF
7735
7736 else
7737 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7738 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7739 if test "${ac_cv_have_decl_tzname+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h. */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7748 #include <time.h>
7749
7750 int
7751 main ()
7752 {
7753 #ifndef tzname
7754 (void) tzname;
7755 #endif
7756
7757 ;
7758 return 0;
7759 }
7760 _ACEOF
7761 rm -f conftest.$ac_objext
7762 if { (ac_try="$ac_compile"
7763 case "(($ac_try" in
7764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7766 esac
7767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7769 ac_status=$?
7770 grep -v '^ *+' conftest.er1 >conftest.err
7771 rm -f conftest.er1
7772 cat conftest.err >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
7778 ac_cv_have_decl_tzname=yes
7779 else
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7782
7783 ac_cv_have_decl_tzname=no
7784 fi
7785
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 fi
7788 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7789 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7790 if test $ac_cv_have_decl_tzname = yes; then
7791
7792 cat >>confdefs.h <<_ACEOF
7793 #define HAVE_DECL_TZNAME 1
7794 _ACEOF
7795
7796
7797 else
7798 cat >>confdefs.h <<_ACEOF
7799 #define HAVE_DECL_TZNAME 0
7800 _ACEOF
7801
7802
7803 fi
7804
7805
7806 { echo "$as_me:$LINENO: checking for tzname" >&5
7807 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7808 if test "${ac_cv_var_tzname+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h. */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 #include <time.h>
7818 #if !HAVE_DECL_TZNAME
7819 extern char *tzname[];
7820 #endif
7821
7822 int
7823 main ()
7824 {
7825 return tzname[0][0];
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 rm -f conftest.$ac_objext conftest$ac_exeext
7831 if { (ac_try="$ac_link"
7832 case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_link") 2>conftest.er1
7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest$ac_exeext &&
7847 $as_test_x conftest$ac_exeext; then
7848 ac_cv_var_tzname=yes
7849 else
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 ac_cv_var_tzname=no
7854 fi
7855
7856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7857 conftest$ac_exeext conftest.$ac_ext
7858 fi
7859 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7860 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7861 if test $ac_cv_var_tzname = yes; then
7862
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_TZNAME 1
7865 _ACEOF
7866
7867 fi
7868 fi
7869
7870 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7871 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7872 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875 cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h. */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881 #include <time.h>
7882
7883 int
7884 main ()
7885 {
7886 static struct tm ac_aggr;
7887 if (ac_aggr.tm_gmtoff)
7888 return 0;
7889 ;
7890 return 0;
7891 }
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (ac_try="$ac_compile"
7895 case "(($ac_try" in
7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7898 esac
7899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7900 (eval "$ac_compile") 2>conftest.er1
7901 ac_status=$?
7902 grep -v '^ *+' conftest.er1 >conftest.err
7903 rm -f conftest.er1
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } && {
7907 test -z "$ac_c_werror_flag" ||
7908 test ! -s conftest.err
7909 } && test -s conftest.$ac_objext; then
7910 ac_cv_member_struct_tm_tm_gmtoff=yes
7911 else
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7914
7915 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 #include <time.h>
7922
7923 int
7924 main ()
7925 {
7926 static struct tm ac_aggr;
7927 if (sizeof ac_aggr.tm_gmtoff)
7928 return 0;
7929 ;
7930 return 0;
7931 }
7932 _ACEOF
7933 rm -f conftest.$ac_objext
7934 if { (ac_try="$ac_compile"
7935 case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938 esac
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_compile") 2>conftest.er1
7941 ac_status=$?
7942 grep -v '^ *+' conftest.er1 >conftest.err
7943 rm -f conftest.er1
7944 cat conftest.err >&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_c_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest.$ac_objext; then
7950 ac_cv_member_struct_tm_tm_gmtoff=yes
7951 else
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7954
7955 ac_cv_member_struct_tm_tm_gmtoff=no
7956 fi
7957
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 fi
7960
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 fi
7963 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7964 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7965 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7966
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_TM_GMTOFF 1
7969 _ACEOF
7970
7971 fi
7972
7973 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7974 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7975 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978 cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h. */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 $ac_includes_default
7985 #if HAVE_SYS_SOCKET_H
7986 #include <sys/socket.h>
7987 #endif
7988 #if HAVE_NET_IF_H
7989 #include <net/if.h>
7990 #endif
7991
7992 int
7993 main ()
7994 {
7995 static struct ifreq ac_aggr;
7996 if (ac_aggr.ifr_flags)
7997 return 0;
7998 ;
7999 return 0;
8000 }
8001 _ACEOF
8002 rm -f conftest.$ac_objext
8003 if { (ac_try="$ac_compile"
8004 case "(($ac_try" in
8005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8007 esac
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest.$ac_objext; then
8019 ac_cv_member_struct_ifreq_ifr_flags=yes
8020 else
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 cat >conftest.$ac_ext <<_ACEOF
8025 /* confdefs.h. */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8030 $ac_includes_default
8031 #if HAVE_SYS_SOCKET_H
8032 #include <sys/socket.h>
8033 #endif
8034 #if HAVE_NET_IF_H
8035 #include <net/if.h>
8036 #endif
8037
8038 int
8039 main ()
8040 {
8041 static struct ifreq ac_aggr;
8042 if (sizeof ac_aggr.ifr_flags)
8043 return 0;
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8050 case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.$ac_objext; then
8065 ac_cv_member_struct_ifreq_ifr_flags=yes
8066 else
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070 ac_cv_member_struct_ifreq_ifr_flags=no
8071 fi
8072
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 fi
8075
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8077 fi
8078 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8079 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8080 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8081
8082 cat >>confdefs.h <<_ACEOF
8083 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8084 _ACEOF
8085
8086
8087 fi
8088 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8089 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8090 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093 cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h. */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099 $ac_includes_default
8100 #if HAVE_SYS_SOCKET_H
8101 #include <sys/socket.h>
8102 #endif
8103 #if HAVE_NET_IF_H
8104 #include <net/if.h>
8105 #endif
8106
8107 int
8108 main ()
8109 {
8110 static struct ifreq ac_aggr;
8111 if (ac_aggr.ifr_hwaddr)
8112 return 0;
8113 ;
8114 return 0;
8115 }
8116 _ACEOF
8117 rm -f conftest.$ac_objext
8118 if { (ac_try="$ac_compile"
8119 case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest.$ac_objext; then
8134 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8135 else
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h. */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 $ac_includes_default
8146 #if HAVE_SYS_SOCKET_H
8147 #include <sys/socket.h>
8148 #endif
8149 #if HAVE_NET_IF_H
8150 #include <net/if.h>
8151 #endif
8152
8153 int
8154 main ()
8155 {
8156 static struct ifreq ac_aggr;
8157 if (sizeof ac_aggr.ifr_hwaddr)
8158 return 0;
8159 ;
8160 return 0;
8161 }
8162 _ACEOF
8163 rm -f conftest.$ac_objext
8164 if { (ac_try="$ac_compile"
8165 case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_compile") 2>conftest.er1
8171 ac_status=$?
8172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && {
8177 test -z "$ac_c_werror_flag" ||
8178 test ! -s conftest.err
8179 } && test -s conftest.$ac_objext; then
8180 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8181 else
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8186 fi
8187
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 fi
8190
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 fi
8193 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8194 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8195 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8196
8197 cat >>confdefs.h <<_ACEOF
8198 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8199 _ACEOF
8200
8201
8202 fi
8203 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8204 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8205 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208 cat >conftest.$ac_ext <<_ACEOF
8209 /* confdefs.h. */
8210 _ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 $ac_includes_default
8215 #if HAVE_SYS_SOCKET_H
8216 #include <sys/socket.h>
8217 #endif
8218 #if HAVE_NET_IF_H
8219 #include <net/if.h>
8220 #endif
8221
8222 int
8223 main ()
8224 {
8225 static struct ifreq ac_aggr;
8226 if (ac_aggr.ifr_netmask)
8227 return 0;
8228 ;
8229 return 0;
8230 }
8231 _ACEOF
8232 rm -f conftest.$ac_objext
8233 if { (ac_try="$ac_compile"
8234 case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237 esac
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_compile") 2>conftest.er1
8240 ac_status=$?
8241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 } && test -s conftest.$ac_objext; then
8249 ac_cv_member_struct_ifreq_ifr_netmask=yes
8250 else
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h. */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 $ac_includes_default
8261 #if HAVE_SYS_SOCKET_H
8262 #include <sys/socket.h>
8263 #endif
8264 #if HAVE_NET_IF_H
8265 #include <net/if.h>
8266 #endif
8267
8268 int
8269 main ()
8270 {
8271 static struct ifreq ac_aggr;
8272 if (sizeof ac_aggr.ifr_netmask)
8273 return 0;
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8280 case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_compile") 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && {
8292 test -z "$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8294 } && test -s conftest.$ac_objext; then
8295 ac_cv_member_struct_ifreq_ifr_netmask=yes
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8299
8300 ac_cv_member_struct_ifreq_ifr_netmask=no
8301 fi
8302
8303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304 fi
8305
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 fi
8308 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8309 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8310 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8311
8312 cat >>confdefs.h <<_ACEOF
8313 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8314 _ACEOF
8315
8316
8317 fi
8318 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8319 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8320 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 #if HAVE_SYS_SOCKET_H
8331 #include <sys/socket.h>
8332 #endif
8333 #if HAVE_NET_IF_H
8334 #include <net/if.h>
8335 #endif
8336
8337 int
8338 main ()
8339 {
8340 static struct ifreq ac_aggr;
8341 if (ac_aggr.ifr_broadaddr)
8342 return 0;
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8349 case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.$ac_objext; then
8364 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 cat >conftest.$ac_ext <<_ACEOF
8370 /* confdefs.h. */
8371 _ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8375 $ac_includes_default
8376 #if HAVE_SYS_SOCKET_H
8377 #include <sys/socket.h>
8378 #endif
8379 #if HAVE_NET_IF_H
8380 #include <net/if.h>
8381 #endif
8382
8383 int
8384 main ()
8385 {
8386 static struct ifreq ac_aggr;
8387 if (sizeof ac_aggr.ifr_broadaddr)
8388 return 0;
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8395 case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_compile") 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && {
8407 test -z "$ac_c_werror_flag" ||
8408 test ! -s conftest.err
8409 } && test -s conftest.$ac_objext; then
8410 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8411 else
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 fi
8420
8421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422 fi
8423 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8424 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8425 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8426
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8429 _ACEOF
8430
8431
8432 fi
8433 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8434 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8435 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h. */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 #if HAVE_SYS_SOCKET_H
8446 #include <sys/socket.h>
8447 #endif
8448 #if HAVE_NET_IF_H
8449 #include <net/if.h>
8450 #endif
8451
8452 int
8453 main ()
8454 {
8455 static struct ifreq ac_aggr;
8456 if (ac_aggr.ifr_addr)
8457 return 0;
8458 ;
8459 return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (ac_try="$ac_compile"
8464 case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8479 ac_cv_member_struct_ifreq_ifr_addr=yes
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h. */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 $ac_includes_default
8491 #if HAVE_SYS_SOCKET_H
8492 #include <sys/socket.h>
8493 #endif
8494 #if HAVE_NET_IF_H
8495 #include <net/if.h>
8496 #endif
8497
8498 int
8499 main ()
8500 {
8501 static struct ifreq ac_aggr;
8502 if (sizeof ac_aggr.ifr_addr)
8503 return 0;
8504 ;
8505 return 0;
8506 }
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8510 case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513 esac
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.$ac_objext; then
8525 ac_cv_member_struct_ifreq_ifr_addr=yes
8526 else
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8529
8530 ac_cv_member_struct_ifreq_ifr_addr=no
8531 fi
8532
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 fi
8535
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 fi
8538 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8539 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8540 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8541
8542 cat >>confdefs.h <<_ACEOF
8543 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8544 _ACEOF
8545
8546
8547 fi
8548
8549
8550
8551 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8552 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8553 if test "$ac_cv_prog_cc_c89" != no; then
8554 { echo "$as_me:$LINENO: result: yes" >&5
8555 echo "${ECHO_T}yes" >&6; }
8556
8557 cat >>confdefs.h <<\_ACEOF
8558 #define PROTOTYPES 1
8559 _ACEOF
8560
8561
8562 cat >>confdefs.h <<\_ACEOF
8563 #define __PROTOTYPES 1
8564 _ACEOF
8565
8566 else
8567 { echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6; }
8569 fi
8570
8571 { echo "$as_me:$LINENO: checking for working volatile" >&5
8572 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8573 if test "${ac_cv_c_volatile+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582
8583 int
8584 main ()
8585 {
8586
8587 volatile int x;
8588 int * volatile y = (int *) 0;
8589 return !x && !y;
8590 ;
8591 return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext
8595 if { (ac_try="$ac_compile"
8596 case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_compile") 2>conftest.er1
8602 ac_status=$?
8603 grep -v '^ *+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } && {
8608 test -z "$ac_c_werror_flag" ||
8609 test ! -s conftest.err
8610 } && test -s conftest.$ac_objext; then
8611 ac_cv_c_volatile=yes
8612 else
8613 echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8615
8616 ac_cv_c_volatile=no
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_c_volatile" >&5
8622 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8623 if test $ac_cv_c_volatile = no; then
8624
8625 cat >>confdefs.h <<\_ACEOF
8626 #define volatile
8627 _ACEOF
8628
8629 fi
8630
8631 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8632 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8633 if test "${ac_cv_c_const+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
8643 int
8644 main ()
8645 {
8646 /* FIXME: Include the comments suggested by Paul. */
8647 #ifndef __cplusplus
8648 /* Ultrix mips cc rejects this. */
8649 typedef int charset[2];
8650 const charset cs;
8651 /* SunOS 4.1.1 cc rejects this. */
8652 char const *const *pcpcc;
8653 char **ppc;
8654 /* NEC SVR4.0.2 mips cc rejects this. */
8655 struct point {int x, y;};
8656 static struct point const zero = {0,0};
8657 /* AIX XL C 1.02.0.0 rejects this.
8658 It does not let you subtract one const X* pointer from another in
8659 an arm of an if-expression whose if-part is not a constant
8660 expression */
8661 const char *g = "string";
8662 pcpcc = &g + (g ? g-g : 0);
8663 /* HPUX 7.0 cc rejects these. */
8664 ++pcpcc;
8665 ppc = (char**) pcpcc;
8666 pcpcc = (char const *const *) ppc;
8667 { /* SCO 3.2v4 cc rejects this. */
8668 char *t;
8669 char const *s = 0 ? (char *) 0 : (char const *) 0;
8670
8671 *t++ = 0;
8672 if (s) return 0;
8673 }
8674 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8675 int x[] = {25, 17};
8676 const int *foo = &x[0];
8677 ++foo;
8678 }
8679 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8680 typedef const int *iptr;
8681 iptr p = 0;
8682 ++p;
8683 }
8684 { /* AIX XL C 1.02.0.0 rejects this saying
8685 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8686 struct s { int j; const int *ap[3]; };
8687 struct s *b; b->j = 5;
8688 }
8689 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8690 const int foo = 10;
8691 if (!foo) return 0;
8692 }
8693 return !cs[0] && !zero.x;
8694 #endif
8695
8696 ;
8697 return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext
8701 if { (ac_try="$ac_compile"
8702 case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705 esac
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_compile") 2>conftest.er1
8708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && {
8714 test -z "$ac_c_werror_flag" ||
8715 test ! -s conftest.err
8716 } && test -s conftest.$ac_objext; then
8717 ac_cv_c_const=yes
8718 else
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 ac_cv_c_const=no
8723 fi
8724
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 fi
8727 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8728 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8729 if test $ac_cv_c_const = no; then
8730
8731 cat >>confdefs.h <<\_ACEOF
8732 #define const
8733 _ACEOF
8734
8735 fi
8736
8737 { echo "$as_me:$LINENO: checking for void * support" >&5
8738 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8739 if test "${emacs_cv_void_star+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h. */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748
8749 int
8750 main ()
8751 {
8752 void * foo;
8753 ;
8754 return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext
8758 if { (ac_try="$ac_compile"
8759 case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762 esac
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_compile") 2>conftest.er1
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } && {
8771 test -z "$ac_c_werror_flag" ||
8772 test ! -s conftest.err
8773 } && test -s conftest.$ac_objext; then
8774 emacs_cv_void_star=yes
8775 else
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 emacs_cv_void_star=no
8780 fi
8781
8782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783 fi
8784 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8785 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8786 if test $emacs_cv_void_star = yes; then
8787 cat >>confdefs.h <<\_ACEOF
8788 #define POINTER_TYPE void
8789 _ACEOF
8790
8791 else
8792 cat >>confdefs.h <<\_ACEOF
8793 #define POINTER_TYPE char
8794 _ACEOF
8795
8796 fi
8797
8798
8799
8800
8801
8802 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8803 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8804 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8805 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808 cat >conftest.make <<\_ACEOF
8809 SHELL = /bin/sh
8810 all:
8811 @echo '@@@%%%=$(MAKE)=@@@%%%'
8812 _ACEOF
8813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8814 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8815 *@@@%%%=?*=@@@%%%*)
8816 eval ac_cv_prog_make_${ac_make}_set=yes;;
8817 *)
8818 eval ac_cv_prog_make_${ac_make}_set=no;;
8819 esac
8820 rm -f conftest.make
8821 fi
8822 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8823 { echo "$as_me:$LINENO: result: yes" >&5
8824 echo "${ECHO_T}yes" >&6; }
8825 SET_MAKE=
8826 else
8827 { echo "$as_me:$LINENO: result: no" >&5
8828 echo "${ECHO_T}no" >&6; }
8829 SET_MAKE="MAKE=${MAKE-make}"
8830 fi
8831
8832
8833 { echo "$as_me:$LINENO: checking for long file names" >&5
8834 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8835 if test "${ac_cv_sys_long_file_names+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838 ac_cv_sys_long_file_names=yes
8839 # Test for long file names in all the places we know might matter:
8840 # . the current directory, where building will happen
8841 # $prefix/lib where we will be installing things
8842 # $exec_prefix/lib likewise
8843 # $TMPDIR if set, where it might want to write temporary files
8844 # /tmp where it might want to write temporary files
8845 # /var/tmp likewise
8846 # /usr/tmp likewise
8847 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8848 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8849 # in the usual case where exec_prefix is '${prefix}'.
8850 case $ac_dir in #(
8851 . | /* | ?:[\\/]*) ;; #(
8852 *) continue;;
8853 esac
8854 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8855 ac_xdir=$ac_dir/cf$$
8856 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8857 ac_tf1=$ac_xdir/conftest9012345
8858 ac_tf2=$ac_xdir/conftest9012346
8859 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8860 ac_cv_sys_long_file_names=no
8861 rm -f -r "$ac_xdir" 2>/dev/null
8862 test $ac_cv_sys_long_file_names = no && break
8863 done
8864 fi
8865 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8866 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8867 if test $ac_cv_sys_long_file_names = yes; then
8868
8869 cat >>confdefs.h <<\_ACEOF
8870 #define HAVE_LONG_FILE_NAMES 1
8871 _ACEOF
8872
8873 fi
8874
8875
8876 #### Choose a window system.
8877
8878 { echo "$as_me:$LINENO: checking for X" >&5
8879 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8880
8881
8882 # Check whether --with-x was given.
8883 if test "${with_x+set}" = set; then
8884 withval=$with_x;
8885 fi
8886
8887 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8888 if test "x$with_x" = xno; then
8889 # The user explicitly disabled X.
8890 have_x=disabled
8891 else
8892 case $x_includes,$x_libraries in #(
8893 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8894 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8895 { (exit 1); exit 1; }; };; #(
8896 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 # One or both of the vars are not set, and there is no cached value.
8900 ac_x_includes=no ac_x_libraries=no
8901 rm -f -r conftest.dir
8902 if mkdir conftest.dir; then
8903 cd conftest.dir
8904 cat >Imakefile <<'_ACEOF'
8905 incroot:
8906 @echo incroot='${INCROOT}'
8907 usrlibdir:
8908 @echo usrlibdir='${USRLIBDIR}'
8909 libdir:
8910 @echo libdir='${LIBDIR}'
8911 _ACEOF
8912 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8914 for ac_var in incroot usrlibdir libdir; do
8915 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8916 done
8917 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8918 for ac_extension in a so sl; do
8919 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8920 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8921 ac_im_usrlibdir=$ac_im_libdir; break
8922 fi
8923 done
8924 # Screen out bogus values from the imake configuration. They are
8925 # bogus both because they are the default anyway, and because
8926 # using them would break gcc on systems where it needs fixed includes.
8927 case $ac_im_incroot in
8928 /usr/include) ac_x_includes= ;;
8929 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8930 esac
8931 case $ac_im_usrlibdir in
8932 /usr/lib | /lib) ;;
8933 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8934 esac
8935 fi
8936 cd ..
8937 rm -f -r conftest.dir
8938 fi
8939
8940 # Standard set of common directories for X headers.
8941 # Check X11 before X11Rn because it is often a symlink to the current release.
8942 ac_x_header_dirs='
8943 /usr/X11/include
8944 /usr/X11R6/include
8945 /usr/X11R5/include
8946 /usr/X11R4/include
8947
8948 /usr/include/X11
8949 /usr/include/X11R6
8950 /usr/include/X11R5
8951 /usr/include/X11R4
8952
8953 /usr/local/X11/include
8954 /usr/local/X11R6/include
8955 /usr/local/X11R5/include
8956 /usr/local/X11R4/include
8957
8958 /usr/local/include/X11
8959 /usr/local/include/X11R6
8960 /usr/local/include/X11R5
8961 /usr/local/include/X11R4
8962
8963 /usr/X386/include
8964 /usr/x386/include
8965 /usr/XFree86/include/X11
8966
8967 /usr/include
8968 /usr/local/include
8969 /usr/unsupported/include
8970 /usr/athena/include
8971 /usr/local/x11r5/include
8972 /usr/lpp/Xamples/include
8973
8974 /usr/openwin/include
8975 /usr/openwin/share/include'
8976
8977 if test "$ac_x_includes" = no; then
8978 # Guess where to find include files, by looking for Xlib.h.
8979 # First, try using that file with no special directory specified.
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 #include <X11/Xlib.h>
8987 _ACEOF
8988 if { (ac_try="$ac_cpp conftest.$ac_ext"
8989 case "(($ac_try" in
8990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8991 *) ac_try_echo=$ac_try;;
8992 esac
8993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } >/dev/null && {
9001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9002 test ! -s conftest.err
9003 }; then
9004 # We can compile using X headers with no special include directory.
9005 ac_x_includes=
9006 else
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 for ac_dir in $ac_x_header_dirs; do
9011 if test -r "$ac_dir/X11/Xlib.h"; then
9012 ac_x_includes=$ac_dir
9013 break
9014 fi
9015 done
9016 fi
9017
9018 rm -f conftest.err conftest.$ac_ext
9019 fi # $ac_x_includes = no
9020
9021 if test "$ac_x_libraries" = no; then
9022 # Check for the libraries.
9023 # See if we find them without any special options.
9024 # Don't add to $LIBS permanently.
9025 ac_save_LIBS=$LIBS
9026 LIBS="-lX11 $LIBS"
9027 cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h. */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 #include <X11/Xlib.h>
9034 int
9035 main ()
9036 {
9037 XrmInitialize ()
9038 ;
9039 return 0;
9040 }
9041 _ACEOF
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (ac_try="$ac_link"
9044 case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9047 esac
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_link") 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } && {
9056 test -z "$ac_c_werror_flag" ||
9057 test ! -s conftest.err
9058 } && test -s conftest$ac_exeext &&
9059 $as_test_x conftest$ac_exeext; then
9060 LIBS=$ac_save_LIBS
9061 # We can link X programs with no special library path.
9062 ac_x_libraries=
9063 else
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067 LIBS=$ac_save_LIBS
9068 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9069 do
9070 # Don't even attempt the hair of trying to link an X program!
9071 for ac_extension in a so sl; do
9072 if test -r "$ac_dir/libX11.$ac_extension"; then
9073 ac_x_libraries=$ac_dir
9074 break 2
9075 fi
9076 done
9077 done
9078 fi
9079
9080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9081 conftest$ac_exeext conftest.$ac_ext
9082 fi # $ac_x_libraries = no
9083
9084 case $ac_x_includes,$ac_x_libraries in #(
9085 no,* | *,no | *\'*)
9086 # Didn't find X, or a directory has "'" in its name.
9087 ac_cv_have_x="have_x=no";; #(
9088 *)
9089 # Record where we found X for the cache.
9090 ac_cv_have_x="have_x=yes\
9091 ac_x_includes='$ac_x_includes'\
9092 ac_x_libraries='$ac_x_libraries'"
9093 esac
9094 fi
9095 ;; #(
9096 *) have_x=yes;;
9097 esac
9098 eval "$ac_cv_have_x"
9099 fi # $with_x != no
9100
9101 if test "$have_x" != yes; then
9102 { echo "$as_me:$LINENO: result: $have_x" >&5
9103 echo "${ECHO_T}$have_x" >&6; }
9104 no_x=yes
9105 else
9106 # If each of the values was on the command line, it overrides each guess.
9107 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9108 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9109 # Update the cache value to reflect the command line values.
9110 ac_cv_have_x="have_x=yes\
9111 ac_x_includes='$x_includes'\
9112 ac_x_libraries='$x_libraries'"
9113 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9114 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9115 fi
9116
9117 if test "$no_x" = yes; then
9118 window_system=none
9119 else
9120 window_system=x11
9121 fi
9122
9123 ## Workaround for bug in autoconf <= 2.62.
9124 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9125 ## No need to do anything special for these standard directories.
9126 ## This is an experiment, take it out if it causes problems.
9127 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9128
9129 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9130
9131 fi
9132
9133 if test "${x_libraries}" != NONE; then
9134 if test -n "${x_libraries}"; then
9135 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9136 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9137 fi
9138 x_default_search_path=""
9139 x_search_path=${x_libraries}
9140 if test -z "${x_search_path}"; then
9141 x_search_path=/usr/lib
9142 fi
9143 for x_library in `echo ${x_search_path}: | \
9144 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9145 x_search_path="\
9146 ${x_library}/X11/%L/%T/%N%C%S:\
9147 ${x_library}/X11/%l/%T/%N%C%S:\
9148 ${x_library}/X11/%T/%N%C%S:\
9149 ${x_library}/X11/%L/%T/%N%S:\
9150 ${x_library}/X11/%l/%T/%N%S:\
9151 ${x_library}/X11/%T/%N%S"
9152 if test x"${x_default_search_path}" = x; then
9153 x_default_search_path=${x_search_path}
9154 else
9155 x_default_search_path="${x_search_path}:${x_default_search_path}"
9156 fi
9157 done
9158 fi
9159 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9160 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9161 fi
9162
9163 if test x"${x_includes}" = x; then
9164 bitmapdir=/usr/include/X11/bitmaps
9165 else
9166 # accumulate include directories that have X11 bitmap subdirectories
9167 bmd_acc="dummyval"
9168 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9169 if test -d "${bmd}/X11/bitmaps"; then
9170 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9171 fi
9172 if test -d "${bmd}/bitmaps"; then
9173 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9174 fi
9175 done
9176 if test ${bmd_acc} != "dummyval"; then
9177 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9178 fi
9179 fi
9180
9181 HAVE_NS=no
9182 NS_IMPL_COCOA=no
9183 NS_IMPL_GNUSTEP=no
9184 tmp_CPPFLAGS="$CPPFLAGS"
9185 tmp_CFLAGS="$CFLAGS"
9186 CPPFLAGS="$CPPFLAGS -x objective-c"
9187 CFLAGS="$CFLAGS -x objective-c"
9188 if test "${with_ns}" != no; then
9189 if test "${opsys}" = darwin; then
9190 NS_IMPL_COCOA=yes
9191 ns_appdir=`pwd`/nextstep/Emacs.app
9192 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9193 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9194 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9195 elif test -f /etc/GNUstep/GNUstep.conf; then
9196 NS_IMPL_GNUSTEP=yes
9197 ns_appdir=`pwd`/nextstep/Emacs.app
9198 ns_appbindir=`pwd`/nextstep/Emacs.app
9199 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9200 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9201 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9202 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9203 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9204 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9205 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9206 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9207 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9208 fi
9209 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9210 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9211 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9212 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 fi
9215 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9216 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9217 else
9218 # Is the header compilable?
9219 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9220 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 $ac_includes_default
9228 #include <AppKit/AppKit.h>
9229 _ACEOF
9230 rm -f conftest.$ac_objext
9231 if { (ac_try="$ac_compile"
9232 case "(($ac_try" in
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9235 esac
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_compile") 2>conftest.er1
9238 ac_status=$?
9239 grep -v '^ *+' conftest.er1 >conftest.err
9240 rm -f conftest.er1
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest.$ac_objext; then
9247 ac_header_compiler=yes
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252 ac_header_compiler=no
9253 fi
9254
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9257 echo "${ECHO_T}$ac_header_compiler" >&6; }
9258
9259 # Is the header present?
9260 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9261 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h. */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9268 #include <AppKit/AppKit.h>
9269 _ACEOF
9270 if { (ac_try="$ac_cpp conftest.$ac_ext"
9271 case "(($ac_try" in
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } >/dev/null && {
9283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 }; then
9286 ac_header_preproc=yes
9287 else
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9290
9291 ac_header_preproc=no
9292 fi
9293
9294 rm -f conftest.err conftest.$ac_ext
9295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9296 echo "${ECHO_T}$ac_header_preproc" >&6; }
9297
9298 # So? What about this header?
9299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9300 yes:no: )
9301 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9302 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9304 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9305 ac_header_preproc=yes
9306 ;;
9307 no:yes:* )
9308 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9309 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9313 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9317 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9319 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9320
9321 ;;
9322 esac
9323 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9324 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9325 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9329 fi
9330 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9331 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9332
9333 fi
9334 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9335 HAVE_NS=yes
9336 fi
9337
9338
9339 NS_HAVE_NSINTEGER=yes
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 #include <Foundation/NSObjCRuntime.h>
9347 int
9348 main ()
9349 {
9350 NSInteger i;
9351 ;
9352 return 0;
9353 }
9354 _ACEOF
9355 rm -f conftest.$ac_objext
9356 if { (ac_try="$ac_compile"
9357 case "(($ac_try" in
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9360 esac
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_compile") 2>conftest.er1
9363 ac_status=$?
9364 grep -v '^ *+' conftest.er1 >conftest.err
9365 rm -f conftest.er1
9366 cat conftest.err >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } && {
9369 test -z "$ac_c_werror_flag" ||
9370 test ! -s conftest.err
9371 } && test -s conftest.$ac_objext; then
9372 ns_have_nsinteger=yes
9373 else
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377 ns_have_nsinteger=no
9378 fi
9379
9380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9381 if test $ns_have_nsinteger = no; then
9382 NS_HAVE_NSINTEGER=no
9383 fi
9384 fi
9385 if test "${HAVE_NS}" = yes; then
9386 window_system=nextstep
9387 with_xft=no
9388 with_freetype=no
9389 # set up packaging dirs
9390 exec_prefix=${ns_appbindir}
9391 libexecdir=${ns_appbindir}/libexec
9392 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9393 prefix=${ns_appresdir}
9394 fi
9395 fi
9396 CFLAGS="$tmp_CFLAGS"
9397 CPPFLAGS="$tmp_CPPFLAGS"
9398
9399 case "${window_system}" in
9400 x11 )
9401 HAVE_X_WINDOWS=yes
9402 HAVE_X11=yes
9403 case "${with_x_toolkit}" in
9404 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9405 motif ) USE_X_TOOLKIT=MOTIF ;;
9406 gtk ) with_gtk=yes
9407 USE_X_TOOLKIT=none ;;
9408 no ) USE_X_TOOLKIT=none ;;
9409 * ) USE_X_TOOLKIT=maybe ;;
9410 esac
9411 ;;
9412 nextstep | none )
9413 HAVE_X_WINDOWS=no
9414 HAVE_X11=no
9415 USE_X_TOOLKIT=none
9416 ;;
9417 esac
9418
9419 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9420 # Extract the first word of "X", so it can be a program name with args.
9421 set dummy X; ac_word=$2
9422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9424 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427 if test -n "$HAVE_XSERVER"; then
9428 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9429 else
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9432 do
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_prog_HAVE_XSERVER="true"
9438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9440 fi
9441 done
9442 done
9443 IFS=$as_save_IFS
9444
9445 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9446 fi
9447 fi
9448 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9449 if test -n "$HAVE_XSERVER"; then
9450 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9451 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9452 else
9453 { echo "$as_me:$LINENO: result: no" >&5
9454 echo "${ECHO_T}no" >&6; }
9455 fi
9456
9457
9458 if test "$HAVE_XSERVER" = true ||
9459 test -n "$DISPLAY" ||
9460 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9461 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9462 were found. You should install the relevant development files for X
9463 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9464 sure you have development files for image handling, i.e.
9465 tiff, gif, jpeg, png and xpm.
9466 If you are sure you want Emacs compiled without X window support, pass
9467 --without-x
9468 to configure." >&5
9469 echo "$as_me: error: You seem to be running X, but no X development libraries
9470 were found. You should install the relevant development files for X
9471 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9472 sure you have development files for image handling, i.e.
9473 tiff, gif, jpeg, png and xpm.
9474 If you are sure you want Emacs compiled without X window support, pass
9475 --without-x
9476 to configure." >&2;}
9477 { (exit 1); exit 1; }; }
9478 fi
9479 fi
9480
9481 ### If we're using X11, we should use the X menu package.
9482 HAVE_MENUS=no
9483 case ${HAVE_X11} in
9484 yes ) HAVE_MENUS=yes ;;
9485 esac
9486
9487 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9488 # Assume not, until told otherwise.
9489 GNU_MALLOC=yes
9490 doug_lea_malloc=yes
9491 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9492 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9493 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h. */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9504 #define malloc_get_state innocuous_malloc_get_state
9505
9506 /* System header to define __stub macros and hopefully few prototypes,
9507 which can conflict with char malloc_get_state (); below.
9508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9509 <limits.h> exists even on freestanding compilers. */
9510
9511 #ifdef __STDC__
9512 # include <limits.h>
9513 #else
9514 # include <assert.h>
9515 #endif
9516
9517 #undef malloc_get_state
9518
9519 /* Override any GCC internal prototype to avoid an error.
9520 Use char because int might match the return type of a GCC
9521 builtin and then its argument prototype would still apply. */
9522 #ifdef __cplusplus
9523 extern "C"
9524 #endif
9525 char malloc_get_state ();
9526 /* The GNU C library defines this for functions which it implements
9527 to always fail with ENOSYS. Some functions are actually named
9528 something starting with __ and the normal name is an alias. */
9529 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9530 choke me
9531 #endif
9532
9533 int
9534 main ()
9535 {
9536 return malloc_get_state ();
9537 ;
9538 return 0;
9539 }
9540 _ACEOF
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (ac_try="$ac_link"
9543 case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546 esac
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_link") 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && {
9555 test -z "$ac_c_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest$ac_exeext &&
9558 $as_test_x conftest$ac_exeext; then
9559 ac_cv_func_malloc_get_state=yes
9560 else
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9563
9564 ac_cv_func_malloc_get_state=no
9565 fi
9566
9567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9568 conftest$ac_exeext conftest.$ac_ext
9569 fi
9570 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9571 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9572 if test $ac_cv_func_malloc_get_state = yes; then
9573 :
9574 else
9575 doug_lea_malloc=no
9576 fi
9577
9578 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9579 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9580 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583 cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h. */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9591 #define malloc_set_state innocuous_malloc_set_state
9592
9593 /* System header to define __stub macros and hopefully few prototypes,
9594 which can conflict with char malloc_set_state (); below.
9595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9596 <limits.h> exists even on freestanding compilers. */
9597
9598 #ifdef __STDC__
9599 # include <limits.h>
9600 #else
9601 # include <assert.h>
9602 #endif
9603
9604 #undef malloc_set_state
9605
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char malloc_set_state ();
9613 /* The GNU C library defines this for functions which it implements
9614 to always fail with ENOSYS. Some functions are actually named
9615 something starting with __ and the normal name is an alias. */
9616 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9617 choke me
9618 #endif
9619
9620 int
9621 main ()
9622 {
9623 return malloc_set_state ();
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (ac_try="$ac_link"
9630 case "(($ac_try" in
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_link") 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest$ac_exeext &&
9645 $as_test_x conftest$ac_exeext; then
9646 ac_cv_func_malloc_set_state=yes
9647 else
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651 ac_cv_func_malloc_set_state=no
9652 fi
9653
9654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9655 conftest$ac_exeext conftest.$ac_ext
9656 fi
9657 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9658 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9659 if test $ac_cv_func_malloc_set_state = yes; then
9660 :
9661 else
9662 doug_lea_malloc=no
9663 fi
9664
9665 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9666 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9667 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h. */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 extern void (* __after_morecore_hook)();
9677 int
9678 main ()
9679 {
9680 __after_morecore_hook = 0
9681 ;
9682 return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (ac_try="$ac_link"
9687 case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_link") 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest$ac_exeext &&
9702 $as_test_x conftest$ac_exeext; then
9703 emacs_cv_var___after_morecore_hook=yes
9704 else
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708 emacs_cv_var___after_morecore_hook=no
9709 fi
9710
9711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712 conftest$ac_exeext conftest.$ac_ext
9713 fi
9714 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9715 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9716 if test $emacs_cv_var___after_morecore_hook = no; then
9717 doug_lea_malloc=no
9718 fi
9719 if test "${system_malloc}" = "yes"; then
9720 GNU_MALLOC=no
9721 GNU_MALLOC_reason="
9722 (The GNU allocators don't work with this system configuration.)"
9723 fi
9724 if test "$doug_lea_malloc" = "yes" ; then
9725 if test "$GNU_MALLOC" = yes ; then
9726 GNU_MALLOC_reason="
9727 (Using Doug Lea's new malloc from the GNU C Library.)"
9728 fi
9729
9730 cat >>confdefs.h <<\_ACEOF
9731 #define DOUG_LEA_MALLOC 1
9732 _ACEOF
9733
9734 fi
9735
9736 if test x"${REL_ALLOC}" = x; then
9737 REL_ALLOC=${GNU_MALLOC}
9738 fi
9739
9740
9741
9742
9743 for ac_header in stdlib.h unistd.h
9744 do
9745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 fi
9752 ac_res=`eval echo '${'$as_ac_Header'}'`
9753 { echo "$as_me:$LINENO: result: $ac_res" >&5
9754 echo "${ECHO_T}$ac_res" >&6; }
9755 else
9756 # Is the header compilable?
9757 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9759 cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h. */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 $ac_includes_default
9766 #include <$ac_header>
9767 _ACEOF
9768 rm -f conftest.$ac_objext
9769 if { (ac_try="$ac_compile"
9770 case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_compile") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest.$ac_objext; then
9785 ac_header_compiler=yes
9786 else
9787 echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9789
9790 ac_header_compiler=no
9791 fi
9792
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9795 echo "${ECHO_T}$ac_header_compiler" >&6; }
9796
9797 # Is the header present?
9798 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9800 cat >conftest.$ac_ext <<_ACEOF
9801 /* confdefs.h. */
9802 _ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9806 #include <$ac_header>
9807 _ACEOF
9808 if { (ac_try="$ac_cpp conftest.$ac_ext"
9809 case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812 esac
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9815 ac_status=$?
9816 grep -v '^ *+' conftest.er1 >conftest.err
9817 rm -f conftest.er1
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } >/dev/null && {
9821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9822 test ! -s conftest.err
9823 }; then
9824 ac_header_preproc=yes
9825 else
9826 echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9828
9829 ac_header_preproc=no
9830 fi
9831
9832 rm -f conftest.err conftest.$ac_ext
9833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9834 echo "${ECHO_T}$ac_header_preproc" >&6; }
9835
9836 # So? What about this header?
9837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9838 yes:no: )
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9843 ac_header_preproc=yes
9844 ;;
9845 no:yes:* )
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9858
9859 ;;
9860 esac
9861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866 eval "$as_ac_Header=\$ac_header_preproc"
9867 fi
9868 ac_res=`eval echo '${'$as_ac_Header'}'`
9869 { echo "$as_me:$LINENO: result: $ac_res" >&5
9870 echo "${ECHO_T}$ac_res" >&6; }
9871
9872 fi
9873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9876 _ACEOF
9877
9878 fi
9879
9880 done
9881
9882
9883 for ac_func in getpagesize
9884 do
9885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9899 #define $ac_func innocuous_$ac_func
9900
9901 /* System header to define __stub macros and hopefully few prototypes,
9902 which can conflict with char $ac_func (); below.
9903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9904 <limits.h> exists even on freestanding compilers. */
9905
9906 #ifdef __STDC__
9907 # include <limits.h>
9908 #else
9909 # include <assert.h>
9910 #endif
9911
9912 #undef $ac_func
9913
9914 /* Override any GCC internal prototype to avoid an error.
9915 Use char because int might match the return type of a GCC
9916 builtin and then its argument prototype would still apply. */
9917 #ifdef __cplusplus
9918 extern "C"
9919 #endif
9920 char $ac_func ();
9921 /* The GNU C library defines this for functions which it implements
9922 to always fail with ENOSYS. Some functions are actually named
9923 something starting with __ and the normal name is an alias. */
9924 #if defined __stub_$ac_func || defined __stub___$ac_func
9925 choke me
9926 #endif
9927
9928 int
9929 main ()
9930 {
9931 return $ac_func ();
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (ac_try="$ac_link"
9938 case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_link") 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest$ac_exeext &&
9953 $as_test_x conftest$ac_exeext; then
9954 eval "$as_ac_var=yes"
9955 else
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959 eval "$as_ac_var=no"
9960 fi
9961
9962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9963 conftest$ac_exeext conftest.$ac_ext
9964 fi
9965 ac_res=`eval echo '${'$as_ac_var'}'`
9966 { echo "$as_me:$LINENO: result: $ac_res" >&5
9967 echo "${ECHO_T}$ac_res" >&6; }
9968 if test `eval echo '${'$as_ac_var'}'` = yes; then
9969 cat >>confdefs.h <<_ACEOF
9970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9971 _ACEOF
9972
9973 fi
9974 done
9975
9976 { echo "$as_me:$LINENO: checking for working mmap" >&5
9977 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9978 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981 if test "$cross_compiling" = yes; then
9982 ac_cv_func_mmap_fixed_mapped=no
9983 else
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 $ac_includes_default
9991 /* malloc might have been renamed as rpl_malloc. */
9992 #undef malloc
9993
9994 /* Thanks to Mike Haertel and Jim Avera for this test.
9995 Here is a matrix of mmap possibilities:
9996 mmap private not fixed
9997 mmap private fixed at somewhere currently unmapped
9998 mmap private fixed at somewhere already mapped
9999 mmap shared not fixed
10000 mmap shared fixed at somewhere currently unmapped
10001 mmap shared fixed at somewhere already mapped
10002 For private mappings, we should verify that changes cannot be read()
10003 back from the file, nor mmap's back from the file at a different
10004 address. (There have been systems where private was not correctly
10005 implemented like the infamous i386 svr4.0, and systems where the
10006 VM page cache was not coherent with the file system buffer cache
10007 like early versions of FreeBSD and possibly contemporary NetBSD.)
10008 For shared mappings, we should conversely verify that changes get
10009 propagated back to all the places they're supposed to be.
10010
10011 Grep wants private fixed already mapped.
10012 The main things grep needs to know about mmap are:
10013 * does it exist and is it safe to write into the mmap'd area
10014 * how to use it (BSD variants) */
10015
10016 #include <fcntl.h>
10017 #include <sys/mman.h>
10018
10019 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10020 char *malloc ();
10021 #endif
10022
10023 /* This mess was copied from the GNU getpagesize.h. */
10024 #ifndef HAVE_GETPAGESIZE
10025 /* Assume that all systems that can run configure have sys/param.h. */
10026 # ifndef HAVE_SYS_PARAM_H
10027 # define HAVE_SYS_PARAM_H 1
10028 # endif
10029
10030 # ifdef _SC_PAGESIZE
10031 # define getpagesize() sysconf(_SC_PAGESIZE)
10032 # else /* no _SC_PAGESIZE */
10033 # ifdef HAVE_SYS_PARAM_H
10034 # include <sys/param.h>
10035 # ifdef EXEC_PAGESIZE
10036 # define getpagesize() EXEC_PAGESIZE
10037 # else /* no EXEC_PAGESIZE */
10038 # ifdef NBPG
10039 # define getpagesize() NBPG * CLSIZE
10040 # ifndef CLSIZE
10041 # define CLSIZE 1
10042 # endif /* no CLSIZE */
10043 # else /* no NBPG */
10044 # ifdef NBPC
10045 # define getpagesize() NBPC
10046 # else /* no NBPC */
10047 # ifdef PAGESIZE
10048 # define getpagesize() PAGESIZE
10049 # endif /* PAGESIZE */
10050 # endif /* no NBPC */
10051 # endif /* no NBPG */
10052 # endif /* no EXEC_PAGESIZE */
10053 # else /* no HAVE_SYS_PARAM_H */
10054 # define getpagesize() 8192 /* punt totally */
10055 # endif /* no HAVE_SYS_PARAM_H */
10056 # endif /* no _SC_PAGESIZE */
10057
10058 #endif /* no HAVE_GETPAGESIZE */
10059
10060 int
10061 main ()
10062 {
10063 char *data, *data2, *data3;
10064 int i, pagesize;
10065 int fd;
10066
10067 pagesize = getpagesize ();
10068
10069 /* First, make a file with some known garbage in it. */
10070 data = (char *) malloc (pagesize);
10071 if (!data)
10072 return 1;
10073 for (i = 0; i < pagesize; ++i)
10074 *(data + i) = rand ();
10075 umask (0);
10076 fd = creat ("conftest.mmap", 0600);
10077 if (fd < 0)
10078 return 1;
10079 if (write (fd, data, pagesize) != pagesize)
10080 return 1;
10081 close (fd);
10082
10083 /* Next, try to mmap the file at a fixed address which already has
10084 something else allocated at it. If we can, also make sure that
10085 we see the same garbage. */
10086 fd = open ("conftest.mmap", O_RDWR);
10087 if (fd < 0)
10088 return 1;
10089 data2 = (char *) malloc (2 * pagesize);
10090 if (!data2)
10091 return 1;
10092 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10093 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10094 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10095 return 1;
10096 for (i = 0; i < pagesize; ++i)
10097 if (*(data + i) != *(data2 + i))
10098 return 1;
10099
10100 /* Finally, make sure that changes to the mapped area do not
10101 percolate back to the file as seen by read(). (This is a bug on
10102 some variants of i386 svr4.0.) */
10103 for (i = 0; i < pagesize; ++i)
10104 *(data2 + i) = *(data2 + i) + 1;
10105 data3 = (char *) malloc (pagesize);
10106 if (!data3)
10107 return 1;
10108 if (read (fd, data3, pagesize) != pagesize)
10109 return 1;
10110 for (i = 0; i < pagesize; ++i)
10111 if (*(data + i) != *(data3 + i))
10112 return 1;
10113 close (fd);
10114 return 0;
10115 }
10116 _ACEOF
10117 rm -f conftest$ac_exeext
10118 if { (ac_try="$ac_link"
10119 case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10122 esac
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_link") 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10128 { (case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10131 esac
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_try") 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; }; then
10137 ac_cv_func_mmap_fixed_mapped=yes
10138 else
10139 echo "$as_me: program exited with status $ac_status" >&5
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10142
10143 ( exit $ac_status )
10144 ac_cv_func_mmap_fixed_mapped=no
10145 fi
10146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10147 fi
10148
10149
10150 fi
10151 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10152 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10153 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10154
10155 cat >>confdefs.h <<\_ACEOF
10156 #define HAVE_MMAP 1
10157 _ACEOF
10158
10159 fi
10160 rm -f conftest.mmap
10161
10162 if test $use_mmap_for_buffers = yes; then
10163 REL_ALLOC=no
10164 fi
10165
10166 LIBS="$libsrc_libs $LIBS"
10167
10168
10169 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10170 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10171 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174 ac_check_lib_save_LIBS=$LIBS
10175 LIBS="-ldnet $LIBS"
10176 cat >conftest.$ac_ext <<_ACEOF
10177 /* confdefs.h. */
10178 _ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10182
10183 /* Override any GCC internal prototype to avoid an error.
10184 Use char because int might match the return type of a GCC
10185 builtin and then its argument prototype would still apply. */
10186 #ifdef __cplusplus
10187 extern "C"
10188 #endif
10189 char dnet_ntoa ();
10190 int
10191 main ()
10192 {
10193 return dnet_ntoa ();
10194 ;
10195 return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (ac_try="$ac_link"
10200 case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10203 esac
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_link") 2>conftest.er1
10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest$ac_exeext &&
10215 $as_test_x conftest$ac_exeext; then
10216 ac_cv_lib_dnet_dnet_ntoa=yes
10217 else
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10220
10221 ac_cv_lib_dnet_dnet_ntoa=no
10222 fi
10223
10224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10227 fi
10228 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10229 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10230 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_LIBDNET 1
10233 _ACEOF
10234
10235 LIBS="-ldnet $LIBS"
10236
10237 fi
10238
10239
10240 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10241 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10242 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245 ac_check_lib_save_LIBS=$LIBS
10246 LIBS="-lXbsd $LIBS"
10247 cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h. */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253
10254
10255 int
10256 main ()
10257 {
10258 return main ();
10259 ;
10260 return 0;
10261 }
10262 _ACEOF
10263 rm -f conftest.$ac_objext conftest$ac_exeext
10264 if { (ac_try="$ac_link"
10265 case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_link") 2>conftest.er1
10271 ac_status=$?
10272 grep -v '^ *+' conftest.er1 >conftest.err
10273 rm -f conftest.er1
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest$ac_exeext &&
10280 $as_test_x conftest$ac_exeext; then
10281 ac_cv_lib_Xbsd_main=yes
10282 else
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10285
10286 ac_cv_lib_Xbsd_main=no
10287 fi
10288
10289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10290 conftest$ac_exeext conftest.$ac_ext
10291 LIBS=$ac_check_lib_save_LIBS
10292 fi
10293 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10294 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10295 if test $ac_cv_lib_Xbsd_main = yes; then
10296 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10297 fi
10298
10299
10300
10301 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10302 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10303 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-lpthreads $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 cma_open ();
10322 int
10323 main ()
10324 {
10325 return cma_open ();
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_pthreads_cma_open=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10352
10353 ac_cv_lib_pthreads_cma_open=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_pthreads_cma_open" >&5
10361 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10362 if test $ac_cv_lib_pthreads_cma_open = yes; then
10363 cat >>confdefs.h <<_ACEOF
10364 #define HAVE_LIBPTHREADS 1
10365 _ACEOF
10366
10367 LIBS="-lpthreads $LIBS"
10368
10369 fi
10370
10371
10372
10373 case ${host_os} in
10374 aix*)
10375 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10376 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10377 if test "${gdb_cv_bigtoc+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380
10381 case $GCC in
10382 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10383 *) gdb_cv_bigtoc=-bbigtoc ;;
10384 esac
10385
10386 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10387 cat >conftest.$ac_ext <<_ACEOF
10388 /* confdefs.h. */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10393
10394 int
10395 main ()
10396 {
10397 int i;
10398 ;
10399 return 0;
10400 }
10401 _ACEOF
10402 rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (ac_try="$ac_link"
10404 case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407 esac
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest$ac_exeext &&
10419 $as_test_x conftest$ac_exeext; then
10420 :
10421 else
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425 gdb_cv_bigtoc=
10426 fi
10427
10428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429 conftest$ac_exeext conftest.$ac_ext
10430
10431 fi
10432 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10433 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10434 ;;
10435 esac
10436
10437 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10438 # used for the tests that follow. We set them back to REAL_CFLAGS and
10439 # REAL_CPPFLAGS later on.
10440
10441 REAL_CPPFLAGS="$CPPFLAGS"
10442
10443 if test "${HAVE_X11}" = "yes"; then
10444 DEFS="$C_SWITCH_X_SITE $DEFS"
10445 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10446 LIBS="$LIBX $LIBS"
10447 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10448 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10449
10450 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10451 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10452 # but it's more convenient here to set LD_RUN_PATH
10453 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10454 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10455 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10456 export LD_RUN_PATH
10457 fi
10458
10459 if test "${opsys}" = "gnu-linux"; then
10460 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10461 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468
10469 int
10470 main ()
10471 {
10472 XOpenDisplay ("foo");
10473 ;
10474 return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (ac_try="$ac_link"
10479 case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10482 esac
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_link") 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && {
10491 test -z "$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 } && test -s conftest$ac_exeext &&
10494 $as_test_x conftest$ac_exeext; then
10495 xlinux_first_failure=no
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500 xlinux_first_failure=yes
10501 fi
10502
10503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10504 conftest$ac_exeext conftest.$ac_ext
10505 if test "${xlinux_first_failure}" = "yes"; then
10506 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10507 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10508 OLD_CPPFLAGS="$CPPFLAGS"
10509 OLD_LIBS="$LIBS"
10510 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10511 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10512 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10513 LIBS="$LIBS -b i486-linuxaout"
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h. */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520
10521 int
10522 main ()
10523 {
10524 XOpenDisplay ("foo");
10525 ;
10526 return 0;
10527 }
10528 _ACEOF
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (ac_try="$ac_link"
10531 case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10534 esac
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_link") 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } && {
10543 test -z "$ac_c_werror_flag" ||
10544 test ! -s conftest.err
10545 } && test -s conftest$ac_exeext &&
10546 $as_test_x conftest$ac_exeext; then
10547 xlinux_second_failure=no
10548 else
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 xlinux_second_failure=yes
10553 fi
10554
10555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10556 conftest$ac_exeext conftest.$ac_ext
10557 if test "${xlinux_second_failure}" = "yes"; then
10558 # If we get the same failure with -b, there is no use adding -b.
10559 # So take it out. This plays safe.
10560 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10561 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10562 CPPFLAGS="$OLD_CPPFLAGS"
10563 LIBS="$OLD_LIBS"
10564 { echo "$as_me:$LINENO: result: no" >&5
10565 echo "${ECHO_T}no" >&6; }
10566 else
10567 { echo "$as_me:$LINENO: result: yes" >&5
10568 echo "${ECHO_T}yes" >&6; }
10569 fi
10570 else
10571 { echo "$as_me:$LINENO: result: no" >&5
10572 echo "${ECHO_T}no" >&6; }
10573 fi
10574 fi
10575
10576 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10577 # header files included from there.
10578 { echo "$as_me:$LINENO: checking for Xkb" >&5
10579 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10580 cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h. */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 #include <X11/Xlib.h>
10587 #include <X11/XKBlib.h>
10588 int
10589 main ()
10590 {
10591 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10592 ;
10593 return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (ac_try="$ac_link"
10598 case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601 esac
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_link") 2>conftest.er1
10604 ac_status=$?
10605 grep -v '^ *+' conftest.er1 >conftest.err
10606 rm -f conftest.er1
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest$ac_exeext &&
10613 $as_test_x conftest$ac_exeext; then
10614 emacs_xkb=yes
10615 else
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619 emacs_xkb=no
10620 fi
10621
10622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10623 conftest$ac_exeext conftest.$ac_ext
10624 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10625 echo "${ECHO_T}$emacs_xkb" >&6; }
10626 if test $emacs_xkb = yes; then
10627
10628 cat >>confdefs.h <<\_ACEOF
10629 #define HAVE_XKBGETKEYBOARD 1
10630 _ACEOF
10631
10632 fi
10633
10634
10635
10636
10637
10638 for ac_func in XrmSetDatabase XScreenResourceString \
10639 XScreenNumberOfScreen XSetWMProtocols
10640 do
10641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10655 #define $ac_func innocuous_$ac_func
10656
10657 /* System header to define __stub macros and hopefully few prototypes,
10658 which can conflict with char $ac_func (); below.
10659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10660 <limits.h> exists even on freestanding compilers. */
10661
10662 #ifdef __STDC__
10663 # include <limits.h>
10664 #else
10665 # include <assert.h>
10666 #endif
10667
10668 #undef $ac_func
10669
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char $ac_func ();
10677 /* The GNU C library defines this for functions which it implements
10678 to always fail with ENOSYS. Some functions are actually named
10679 something starting with __ and the normal name is an alias. */
10680 #if defined __stub_$ac_func || defined __stub___$ac_func
10681 choke me
10682 #endif
10683
10684 int
10685 main ()
10686 {
10687 return $ac_func ();
10688 ;
10689 return 0;
10690 }
10691 _ACEOF
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (ac_try="$ac_link"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest$ac_exeext &&
10709 $as_test_x conftest$ac_exeext; then
10710 eval "$as_ac_var=yes"
10711 else
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715 eval "$as_ac_var=no"
10716 fi
10717
10718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10719 conftest$ac_exeext conftest.$ac_ext
10720 fi
10721 ac_res=`eval echo '${'$as_ac_var'}'`
10722 { echo "$as_me:$LINENO: result: $ac_res" >&5
10723 echo "${ECHO_T}$ac_res" >&6; }
10724 if test `eval echo '${'$as_ac_var'}'` = yes; then
10725 cat >>confdefs.h <<_ACEOF
10726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10727 _ACEOF
10728
10729 fi
10730 done
10731
10732 fi
10733
10734 if test "${window_system}" = "x11"; then
10735 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10736 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10737 if test "${emacs_cv_x11_version_6+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #include <X11/Xlib.h>
10747 int
10748 main ()
10749 {
10750 #if XlibSpecificationRelease < 6
10751 fail;
10752 #endif
10753
10754 ;
10755 return 0;
10756 }
10757 _ACEOF
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (ac_try="$ac_link"
10760 case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_link") 2>conftest.er1
10766 ac_status=$?
10767 grep -v '^ *+' conftest.er1 >conftest.err
10768 rm -f conftest.er1
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && {
10772 test -z "$ac_c_werror_flag" ||
10773 test ! -s conftest.err
10774 } && test -s conftest$ac_exeext &&
10775 $as_test_x conftest$ac_exeext; then
10776 emacs_cv_x11_version_6=yes
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781 emacs_cv_x11_version_6=no
10782 fi
10783
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10786 fi
10787
10788 if test $emacs_cv_x11_version_6 = yes; then
10789 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10790 echo "${ECHO_T}6 or newer" >&6; }
10791
10792 cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_X11R6 1
10794 _ACEOF
10795
10796 else
10797 { echo "$as_me:$LINENO: result: before 6" >&5
10798 echo "${ECHO_T}before 6" >&6; }
10799 fi
10800 fi
10801
10802
10803 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10804 HAVE_RSVG=no
10805 if test "${HAVE_X11}" = "yes"; then
10806 if test "${with_rsvg}" != "no"; then
10807 RSVG_REQUIRED=2.0.0
10808 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10809
10810
10811 succeeded=no
10812
10813 # Extract the first word of "pkg-config", so it can be a program name with args.
10814 set dummy pkg-config; ac_word=$2
10815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10817 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820 case $PKG_CONFIG in
10821 [\\/]* | ?:[\\/]*)
10822 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10823 ;;
10824 *)
10825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826 for as_dir in $PATH
10827 do
10828 IFS=$as_save_IFS
10829 test -z "$as_dir" && as_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10832 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10834 break 2
10835 fi
10836 done
10837 done
10838 IFS=$as_save_IFS
10839
10840 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10841 ;;
10842 esac
10843 fi
10844 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10845 if test -n "$PKG_CONFIG"; then
10846 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10847 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10848 else
10849 { echo "$as_me:$LINENO: result: no" >&5
10850 echo "${ECHO_T}no" >&6; }
10851 fi
10852
10853
10854
10855 if test "$PKG_CONFIG" = "no" ; then
10856 :
10857 else
10858 PKG_CONFIG_MIN_VERSION=0.9.0
10859 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10860 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10861 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10862
10863 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10864 { echo "$as_me:$LINENO: result: yes" >&5
10865 echo "${ECHO_T}yes" >&6; }
10866 succeeded=yes
10867
10868 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10869 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10870 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10871 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10872 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10873
10874 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10875 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10876 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10877 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10878 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10879 else
10880 { echo "$as_me:$LINENO: result: no" >&5
10881 echo "${ECHO_T}no" >&6; }
10882 RSVG_CFLAGS=""
10883 RSVG_LIBS=""
10884 ## If we have a custom action on failure, don't print errors, but
10885 ## do set a variable so people can do so.
10886 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10887
10888 fi
10889
10890
10891
10892 else
10893 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10894 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10895 fi
10896 fi
10897
10898 if test $succeeded = yes; then
10899 :
10900 else
10901 :
10902 fi
10903
10904
10905
10906
10907 if test ".${RSVG_CFLAGS}" != "."; then
10908 HAVE_RSVG=yes
10909
10910 cat >>confdefs.h <<\_ACEOF
10911 #define HAVE_RSVG 1
10912 _ACEOF
10913
10914 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10915 LIBS="$RSVG_LIBS $LIBS"
10916 fi
10917 fi
10918 fi
10919
10920
10921 HAVE_GTK=no
10922 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10923 GLIB_REQUIRED=2.6
10924 GTK_REQUIRED=2.6
10925 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10926
10927
10928 succeeded=no
10929
10930 # Extract the first word of "pkg-config", so it can be a program name with args.
10931 set dummy pkg-config; ac_word=$2
10932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10934 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937 case $PKG_CONFIG in
10938 [\\/]* | ?:[\\/]*)
10939 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10940 ;;
10941 *)
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10944 do
10945 IFS=$as_save_IFS
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10949 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953 done
10954 done
10955 IFS=$as_save_IFS
10956
10957 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10958 ;;
10959 esac
10960 fi
10961 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10962 if test -n "$PKG_CONFIG"; then
10963 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10964 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10965 else
10966 { echo "$as_me:$LINENO: result: no" >&5
10967 echo "${ECHO_T}no" >&6; }
10968 fi
10969
10970
10971
10972 if test "$PKG_CONFIG" = "no" ; then
10973 pkg_check_gtk=no
10974 else
10975 PKG_CONFIG_MIN_VERSION=0.9.0
10976 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10977 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10978 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10979
10980 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10981 { echo "$as_me:$LINENO: result: yes" >&5
10982 echo "${ECHO_T}yes" >&6; }
10983 succeeded=yes
10984
10985 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10986 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10987 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10988 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10989 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10990
10991 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10992 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10993 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10994 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10995 echo "${ECHO_T}$GTK_LIBS" >&6; }
10996 else
10997 { echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6; }
10999 GTK_CFLAGS=""
11000 GTK_LIBS=""
11001 ## If we have a custom action on failure, don't print errors, but
11002 ## do set a variable so people can do so.
11003 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11004
11005 fi
11006
11007
11008
11009 else
11010 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11011 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11012 fi
11013 fi
11014
11015 if test $succeeded = yes; then
11016 pkg_check_gtk=yes
11017 else
11018 pkg_check_gtk=no
11019 fi
11020
11021 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11022 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11023 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11024 { (exit 1); exit 1; }; }
11025 fi
11026 fi
11027
11028
11029 if test x"$pkg_check_gtk" = xyes; then
11030
11031
11032
11033 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11034 CFLAGS="$CFLAGS $GTK_CFLAGS"
11035 LIBS="$GTK_LIBS $LIBS"
11036 GTK_COMPILES=no
11037
11038 for ac_func in gtk_main
11039 do
11040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h. */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11054 #define $ac_func innocuous_$ac_func
11055
11056 /* System header to define __stub macros and hopefully few prototypes,
11057 which can conflict with char $ac_func (); below.
11058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11059 <limits.h> exists even on freestanding compilers. */
11060
11061 #ifdef __STDC__
11062 # include <limits.h>
11063 #else
11064 # include <assert.h>
11065 #endif
11066
11067 #undef $ac_func
11068
11069 /* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
11072 #ifdef __cplusplus
11073 extern "C"
11074 #endif
11075 char $ac_func ();
11076 /* The GNU C library defines this for functions which it implements
11077 to always fail with ENOSYS. Some functions are actually named
11078 something starting with __ and the normal name is an alias. */
11079 #if defined __stub_$ac_func || defined __stub___$ac_func
11080 choke me
11081 #endif
11082
11083 int
11084 main ()
11085 {
11086 return $ac_func ();
11087 ;
11088 return 0;
11089 }
11090 _ACEOF
11091 rm -f conftest.$ac_objext conftest$ac_exeext
11092 if { (ac_try="$ac_link"
11093 case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_link") 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest$ac_exeext &&
11108 $as_test_x conftest$ac_exeext; then
11109 eval "$as_ac_var=yes"
11110 else
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11113
11114 eval "$as_ac_var=no"
11115 fi
11116
11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11118 conftest$ac_exeext conftest.$ac_ext
11119 fi
11120 ac_res=`eval echo '${'$as_ac_var'}'`
11121 { echo "$as_me:$LINENO: result: $ac_res" >&5
11122 echo "${ECHO_T}$ac_res" >&6; }
11123 if test `eval echo '${'$as_ac_var'}'` = yes; then
11124 cat >>confdefs.h <<_ACEOF
11125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11126 _ACEOF
11127 GTK_COMPILES=yes
11128 fi
11129 done
11130
11131 if test "${GTK_COMPILES}" != "yes"; then
11132 if test "$USE_X_TOOLKIT" != "maybe"; then
11133 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11134 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11135 { (exit 1); exit 1; }; };
11136 fi
11137 else
11138 HAVE_GTK=yes
11139
11140 cat >>confdefs.h <<\_ACEOF
11141 #define USE_GTK 1
11142 _ACEOF
11143
11144 USE_X_TOOLKIT=none
11145 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11146 :
11147 else
11148 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11149 closing open displays. This is no problem if you just use
11150 one display, but if you use more than one and close one of them
11151 Emacs may crash." >&5
11152 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11153 closing open displays. This is no problem if you just use
11154 one display, but if you use more than one and close one of them
11155 Emacs may crash." >&2;}
11156 sleep 3
11157 fi
11158 fi
11159
11160 fi
11161
11162
11163 if test "${HAVE_GTK}" = "yes"; then
11164
11165 if test "$with_toolkit_scroll_bars" != no; then
11166 with_toolkit_scroll_bars=yes
11167 fi
11168
11169 HAVE_GTK_MULTIDISPLAY=no
11170
11171 for ac_func in gdk_display_open
11172 do
11173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179 cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h. */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11187 #define $ac_func innocuous_$ac_func
11188
11189 /* System header to define __stub macros and hopefully few prototypes,
11190 which can conflict with char $ac_func (); below.
11191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11192 <limits.h> exists even on freestanding compilers. */
11193
11194 #ifdef __STDC__
11195 # include <limits.h>
11196 #else
11197 # include <assert.h>
11198 #endif
11199
11200 #undef $ac_func
11201
11202 /* Override any GCC internal prototype to avoid an error.
11203 Use char because int might match the return type of a GCC
11204 builtin and then its argument prototype would still apply. */
11205 #ifdef __cplusplus
11206 extern "C"
11207 #endif
11208 char $ac_func ();
11209 /* The GNU C library defines this for functions which it implements
11210 to always fail with ENOSYS. Some functions are actually named
11211 something starting with __ and the normal name is an alias. */
11212 #if defined __stub_$ac_func || defined __stub___$ac_func
11213 choke me
11214 #endif
11215
11216 int
11217 main ()
11218 {
11219 return $ac_func ();
11220 ;
11221 return 0;
11222 }
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (ac_try="$ac_link"
11226 case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11229 esac
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_link") 2>conftest.er1
11232 ac_status=$?
11233 grep -v '^ *+' conftest.er1 >conftest.err
11234 rm -f conftest.er1
11235 cat conftest.err >&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } && {
11238 test -z "$ac_c_werror_flag" ||
11239 test ! -s conftest.err
11240 } && test -s conftest$ac_exeext &&
11241 $as_test_x conftest$ac_exeext; then
11242 eval "$as_ac_var=yes"
11243 else
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11246
11247 eval "$as_ac_var=no"
11248 fi
11249
11250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11251 conftest$ac_exeext conftest.$ac_ext
11252 fi
11253 ac_res=`eval echo '${'$as_ac_var'}'`
11254 { echo "$as_me:$LINENO: result: $ac_res" >&5
11255 echo "${ECHO_T}$ac_res" >&6; }
11256 if test `eval echo '${'$as_ac_var'}'` = yes; then
11257 cat >>confdefs.h <<_ACEOF
11258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11259 _ACEOF
11260 HAVE_GTK_MULTIDISPLAY=yes
11261 fi
11262 done
11263
11264 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11265
11266 cat >>confdefs.h <<\_ACEOF
11267 #define HAVE_GTK_MULTIDISPLAY 1
11268 _ACEOF
11269
11270 fi
11271
11272 HAVE_GTK_FILE_SELECTION=no
11273
11274 for ac_func in gtk_file_selection_new
11275 do
11276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11290 #define $ac_func innocuous_$ac_func
11291
11292 /* System header to define __stub macros and hopefully few prototypes,
11293 which can conflict with char $ac_func (); below.
11294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11295 <limits.h> exists even on freestanding compilers. */
11296
11297 #ifdef __STDC__
11298 # include <limits.h>
11299 #else
11300 # include <assert.h>
11301 #endif
11302
11303 #undef $ac_func
11304
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char $ac_func ();
11312 /* The GNU C library defines this for functions which it implements
11313 to always fail with ENOSYS. Some functions are actually named
11314 something starting with __ and the normal name is an alias. */
11315 #if defined __stub_$ac_func || defined __stub___$ac_func
11316 choke me
11317 #endif
11318
11319 int
11320 main ()
11321 {
11322 return $ac_func ();
11323 ;
11324 return 0;
11325 }
11326 _ACEOF
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (ac_try="$ac_link"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_link") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest$ac_exeext &&
11344 $as_test_x conftest$ac_exeext; then
11345 eval "$as_ac_var=yes"
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 eval "$as_ac_var=no"
11351 fi
11352
11353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354 conftest$ac_exeext conftest.$ac_ext
11355 fi
11356 ac_res=`eval echo '${'$as_ac_var'}'`
11357 { echo "$as_me:$LINENO: result: $ac_res" >&5
11358 echo "${ECHO_T}$ac_res" >&6; }
11359 if test `eval echo '${'$as_ac_var'}'` = yes; then
11360 cat >>confdefs.h <<_ACEOF
11361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11362 _ACEOF
11363 HAVE_GTK_FILE_SELECTION=yes
11364 fi
11365 done
11366
11367
11368 HAVE_GTK_FILE_CHOOSER=no
11369
11370 for ac_func in gtk_file_chooser_dialog_new
11371 do
11372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378 cat >conftest.$ac_ext <<_ACEOF
11379 /* confdefs.h. */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11386 #define $ac_func innocuous_$ac_func
11387
11388 /* System header to define __stub macros and hopefully few prototypes,
11389 which can conflict with char $ac_func (); below.
11390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11391 <limits.h> exists even on freestanding compilers. */
11392
11393 #ifdef __STDC__
11394 # include <limits.h>
11395 #else
11396 # include <assert.h>
11397 #endif
11398
11399 #undef $ac_func
11400
11401 /* Override any GCC internal prototype to avoid an error.
11402 Use char because int might match the return type of a GCC
11403 builtin and then its argument prototype would still apply. */
11404 #ifdef __cplusplus
11405 extern "C"
11406 #endif
11407 char $ac_func ();
11408 /* The GNU C library defines this for functions which it implements
11409 to always fail with ENOSYS. Some functions are actually named
11410 something starting with __ and the normal name is an alias. */
11411 #if defined __stub_$ac_func || defined __stub___$ac_func
11412 choke me
11413 #endif
11414
11415 int
11416 main ()
11417 {
11418 return $ac_func ();
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (ac_try="$ac_link"
11425 case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_link") 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && {
11437 test -z "$ac_c_werror_flag" ||
11438 test ! -s conftest.err
11439 } && test -s conftest$ac_exeext &&
11440 $as_test_x conftest$ac_exeext; then
11441 eval "$as_ac_var=yes"
11442 else
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11445
11446 eval "$as_ac_var=no"
11447 fi
11448
11449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11450 conftest$ac_exeext conftest.$ac_ext
11451 fi
11452 ac_res=`eval echo '${'$as_ac_var'}'`
11453 { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11455 if test `eval echo '${'$as_ac_var'}'` = yes; then
11456 cat >>confdefs.h <<_ACEOF
11457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11458 _ACEOF
11459 HAVE_GTK_FILE_CHOOSER=yes
11460 fi
11461 done
11462
11463
11464 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11465 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11466
11467 cat >>confdefs.h <<\_ACEOF
11468 #define HAVE_GTK_FILE_BOTH 1
11469 _ACEOF
11470
11471 fi
11472
11473 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11474 HAVE_GTK_AND_PTHREAD=no
11475
11476 for ac_header in pthread.h
11477 do
11478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 fi
11485 ac_res=`eval echo '${'$as_ac_Header'}'`
11486 { echo "$as_me:$LINENO: result: $ac_res" >&5
11487 echo "${ECHO_T}$ac_res" >&6; }
11488 else
11489 # Is the header compilable?
11490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h. */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 $ac_includes_default
11499 #include <$ac_header>
11500 _ACEOF
11501 rm -f conftest.$ac_objext
11502 if { (ac_try="$ac_compile"
11503 case "(($ac_try" in
11504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11506 esac
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_compile") 2>conftest.er1
11509 ac_status=$?
11510 grep -v '^ *+' conftest.er1 >conftest.err
11511 rm -f conftest.er1
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } && {
11515 test -z "$ac_c_werror_flag" ||
11516 test ! -s conftest.err
11517 } && test -s conftest.$ac_objext; then
11518 ac_header_compiler=yes
11519 else
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11522
11523 ac_header_compiler=no
11524 fi
11525
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11528 echo "${ECHO_T}$ac_header_compiler" >&6; }
11529
11530 # Is the header present?
11531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 #include <$ac_header>
11540 _ACEOF
11541 if { (ac_try="$ac_cpp conftest.$ac_ext"
11542 case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545 esac
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } >/dev/null && {
11554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11555 test ! -s conftest.err
11556 }; then
11557 ac_header_preproc=yes
11558 else
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11561
11562 ac_header_preproc=no
11563 fi
11564
11565 rm -f conftest.err conftest.$ac_ext
11566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11567 echo "${ECHO_T}$ac_header_preproc" >&6; }
11568
11569 # So? What about this header?
11570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11571 yes:no: )
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11576 ac_header_preproc=yes
11577 ;;
11578 no:yes:* )
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11591
11592 ;;
11593 esac
11594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599 eval "$as_ac_Header=\$ac_header_preproc"
11600 fi
11601 ac_res=`eval echo '${'$as_ac_Header'}'`
11602 { echo "$as_me:$LINENO: result: $ac_res" >&5
11603 echo "${ECHO_T}$ac_res" >&6; }
11604
11605 fi
11606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11607 cat >>confdefs.h <<_ACEOF
11608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11609 _ACEOF
11610
11611 fi
11612
11613 done
11614
11615 if test "$ac_cv_header_pthread_h"; then
11616 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11617 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11618 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621 ac_check_lib_save_LIBS=$LIBS
11622 LIBS="-lpthread $LIBS"
11623 cat >conftest.$ac_ext <<_ACEOF
11624 /* confdefs.h. */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11629
11630 /* Override any GCC internal prototype to avoid an error.
11631 Use char because int might match the return type of a GCC
11632 builtin and then its argument prototype would still apply. */
11633 #ifdef __cplusplus
11634 extern "C"
11635 #endif
11636 char pthread_self ();
11637 int
11638 main ()
11639 {
11640 return pthread_self ();
11641 ;
11642 return 0;
11643 }
11644 _ACEOF
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (ac_try="$ac_link"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650 esac
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
11653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && {
11659 test -z "$ac_c_werror_flag" ||
11660 test ! -s conftest.err
11661 } && test -s conftest$ac_exeext &&
11662 $as_test_x conftest$ac_exeext; then
11663 ac_cv_lib_pthread_pthread_self=yes
11664 else
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 ac_cv_lib_pthread_pthread_self=no
11669 fi
11670
11671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11672 conftest$ac_exeext conftest.$ac_ext
11673 LIBS=$ac_check_lib_save_LIBS
11674 fi
11675 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11676 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11677 if test $ac_cv_lib_pthread_pthread_self = yes; then
11678 HAVE_GTK_AND_PTHREAD=yes
11679 fi
11680
11681 fi
11682 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11683 case "${canonical}" in
11684 *-hpux*) ;;
11685 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11686 esac
11687
11688 cat >>confdefs.h <<\_ACEOF
11689 #define HAVE_GTK_AND_PTHREAD 1
11690 _ACEOF
11691
11692 fi
11693 fi
11694 fi
11695
11696 HAVE_DBUS=no
11697 if test "${with_dbus}" = "yes"; then
11698
11699 succeeded=no
11700
11701 # Extract the first word of "pkg-config", so it can be a program name with args.
11702 set dummy pkg-config; ac_word=$2
11703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11705 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 else
11708 case $PKG_CONFIG in
11709 [\\/]* | ?:[\\/]*)
11710 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11711 ;;
11712 *)
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11715 do
11716 IFS=$as_save_IFS
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 break 2
11723 fi
11724 done
11725 done
11726 IFS=$as_save_IFS
11727
11728 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11729 ;;
11730 esac
11731 fi
11732 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11733 if test -n "$PKG_CONFIG"; then
11734 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11735 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11736 else
11737 { echo "$as_me:$LINENO: result: no" >&5
11738 echo "${ECHO_T}no" >&6; }
11739 fi
11740
11741
11742
11743 if test "$PKG_CONFIG" = "no" ; then
11744 HAVE_DBUS=no
11745 else
11746 PKG_CONFIG_MIN_VERSION=0.9.0
11747 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11748 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11749 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11750
11751 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11752 { echo "$as_me:$LINENO: result: yes" >&5
11753 echo "${ECHO_T}yes" >&6; }
11754 succeeded=yes
11755
11756 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11757 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11758 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11759 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11760 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11761
11762 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11763 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11764 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11765 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11766 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11767 else
11768 { echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6; }
11770 DBUS_CFLAGS=""
11771 DBUS_LIBS=""
11772 ## If we have a custom action on failure, don't print errors, but
11773 ## do set a variable so people can do so.
11774 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11775
11776 fi
11777
11778
11779
11780 else
11781 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11782 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11783 fi
11784 fi
11785
11786 if test $succeeded = yes; then
11787 HAVE_DBUS=yes
11788 else
11789 HAVE_DBUS=no
11790 fi
11791
11792 if test "$HAVE_DBUS" = yes; then
11793
11794 cat >>confdefs.h <<\_ACEOF
11795 #define HAVE_DBUS 1
11796 _ACEOF
11797
11798 fi
11799 fi
11800
11801 HAVE_XAW3D=no
11802 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11803 if test "$with_xaw3d" != no; then
11804 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11805 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11806 if test "${emacs_cv_xaw3d+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h. */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815
11816 #include <X11/Intrinsic.h>
11817 #include <X11/Xaw3d/Simple.h>
11818 int
11819 main ()
11820 {
11821
11822 ;
11823 return 0;
11824 }
11825 _ACEOF
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831 esac
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_link") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest$ac_exeext &&
11843 $as_test_x conftest$ac_exeext; then
11844 emacs_cv_xaw3d=yes
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849 emacs_cv_xaw3d=no
11850 fi
11851
11852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11853 conftest$ac_exeext conftest.$ac_ext
11854 fi
11855
11856 else
11857 emacs_cv_xaw3d=no
11858 fi
11859 if test $emacs_cv_xaw3d = yes; then
11860 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11861 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11862 USE_X_TOOLKIT=LUCID
11863 HAVE_XAW3D=yes
11864
11865 cat >>confdefs.h <<\_ACEOF
11866 #define HAVE_XAW3D 1
11867 _ACEOF
11868
11869 else
11870 { echo "$as_me:$LINENO: result: no" >&5
11871 echo "${ECHO_T}no" >&6; }
11872 { echo "$as_me:$LINENO: checking for libXaw" >&5
11873 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11874 if test "${emacs_cv_xaw+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877 cat >conftest.$ac_ext <<_ACEOF
11878 /* confdefs.h. */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11883
11884 #include <X11/Intrinsic.h>
11885 #include <X11/Xaw/Simple.h>
11886 int
11887 main ()
11888 {
11889
11890 ;
11891 return 0;
11892 }
11893 _ACEOF
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (ac_try="$ac_link"
11896 case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11899 esac
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_link") 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } && {
11908 test -z "$ac_c_werror_flag" ||
11909 test ! -s conftest.err
11910 } && test -s conftest$ac_exeext &&
11911 $as_test_x conftest$ac_exeext; then
11912 emacs_cv_xaw=yes
11913 else
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 emacs_cv_xaw=no
11918 fi
11919
11920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11921 conftest$ac_exeext conftest.$ac_ext
11922 fi
11923
11924 if test $emacs_cv_xaw = yes; then
11925 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11926 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11927 USE_X_TOOLKIT=LUCID
11928 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11929 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11930 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11931 { (exit 1); exit 1; }; }
11932 else
11933 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11934 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11935 USE_X_TOOLKIT=none
11936 fi
11937 fi
11938 fi
11939
11940 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11941
11942 if test "${USE_X_TOOLKIT}" != "none"; then
11943 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11944 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11945 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948 cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h. */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 #include <X11/Intrinsic.h>
11955 int
11956 main ()
11957 {
11958 #if XtSpecificationRelease < 6
11959 fail;
11960 #endif
11961
11962 ;
11963 return 0;
11964 }
11965 _ACEOF
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (ac_try="$ac_link"
11968 case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11971 esac
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_link") 2>conftest.er1
11974 ac_status=$?
11975 grep -v '^ *+' conftest.er1 >conftest.err
11976 rm -f conftest.er1
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } && {
11980 test -z "$ac_c_werror_flag" ||
11981 test ! -s conftest.err
11982 } && test -s conftest$ac_exeext &&
11983 $as_test_x conftest$ac_exeext; then
11984 emacs_cv_x11_toolkit_version_6=yes
11985 else
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11988
11989 emacs_cv_x11_toolkit_version_6=no
11990 fi
11991
11992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11993 conftest$ac_exeext conftest.$ac_ext
11994 fi
11995
11996 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11997 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11998 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11999 echo "${ECHO_T}6 or newer" >&6; }
12000
12001 cat >>confdefs.h <<\_ACEOF
12002 #define HAVE_X11XTR6 1
12003 _ACEOF
12004
12005 else
12006 { echo "$as_me:$LINENO: result: before 6" >&5
12007 echo "${ECHO_T}before 6" >&6; }
12008 fi
12009
12010 OLDLIBS="$LIBS"
12011 if test x$HAVE_X11XTR6 = xyes; then
12012 LIBS="-lXt -lSM -lICE $LIBS"
12013 else
12014 LIBS="-lXt $LIBS"
12015 fi
12016
12017 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12018 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12019 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022 ac_check_lib_save_LIBS=$LIBS
12023 LIBS="-lXmu $LIBS"
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030
12031 /* Override any GCC internal prototype to avoid an error.
12032 Use char because int might match the return type of a GCC
12033 builtin and then its argument prototype would still apply. */
12034 #ifdef __cplusplus
12035 extern "C"
12036 #endif
12037 char XmuConvertStandardSelection ();
12038 int
12039 main ()
12040 {
12041 return XmuConvertStandardSelection ();
12042 ;
12043 return 0;
12044 }
12045 _ACEOF
12046 rm -f conftest.$ac_objext conftest$ac_exeext
12047 if { (ac_try="$ac_link"
12048 case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12051 esac
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_link") 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest$ac_exeext &&
12063 $as_test_x conftest$ac_exeext; then
12064 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12065 else
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12070 fi
12071
12072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12073 conftest$ac_exeext conftest.$ac_ext
12074 LIBS=$ac_check_lib_save_LIBS
12075 fi
12076 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12077 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12078 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_LIBXMU 1
12081 _ACEOF
12082
12083 LIBS="-lXmu $LIBS"
12084
12085 fi
12086
12087 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12088 fi
12089
12090 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12091 if test "${HAVE_X11}" = "yes"; then
12092 if test "${USE_X_TOOLKIT}" != "none"; then
12093
12094 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12095 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12096 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099 ac_check_lib_save_LIBS=$LIBS
12100 LIBS="-lXext $LIBS"
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h. */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107
12108 /* Override any GCC internal prototype to avoid an error.
12109 Use char because int might match the return type of a GCC
12110 builtin and then its argument prototype would still apply. */
12111 #ifdef __cplusplus
12112 extern "C"
12113 #endif
12114 char XShapeQueryExtension ();
12115 int
12116 main ()
12117 {
12118 return XShapeQueryExtension ();
12119 ;
12120 return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128 esac
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_link") 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest$ac_exeext &&
12140 $as_test_x conftest$ac_exeext; then
12141 ac_cv_lib_Xext_XShapeQueryExtension=yes
12142 else
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 ac_cv_lib_Xext_XShapeQueryExtension=no
12147 fi
12148
12149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150 conftest$ac_exeext conftest.$ac_ext
12151 LIBS=$ac_check_lib_save_LIBS
12152 fi
12153 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12154 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12155 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12156 cat >>confdefs.h <<_ACEOF
12157 #define HAVE_LIBXEXT 1
12158 _ACEOF
12159
12160 LIBS="-lXext $LIBS"
12161
12162 fi
12163
12164 fi
12165 fi
12166
12167 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12168 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12169 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12170 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 else
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h. */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179 #include <Xm/Xm.h>
12180 int
12181 main ()
12182 {
12183 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12184 int x = 5;
12185 #else
12186 Motif version prior to 2.1.
12187 #endif
12188 ;
12189 return 0;
12190 }
12191 _ACEOF
12192 rm -f conftest.$ac_objext
12193 if { (ac_try="$ac_compile"
12194 case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197 esac
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_compile") 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } && {
12206 test -z "$ac_c_werror_flag" ||
12207 test ! -s conftest.err
12208 } && test -s conftest.$ac_objext; then
12209 emacs_cv_motif_version_2_1=yes
12210 else
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12213
12214 emacs_cv_motif_version_2_1=no
12215 fi
12216
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218 fi
12219 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12220 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12221 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12222 if test $emacs_cv_motif_version_2_1 = yes; then
12223 HAVE_LIBXP=no
12224
12225 cat >>confdefs.h <<\_ACEOF
12226 #define HAVE_MOTIF_2_1 1
12227 _ACEOF
12228
12229 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12230 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12231 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234 ac_check_lib_save_LIBS=$LIBS
12235 LIBS="-lXp $LIBS"
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 char XpCreateContext ();
12250 int
12251 main ()
12252 {
12253 return XpCreateContext ();
12254 ;
12255 return 0;
12256 }
12257 _ACEOF
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_link") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest$ac_exeext &&
12275 $as_test_x conftest$ac_exeext; then
12276 ac_cv_lib_Xp_XpCreateContext=yes
12277 else
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12280
12281 ac_cv_lib_Xp_XpCreateContext=no
12282 fi
12283
12284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12285 conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12287 fi
12288 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12289 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12290 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12291 HAVE_LIBXP=yes
12292 fi
12293
12294 if test ${HAVE_LIBXP} = yes; then
12295
12296 cat >>confdefs.h <<\_ACEOF
12297 #define HAVE_LIBXP 1
12298 _ACEOF
12299
12300 fi
12301 else
12302 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12303 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12304 if test "${emacs_cv_lesstif+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307 # We put this in CFLAGS temporarily to precede other -I options
12308 # that might be in CFLAGS temporarily.
12309 # We put this in CPPFLAGS where it precedes the other -I options.
12310 OLD_CPPFLAGS=$CPPFLAGS
12311 OLD_CFLAGS=$CFLAGS
12312 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12313 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12321 int
12322 main ()
12323 {
12324 int x = 5;
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (ac_try="$ac_compile"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_compile") 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest.$ac_objext; then
12346 emacs_cv_lesstif=yes
12347 else
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12350
12351 emacs_cv_lesstif=no
12352 fi
12353
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12355 fi
12356 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12357 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12358 if test $emacs_cv_lesstif = yes; then
12359 # Make sure this -I option remains in CPPFLAGS after it is set
12360 # back to REAL_CPPFLAGS.
12361 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12362 # have those other -I options anyway. Ultimately, having this
12363 # directory ultimately in CPPFLAGS will be enough.
12364 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12365 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12366 else
12367 CFLAGS=$OLD_CFLAGS
12368 CPPFLAGS=$OLD_CPPFLAGS
12369 fi
12370 fi
12371 fi
12372
12373
12374
12375 USE_TOOLKIT_SCROLL_BARS=no
12376 if test "${with_toolkit_scroll_bars}" != "no"; then
12377 if test "${USE_X_TOOLKIT}" != "none"; then
12378 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define USE_TOOLKIT_SCROLL_BARS 1
12381 _ACEOF
12382
12383 HAVE_XAW3D=no
12384 USE_TOOLKIT_SCROLL_BARS=yes
12385 elif test "${HAVE_XAW3D}" = "yes"; then
12386 cat >>confdefs.h <<\_ACEOF
12387 #define USE_TOOLKIT_SCROLL_BARS 1
12388 _ACEOF
12389
12390 USE_TOOLKIT_SCROLL_BARS=yes
12391 fi
12392 elif test "${HAVE_GTK}" = "yes"; then
12393 cat >>confdefs.h <<\_ACEOF
12394 #define USE_TOOLKIT_SCROLL_BARS 1
12395 _ACEOF
12396
12397 USE_TOOLKIT_SCROLL_BARS=yes
12398 elif test "${HAVE_NS}" = "yes"; then
12399 cat >>confdefs.h <<\_ACEOF
12400 #define USE_TOOLKIT_SCROLL_BARS 1
12401 _ACEOF
12402
12403 USE_TOOLKIT_SCROLL_BARS=yes
12404 fi
12405 fi
12406
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413
12414 #include <X11/Xlib.h>
12415 #include <X11/Xresource.h>
12416 int
12417 main ()
12418 {
12419 XIMProc callback;
12420 ;
12421 return 0;
12422 }
12423 _ACEOF
12424 rm -f conftest.$ac_objext
12425 if { (ac_try="$ac_compile"
12426 case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_compile") 2>conftest.er1
12432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest.$ac_objext; then
12441 HAVE_XIM=yes
12442
12443 cat >>confdefs.h <<\_ACEOF
12444 #define HAVE_XIM 1
12445 _ACEOF
12446
12447 else
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12450
12451 HAVE_XIM=no
12452 fi
12453
12454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455
12456
12457 if test "${with_xim}" != "no"; then
12458
12459 cat >>confdefs.h <<\_ACEOF
12460 #define USE_XIM 1
12461 _ACEOF
12462
12463 fi
12464
12465
12466 if test "${HAVE_XIM}" != "no"; then
12467 late_CFLAGS=$CFLAGS
12468 if test "$GCC" = yes; then
12469 CFLAGS="$CFLAGS --pedantic-errors"
12470 fi
12471 cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h. */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12477
12478 #include <X11/Xlib.h>
12479 #include <X11/Xresource.h>
12480 int
12481 main ()
12482 {
12483 Display *display;
12484 XrmDatabase db;
12485 char *res_name;
12486 char *res_class;
12487 XIMProc callback;
12488 XPointer *client_data;
12489 #ifndef __GNUC__
12490 /* If we're not using GCC, it's probably not XFree86, and this is
12491 probably right, but we can't use something like --pedantic-errors. */
12492 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12493 char*, XIMProc, XPointer*);
12494 #endif
12495 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12496 client_data);
12497 ;
12498 return 0;
12499 }
12500 _ACEOF
12501 rm -f conftest.$ac_objext
12502 if { (ac_try="$ac_compile"
12503 case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506 esac
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_compile") 2>conftest.er1
12509 ac_status=$?
12510 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest.$ac_objext; then
12518 emacs_cv_arg6_star=yes
12519 else
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523
12524 fi
12525
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527
12528 if test "$emacs_cv_arg6_star" = yes; then
12529 cat >>confdefs.h <<\_ACEOF
12530 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12531 _ACEOF
12532
12533 else
12534 cat >>confdefs.h <<\_ACEOF
12535 #define XRegisterIMInstantiateCallback_arg6 XPointer
12536 _ACEOF
12537
12538 fi
12539 CFLAGS=$late_CFLAGS
12540 fi
12541
12542 ### Start of font-backend section.
12543
12544 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12545 HAVE_XFT=maybe
12546 if test "x${with_freetype}" = "xno"; then
12547 with_xft="no";
12548 fi
12549 if test "x${with_xft}" != "xno"; then
12550
12551
12552 succeeded=no
12553
12554 # Extract the first word of "pkg-config", so it can be a program name with args.
12555 set dummy pkg-config; ac_word=$2
12556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12558 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561 case $PKG_CONFIG in
12562 [\\/]* | ?:[\\/]*)
12563 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12564 ;;
12565 *)
12566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567 for as_dir in $PATH
12568 do
12569 IFS=$as_save_IFS
12570 test -z "$as_dir" && as_dir=.
12571 for ac_exec_ext in '' $ac_executable_extensions; do
12572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12573 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12575 break 2
12576 fi
12577 done
12578 done
12579 IFS=$as_save_IFS
12580
12581 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12582 ;;
12583 esac
12584 fi
12585 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12586 if test -n "$PKG_CONFIG"; then
12587 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12588 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12589 else
12590 { echo "$as_me:$LINENO: result: no" >&5
12591 echo "${ECHO_T}no" >&6; }
12592 fi
12593
12594
12595
12596 if test "$PKG_CONFIG" = "no" ; then
12597 HAVE_XFT=no
12598 else
12599 PKG_CONFIG_MIN_VERSION=0.9.0
12600 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12601 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12602 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12603
12604 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12605 { echo "$as_me:$LINENO: result: yes" >&5
12606 echo "${ECHO_T}yes" >&6; }
12607 succeeded=yes
12608
12609 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12610 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12611 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12612 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12613 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12614
12615 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12616 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12617 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12618 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12619 echo "${ECHO_T}$XFT_LIBS" >&6; }
12620 else
12621 { echo "$as_me:$LINENO: result: no" >&5
12622 echo "${ECHO_T}no" >&6; }
12623 XFT_CFLAGS=""
12624 XFT_LIBS=""
12625 ## If we have a custom action on failure, don't print errors, but
12626 ## do set a variable so people can do so.
12627 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12628
12629 fi
12630
12631
12632
12633 else
12634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12636 fi
12637 fi
12638
12639 if test $succeeded = yes; then
12640 :
12641 else
12642 HAVE_XFT=no
12643 fi
12644
12645 if test "$HAVE_XFT" != no; then
12646 OLD_CPPFLAGS="$CPPFLAGS"
12647 OLD_CFLAGS="$CFLAGS"
12648 OLD_LIBS="$LIBS"
12649 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12650 CFLAGS="$CFLAGS $XFT_CFLAGS"
12651 LIBS="$XFT_LIBS $LIBS"
12652 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12653 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12654 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12655 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 fi
12658 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12659 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12660 else
12661 # Is the header compilable?
12662 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12663 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12664 cat >conftest.$ac_ext <<_ACEOF
12665 /* confdefs.h. */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12671 #include <X11/Xft/Xft.h>
12672 _ACEOF
12673 rm -f conftest.$ac_objext
12674 if { (ac_try="$ac_compile"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
12690 ac_header_compiler=yes
12691 else
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 ac_header_compiler=no
12696 fi
12697
12698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700 echo "${ECHO_T}$ac_header_compiler" >&6; }
12701
12702 # Is the header present?
12703 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12704 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include <X11/Xft/Xft.h>
12712 _ACEOF
12713 if { (ac_try="$ac_cpp conftest.$ac_ext"
12714 case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12717 esac
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12720 ac_status=$?
12721 grep -v '^ *+' conftest.er1 >conftest.err
12722 rm -f conftest.er1
12723 cat conftest.err >&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } >/dev/null && {
12726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12727 test ! -s conftest.err
12728 }; then
12729 ac_header_preproc=yes
12730 else
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734 ac_header_preproc=no
12735 fi
12736
12737 rm -f conftest.err conftest.$ac_ext
12738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12739 echo "${ECHO_T}$ac_header_preproc" >&6; }
12740
12741 # So? What about this header?
12742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12743 yes:no: )
12744 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12745 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12747 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12748 ac_header_preproc=yes
12749 ;;
12750 no:yes:* )
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12760 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12762 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12763
12764 ;;
12765 esac
12766 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12767 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12768 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 else
12771 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12772 fi
12773 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12774 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12775
12776 fi
12777 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12778 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12779 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12780 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 else
12783 ac_check_lib_save_LIBS=$LIBS
12784 LIBS="-lXft $XFT_LIBS $LIBS"
12785 cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h. */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12795 #ifdef __cplusplus
12796 extern "C"
12797 #endif
12798 char XftFontOpen ();
12799 int
12800 main ()
12801 {
12802 return XftFontOpen ();
12803 ;
12804 return 0;
12805 }
12806 _ACEOF
12807 rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (ac_try="$ac_link"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_link") 2>conftest.er1
12815 ac_status=$?
12816 grep -v '^ *+' conftest.er1 >conftest.err
12817 rm -f conftest.er1
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } && {
12821 test -z "$ac_c_werror_flag" ||
12822 test ! -s conftest.err
12823 } && test -s conftest$ac_exeext &&
12824 $as_test_x conftest$ac_exeext; then
12825 ac_cv_lib_Xft_XftFontOpen=yes
12826 else
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830 ac_cv_lib_Xft_XftFontOpen=no
12831 fi
12832
12833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12834 conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12836 fi
12837 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12838 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12839 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12840 HAVE_XFT=yes
12841 fi
12842
12843 fi
12844
12845
12846
12847 if test "${HAVE_XFT}" = "yes"; then
12848
12849 cat >>confdefs.h <<\_ACEOF
12850 #define HAVE_XFT 1
12851 _ACEOF
12852
12853
12854 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12855 else
12856 CPPFLAGS="$OLD_CPPFLAGS"
12857 CFLAGS="$OLD_CFLAGS"
12858 LIBS="$OLD_LIBS"
12859 fi # "${HAVE_XFT}" = "yes"
12860 fi # "$HAVE_XFT" != no
12861 fi # "x${with_xft}" != "xno"
12862
12863 if test "$HAVE_XFT" != "yes"; then
12864 HAVE_XFT=no
12865 fi
12866
12867
12868 HAVE_FREETYPE=no
12869 ### Use -lfreetype if available, unless `--with-freetype=no'.
12870 if test "${HAVE_XFT}" = "yes"; then
12871 HAVE_FREETYPE=yes
12872 elif test "x${with_freetype}" != "xno"; then
12873
12874
12875 succeeded=no
12876
12877 # Extract the first word of "pkg-config", so it can be a program name with args.
12878 set dummy pkg-config; ac_word=$2
12879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12881 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 case $PKG_CONFIG in
12885 [\\/]* | ?:[\\/]*)
12886 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12887 ;;
12888 *)
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12891 do
12892 IFS=$as_save_IFS
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12896 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12898 break 2
12899 fi
12900 done
12901 done
12902 IFS=$as_save_IFS
12903
12904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12905 ;;
12906 esac
12907 fi
12908 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12909 if test -n "$PKG_CONFIG"; then
12910 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12911 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12912 else
12913 { echo "$as_me:$LINENO: result: no" >&5
12914 echo "${ECHO_T}no" >&6; }
12915 fi
12916
12917
12918
12919 if test "$PKG_CONFIG" = "no" ; then
12920 HAVE_FREETYPE=no
12921 else
12922 PKG_CONFIG_MIN_VERSION=0.9.0
12923 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12924 { echo "$as_me:$LINENO: checking for freetype2" >&5
12925 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12926
12927 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12928 { echo "$as_me:$LINENO: result: yes" >&5
12929 echo "${ECHO_T}yes" >&6; }
12930 succeeded=yes
12931
12932 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12933 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12934 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12935 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12936 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12937
12938 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12939 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12940 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12941 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12942 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12943 else
12944 { echo "$as_me:$LINENO: result: no" >&5
12945 echo "${ECHO_T}no" >&6; }
12946 FREETYPE_CFLAGS=""
12947 FREETYPE_LIBS=""
12948 ## If we have a custom action on failure, don't print errors, but
12949 ## do set a variable so people can do so.
12950 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12951
12952 fi
12953
12954
12955
12956 else
12957 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12958 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12959 fi
12960 fi
12961
12962 if test $succeeded = yes; then
12963 HAVE_FREETYPE=yes
12964 else
12965 HAVE_FREETYPE=no
12966 fi
12967
12968 if test "${HAVE_FREETYPE}" = "yes"; then
12969
12970 succeeded=no
12971
12972 # Extract the first word of "pkg-config", so it can be a program name with args.
12973 set dummy pkg-config; ac_word=$2
12974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12976 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979 case $PKG_CONFIG in
12980 [\\/]* | ?:[\\/]*)
12981 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12982 ;;
12983 *)
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985 for as_dir in $PATH
12986 do
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12991 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 break 2
12994 fi
12995 done
12996 done
12997 IFS=$as_save_IFS
12998
12999 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13000 ;;
13001 esac
13002 fi
13003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13004 if test -n "$PKG_CONFIG"; then
13005 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13006 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13007 else
13008 { echo "$as_me:$LINENO: result: no" >&5
13009 echo "${ECHO_T}no" >&6; }
13010 fi
13011
13012
13013
13014 if test "$PKG_CONFIG" = "no" ; then
13015 HAVE_FC=no
13016 else
13017 PKG_CONFIG_MIN_VERSION=0.9.0
13018 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13019 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13020 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13021
13022 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13023 { echo "$as_me:$LINENO: result: yes" >&5
13024 echo "${ECHO_T}yes" >&6; }
13025 succeeded=yes
13026
13027 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13028 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13029 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13030 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13031 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13032
13033 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13034 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13035 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13036 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13037 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13038 else
13039 { echo "$as_me:$LINENO: result: no" >&5
13040 echo "${ECHO_T}no" >&6; }
13041 FONTCONFIG_CFLAGS=""
13042 FONTCONFIG_LIBS=""
13043 ## If we have a custom action on failure, don't print errors, but
13044 ## do set a variable so people can do so.
13045 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13046
13047 fi
13048
13049
13050
13051 else
13052 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13053 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13054 fi
13055 fi
13056
13057 if test $succeeded = yes; then
13058 HAVE_FC=yes
13059 else
13060 HAVE_FC=no
13061 fi
13062
13063 if test "${HAVE_FC}" = "no"; then
13064 HAVE_FREETYPE=no
13065 fi
13066 fi
13067 fi
13068
13069 HAVE_LIBOTF=no
13070 if test "${HAVE_FREETYPE}" = "yes"; then
13071
13072 cat >>confdefs.h <<\_ACEOF
13073 #define HAVE_FREETYPE 1
13074 _ACEOF
13075
13076 if test "${with_libotf}" != "no"; then
13077
13078 succeeded=no
13079
13080 # Extract the first word of "pkg-config", so it can be a program name with args.
13081 set dummy pkg-config; ac_word=$2
13082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13084 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087 case $PKG_CONFIG in
13088 [\\/]* | ?:[\\/]*)
13089 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13090 ;;
13091 *)
13092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093 for as_dir in $PATH
13094 do
13095 IFS=$as_save_IFS
13096 test -z "$as_dir" && as_dir=.
13097 for ac_exec_ext in '' $ac_executable_extensions; do
13098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13099 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13101 break 2
13102 fi
13103 done
13104 done
13105 IFS=$as_save_IFS
13106
13107 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13108 ;;
13109 esac
13110 fi
13111 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13112 if test -n "$PKG_CONFIG"; then
13113 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13114 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13115 else
13116 { echo "$as_me:$LINENO: result: no" >&5
13117 echo "${ECHO_T}no" >&6; }
13118 fi
13119
13120
13121
13122 if test "$PKG_CONFIG" = "no" ; then
13123 HAVE_LIBOTF=no
13124 else
13125 PKG_CONFIG_MIN_VERSION=0.9.0
13126 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13127 { echo "$as_me:$LINENO: checking for libotf" >&5
13128 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13129
13130 if $PKG_CONFIG --exists "libotf" 2>&5; then
13131 { echo "$as_me:$LINENO: result: yes" >&5
13132 echo "${ECHO_T}yes" >&6; }
13133 succeeded=yes
13134
13135 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13136 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13137 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13138 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13139 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13140
13141 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13142 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13143 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13144 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13145 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13146 else
13147 { echo "$as_me:$LINENO: result: no" >&5
13148 echo "${ECHO_T}no" >&6; }
13149 LIBOTF_CFLAGS=""
13150 LIBOTF_LIBS=""
13151 ## If we have a custom action on failure, don't print errors, but
13152 ## do set a variable so people can do so.
13153 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13154
13155 fi
13156
13157
13158
13159 else
13160 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13161 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13162 fi
13163 fi
13164
13165 if test $succeeded = yes; then
13166 HAVE_LIBOTF=yes
13167 else
13168 HAVE_LIBOTF=no
13169 fi
13170
13171 if test "$HAVE_LIBOTF" = "yes"; then
13172
13173 cat >>confdefs.h <<\_ACEOF
13174 #define HAVE_LIBOTF 1
13175 _ACEOF
13176
13177 fi
13178 fi
13179 fi
13180
13181 HAVE_M17N_FLT=no
13182 if test "${with_m17n_flt}" != "no"; then
13183
13184 succeeded=no
13185
13186 # Extract the first word of "pkg-config", so it can be a program name with args.
13187 set dummy pkg-config; ac_word=$2
13188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13190 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193 case $PKG_CONFIG in
13194 [\\/]* | ?:[\\/]*)
13195 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13196 ;;
13197 *)
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13200 do
13201 IFS=$as_save_IFS
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13205 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13207 break 2
13208 fi
13209 done
13210 done
13211 IFS=$as_save_IFS
13212
13213 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13214 ;;
13215 esac
13216 fi
13217 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13218 if test -n "$PKG_CONFIG"; then
13219 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13220 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13221 else
13222 { echo "$as_me:$LINENO: result: no" >&5
13223 echo "${ECHO_T}no" >&6; }
13224 fi
13225
13226
13227
13228 if test "$PKG_CONFIG" = "no" ; then
13229 HAVE_M17N_FLT=no
13230 else
13231 PKG_CONFIG_MIN_VERSION=0.9.0
13232 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13233 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13234 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13235
13236 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13237 { echo "$as_me:$LINENO: result: yes" >&5
13238 echo "${ECHO_T}yes" >&6; }
13239 succeeded=yes
13240
13241 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13242 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13243 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13244 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13245 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13246
13247 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13248 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13249 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13250 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13251 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13252 else
13253 { echo "$as_me:$LINENO: result: no" >&5
13254 echo "${ECHO_T}no" >&6; }
13255 M17N_FLT_CFLAGS=""
13256 M17N_FLT_LIBS=""
13257 ## If we have a custom action on failure, don't print errors, but
13258 ## do set a variable so people can do so.
13259 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13260
13261 fi
13262
13263
13264
13265 else
13266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13268 fi
13269 fi
13270
13271 if test $succeeded = yes; then
13272 HAVE_M17N_FLT=yes
13273 else
13274 HAVE_M17N_FLT=no
13275 fi
13276
13277 if test "$HAVE_M17N_FLT" = "yes"; then
13278
13279 cat >>confdefs.h <<\_ACEOF
13280 #define HAVE_M17N_FLT 1
13281 _ACEOF
13282
13283 fi
13284 fi
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295 ### End of font-backend section.
13296
13297 ### Use -lXpm if available, unless `--with-xpm=no'.
13298 HAVE_XPM=no
13299 if test "${HAVE_X11}" = "yes"; then
13300 if test "${with_xpm}" != "no"; then
13301 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13302 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13303 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13304 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 fi
13307 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13308 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13309 else
13310 # Is the header compilable?
13311 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13312 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 $ac_includes_default
13320 #include <X11/xpm.h>
13321 _ACEOF
13322 rm -f conftest.$ac_objext
13323 if { (ac_try="$ac_compile"
13324 case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_compile") 2>conftest.er1
13330 ac_status=$?
13331 grep -v '^ *+' conftest.er1 >conftest.err
13332 rm -f conftest.er1
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } && {
13336 test -z "$ac_c_werror_flag" ||
13337 test ! -s conftest.err
13338 } && test -s conftest.$ac_objext; then
13339 ac_header_compiler=yes
13340 else
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13343
13344 ac_header_compiler=no
13345 fi
13346
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13349 echo "${ECHO_T}$ac_header_compiler" >&6; }
13350
13351 # Is the header present?
13352 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13353 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13354 cat >conftest.$ac_ext <<_ACEOF
13355 /* confdefs.h. */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13360 #include <X11/xpm.h>
13361 _ACEOF
13362 if { (ac_try="$ac_cpp conftest.$ac_ext"
13363 case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13366 esac
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13369 ac_status=$?
13370 grep -v '^ *+' conftest.er1 >conftest.err
13371 rm -f conftest.er1
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } >/dev/null && {
13375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13376 test ! -s conftest.err
13377 }; then
13378 ac_header_preproc=yes
13379 else
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383 ac_header_preproc=no
13384 fi
13385
13386 rm -f conftest.err conftest.$ac_ext
13387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13388 echo "${ECHO_T}$ac_header_preproc" >&6; }
13389
13390 # So? What about this header?
13391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13392 yes:no: )
13393 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13394 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13395 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13396 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13397 ac_header_preproc=yes
13398 ;;
13399 no:yes:* )
13400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13401 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13407 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13409 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13411 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13412
13413 ;;
13414 esac
13415 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13416 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13417 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 else
13420 ac_cv_header_X11_xpm_h=$ac_header_preproc
13421 fi
13422 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13423 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13424
13425 fi
13426 if test $ac_cv_header_X11_xpm_h = yes; then
13427 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13428 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13429 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432 ac_check_lib_save_LIBS=$LIBS
13433 LIBS="-lXpm -lX11 $LIBS"
13434 cat >conftest.$ac_ext <<_ACEOF
13435 /* confdefs.h. */
13436 _ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440
13441 /* Override any GCC internal prototype to avoid an error.
13442 Use char because int might match the return type of a GCC
13443 builtin and then its argument prototype would still apply. */
13444 #ifdef __cplusplus
13445 extern "C"
13446 #endif
13447 char XpmReadFileToPixmap ();
13448 int
13449 main ()
13450 {
13451 return XpmReadFileToPixmap ();
13452 ;
13453 return 0;
13454 }
13455 _ACEOF
13456 rm -f conftest.$ac_objext conftest$ac_exeext
13457 if { (ac_try="$ac_link"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>conftest.er1
13464 ac_status=$?
13465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest$ac_exeext &&
13473 $as_test_x conftest$ac_exeext; then
13474 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13475 else
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13478
13479 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13480 fi
13481
13482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13483 conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13485 fi
13486 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13487 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13488 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13489 HAVE_XPM=yes
13490 fi
13491
13492 fi
13493
13494
13495 if test "${HAVE_XPM}" = "yes"; then
13496 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13497 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h. */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 #include "X11/xpm.h"
13505 #ifndef XpmReturnAllocPixels
13506 no_return_alloc_pixels
13507 #endif
13508
13509 _ACEOF
13510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13511 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13512 HAVE_XPM=no
13513 else
13514 HAVE_XPM=yes
13515 fi
13516 rm -f conftest*
13517
13518
13519 if test "${HAVE_XPM}" = "yes"; then
13520 { echo "$as_me:$LINENO: result: yes" >&5
13521 echo "${ECHO_T}yes" >&6; }
13522 else
13523 { echo "$as_me:$LINENO: result: no" >&5
13524 echo "${ECHO_T}no" >&6; }
13525 fi
13526 fi
13527 fi
13528
13529 if test "${HAVE_XPM}" = "yes"; then
13530
13531 cat >>confdefs.h <<\_ACEOF
13532 #define HAVE_XPM 1
13533 _ACEOF
13534
13535 fi
13536 fi
13537
13538 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13539 HAVE_JPEG=no
13540 if test "${HAVE_X11}" = "yes"; then
13541 if test "${with_jpeg}" != "no"; then
13542 if test "${ac_cv_header_jerror_h+set}" = set; then
13543 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13544 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13545 if test "${ac_cv_header_jerror_h+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13547 fi
13548 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13549 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13550 else
13551 # Is the header compilable?
13552 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13553 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13561 #include <jerror.h>
13562 _ACEOF
13563 rm -f conftest.$ac_objext
13564 if { (ac_try="$ac_compile"
13565 case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_compile") 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } && {
13577 test -z "$ac_c_werror_flag" ||
13578 test ! -s conftest.err
13579 } && test -s conftest.$ac_objext; then
13580 ac_header_compiler=yes
13581 else
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13584
13585 ac_header_compiler=no
13586 fi
13587
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13590 echo "${ECHO_T}$ac_header_compiler" >&6; }
13591
13592 # Is the header present?
13593 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13594 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13595 cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h. */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 #include <jerror.h>
13602 _ACEOF
13603 if { (ac_try="$ac_cpp conftest.$ac_ext"
13604 case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607 esac
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13610 ac_status=$?
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } >/dev/null && {
13616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13617 test ! -s conftest.err
13618 }; then
13619 ac_header_preproc=yes
13620 else
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13623
13624 ac_header_preproc=no
13625 fi
13626
13627 rm -f conftest.err conftest.$ac_ext
13628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13629 echo "${ECHO_T}$ac_header_preproc" >&6; }
13630
13631 # So? What about this header?
13632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13633 yes:no: )
13634 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13635 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13637 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13638 ac_header_preproc=yes
13639 ;;
13640 no:yes:* )
13641 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13642 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13644 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13646 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13648 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13650 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13652 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13653
13654 ;;
13655 esac
13656 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13657 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13658 if test "${ac_cv_header_jerror_h+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661 ac_cv_header_jerror_h=$ac_header_preproc
13662 fi
13663 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13664 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13665
13666 fi
13667 if test $ac_cv_header_jerror_h = yes; then
13668 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13669 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13670 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673 ac_check_lib_save_LIBS=$LIBS
13674 LIBS="-ljpeg $LIBS"
13675 cat >conftest.$ac_ext <<_ACEOF
13676 /* confdefs.h. */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681
13682 /* Override any GCC internal prototype to avoid an error.
13683 Use char because int might match the return type of a GCC
13684 builtin and then its argument prototype would still apply. */
13685 #ifdef __cplusplus
13686 extern "C"
13687 #endif
13688 char jpeg_destroy_compress ();
13689 int
13690 main ()
13691 {
13692 return jpeg_destroy_compress ();
13693 ;
13694 return 0;
13695 }
13696 _ACEOF
13697 rm -f conftest.$ac_objext conftest$ac_exeext
13698 if { (ac_try="$ac_link"
13699 case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702 esac
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_link") 2>conftest.er1
13705 ac_status=$?
13706 grep -v '^ *+' conftest.er1 >conftest.err
13707 rm -f conftest.er1
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } && {
13711 test -z "$ac_c_werror_flag" ||
13712 test ! -s conftest.err
13713 } && test -s conftest$ac_exeext &&
13714 $as_test_x conftest$ac_exeext; then
13715 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13716 else
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13719
13720 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13721 fi
13722
13723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13724 conftest$ac_exeext conftest.$ac_ext
13725 LIBS=$ac_check_lib_save_LIBS
13726 fi
13727 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13728 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13729 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13730 HAVE_JPEG=yes
13731 fi
13732
13733 fi
13734
13735
13736 fi
13737
13738
13739 if test "${HAVE_JPEG}" = "yes"; then
13740 cat >>confdefs.h <<\_ACEOF
13741 #define HAVE_JPEG 1
13742 _ACEOF
13743
13744 cat >conftest.$ac_ext <<_ACEOF
13745 /* confdefs.h. */
13746 _ACEOF
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h. */
13750 #include <jpeglib.h>
13751 version=JPEG_LIB_VERSION
13752
13753 _ACEOF
13754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13755 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13756 cat >>confdefs.h <<\_ACEOF
13757 #define HAVE_JPEG 1
13758 _ACEOF
13759
13760 else
13761 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13762 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13763 HAVE_JPEG=no
13764 fi
13765 rm -f conftest*
13766
13767 fi
13768 fi
13769
13770 ### Use -lpng if available, unless `--with-png=no'.
13771 HAVE_PNG=no
13772 if test "${HAVE_X11}" = "yes"; then
13773 if test "${with_png}" != "no"; then
13774 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13775 # in /usr/include/libpng.
13776
13777
13778 for ac_header in png.h libpng/png.h
13779 do
13780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 fi
13787 ac_res=`eval echo '${'$as_ac_Header'}'`
13788 { echo "$as_me:$LINENO: result: $ac_res" >&5
13789 echo "${ECHO_T}$ac_res" >&6; }
13790 else
13791 # Is the header compilable?
13792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13794 cat >conftest.$ac_ext <<_ACEOF
13795 /* confdefs.h. */
13796 _ACEOF
13797 cat confdefs.h >>conftest.$ac_ext
13798 cat >>conftest.$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13800 $ac_includes_default
13801 #include <$ac_header>
13802 _ACEOF
13803 rm -f conftest.$ac_objext
13804 if { (ac_try="$ac_compile"
13805 case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13808 esac
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_compile") 2>conftest.er1
13811 ac_status=$?
13812 grep -v '^ *+' conftest.er1 >conftest.err
13813 rm -f conftest.er1
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } && {
13817 test -z "$ac_c_werror_flag" ||
13818 test ! -s conftest.err
13819 } && test -s conftest.$ac_objext; then
13820 ac_header_compiler=yes
13821 else
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13824
13825 ac_header_compiler=no
13826 fi
13827
13828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13830 echo "${ECHO_T}$ac_header_compiler" >&6; }
13831
13832 # Is the header present?
13833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13835 cat >conftest.$ac_ext <<_ACEOF
13836 /* confdefs.h. */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13841 #include <$ac_header>
13842 _ACEOF
13843 if { (ac_try="$ac_cpp conftest.$ac_ext"
13844 case "(($ac_try" in
13845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846 *) ac_try_echo=$ac_try;;
13847 esac
13848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13850 ac_status=$?
13851 grep -v '^ *+' conftest.er1 >conftest.err
13852 rm -f conftest.er1
13853 cat conftest.err >&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } >/dev/null && {
13856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13857 test ! -s conftest.err
13858 }; then
13859 ac_header_preproc=yes
13860 else
13861 echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.$ac_ext >&5
13863
13864 ac_header_preproc=no
13865 fi
13866
13867 rm -f conftest.err conftest.$ac_ext
13868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13869 echo "${ECHO_T}$ac_header_preproc" >&6; }
13870
13871 # So? What about this header?
13872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13873 yes:no: )
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13878 ac_header_preproc=yes
13879 ;;
13880 no:yes:* )
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13893
13894 ;;
13895 esac
13896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 else
13901 eval "$as_ac_Header=\$ac_header_preproc"
13902 fi
13903 ac_res=`eval echo '${'$as_ac_Header'}'`
13904 { echo "$as_me:$LINENO: result: $ac_res" >&5
13905 echo "${ECHO_T}$ac_res" >&6; }
13906
13907 fi
13908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13909 cat >>confdefs.h <<_ACEOF
13910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13911 _ACEOF
13912
13913 fi
13914
13915 done
13916
13917 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13918 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13919 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13920 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923 ac_check_lib_save_LIBS=$LIBS
13924 LIBS="-lpng -lz -lm $LIBS"
13925 cat >conftest.$ac_ext <<_ACEOF
13926 /* confdefs.h. */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931
13932 /* Override any GCC internal prototype to avoid an error.
13933 Use char because int might match the return type of a GCC
13934 builtin and then its argument prototype would still apply. */
13935 #ifdef __cplusplus
13936 extern "C"
13937 #endif
13938 char png_get_channels ();
13939 int
13940 main ()
13941 {
13942 return png_get_channels ();
13943 ;
13944 return 0;
13945 }
13946 _ACEOF
13947 rm -f conftest.$ac_objext conftest$ac_exeext
13948 if { (ac_try="$ac_link"
13949 case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952 esac
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_link") 2>conftest.er1
13955 ac_status=$?
13956 grep -v '^ *+' conftest.er1 >conftest.err
13957 rm -f conftest.er1
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest$ac_exeext &&
13964 $as_test_x conftest$ac_exeext; then
13965 ac_cv_lib_png_png_get_channels=yes
13966 else
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 ac_cv_lib_png_png_get_channels=no
13971 fi
13972
13973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13974 conftest$ac_exeext conftest.$ac_ext
13975 LIBS=$ac_check_lib_save_LIBS
13976 fi
13977 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13978 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13979 if test $ac_cv_lib_png_png_get_channels = yes; then
13980 HAVE_PNG=yes
13981 fi
13982
13983 fi
13984 fi
13985
13986 if test "${HAVE_PNG}" = "yes"; then
13987
13988 cat >>confdefs.h <<\_ACEOF
13989 #define HAVE_PNG 1
13990 _ACEOF
13991
13992 fi
13993 fi
13994
13995 ### Use -ltiff if available, unless `--with-tiff=no'.
13996 HAVE_TIFF=no
13997 if test "${HAVE_X11}" = "yes"; then
13998 if test "${with_tiff}" != "no"; then
13999 if test "${ac_cv_header_tiffio_h+set}" = set; then
14000 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14001 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14002 if test "${ac_cv_header_tiffio_h+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 fi
14005 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14006 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14007 else
14008 # Is the header compilable?
14009 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14010 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14011 cat >conftest.$ac_ext <<_ACEOF
14012 /* confdefs.h. */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017 $ac_includes_default
14018 #include <tiffio.h>
14019 _ACEOF
14020 rm -f conftest.$ac_objext
14021 if { (ac_try="$ac_compile"
14022 case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14025 esac
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027 (eval "$ac_compile") 2>conftest.er1
14028 ac_status=$?
14029 grep -v '^ *+' conftest.er1 >conftest.err
14030 rm -f conftest.er1
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } && {
14034 test -z "$ac_c_werror_flag" ||
14035 test ! -s conftest.err
14036 } && test -s conftest.$ac_objext; then
14037 ac_header_compiler=yes
14038 else
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042 ac_header_compiler=no
14043 fi
14044
14045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14047 echo "${ECHO_T}$ac_header_compiler" >&6; }
14048
14049 # Is the header present?
14050 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14051 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14052 cat >conftest.$ac_ext <<_ACEOF
14053 /* confdefs.h. */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058 #include <tiffio.h>
14059 _ACEOF
14060 if { (ac_try="$ac_cpp conftest.$ac_ext"
14061 case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14064 esac
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14067 ac_status=$?
14068 grep -v '^ *+' conftest.er1 >conftest.err
14069 rm -f conftest.er1
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } >/dev/null && {
14073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14074 test ! -s conftest.err
14075 }; then
14076 ac_header_preproc=yes
14077 else
14078 echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14080
14081 ac_header_preproc=no
14082 fi
14083
14084 rm -f conftest.err conftest.$ac_ext
14085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14086 echo "${ECHO_T}$ac_header_preproc" >&6; }
14087
14088 # So? What about this header?
14089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14090 yes:no: )
14091 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14092 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14094 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14095 ac_header_preproc=yes
14096 ;;
14097 no:yes:* )
14098 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14099 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14101 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14103 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14105 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14107 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14109 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14110
14111 ;;
14112 esac
14113 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14114 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14115 if test "${ac_cv_header_tiffio_h+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 else
14118 ac_cv_header_tiffio_h=$ac_header_preproc
14119 fi
14120 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14121 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14122
14123 fi
14124 if test $ac_cv_header_tiffio_h = yes; then
14125 tifflibs="-lz -lm"
14126 # At least one tiff package requires the jpeg library.
14127 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14128 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14129 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14130 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 ac_check_lib_save_LIBS=$LIBS
14134 LIBS="-ltiff $tifflibs $LIBS"
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h. */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141
14142 /* Override any GCC internal prototype to avoid an error.
14143 Use char because int might match the return type of a GCC
14144 builtin and then its argument prototype would still apply. */
14145 #ifdef __cplusplus
14146 extern "C"
14147 #endif
14148 char TIFFGetVersion ();
14149 int
14150 main ()
14151 {
14152 return TIFFGetVersion ();
14153 ;
14154 return 0;
14155 }
14156 _ACEOF
14157 rm -f conftest.$ac_objext conftest$ac_exeext
14158 if { (ac_try="$ac_link"
14159 case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_link") 2>conftest.er1
14165 ac_status=$?
14166 grep -v '^ *+' conftest.er1 >conftest.err
14167 rm -f conftest.er1
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } && {
14171 test -z "$ac_c_werror_flag" ||
14172 test ! -s conftest.err
14173 } && test -s conftest$ac_exeext &&
14174 $as_test_x conftest$ac_exeext; then
14175 ac_cv_lib_tiff_TIFFGetVersion=yes
14176 else
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14179
14180 ac_cv_lib_tiff_TIFFGetVersion=no
14181 fi
14182
14183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14184 conftest$ac_exeext conftest.$ac_ext
14185 LIBS=$ac_check_lib_save_LIBS
14186 fi
14187 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14188 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14189 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14190 HAVE_TIFF=yes
14191 fi
14192
14193 fi
14194
14195
14196 fi
14197
14198 if test "${HAVE_TIFF}" = "yes"; then
14199
14200 cat >>confdefs.h <<\_ACEOF
14201 #define HAVE_TIFF 1
14202 _ACEOF
14203
14204 fi
14205 fi
14206
14207 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14208 HAVE_GIF=no
14209 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14210 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14211 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14212 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14213 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 fi
14216 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14217 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14218 else
14219 # Is the header compilable?
14220 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14221 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 $ac_includes_default
14229 #include <gif_lib.h>
14230 _ACEOF
14231 rm -f conftest.$ac_objext
14232 if { (ac_try="$ac_compile"
14233 case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14236 esac
14237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238 (eval "$ac_compile") 2>conftest.er1
14239 ac_status=$?
14240 grep -v '^ *+' conftest.er1 >conftest.err
14241 rm -f conftest.er1
14242 cat conftest.err >&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } && {
14245 test -z "$ac_c_werror_flag" ||
14246 test ! -s conftest.err
14247 } && test -s conftest.$ac_objext; then
14248 ac_header_compiler=yes
14249 else
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14252
14253 ac_header_compiler=no
14254 fi
14255
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14258 echo "${ECHO_T}$ac_header_compiler" >&6; }
14259
14260 # Is the header present?
14261 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14262 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14263 cat >conftest.$ac_ext <<_ACEOF
14264 /* confdefs.h. */
14265 _ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 #include <gif_lib.h>
14270 _ACEOF
14271 if { (ac_try="$ac_cpp conftest.$ac_ext"
14272 case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14275 esac
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14278 ac_status=$?
14279 grep -v '^ *+' conftest.er1 >conftest.err
14280 rm -f conftest.er1
14281 cat conftest.err >&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } >/dev/null && {
14284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14285 test ! -s conftest.err
14286 }; then
14287 ac_header_preproc=yes
14288 else
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292 ac_header_preproc=no
14293 fi
14294
14295 rm -f conftest.err conftest.$ac_ext
14296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14297 echo "${ECHO_T}$ac_header_preproc" >&6; }
14298
14299 # So? What about this header?
14300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14301 yes:no: )
14302 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14303 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14305 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14306 ac_header_preproc=yes
14307 ;;
14308 no:yes:* )
14309 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14310 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14312 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14314 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14316 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14318 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14320 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14321
14322 ;;
14323 esac
14324 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14325 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14326 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14328 else
14329 ac_cv_header_gif_lib_h=$ac_header_preproc
14330 fi
14331 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14332 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14333
14334 fi
14335 if test $ac_cv_header_gif_lib_h = yes; then
14336 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14337 # Earlier versions can crash Emacs.
14338 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14339 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14340 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343 ac_check_lib_save_LIBS=$LIBS
14344 LIBS="-lgif $LIBS"
14345 cat >conftest.$ac_ext <<_ACEOF
14346 /* confdefs.h. */
14347 _ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351
14352 /* Override any GCC internal prototype to avoid an error.
14353 Use char because int might match the return type of a GCC
14354 builtin and then its argument prototype would still apply. */
14355 #ifdef __cplusplus
14356 extern "C"
14357 #endif
14358 char EGifPutExtensionLast ();
14359 int
14360 main ()
14361 {
14362 return EGifPutExtensionLast ();
14363 ;
14364 return 0;
14365 }
14366 _ACEOF
14367 rm -f conftest.$ac_objext conftest$ac_exeext
14368 if { (ac_try="$ac_link"
14369 case "(($ac_try" in
14370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14371 *) ac_try_echo=$ac_try;;
14372 esac
14373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14374 (eval "$ac_link") 2>conftest.er1
14375 ac_status=$?
14376 grep -v '^ *+' conftest.er1 >conftest.err
14377 rm -f conftest.er1
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } && {
14381 test -z "$ac_c_werror_flag" ||
14382 test ! -s conftest.err
14383 } && test -s conftest$ac_exeext &&
14384 $as_test_x conftest$ac_exeext; then
14385 ac_cv_lib_gif_EGifPutExtensionLast=yes
14386 else
14387 echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14389
14390 ac_cv_lib_gif_EGifPutExtensionLast=no
14391 fi
14392
14393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14394 conftest$ac_exeext conftest.$ac_ext
14395 LIBS=$ac_check_lib_save_LIBS
14396 fi
14397 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14398 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14399 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14400 HAVE_GIF=yes
14401 else
14402 try_libungif=yes
14403 fi
14404
14405 fi
14406
14407
14408
14409 if test "$HAVE_GIF" = yes; then
14410 ac_gif_lib_name="-lgif"
14411 fi
14412
14413 # If gif_lib.h but no libgif, try libungif.
14414 if test x"$try_libungif" = xyes; then
14415 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14416 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14417 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 else
14420 ac_check_lib_save_LIBS=$LIBS
14421 LIBS="-lungif $LIBS"
14422 cat >conftest.$ac_ext <<_ACEOF
14423 /* confdefs.h. */
14424 _ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14428
14429 /* Override any GCC internal prototype to avoid an error.
14430 Use char because int might match the return type of a GCC
14431 builtin and then its argument prototype would still apply. */
14432 #ifdef __cplusplus
14433 extern "C"
14434 #endif
14435 char EGifPutExtensionLast ();
14436 int
14437 main ()
14438 {
14439 return EGifPutExtensionLast ();
14440 ;
14441 return 0;
14442 }
14443 _ACEOF
14444 rm -f conftest.$ac_objext conftest$ac_exeext
14445 if { (ac_try="$ac_link"
14446 case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_link") 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } && {
14458 test -z "$ac_c_werror_flag" ||
14459 test ! -s conftest.err
14460 } && test -s conftest$ac_exeext &&
14461 $as_test_x conftest$ac_exeext; then
14462 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14463 else
14464 echo "$as_me: failed program was:" >&5
14465 sed 's/^/| /' conftest.$ac_ext >&5
14466
14467 ac_cv_lib_ungif_EGifPutExtensionLast=no
14468 fi
14469
14470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14471 conftest$ac_exeext conftest.$ac_ext
14472 LIBS=$ac_check_lib_save_LIBS
14473 fi
14474 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14475 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14476 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14477 HAVE_GIF=yes
14478 fi
14479
14480
14481 if test "$HAVE_GIF" = yes; then
14482
14483 cat >>confdefs.h <<\_ACEOF
14484 #define LIBGIF -lungif
14485 _ACEOF
14486
14487 ac_gif_lib_name="-lungif"
14488 fi
14489 fi
14490
14491 if test "${HAVE_GIF}" = "yes"; then
14492
14493 cat >>confdefs.h <<\_ACEOF
14494 #define HAVE_GIF 1
14495 _ACEOF
14496
14497 fi
14498 fi
14499
14500 if test "${HAVE_X11}" = "yes"; then
14501 MISSING=""
14502 WITH_NO=""
14503 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14504 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14505 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14506 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14507 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14508 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14509 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14510 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14511 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14512 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14513
14514 if test "X${MISSING}" != X; then
14515 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14516 $MISSING
14517 Maybe some development libraries/packages are missing?
14518 If you don't want to link with them give
14519 $WITH_NO
14520 as options to configure" >&5
14521 echo "$as_me: error: The following required libraries were not found:
14522 $MISSING
14523 Maybe some development libraries/packages are missing?
14524 If you don't want to link with them give
14525 $WITH_NO
14526 as options to configure" >&2;}
14527 { (exit 1); exit 1; }; }
14528 fi
14529 fi
14530
14531 ### Use -lgpm if available, unless `--with-gpm=no'.
14532 HAVE_GPM=no
14533 if test "${with_gpm}" != "no"; then
14534 if test "${ac_cv_header_gpm_h+set}" = set; then
14535 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14536 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14537 if test "${ac_cv_header_gpm_h+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 fi
14540 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14541 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14542 else
14543 # Is the header compilable?
14544 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14545 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14546 cat >conftest.$ac_ext <<_ACEOF
14547 /* confdefs.h. */
14548 _ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 $ac_includes_default
14553 #include <gpm.h>
14554 _ACEOF
14555 rm -f conftest.$ac_objext
14556 if { (ac_try="$ac_compile"
14557 case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_compile") 2>conftest.er1
14563 ac_status=$?
14564 grep -v '^ *+' conftest.er1 >conftest.err
14565 rm -f conftest.er1
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } && {
14569 test -z "$ac_c_werror_flag" ||
14570 test ! -s conftest.err
14571 } && test -s conftest.$ac_objext; then
14572 ac_header_compiler=yes
14573 else
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577 ac_header_compiler=no
14578 fi
14579
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14582 echo "${ECHO_T}$ac_header_compiler" >&6; }
14583
14584 # Is the header present?
14585 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14586 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14587 cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h. */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 #include <gpm.h>
14594 _ACEOF
14595 if { (ac_try="$ac_cpp conftest.$ac_ext"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14599 esac
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14602 ac_status=$?
14603 grep -v '^ *+' conftest.er1 >conftest.err
14604 rm -f conftest.er1
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } >/dev/null && {
14608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14609 test ! -s conftest.err
14610 }; then
14611 ac_header_preproc=yes
14612 else
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14615
14616 ac_header_preproc=no
14617 fi
14618
14619 rm -f conftest.err conftest.$ac_ext
14620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14621 echo "${ECHO_T}$ac_header_preproc" >&6; }
14622
14623 # So? What about this header?
14624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14625 yes:no: )
14626 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14627 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14628 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14629 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14630 ac_header_preproc=yes
14631 ;;
14632 no:yes:* )
14633 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14634 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14636 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14638 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14640 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14642 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14644 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14645
14646 ;;
14647 esac
14648 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14649 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14650 if test "${ac_cv_header_gpm_h+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653 ac_cv_header_gpm_h=$ac_header_preproc
14654 fi
14655 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14656 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14657
14658 fi
14659 if test $ac_cv_header_gpm_h = yes; then
14660 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14661 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14662 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 else
14665 ac_check_lib_save_LIBS=$LIBS
14666 LIBS="-lgpm $LIBS"
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h. */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673
14674 /* Override any GCC internal prototype to avoid an error.
14675 Use char because int might match the return type of a GCC
14676 builtin and then its argument prototype would still apply. */
14677 #ifdef __cplusplus
14678 extern "C"
14679 #endif
14680 char Gpm_Open ();
14681 int
14682 main ()
14683 {
14684 return Gpm_Open ();
14685 ;
14686 return 0;
14687 }
14688 _ACEOF
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (ac_try="$ac_link"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694 esac
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_link") 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } && {
14703 test -z "$ac_c_werror_flag" ||
14704 test ! -s conftest.err
14705 } && test -s conftest$ac_exeext &&
14706 $as_test_x conftest$ac_exeext; then
14707 ac_cv_lib_gpm_Gpm_Open=yes
14708 else
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712 ac_cv_lib_gpm_Gpm_Open=no
14713 fi
14714
14715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14716 conftest$ac_exeext conftest.$ac_ext
14717 LIBS=$ac_check_lib_save_LIBS
14718 fi
14719 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14720 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14721 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14722 HAVE_GPM=yes
14723 fi
14724
14725 fi
14726
14727
14728 fi
14729
14730 if test "${HAVE_GPM}" = "yes"; then
14731
14732 cat >>confdefs.h <<\_ACEOF
14733 #define HAVE_GPM 1
14734 _ACEOF
14735
14736 fi
14737
14738 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14739 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14740 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14741 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 fi
14744 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14745 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14746 else
14747 # Is the header compilable?
14748 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14749 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h. */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14756 $ac_includes_default
14757 #include <malloc/malloc.h>
14758 _ACEOF
14759 rm -f conftest.$ac_objext
14760 if { (ac_try="$ac_compile"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_compile") 2>conftest.er1
14767 ac_status=$?
14768 grep -v '^ *+' conftest.er1 >conftest.err
14769 rm -f conftest.er1
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } && {
14773 test -z "$ac_c_werror_flag" ||
14774 test ! -s conftest.err
14775 } && test -s conftest.$ac_objext; then
14776 ac_header_compiler=yes
14777 else
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14780
14781 ac_header_compiler=no
14782 fi
14783
14784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14786 echo "${ECHO_T}$ac_header_compiler" >&6; }
14787
14788 # Is the header present?
14789 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14790 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14791 cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h. */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14797 #include <malloc/malloc.h>
14798 _ACEOF
14799 if { (ac_try="$ac_cpp conftest.$ac_ext"
14800 case "(($ac_try" in
14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14803 esac
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14806 ac_status=$?
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } >/dev/null && {
14812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14813 test ! -s conftest.err
14814 }; then
14815 ac_header_preproc=yes
14816 else
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14819
14820 ac_header_preproc=no
14821 fi
14822
14823 rm -f conftest.err conftest.$ac_ext
14824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14825 echo "${ECHO_T}$ac_header_preproc" >&6; }
14826
14827 # So? What about this header?
14828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14829 yes:no: )
14830 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14831 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14833 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14834 ac_header_preproc=yes
14835 ;;
14836 no:yes:* )
14837 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14838 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14844 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14846 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14847 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14848 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14849
14850 ;;
14851 esac
14852 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14853 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14854 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14858 fi
14859 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14860 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14861
14862 fi
14863 if test $ac_cv_header_malloc_malloc_h = yes; then
14864
14865 cat >>confdefs.h <<\_ACEOF
14866 #define HAVE_MALLOC_MALLOC_H 1
14867 _ACEOF
14868
14869 fi
14870
14871
14872
14873 ### Use NeXTstep API to implement GUI.
14874 if test "${HAVE_NS}" = "yes"; then
14875
14876 cat >>confdefs.h <<\_ACEOF
14877 #define HAVE_NS 1
14878 _ACEOF
14879
14880 if test "${NS_IMPL_COCOA}" = "yes"; then
14881
14882 cat >>confdefs.h <<\_ACEOF
14883 #define NS_IMPL_COCOA 1
14884 _ACEOF
14885
14886 GNU_OBJC_CFLAGS=
14887 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14888 fi
14889 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14890
14891 cat >>confdefs.h <<\_ACEOF
14892 #define COCOA_EXPERIMENTAL_CTRL_G 1
14893 _ACEOF
14894
14895 fi
14896 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14897
14898 cat >>confdefs.h <<\_ACEOF
14899 #define NS_IMPL_GNUSTEP 1
14900 _ACEOF
14901
14902 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14903 fi
14904 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14905
14906 cat >>confdefs.h <<\_ACEOF
14907 #define NS_HAVE_NSINTEGER 1
14908 _ACEOF
14909
14910 fi
14911 # We also have mouse menus.
14912 HAVE_MENUS=yes
14913 fi
14914
14915
14916 ### Use session management (-lSM -lICE) if available
14917 HAVE_X_SM=no
14918 if test "${HAVE_X11}" = "yes"; then
14919 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14920 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14921 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14922 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 fi
14925 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14926 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14927 else
14928 # Is the header compilable?
14929 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14930 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h. */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 $ac_includes_default
14938 #include <X11/SM/SMlib.h>
14939 _ACEOF
14940 rm -f conftest.$ac_objext
14941 if { (ac_try="$ac_compile"
14942 case "(($ac_try" in
14943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944 *) ac_try_echo=$ac_try;;
14945 esac
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_compile") 2>conftest.er1
14948 ac_status=$?
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } && {
14954 test -z "$ac_c_werror_flag" ||
14955 test ! -s conftest.err
14956 } && test -s conftest.$ac_objext; then
14957 ac_header_compiler=yes
14958 else
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14961
14962 ac_header_compiler=no
14963 fi
14964
14965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14967 echo "${ECHO_T}$ac_header_compiler" >&6; }
14968
14969 # Is the header present?
14970 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14971 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14972 cat >conftest.$ac_ext <<_ACEOF
14973 /* confdefs.h. */
14974 _ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14978 #include <X11/SM/SMlib.h>
14979 _ACEOF
14980 if { (ac_try="$ac_cpp conftest.$ac_ext"
14981 case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14987 ac_status=$?
14988 grep -v '^ *+' conftest.er1 >conftest.err
14989 rm -f conftest.er1
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } >/dev/null && {
14993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14994 test ! -s conftest.err
14995 }; then
14996 ac_header_preproc=yes
14997 else
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15000
15001 ac_header_preproc=no
15002 fi
15003
15004 rm -f conftest.err conftest.$ac_ext
15005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15006 echo "${ECHO_T}$ac_header_preproc" >&6; }
15007
15008 # So? What about this header?
15009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15010 yes:no: )
15011 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15012 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15014 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15015 ac_header_preproc=yes
15016 ;;
15017 no:yes:* )
15018 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15019 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15020 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15021 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15022 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15023 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15024 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15025 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15027 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15028 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15029 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15030
15031 ;;
15032 esac
15033 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15034 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15035 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15039 fi
15040 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15041 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15042
15043 fi
15044 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15045 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15046 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15047 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 else
15050 ac_check_lib_save_LIBS=$LIBS
15051 LIBS="-lSM -lICE $LIBS"
15052 cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h. */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058
15059 /* Override any GCC internal prototype to avoid an error.
15060 Use char because int might match the return type of a GCC
15061 builtin and then its argument prototype would still apply. */
15062 #ifdef __cplusplus
15063 extern "C"
15064 #endif
15065 char SmcOpenConnection ();
15066 int
15067 main ()
15068 {
15069 return SmcOpenConnection ();
15070 ;
15071 return 0;
15072 }
15073 _ACEOF
15074 rm -f conftest.$ac_objext conftest$ac_exeext
15075 if { (ac_try="$ac_link"
15076 case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15079 esac
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_link") 2>conftest.er1
15082 ac_status=$?
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } && {
15088 test -z "$ac_c_werror_flag" ||
15089 test ! -s conftest.err
15090 } && test -s conftest$ac_exeext &&
15091 $as_test_x conftest$ac_exeext; then
15092 ac_cv_lib_SM_SmcOpenConnection=yes
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15096
15097 ac_cv_lib_SM_SmcOpenConnection=no
15098 fi
15099
15100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15101 conftest$ac_exeext conftest.$ac_ext
15102 LIBS=$ac_check_lib_save_LIBS
15103 fi
15104 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15105 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15106 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15107 HAVE_X_SM=yes
15108 fi
15109
15110 fi
15111
15112
15113
15114 if test "${HAVE_X_SM}" = "yes"; then
15115
15116 cat >>confdefs.h <<\_ACEOF
15117 #define HAVE_X_SM 1
15118 _ACEOF
15119
15120 case "$LIBS" in
15121 *-lSM*) ;;
15122 *) LIBS="-lSM -lICE $LIBS" ;;
15123 esac
15124 fi
15125 fi
15126
15127 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15128 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15129 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15130 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133 cat >conftest.$ac_ext <<_ACEOF
15134 /* confdefs.h. */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15139 #include <netdb.h>
15140 int
15141 main ()
15142 {
15143 return h_errno;
15144 ;
15145 return 0;
15146 }
15147 _ACEOF
15148 rm -f conftest.$ac_objext conftest$ac_exeext
15149 if { (ac_try="$ac_link"
15150 case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15153 esac
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_link") 2>conftest.er1
15156 ac_status=$?
15157 grep -v '^ *+' conftest.er1 >conftest.err
15158 rm -f conftest.er1
15159 cat conftest.err >&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } && {
15162 test -z "$ac_c_werror_flag" ||
15163 test ! -s conftest.err
15164 } && test -s conftest$ac_exeext &&
15165 $as_test_x conftest$ac_exeext; then
15166 emacs_cv_netdb_declares_h_errno=yes
15167 else
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15170
15171 emacs_cv_netdb_declares_h_errno=no
15172 fi
15173
15174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15175 conftest$ac_exeext conftest.$ac_ext
15176 fi
15177 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15178 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15179 if test $emacs_cv_netdb_declares_h_errno = yes; then
15180
15181 cat >>confdefs.h <<\_ACEOF
15182 #define HAVE_H_ERRNO 1
15183 _ACEOF
15184
15185 fi
15186
15187 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15188 # for constant arguments. Useless!
15189 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15190 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15191 if test "${ac_cv_working_alloca_h+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h. */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #include <alloca.h>
15201 int
15202 main ()
15203 {
15204 char *p = (char *) alloca (2 * sizeof (int));
15205 if (p) return 0;
15206 ;
15207 return 0;
15208 }
15209 _ACEOF
15210 rm -f conftest.$ac_objext conftest$ac_exeext
15211 if { (ac_try="$ac_link"
15212 case "(($ac_try" in
15213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214 *) ac_try_echo=$ac_try;;
15215 esac
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217 (eval "$ac_link") 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } && {
15224 test -z "$ac_c_werror_flag" ||
15225 test ! -s conftest.err
15226 } && test -s conftest$ac_exeext &&
15227 $as_test_x conftest$ac_exeext; then
15228 ac_cv_working_alloca_h=yes
15229 else
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15232
15233 ac_cv_working_alloca_h=no
15234 fi
15235
15236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15237 conftest$ac_exeext conftest.$ac_ext
15238 fi
15239 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15240 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15241 if test $ac_cv_working_alloca_h = yes; then
15242
15243 cat >>confdefs.h <<\_ACEOF
15244 #define HAVE_ALLOCA_H 1
15245 _ACEOF
15246
15247 fi
15248
15249 { echo "$as_me:$LINENO: checking for alloca" >&5
15250 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15251 if test "${ac_cv_func_alloca_works+set}" = set; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15254 cat >conftest.$ac_ext <<_ACEOF
15255 /* confdefs.h. */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15260 #ifdef __GNUC__
15261 # define alloca __builtin_alloca
15262 #else
15263 # ifdef _MSC_VER
15264 # include <malloc.h>
15265 # define alloca _alloca
15266 # else
15267 # ifdef HAVE_ALLOCA_H
15268 # include <alloca.h>
15269 # else
15270 # ifdef _AIX
15271 #pragma alloca
15272 # else
15273 # ifndef alloca /* predefined by HP cc +Olibcalls */
15274 char *alloca ();
15275 # endif
15276 # endif
15277 # endif
15278 # endif
15279 #endif
15280
15281 int
15282 main ()
15283 {
15284 char *p = (char *) alloca (1);
15285 if (p) return 0;
15286 ;
15287 return 0;
15288 }
15289 _ACEOF
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (ac_try="$ac_link"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_link") 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_c_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest$ac_exeext &&
15307 $as_test_x conftest$ac_exeext; then
15308 ac_cv_func_alloca_works=yes
15309 else
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313 ac_cv_func_alloca_works=no
15314 fi
15315
15316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15317 conftest$ac_exeext conftest.$ac_ext
15318 fi
15319 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15320 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15321
15322 if test $ac_cv_func_alloca_works = yes; then
15323
15324 cat >>confdefs.h <<\_ACEOF
15325 #define HAVE_ALLOCA 1
15326 _ACEOF
15327
15328 else
15329 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15330 # that cause trouble. Some versions do not even contain alloca or
15331 # contain a buggy version. If you still want to use their alloca,
15332 # use ar to extract alloca.o from them instead of compiling alloca.c.
15333
15334 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15335
15336 cat >>confdefs.h <<\_ACEOF
15337 #define C_ALLOCA 1
15338 _ACEOF
15339
15340
15341 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15342 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15343 if test "${ac_cv_os_cray+set}" = set; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 else
15346 cat >conftest.$ac_ext <<_ACEOF
15347 /* confdefs.h. */
15348 _ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 #if defined CRAY && ! defined CRAY2
15353 webecray
15354 #else
15355 wenotbecray
15356 #endif
15357
15358 _ACEOF
15359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15360 $EGREP "webecray" >/dev/null 2>&1; then
15361 ac_cv_os_cray=yes
15362 else
15363 ac_cv_os_cray=no
15364 fi
15365 rm -f conftest*
15366
15367 fi
15368 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15369 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15370 if test $ac_cv_os_cray = yes; then
15371 for ac_func in _getb67 GETB67 getb67; do
15372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 else
15378 cat >conftest.$ac_ext <<_ACEOF
15379 /* confdefs.h. */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15386 #define $ac_func innocuous_$ac_func
15387
15388 /* System header to define __stub macros and hopefully few prototypes,
15389 which can conflict with char $ac_func (); below.
15390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15391 <limits.h> exists even on freestanding compilers. */
15392
15393 #ifdef __STDC__
15394 # include <limits.h>
15395 #else
15396 # include <assert.h>
15397 #endif
15398
15399 #undef $ac_func
15400
15401 /* Override any GCC internal prototype to avoid an error.
15402 Use char because int might match the return type of a GCC
15403 builtin and then its argument prototype would still apply. */
15404 #ifdef __cplusplus
15405 extern "C"
15406 #endif
15407 char $ac_func ();
15408 /* The GNU C library defines this for functions which it implements
15409 to always fail with ENOSYS. Some functions are actually named
15410 something starting with __ and the normal name is an alias. */
15411 #if defined __stub_$ac_func || defined __stub___$ac_func
15412 choke me
15413 #endif
15414
15415 int
15416 main ()
15417 {
15418 return $ac_func ();
15419 ;
15420 return 0;
15421 }
15422 _ACEOF
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (ac_try="$ac_link"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15428 esac
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_link") 2>conftest.er1
15431 ac_status=$?
15432 grep -v '^ *+' conftest.er1 >conftest.err
15433 rm -f conftest.er1
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } && {
15437 test -z "$ac_c_werror_flag" ||
15438 test ! -s conftest.err
15439 } && test -s conftest$ac_exeext &&
15440 $as_test_x conftest$ac_exeext; then
15441 eval "$as_ac_var=yes"
15442 else
15443 echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446 eval "$as_ac_var=no"
15447 fi
15448
15449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15450 conftest$ac_exeext conftest.$ac_ext
15451 fi
15452 ac_res=`eval echo '${'$as_ac_var'}'`
15453 { echo "$as_me:$LINENO: result: $ac_res" >&5
15454 echo "${ECHO_T}$ac_res" >&6; }
15455 if test `eval echo '${'$as_ac_var'}'` = yes; then
15456
15457 cat >>confdefs.h <<_ACEOF
15458 #define CRAY_STACKSEG_END $ac_func
15459 _ACEOF
15460
15461 break
15462 fi
15463
15464 done
15465 fi
15466
15467 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15468 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15469 if test "${ac_cv_c_stack_direction+set}" = set; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472 if test "$cross_compiling" = yes; then
15473 ac_cv_c_stack_direction=0
15474 else
15475 cat >conftest.$ac_ext <<_ACEOF
15476 /* confdefs.h. */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 $ac_includes_default
15482 int
15483 find_stack_direction ()
15484 {
15485 static char *addr = 0;
15486 auto char dummy;
15487 if (addr == 0)
15488 {
15489 addr = &dummy;
15490 return find_stack_direction ();
15491 }
15492 else
15493 return (&dummy > addr) ? 1 : -1;
15494 }
15495
15496 int
15497 main ()
15498 {
15499 return find_stack_direction () < 0;
15500 }
15501 _ACEOF
15502 rm -f conftest$ac_exeext
15503 if { (ac_try="$ac_link"
15504 case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15507 esac
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_link") 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15513 { (case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15516 esac
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_try") 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 ac_cv_c_stack_direction=1
15523 else
15524 echo "$as_me: program exited with status $ac_status" >&5
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15527
15528 ( exit $ac_status )
15529 ac_cv_c_stack_direction=-1
15530 fi
15531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15532 fi
15533
15534
15535 fi
15536 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15537 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15538
15539 cat >>confdefs.h <<_ACEOF
15540 #define STACK_DIRECTION $ac_cv_c_stack_direction
15541 _ACEOF
15542
15543
15544 fi
15545
15546
15547 if test x"$ac_cv_func_alloca_works" != xyes; then
15548 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15549 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15550 { (exit 1); exit 1; }; }
15551 fi
15552
15553 # fmod, logb, and frexp are found in -lm on most systems.
15554 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15555
15556 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15557 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15558 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 else
15561 ac_check_lib_save_LIBS=$LIBS
15562 LIBS="-lm $LIBS"
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h. */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569
15570 /* Override any GCC internal prototype to avoid an error.
15571 Use char because int might match the return type of a GCC
15572 builtin and then its argument prototype would still apply. */
15573 #ifdef __cplusplus
15574 extern "C"
15575 #endif
15576 char sqrt ();
15577 int
15578 main ()
15579 {
15580 return sqrt ();
15581 ;
15582 return 0;
15583 }
15584 _ACEOF
15585 rm -f conftest.$ac_objext conftest$ac_exeext
15586 if { (ac_try="$ac_link"
15587 case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15590 esac
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_link") 2>conftest.er1
15593 ac_status=$?
15594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } && {
15599 test -z "$ac_c_werror_flag" ||
15600 test ! -s conftest.err
15601 } && test -s conftest$ac_exeext &&
15602 $as_test_x conftest$ac_exeext; then
15603 ac_cv_lib_m_sqrt=yes
15604 else
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15607
15608 ac_cv_lib_m_sqrt=no
15609 fi
15610
15611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15612 conftest$ac_exeext conftest.$ac_ext
15613 LIBS=$ac_check_lib_save_LIBS
15614 fi
15615 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15616 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15617 if test $ac_cv_lib_m_sqrt = yes; then
15618 cat >>confdefs.h <<_ACEOF
15619 #define HAVE_LIBM 1
15620 _ACEOF
15621
15622 LIBS="-lm $LIBS"
15623
15624 fi
15625
15626
15627 # Check for mail-locking functions in a "mail" library. Probably this should
15628 # have the same check as for liblockfile below.
15629
15630 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15631 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15632 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635 ac_check_lib_save_LIBS=$LIBS
15636 LIBS="-lmail $LIBS"
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
15644 /* Override any GCC internal prototype to avoid an error.
15645 Use char because int might match the return type of a GCC
15646 builtin and then its argument prototype would still apply. */
15647 #ifdef __cplusplus
15648 extern "C"
15649 #endif
15650 char maillock ();
15651 int
15652 main ()
15653 {
15654 return maillock ();
15655 ;
15656 return 0;
15657 }
15658 _ACEOF
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (ac_try="$ac_link"
15661 case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15664 esac
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_link") 2>conftest.er1
15667 ac_status=$?
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_c_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest$ac_exeext &&
15676 $as_test_x conftest$ac_exeext; then
15677 ac_cv_lib_mail_maillock=yes
15678 else
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15681
15682 ac_cv_lib_mail_maillock=no
15683 fi
15684
15685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15686 conftest$ac_exeext conftest.$ac_ext
15687 LIBS=$ac_check_lib_save_LIBS
15688 fi
15689 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15690 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15691 if test $ac_cv_lib_mail_maillock = yes; then
15692 cat >>confdefs.h <<_ACEOF
15693 #define HAVE_LIBMAIL 1
15694 _ACEOF
15695
15696 LIBS="-lmail $LIBS"
15697
15698 fi
15699
15700
15701 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15702 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15703 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706 ac_check_lib_save_LIBS=$LIBS
15707 LIBS="-llockfile $LIBS"
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h. */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714
15715 /* Override any GCC internal prototype to avoid an error.
15716 Use char because int might match the return type of a GCC
15717 builtin and then its argument prototype would still apply. */
15718 #ifdef __cplusplus
15719 extern "C"
15720 #endif
15721 char maillock ();
15722 int
15723 main ()
15724 {
15725 return maillock ();
15726 ;
15727 return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (ac_try="$ac_link"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_link") 2>conftest.er1
15738 ac_status=$?
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest$ac_exeext &&
15747 $as_test_x conftest$ac_exeext; then
15748 ac_cv_lib_lockfile_maillock=yes
15749 else
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 ac_cv_lib_lockfile_maillock=no
15754 fi
15755
15756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15757 conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15759 fi
15760 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15761 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15762 if test $ac_cv_lib_lockfile_maillock = yes; then
15763 cat >>confdefs.h <<_ACEOF
15764 #define HAVE_LIBLOCKFILE 1
15765 _ACEOF
15766
15767 LIBS="-llockfile $LIBS"
15768
15769 fi
15770
15771 # If we have the shared liblockfile, assume we must use it for mail
15772 # locking (e.g. Debian). If we couldn't link against liblockfile
15773 # (no liblockfile.a installed), ensure that we don't need to.
15774 if test "$ac_cv_lib_lockfile_maillock" = no; then
15775 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15776 set dummy liblockfile.so; ac_word=$2
15777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15779 if test "${ac_cv_prog_liblockfile+set}" = set; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15781 else
15782 if test -n "$liblockfile"; then
15783 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15784 else
15785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15786 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15787 for as_dir in $as_dummy
15788 do
15789 IFS=$as_save_IFS
15790 test -z "$as_dir" && as_dir=.
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15793 ac_cv_prog_liblockfile="yes"
15794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15795 break 2
15796 fi
15797 done
15798 done
15799 IFS=$as_save_IFS
15800
15801 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15802 fi
15803 fi
15804 liblockfile=$ac_cv_prog_liblockfile
15805 if test -n "$liblockfile"; then
15806 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15807 echo "${ECHO_T}$liblockfile" >&6; }
15808 else
15809 { echo "$as_me:$LINENO: result: no" >&5
15810 echo "${ECHO_T}no" >&6; }
15811 fi
15812
15813
15814 if test $ac_cv_prog_liblockfile = yes; then
15815 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15816 This probably means that movemail could lose mail.
15817 There may be a \`development' package to install containing liblockfile." >&5
15818 echo "$as_me: error: Shared liblockfile found but can't link against it.
15819 This probably means that movemail could lose mail.
15820 There may be a \`development' package to install containing liblockfile." >&2;}
15821 { (exit 1); exit 1; }; }
15822 else :
15823 fi
15824 fi
15825
15826 for ac_func in touchlock
15827 do
15828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15833 else
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15842 #define $ac_func innocuous_$ac_func
15843
15844 /* System header to define __stub macros and hopefully few prototypes,
15845 which can conflict with char $ac_func (); below.
15846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15847 <limits.h> exists even on freestanding compilers. */
15848
15849 #ifdef __STDC__
15850 # include <limits.h>
15851 #else
15852 # include <assert.h>
15853 #endif
15854
15855 #undef $ac_func
15856
15857 /* Override any GCC internal prototype to avoid an error.
15858 Use char because int might match the return type of a GCC
15859 builtin and then its argument prototype would still apply. */
15860 #ifdef __cplusplus
15861 extern "C"
15862 #endif
15863 char $ac_func ();
15864 /* The GNU C library defines this for functions which it implements
15865 to always fail with ENOSYS. Some functions are actually named
15866 something starting with __ and the normal name is an alias. */
15867 #if defined __stub_$ac_func || defined __stub___$ac_func
15868 choke me
15869 #endif
15870
15871 int
15872 main ()
15873 {
15874 return $ac_func ();
15875 ;
15876 return 0;
15877 }
15878 _ACEOF
15879 rm -f conftest.$ac_objext conftest$ac_exeext
15880 if { (ac_try="$ac_link"
15881 case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15884 esac
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886 (eval "$ac_link") 2>conftest.er1
15887 ac_status=$?
15888 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } && {
15893 test -z "$ac_c_werror_flag" ||
15894 test ! -s conftest.err
15895 } && test -s conftest$ac_exeext &&
15896 $as_test_x conftest$ac_exeext; then
15897 eval "$as_ac_var=yes"
15898 else
15899 echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15901
15902 eval "$as_ac_var=no"
15903 fi
15904
15905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15906 conftest$ac_exeext conftest.$ac_ext
15907 fi
15908 ac_res=`eval echo '${'$as_ac_var'}'`
15909 { echo "$as_me:$LINENO: result: $ac_res" >&5
15910 echo "${ECHO_T}$ac_res" >&6; }
15911 if test `eval echo '${'$as_ac_var'}'` = yes; then
15912 cat >>confdefs.h <<_ACEOF
15913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15914 _ACEOF
15915
15916 fi
15917 done
15918
15919
15920 for ac_header in maillock.h
15921 do
15922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 fi
15929 ac_res=`eval echo '${'$as_ac_Header'}'`
15930 { echo "$as_me:$LINENO: result: $ac_res" >&5
15931 echo "${ECHO_T}$ac_res" >&6; }
15932 else
15933 # Is the header compilable?
15934 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h. */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 $ac_includes_default
15943 #include <$ac_header>
15944 _ACEOF
15945 rm -f conftest.$ac_objext
15946 if { (ac_try="$ac_compile"
15947 case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15950 esac
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952 (eval "$ac_compile") 2>conftest.er1
15953 ac_status=$?
15954 grep -v '^ *+' conftest.er1 >conftest.err
15955 rm -f conftest.er1
15956 cat conftest.err >&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } && {
15959 test -z "$ac_c_werror_flag" ||
15960 test ! -s conftest.err
15961 } && test -s conftest.$ac_objext; then
15962 ac_header_compiler=yes
15963 else
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15966
15967 ac_header_compiler=no
15968 fi
15969
15970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15972 echo "${ECHO_T}$ac_header_compiler" >&6; }
15973
15974 # Is the header present?
15975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15977 cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h. */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983 #include <$ac_header>
15984 _ACEOF
15985 if { (ac_try="$ac_cpp conftest.$ac_ext"
15986 case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15992 ac_status=$?
15993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } >/dev/null && {
15998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15999 test ! -s conftest.err
16000 }; then
16001 ac_header_preproc=yes
16002 else
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16005
16006 ac_header_preproc=no
16007 fi
16008
16009 rm -f conftest.err conftest.$ac_ext
16010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16011 echo "${ECHO_T}$ac_header_preproc" >&6; }
16012
16013 # So? What about this header?
16014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16015 yes:no: )
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16020 ac_header_preproc=yes
16021 ;;
16022 no:yes:* )
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16035
16036 ;;
16037 esac
16038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 else
16043 eval "$as_ac_Header=\$ac_header_preproc"
16044 fi
16045 ac_res=`eval echo '${'$as_ac_Header'}'`
16046 { echo "$as_me:$LINENO: result: $ac_res" >&5
16047 echo "${ECHO_T}$ac_res" >&6; }
16048
16049 fi
16050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16051 cat >>confdefs.h <<_ACEOF
16052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16053 _ACEOF
16054
16055 fi
16056
16057 done
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131 for ac_func in gethostname getdomainname dup2 \
16132 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16133 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16134 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16135 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16136 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16137 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16138 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16139 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16140 cfmakeraw cfsetspeed
16141 do
16142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 else
16148 cat >conftest.$ac_ext <<_ACEOF
16149 /* confdefs.h. */
16150 _ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16156 #define $ac_func innocuous_$ac_func
16157
16158 /* System header to define __stub macros and hopefully few prototypes,
16159 which can conflict with char $ac_func (); below.
16160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16161 <limits.h> exists even on freestanding compilers. */
16162
16163 #ifdef __STDC__
16164 # include <limits.h>
16165 #else
16166 # include <assert.h>
16167 #endif
16168
16169 #undef $ac_func
16170
16171 /* Override any GCC internal prototype to avoid an error.
16172 Use char because int might match the return type of a GCC
16173 builtin and then its argument prototype would still apply. */
16174 #ifdef __cplusplus
16175 extern "C"
16176 #endif
16177 char $ac_func ();
16178 /* The GNU C library defines this for functions which it implements
16179 to always fail with ENOSYS. Some functions are actually named
16180 something starting with __ and the normal name is an alias. */
16181 #if defined __stub_$ac_func || defined __stub___$ac_func
16182 choke me
16183 #endif
16184
16185 int
16186 main ()
16187 {
16188 return $ac_func ();
16189 ;
16190 return 0;
16191 }
16192 _ACEOF
16193 rm -f conftest.$ac_objext conftest$ac_exeext
16194 if { (ac_try="$ac_link"
16195 case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16198 esac
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_link") 2>conftest.er1
16201 ac_status=$?
16202 grep -v '^ *+' conftest.er1 >conftest.err
16203 rm -f conftest.er1
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } && {
16207 test -z "$ac_c_werror_flag" ||
16208 test ! -s conftest.err
16209 } && test -s conftest$ac_exeext &&
16210 $as_test_x conftest$ac_exeext; then
16211 eval "$as_ac_var=yes"
16212 else
16213 echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16215
16216 eval "$as_ac_var=no"
16217 fi
16218
16219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16220 conftest$ac_exeext conftest.$ac_ext
16221 fi
16222 ac_res=`eval echo '${'$as_ac_var'}'`
16223 { echo "$as_me:$LINENO: result: $ac_res" >&5
16224 echo "${ECHO_T}$ac_res" >&6; }
16225 if test `eval echo '${'$as_ac_var'}'` = yes; then
16226 cat >>confdefs.h <<_ACEOF
16227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16228 _ACEOF
16229
16230 fi
16231 done
16232
16233
16234
16235 for ac_header in sys/un.h
16236 do
16237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 fi
16244 ac_res=`eval echo '${'$as_ac_Header'}'`
16245 { echo "$as_me:$LINENO: result: $ac_res" >&5
16246 echo "${ECHO_T}$ac_res" >&6; }
16247 else
16248 # Is the header compilable?
16249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16251 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h. */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 $ac_includes_default
16258 #include <$ac_header>
16259 _ACEOF
16260 rm -f conftest.$ac_objext
16261 if { (ac_try="$ac_compile"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_compile") 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } && {
16274 test -z "$ac_c_werror_flag" ||
16275 test ! -s conftest.err
16276 } && test -s conftest.$ac_objext; then
16277 ac_header_compiler=yes
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16281
16282 ac_header_compiler=no
16283 fi
16284
16285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16287 echo "${ECHO_T}$ac_header_compiler" >&6; }
16288
16289 # Is the header present?
16290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16292 cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h. */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 #include <$ac_header>
16299 _ACEOF
16300 if { (ac_try="$ac_cpp conftest.$ac_ext"
16301 case "(($ac_try" in
16302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303 *) ac_try_echo=$ac_try;;
16304 esac
16305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16307 ac_status=$?
16308 grep -v '^ *+' conftest.er1 >conftest.err
16309 rm -f conftest.er1
16310 cat conftest.err >&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } >/dev/null && {
16313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16314 test ! -s conftest.err
16315 }; then
16316 ac_header_preproc=yes
16317 else
16318 echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16320
16321 ac_header_preproc=no
16322 fi
16323
16324 rm -f conftest.err conftest.$ac_ext
16325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16326 echo "${ECHO_T}$ac_header_preproc" >&6; }
16327
16328 # So? What about this header?
16329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16330 yes:no: )
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16335 ac_header_preproc=yes
16336 ;;
16337 no:yes:* )
16338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16350
16351 ;;
16352 esac
16353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 else
16358 eval "$as_ac_Header=\$ac_header_preproc"
16359 fi
16360 ac_res=`eval echo '${'$as_ac_Header'}'`
16361 { echo "$as_me:$LINENO: result: $ac_res" >&5
16362 echo "${ECHO_T}$ac_res" >&6; }
16363
16364 fi
16365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16366 cat >>confdefs.h <<_ACEOF
16367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16368 _ACEOF
16369
16370 fi
16371
16372 done
16373
16374
16375
16376
16377
16378
16379 for ac_header in $ac_header_list
16380 do
16381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 fi
16388 ac_res=`eval echo '${'$as_ac_Header'}'`
16389 { echo "$as_me:$LINENO: result: $ac_res" >&5
16390 echo "${ECHO_T}$ac_res" >&6; }
16391 else
16392 # Is the header compilable?
16393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16395 cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h. */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 $ac_includes_default
16402 #include <$ac_header>
16403 _ACEOF
16404 rm -f conftest.$ac_objext
16405 if { (ac_try="$ac_compile"
16406 case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_compile") 2>conftest.er1
16412 ac_status=$?
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } && {
16418 test -z "$ac_c_werror_flag" ||
16419 test ! -s conftest.err
16420 } && test -s conftest.$ac_objext; then
16421 ac_header_compiler=yes
16422 else
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16425
16426 ac_header_compiler=no
16427 fi
16428
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16431 echo "${ECHO_T}$ac_header_compiler" >&6; }
16432
16433 # Is the header present?
16434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16436 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h. */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16442 #include <$ac_header>
16443 _ACEOF
16444 if { (ac_try="$ac_cpp conftest.$ac_ext"
16445 case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16448 esac
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16451 ac_status=$?
16452 grep -v '^ *+' conftest.er1 >conftest.err
16453 rm -f conftest.er1
16454 cat conftest.err >&5
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } >/dev/null && {
16457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16458 test ! -s conftest.err
16459 }; then
16460 ac_header_preproc=yes
16461 else
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16464
16465 ac_header_preproc=no
16466 fi
16467
16468 rm -f conftest.err conftest.$ac_ext
16469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16470 echo "${ECHO_T}$ac_header_preproc" >&6; }
16471
16472 # So? What about this header?
16473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16474 yes:no: )
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16479 ac_header_preproc=yes
16480 ;;
16481 no:yes:* )
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16494
16495 ;;
16496 esac
16497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 else
16502 eval "$as_ac_Header=\$ac_header_preproc"
16503 fi
16504 ac_res=`eval echo '${'$as_ac_Header'}'`
16505 { echo "$as_me:$LINENO: result: $ac_res" >&5
16506 echo "${ECHO_T}$ac_res" >&6; }
16507
16508 fi
16509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16510 cat >>confdefs.h <<_ACEOF
16511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16512 _ACEOF
16513
16514 fi
16515
16516 done
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526 for ac_func in $ac_func_list
16527 do
16528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16529 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 else
16534 cat >conftest.$ac_ext <<_ACEOF
16535 /* confdefs.h. */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16542 #define $ac_func innocuous_$ac_func
16543
16544 /* System header to define __stub macros and hopefully few prototypes,
16545 which can conflict with char $ac_func (); below.
16546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16547 <limits.h> exists even on freestanding compilers. */
16548
16549 #ifdef __STDC__
16550 # include <limits.h>
16551 #else
16552 # include <assert.h>
16553 #endif
16554
16555 #undef $ac_func
16556
16557 /* Override any GCC internal prototype to avoid an error.
16558 Use char because int might match the return type of a GCC
16559 builtin and then its argument prototype would still apply. */
16560 #ifdef __cplusplus
16561 extern "C"
16562 #endif
16563 char $ac_func ();
16564 /* The GNU C library defines this for functions which it implements
16565 to always fail with ENOSYS. Some functions are actually named
16566 something starting with __ and the normal name is an alias. */
16567 #if defined __stub_$ac_func || defined __stub___$ac_func
16568 choke me
16569 #endif
16570
16571 int
16572 main ()
16573 {
16574 return $ac_func ();
16575 ;
16576 return 0;
16577 }
16578 _ACEOF
16579 rm -f conftest.$ac_objext conftest$ac_exeext
16580 if { (ac_try="$ac_link"
16581 case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_link") 2>conftest.er1
16587 ac_status=$?
16588 grep -v '^ *+' conftest.er1 >conftest.err
16589 rm -f conftest.er1
16590 cat conftest.err >&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } && {
16593 test -z "$ac_c_werror_flag" ||
16594 test ! -s conftest.err
16595 } && test -s conftest$ac_exeext &&
16596 $as_test_x conftest$ac_exeext; then
16597 eval "$as_ac_var=yes"
16598 else
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16601
16602 eval "$as_ac_var=no"
16603 fi
16604
16605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16606 conftest$ac_exeext conftest.$ac_ext
16607 fi
16608 ac_res=`eval echo '${'$as_ac_var'}'`
16609 { echo "$as_me:$LINENO: result: $ac_res" >&5
16610 echo "${ECHO_T}$ac_res" >&6; }
16611 if test `eval echo '${'$as_ac_var'}'` = yes; then
16612 cat >>confdefs.h <<_ACEOF
16613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16614 _ACEOF
16615
16616 fi
16617 done
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635 { echo "$as_me:$LINENO: checking for working mktime" >&5
16636 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16637 if test "${ac_cv_func_working_mktime+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640 if test "$cross_compiling" = yes; then
16641 ac_cv_func_working_mktime=no
16642 else
16643 cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h. */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16649 /* Test program from Paul Eggert and Tony Leneis. */
16650 #ifdef TIME_WITH_SYS_TIME
16651 # include <sys/time.h>
16652 # include <time.h>
16653 #else
16654 # ifdef HAVE_SYS_TIME_H
16655 # include <sys/time.h>
16656 # else
16657 # include <time.h>
16658 # endif
16659 #endif
16660
16661 #include <stdlib.h>
16662
16663 #ifdef HAVE_UNISTD_H
16664 # include <unistd.h>
16665 #endif
16666
16667 #ifndef HAVE_ALARM
16668 # define alarm(X) /* empty */
16669 #endif
16670
16671 /* Work around redefinition to rpl_putenv by other config tests. */
16672 #undef putenv
16673
16674 static time_t time_t_max;
16675 static time_t time_t_min;
16676
16677 /* Values we'll use to set the TZ environment variable. */
16678 static char *tz_strings[] = {
16679 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16680 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16681 };
16682 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16683
16684 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16685 Based on a problem report from Andreas Jaeger. */
16686 static int
16687 spring_forward_gap ()
16688 {
16689 /* glibc (up to about 1998-10-07) failed this test. */
16690 struct tm tm;
16691
16692 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16693 instead of "TZ=America/Vancouver" in order to detect the bug even
16694 on systems that don't support the Olson extension, or don't have the
16695 full zoneinfo tables installed. */
16696 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16697
16698 tm.tm_year = 98;
16699 tm.tm_mon = 3;
16700 tm.tm_mday = 5;
16701 tm.tm_hour = 2;
16702 tm.tm_min = 0;
16703 tm.tm_sec = 0;
16704 tm.tm_isdst = -1;
16705 return mktime (&tm) != (time_t) -1;
16706 }
16707
16708 static int
16709 mktime_test1 (now)
16710 time_t now;
16711 {
16712 struct tm *lt;
16713 return ! (lt = localtime (&now)) || mktime (lt) == now;
16714 }
16715
16716 static int
16717 mktime_test (now)
16718 time_t now;
16719 {
16720 return (mktime_test1 (now)
16721 && mktime_test1 ((time_t) (time_t_max - now))
16722 && mktime_test1 ((time_t) (time_t_min + now)));
16723 }
16724
16725 static int
16726 irix_6_4_bug ()
16727 {
16728 /* Based on code from Ariel Faigon. */
16729 struct tm tm;
16730 tm.tm_year = 96;
16731 tm.tm_mon = 3;
16732 tm.tm_mday = 0;
16733 tm.tm_hour = 0;
16734 tm.tm_min = 0;
16735 tm.tm_sec = 0;
16736 tm.tm_isdst = -1;
16737 mktime (&tm);
16738 return tm.tm_mon == 2 && tm.tm_mday == 31;
16739 }
16740
16741 static int
16742 bigtime_test (j)
16743 int j;
16744 {
16745 struct tm tm;
16746 time_t now;
16747 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16748 now = mktime (&tm);
16749 if (now != (time_t) -1)
16750 {
16751 struct tm *lt = localtime (&now);
16752 if (! (lt
16753 && lt->tm_year == tm.tm_year
16754 && lt->tm_mon == tm.tm_mon
16755 && lt->tm_mday == tm.tm_mday
16756 && lt->tm_hour == tm.tm_hour
16757 && lt->tm_min == tm.tm_min
16758 && lt->tm_sec == tm.tm_sec
16759 && lt->tm_yday == tm.tm_yday
16760 && lt->tm_wday == tm.tm_wday
16761 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16762 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16763 return 0;
16764 }
16765 return 1;
16766 }
16767
16768 static int
16769 year_2050_test ()
16770 {
16771 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16772 ignoring leap seconds. */
16773 unsigned long int answer = 2527315200UL;
16774
16775 struct tm tm;
16776 time_t t;
16777 tm.tm_year = 2050 - 1900;
16778 tm.tm_mon = 2 - 1;
16779 tm.tm_mday = 1;
16780 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16781 tm.tm_isdst = -1;
16782
16783 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16784 instead of "TZ=America/Vancouver" in order to detect the bug even
16785 on systems that don't support the Olson extension, or don't have the
16786 full zoneinfo tables installed. */
16787 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16788
16789 t = mktime (&tm);
16790
16791 /* Check that the result is either a failure, or close enough
16792 to the correct answer that we can assume the discrepancy is
16793 due to leap seconds. */
16794 return (t == (time_t) -1
16795 || (0 < t && answer - 120 <= t && t <= answer + 120));
16796 }
16797
16798 int
16799 main ()
16800 {
16801 time_t t, delta;
16802 int i, j;
16803
16804 /* This test makes some buggy mktime implementations loop.
16805 Give up after 60 seconds; a mktime slower than that
16806 isn't worth using anyway. */
16807 alarm (60);
16808
16809 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16810 continue;
16811 time_t_max--;
16812 if ((time_t) -1 < 0)
16813 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16814 continue;
16815 delta = time_t_max / 997; /* a suitable prime number */
16816 for (i = 0; i < N_STRINGS; i++)
16817 {
16818 if (tz_strings[i])
16819 putenv (tz_strings[i]);
16820
16821 for (t = 0; t <= time_t_max - delta; t += delta)
16822 if (! mktime_test (t))
16823 return 1;
16824 if (! (mktime_test ((time_t) 1)
16825 && mktime_test ((time_t) (60 * 60))
16826 && mktime_test ((time_t) (60 * 60 * 24))))
16827 return 1;
16828
16829 for (j = 1; 0 < j; j *= 2)
16830 if (! bigtime_test (j))
16831 return 1;
16832 if (! bigtime_test (j - 1))
16833 return 1;
16834 }
16835 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16836 }
16837 _ACEOF
16838 rm -f conftest$ac_exeext
16839 if { (ac_try="$ac_link"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_link") 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16849 { (case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16852 esac
16853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854 (eval "$ac_try") 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_cv_func_working_mktime=yes
16859 else
16860 echo "$as_me: program exited with status $ac_status" >&5
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864 ( exit $ac_status )
16865 ac_cv_func_working_mktime=no
16866 fi
16867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16868 fi
16869
16870
16871 fi
16872 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16873 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16874 if test $ac_cv_func_working_mktime = no; then
16875 case " $LIBOBJS " in
16876 *" mktime.$ac_objext "* ) ;;
16877 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16878 ;;
16879 esac
16880
16881 fi
16882
16883 if test "$ac_cv_func_working_mktime" = no; then
16884
16885 cat >>confdefs.h <<\_ACEOF
16886 #define BROKEN_MKTIME 1
16887 _ACEOF
16888
16889 fi
16890
16891 ac_have_func=no # yes means we've found a way to get the load average.
16892
16893 # Make sure getloadavg.c is where it belongs, at configure-time.
16894 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16895 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16896 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16897 { (exit 1); exit 1; }; }
16898
16899 ac_save_LIBS=$LIBS
16900
16901 # Check for getloadavg, but be sure not to touch the cache variable.
16902 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16903 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16904 if test "${ac_cv_func_getloadavg+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907 cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h. */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16915 #define getloadavg innocuous_getloadavg
16916
16917 /* System header to define __stub macros and hopefully few prototypes,
16918 which can conflict with char getloadavg (); below.
16919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16920 <limits.h> exists even on freestanding compilers. */
16921
16922 #ifdef __STDC__
16923 # include <limits.h>
16924 #else
16925 # include <assert.h>
16926 #endif
16927
16928 #undef getloadavg
16929
16930 /* Override any GCC internal prototype to avoid an error.
16931 Use char because int might match the return type of a GCC
16932 builtin and then its argument prototype would still apply. */
16933 #ifdef __cplusplus
16934 extern "C"
16935 #endif
16936 char getloadavg ();
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined __stub_getloadavg || defined __stub___getloadavg
16941 choke me
16942 #endif
16943
16944 int
16945 main ()
16946 {
16947 return getloadavg ();
16948 ;
16949 return 0;
16950 }
16951 _ACEOF
16952 rm -f conftest.$ac_objext conftest$ac_exeext
16953 if { (ac_try="$ac_link"
16954 case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_link") 2>conftest.er1
16960 ac_status=$?
16961 grep -v '^ *+' conftest.er1 >conftest.err
16962 rm -f conftest.er1
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } && {
16966 test -z "$ac_c_werror_flag" ||
16967 test ! -s conftest.err
16968 } && test -s conftest$ac_exeext &&
16969 $as_test_x conftest$ac_exeext; then
16970 ac_cv_func_getloadavg=yes
16971 else
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16974
16975 ac_cv_func_getloadavg=no
16976 fi
16977
16978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16979 conftest$ac_exeext conftest.$ac_ext
16980 fi
16981 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16982 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16983 if test $ac_cv_func_getloadavg = yes; then
16984 exit 0
16985 else
16986 exit 1
16987 fi
16988 ) && ac_have_func=yes
16989
16990 # On HPUX9, an unprivileged user can get load averages through this function.
16991
16992 for ac_func in pstat_getdynamic
16993 do
16994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16998 echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17000 cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h. */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17008 #define $ac_func innocuous_$ac_func
17009
17010 /* System header to define __stub macros and hopefully few prototypes,
17011 which can conflict with char $ac_func (); below.
17012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17013 <limits.h> exists even on freestanding compilers. */
17014
17015 #ifdef __STDC__
17016 # include <limits.h>
17017 #else
17018 # include <assert.h>
17019 #endif
17020
17021 #undef $ac_func
17022
17023 /* Override any GCC internal prototype to avoid an error.
17024 Use char because int might match the return type of a GCC
17025 builtin and then its argument prototype would still apply. */
17026 #ifdef __cplusplus
17027 extern "C"
17028 #endif
17029 char $ac_func ();
17030 /* The GNU C library defines this for functions which it implements
17031 to always fail with ENOSYS. Some functions are actually named
17032 something starting with __ and the normal name is an alias. */
17033 #if defined __stub_$ac_func || defined __stub___$ac_func
17034 choke me
17035 #endif
17036
17037 int
17038 main ()
17039 {
17040 return $ac_func ();
17041 ;
17042 return 0;
17043 }
17044 _ACEOF
17045 rm -f conftest.$ac_objext conftest$ac_exeext
17046 if { (ac_try="$ac_link"
17047 case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17050 esac
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_link") 2>conftest.er1
17053 ac_status=$?
17054 grep -v '^ *+' conftest.er1 >conftest.err
17055 rm -f conftest.er1
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } && {
17059 test -z "$ac_c_werror_flag" ||
17060 test ! -s conftest.err
17061 } && test -s conftest$ac_exeext &&
17062 $as_test_x conftest$ac_exeext; then
17063 eval "$as_ac_var=yes"
17064 else
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17067
17068 eval "$as_ac_var=no"
17069 fi
17070
17071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17072 conftest$ac_exeext conftest.$ac_ext
17073 fi
17074 ac_res=`eval echo '${'$as_ac_var'}'`
17075 { echo "$as_me:$LINENO: result: $ac_res" >&5
17076 echo "${ECHO_T}$ac_res" >&6; }
17077 if test `eval echo '${'$as_ac_var'}'` = yes; then
17078 cat >>confdefs.h <<_ACEOF
17079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17080 _ACEOF
17081
17082 fi
17083 done
17084
17085
17086 # Solaris has libkstat which does not require root.
17087
17088 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17089 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17090 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17091 echo $ECHO_N "(cached) $ECHO_C" >&6
17092 else
17093 ac_check_lib_save_LIBS=$LIBS
17094 LIBS="-lkstat $LIBS"
17095 cat >conftest.$ac_ext <<_ACEOF
17096 /* confdefs.h. */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17101
17102 /* Override any GCC internal prototype to avoid an error.
17103 Use char because int might match the return type of a GCC
17104 builtin and then its argument prototype would still apply. */
17105 #ifdef __cplusplus
17106 extern "C"
17107 #endif
17108 char kstat_open ();
17109 int
17110 main ()
17111 {
17112 return kstat_open ();
17113 ;
17114 return 0;
17115 }
17116 _ACEOF
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (ac_try="$ac_link"
17119 case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17122 esac
17123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_link") 2>conftest.er1
17125 ac_status=$?
17126 grep -v '^ *+' conftest.er1 >conftest.err
17127 rm -f conftest.er1
17128 cat conftest.err >&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } && {
17131 test -z "$ac_c_werror_flag" ||
17132 test ! -s conftest.err
17133 } && test -s conftest$ac_exeext &&
17134 $as_test_x conftest$ac_exeext; then
17135 ac_cv_lib_kstat_kstat_open=yes
17136 else
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17139
17140 ac_cv_lib_kstat_kstat_open=no
17141 fi
17142
17143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17144 conftest$ac_exeext conftest.$ac_ext
17145 LIBS=$ac_check_lib_save_LIBS
17146 fi
17147 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17148 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17149 if test $ac_cv_lib_kstat_kstat_open = yes; then
17150 cat >>confdefs.h <<_ACEOF
17151 #define HAVE_LIBKSTAT 1
17152 _ACEOF
17153
17154 LIBS="-lkstat $LIBS"
17155
17156 fi
17157
17158 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17159
17160 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17161 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17162 # to get the right answer into the cache.
17163 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17164 if test $ac_have_func = no; then
17165 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17166 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17167 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170 ac_check_lib_save_LIBS=$LIBS
17171 LIBS="-lelf $LIBS"
17172 cat >conftest.$ac_ext <<_ACEOF
17173 /* confdefs.h. */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17178
17179 /* Override any GCC internal prototype to avoid an error.
17180 Use char because int might match the return type of a GCC
17181 builtin and then its argument prototype would still apply. */
17182 #ifdef __cplusplus
17183 extern "C"
17184 #endif
17185 char elf_begin ();
17186 int
17187 main ()
17188 {
17189 return elf_begin ();
17190 ;
17191 return 0;
17192 }
17193 _ACEOF
17194 rm -f conftest.$ac_objext conftest$ac_exeext
17195 if { (ac_try="$ac_link"
17196 case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17199 esac
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_link") 2>conftest.er1
17202 ac_status=$?
17203 grep -v '^ *+' conftest.er1 >conftest.err
17204 rm -f conftest.er1
17205 cat conftest.err >&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } && {
17208 test -z "$ac_c_werror_flag" ||
17209 test ! -s conftest.err
17210 } && test -s conftest$ac_exeext &&
17211 $as_test_x conftest$ac_exeext; then
17212 ac_cv_lib_elf_elf_begin=yes
17213 else
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17216
17217 ac_cv_lib_elf_elf_begin=no
17218 fi
17219
17220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17221 conftest$ac_exeext conftest.$ac_ext
17222 LIBS=$ac_check_lib_save_LIBS
17223 fi
17224 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17225 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17226 if test $ac_cv_lib_elf_elf_begin = yes; then
17227 LIBS="-lelf $LIBS"
17228 fi
17229
17230 fi
17231 if test $ac_have_func = no; then
17232 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17233 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17234 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236 else
17237 ac_check_lib_save_LIBS=$LIBS
17238 LIBS="-lkvm $LIBS"
17239 cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h. */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245
17246 /* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17249 #ifdef __cplusplus
17250 extern "C"
17251 #endif
17252 char kvm_open ();
17253 int
17254 main ()
17255 {
17256 return kvm_open ();
17257 ;
17258 return 0;
17259 }
17260 _ACEOF
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (ac_try="$ac_link"
17263 case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_link") 2>conftest.er1
17269 ac_status=$?
17270 grep -v '^ *+' conftest.er1 >conftest.err
17271 rm -f conftest.er1
17272 cat conftest.err >&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } && {
17275 test -z "$ac_c_werror_flag" ||
17276 test ! -s conftest.err
17277 } && test -s conftest$ac_exeext &&
17278 $as_test_x conftest$ac_exeext; then
17279 ac_cv_lib_kvm_kvm_open=yes
17280 else
17281 echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284 ac_cv_lib_kvm_kvm_open=no
17285 fi
17286
17287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17288 conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17290 fi
17291 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17292 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17293 if test $ac_cv_lib_kvm_kvm_open = yes; then
17294 LIBS="-lkvm $LIBS"
17295 fi
17296
17297 # Check for the 4.4BSD definition of getloadavg.
17298 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17299 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17300 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 else
17303 ac_check_lib_save_LIBS=$LIBS
17304 LIBS="-lutil $LIBS"
17305 cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h. */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311
17312 /* Override any GCC internal prototype to avoid an error.
17313 Use char because int might match the return type of a GCC
17314 builtin and then its argument prototype would still apply. */
17315 #ifdef __cplusplus
17316 extern "C"
17317 #endif
17318 char getloadavg ();
17319 int
17320 main ()
17321 {
17322 return getloadavg ();
17323 ;
17324 return 0;
17325 }
17326 _ACEOF
17327 rm -f conftest.$ac_objext conftest$ac_exeext
17328 if { (ac_try="$ac_link"
17329 case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17332 esac
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_link") 2>conftest.er1
17335 ac_status=$?
17336 grep -v '^ *+' conftest.er1 >conftest.err
17337 rm -f conftest.er1
17338 cat conftest.err >&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } && {
17341 test -z "$ac_c_werror_flag" ||
17342 test ! -s conftest.err
17343 } && test -s conftest$ac_exeext &&
17344 $as_test_x conftest$ac_exeext; then
17345 ac_cv_lib_util_getloadavg=yes
17346 else
17347 echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17349
17350 ac_cv_lib_util_getloadavg=no
17351 fi
17352
17353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17354 conftest$ac_exeext conftest.$ac_ext
17355 LIBS=$ac_check_lib_save_LIBS
17356 fi
17357 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17358 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17359 if test $ac_cv_lib_util_getloadavg = yes; then
17360 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17361 fi
17362
17363 fi
17364
17365 if test $ac_have_func = no; then
17366 # There is a commonly available library for RS/6000 AIX.
17367 # Since it is not a standard part of AIX, it might be installed locally.
17368 ac_getloadavg_LIBS=$LIBS
17369 LIBS="-L/usr/local/lib $LIBS"
17370 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17371 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17372 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375 ac_check_lib_save_LIBS=$LIBS
17376 LIBS="-lgetloadavg $LIBS"
17377 cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h. */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17387 #ifdef __cplusplus
17388 extern "C"
17389 #endif
17390 char getloadavg ();
17391 int
17392 main ()
17393 {
17394 return getloadavg ();
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 rm -f conftest.$ac_objext conftest$ac_exeext
17400 if { (ac_try="$ac_link"
17401 case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17404 esac
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_link") 2>conftest.er1
17407 ac_status=$?
17408 grep -v '^ *+' conftest.er1 >conftest.err
17409 rm -f conftest.er1
17410 cat conftest.err >&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } && {
17413 test -z "$ac_c_werror_flag" ||
17414 test ! -s conftest.err
17415 } && test -s conftest$ac_exeext &&
17416 $as_test_x conftest$ac_exeext; then
17417 ac_cv_lib_getloadavg_getloadavg=yes
17418 else
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422 ac_cv_lib_getloadavg_getloadavg=no
17423 fi
17424
17425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17426 conftest$ac_exeext conftest.$ac_ext
17427 LIBS=$ac_check_lib_save_LIBS
17428 fi
17429 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17430 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17431 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17432 LIBS="-lgetloadavg $LIBS"
17433 else
17434 LIBS=$ac_getloadavg_LIBS
17435 fi
17436
17437 fi
17438
17439 # Make sure it is really in the library, if we think we found it,
17440 # otherwise set up the replacement function.
17441
17442 for ac_func in getloadavg
17443 do
17444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 else
17450 cat >conftest.$ac_ext <<_ACEOF
17451 /* confdefs.h. */
17452 _ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h. */
17456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17458 #define $ac_func innocuous_$ac_func
17459
17460 /* System header to define __stub macros and hopefully few prototypes,
17461 which can conflict with char $ac_func (); below.
17462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17463 <limits.h> exists even on freestanding compilers. */
17464
17465 #ifdef __STDC__
17466 # include <limits.h>
17467 #else
17468 # include <assert.h>
17469 #endif
17470
17471 #undef $ac_func
17472
17473 /* Override any GCC internal prototype to avoid an error.
17474 Use char because int might match the return type of a GCC
17475 builtin and then its argument prototype would still apply. */
17476 #ifdef __cplusplus
17477 extern "C"
17478 #endif
17479 char $ac_func ();
17480 /* The GNU C library defines this for functions which it implements
17481 to always fail with ENOSYS. Some functions are actually named
17482 something starting with __ and the normal name is an alias. */
17483 #if defined __stub_$ac_func || defined __stub___$ac_func
17484 choke me
17485 #endif
17486
17487 int
17488 main ()
17489 {
17490 return $ac_func ();
17491 ;
17492 return 0;
17493 }
17494 _ACEOF
17495 rm -f conftest.$ac_objext conftest$ac_exeext
17496 if { (ac_try="$ac_link"
17497 case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17500 esac
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_link") 2>conftest.er1
17503 ac_status=$?
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } && {
17509 test -z "$ac_c_werror_flag" ||
17510 test ! -s conftest.err
17511 } && test -s conftest$ac_exeext &&
17512 $as_test_x conftest$ac_exeext; then
17513 eval "$as_ac_var=yes"
17514 else
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 eval "$as_ac_var=no"
17519 fi
17520
17521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17522 conftest$ac_exeext conftest.$ac_ext
17523 fi
17524 ac_res=`eval echo '${'$as_ac_var'}'`
17525 { echo "$as_me:$LINENO: result: $ac_res" >&5
17526 echo "${ECHO_T}$ac_res" >&6; }
17527 if test `eval echo '${'$as_ac_var'}'` = yes; then
17528 cat >>confdefs.h <<_ACEOF
17529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17530 _ACEOF
17531
17532 else
17533 case " $LIBOBJS " in
17534 *" getloadavg.$ac_objext "* ) ;;
17535 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17536 ;;
17537 esac
17538
17539
17540 cat >>confdefs.h <<\_ACEOF
17541 #define C_GETLOADAVG 1
17542 _ACEOF
17543
17544 # Figure out what our getloadavg.c needs.
17545 ac_have_func=no
17546 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17547 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17548 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17549 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
17551 fi
17552 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17553 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17554 else
17555 # Is the header compilable?
17556 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17557 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17558 cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h. */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 $ac_includes_default
17565 #include <sys/dg_sys_info.h>
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_compile") 2>conftest.er1
17575 ac_status=$?
17576 grep -v '^ *+' conftest.er1 >conftest.err
17577 rm -f conftest.er1
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); } && {
17581 test -z "$ac_c_werror_flag" ||
17582 test ! -s conftest.err
17583 } && test -s conftest.$ac_objext; then
17584 ac_header_compiler=yes
17585 else
17586 echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17588
17589 ac_header_compiler=no
17590 fi
17591
17592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17594 echo "${ECHO_T}$ac_header_compiler" >&6; }
17595
17596 # Is the header present?
17597 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17598 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17599 cat >conftest.$ac_ext <<_ACEOF
17600 /* confdefs.h. */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17605 #include <sys/dg_sys_info.h>
17606 _ACEOF
17607 if { (ac_try="$ac_cpp conftest.$ac_ext"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17614 ac_status=$?
17615 grep -v '^ *+' conftest.er1 >conftest.err
17616 rm -f conftest.er1
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } >/dev/null && {
17620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 }; then
17623 ac_header_preproc=yes
17624 else
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17627
17628 ac_header_preproc=no
17629 fi
17630
17631 rm -f conftest.err conftest.$ac_ext
17632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17633 echo "${ECHO_T}$ac_header_preproc" >&6; }
17634
17635 # So? What about this header?
17636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17637 yes:no: )
17638 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17639 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17640 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17641 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17642 ac_header_preproc=yes
17643 ;;
17644 no:yes:* )
17645 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17646 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17647 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17648 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17649 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17650 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17651 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17652 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17653 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17654 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17655 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17656 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17657
17658 ;;
17659 esac
17660 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17661 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17662 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17663 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 else
17665 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17666 fi
17667 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17668 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17669
17670 fi
17671 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17672 ac_have_func=yes
17673
17674 cat >>confdefs.h <<\_ACEOF
17675 #define DGUX 1
17676 _ACEOF
17677
17678
17679 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17680 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17681 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 else
17684 ac_check_lib_save_LIBS=$LIBS
17685 LIBS="-ldgc $LIBS"
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h. */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692
17693 /* Override any GCC internal prototype to avoid an error.
17694 Use char because int might match the return type of a GCC
17695 builtin and then its argument prototype would still apply. */
17696 #ifdef __cplusplus
17697 extern "C"
17698 #endif
17699 char dg_sys_info ();
17700 int
17701 main ()
17702 {
17703 return dg_sys_info ();
17704 ;
17705 return 0;
17706 }
17707 _ACEOF
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (ac_try="$ac_link"
17710 case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17713 esac
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_link") 2>conftest.er1
17716 ac_status=$?
17717 grep -v '^ *+' conftest.er1 >conftest.err
17718 rm -f conftest.er1
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } && {
17722 test -z "$ac_c_werror_flag" ||
17723 test ! -s conftest.err
17724 } && test -s conftest$ac_exeext &&
17725 $as_test_x conftest$ac_exeext; then
17726 ac_cv_lib_dgc_dg_sys_info=yes
17727 else
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731 ac_cv_lib_dgc_dg_sys_info=no
17732 fi
17733
17734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17735 conftest$ac_exeext conftest.$ac_ext
17736 LIBS=$ac_check_lib_save_LIBS
17737 fi
17738 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17739 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17740 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17741 cat >>confdefs.h <<_ACEOF
17742 #define HAVE_LIBDGC 1
17743 _ACEOF
17744
17745 LIBS="-ldgc $LIBS"
17746
17747 fi
17748
17749 fi
17750
17751
17752
17753 if test "${ac_cv_header_locale_h+set}" = set; then
17754 { echo "$as_me:$LINENO: checking for locale.h" >&5
17755 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17756 if test "${ac_cv_header_locale_h+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 fi
17759 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17760 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17761 else
17762 # Is the header compilable?
17763 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17764 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17765 cat >conftest.$ac_ext <<_ACEOF
17766 /* confdefs.h. */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 $ac_includes_default
17772 #include <locale.h>
17773 _ACEOF
17774 rm -f conftest.$ac_objext
17775 if { (ac_try="$ac_compile"
17776 case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17779 esac
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_compile") 2>conftest.er1
17782 ac_status=$?
17783 grep -v '^ *+' conftest.er1 >conftest.err
17784 rm -f conftest.er1
17785 cat conftest.err >&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } && {
17788 test -z "$ac_c_werror_flag" ||
17789 test ! -s conftest.err
17790 } && test -s conftest.$ac_objext; then
17791 ac_header_compiler=yes
17792 else
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17795
17796 ac_header_compiler=no
17797 fi
17798
17799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17801 echo "${ECHO_T}$ac_header_compiler" >&6; }
17802
17803 # Is the header present?
17804 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17805 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17806 cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h. */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 #include <locale.h>
17813 _ACEOF
17814 if { (ac_try="$ac_cpp conftest.$ac_ext"
17815 case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818 esac
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17821 ac_status=$?
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } >/dev/null && {
17827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17828 test ! -s conftest.err
17829 }; then
17830 ac_header_preproc=yes
17831 else
17832 echo "$as_me: failed program was:" >&5
17833 sed 's/^/| /' conftest.$ac_ext >&5
17834
17835 ac_header_preproc=no
17836 fi
17837
17838 rm -f conftest.err conftest.$ac_ext
17839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17840 echo "${ECHO_T}$ac_header_preproc" >&6; }
17841
17842 # So? What about this header?
17843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17844 yes:no: )
17845 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17846 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17848 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17849 ac_header_preproc=yes
17850 ;;
17851 no:yes:* )
17852 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17853 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17854 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17855 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17856 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17857 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17858 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17859 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17860 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17861 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17863 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17864
17865 ;;
17866 esac
17867 { echo "$as_me:$LINENO: checking for locale.h" >&5
17868 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17869 if test "${ac_cv_header_locale_h+set}" = set; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 else
17872 ac_cv_header_locale_h=$ac_header_preproc
17873 fi
17874 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17875 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17876
17877 fi
17878
17879
17880
17881 for ac_func in setlocale
17882 do
17883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17888 else
17889 cat >conftest.$ac_ext <<_ACEOF
17890 /* confdefs.h. */
17891 _ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17897 #define $ac_func innocuous_$ac_func
17898
17899 /* System header to define __stub macros and hopefully few prototypes,
17900 which can conflict with char $ac_func (); below.
17901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17902 <limits.h> exists even on freestanding compilers. */
17903
17904 #ifdef __STDC__
17905 # include <limits.h>
17906 #else
17907 # include <assert.h>
17908 #endif
17909
17910 #undef $ac_func
17911
17912 /* Override any GCC internal prototype to avoid an error.
17913 Use char because int might match the return type of a GCC
17914 builtin and then its argument prototype would still apply. */
17915 #ifdef __cplusplus
17916 extern "C"
17917 #endif
17918 char $ac_func ();
17919 /* The GNU C library defines this for functions which it implements
17920 to always fail with ENOSYS. Some functions are actually named
17921 something starting with __ and the normal name is an alias. */
17922 #if defined __stub_$ac_func || defined __stub___$ac_func
17923 choke me
17924 #endif
17925
17926 int
17927 main ()
17928 {
17929 return $ac_func ();
17930 ;
17931 return 0;
17932 }
17933 _ACEOF
17934 rm -f conftest.$ac_objext conftest$ac_exeext
17935 if { (ac_try="$ac_link"
17936 case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17939 esac
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_link") 2>conftest.er1
17942 ac_status=$?
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } && {
17948 test -z "$ac_c_werror_flag" ||
17949 test ! -s conftest.err
17950 } && test -s conftest$ac_exeext &&
17951 $as_test_x conftest$ac_exeext; then
17952 eval "$as_ac_var=yes"
17953 else
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17956
17957 eval "$as_ac_var=no"
17958 fi
17959
17960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17961 conftest$ac_exeext conftest.$ac_ext
17962 fi
17963 ac_res=`eval echo '${'$as_ac_var'}'`
17964 { echo "$as_me:$LINENO: result: $ac_res" >&5
17965 echo "${ECHO_T}$ac_res" >&6; }
17966 if test `eval echo '${'$as_ac_var'}'` = yes; then
17967 cat >>confdefs.h <<_ACEOF
17968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17969 _ACEOF
17970
17971 fi
17972 done
17973
17974
17975 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17976 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17977 # Irix 4.0.5F has the header but not the library.
17978 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17979 ac_have_func=yes
17980
17981 cat >>confdefs.h <<\_ACEOF
17982 #define SVR4 1
17983 _ACEOF
17984
17985 fi
17986
17987 if test $ac_have_func = no; then
17988 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17989 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17990 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17991 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 fi
17994 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17995 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17996 else
17997 # Is the header compilable?
17998 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17999 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18000 cat >conftest.$ac_ext <<_ACEOF
18001 /* confdefs.h. */
18002 _ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18006 $ac_includes_default
18007 #include <inq_stats/cpustats.h>
18008 _ACEOF
18009 rm -f conftest.$ac_objext
18010 if { (ac_try="$ac_compile"
18011 case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_compile") 2>conftest.er1
18017 ac_status=$?
18018 grep -v '^ *+' conftest.er1 >conftest.err
18019 rm -f conftest.er1
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } && {
18023 test -z "$ac_c_werror_flag" ||
18024 test ! -s conftest.err
18025 } && test -s conftest.$ac_objext; then
18026 ac_header_compiler=yes
18027 else
18028 echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18030
18031 ac_header_compiler=no
18032 fi
18033
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18036 echo "${ECHO_T}$ac_header_compiler" >&6; }
18037
18038 # Is the header present?
18039 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18040 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18041 cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h. */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 #include <inq_stats/cpustats.h>
18048 _ACEOF
18049 if { (ac_try="$ac_cpp conftest.$ac_ext"
18050 case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18053 esac
18054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18056 ac_status=$?
18057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } >/dev/null && {
18062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18063 test ! -s conftest.err
18064 }; then
18065 ac_header_preproc=yes
18066 else
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18069
18070 ac_header_preproc=no
18071 fi
18072
18073 rm -f conftest.err conftest.$ac_ext
18074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18075 echo "${ECHO_T}$ac_header_preproc" >&6; }
18076
18077 # So? What about this header?
18078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18079 yes:no: )
18080 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18081 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18083 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18084 ac_header_preproc=yes
18085 ;;
18086 no:yes:* )
18087 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18088 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18090 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18091 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18092 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18094 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18096 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18098 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18099
18100 ;;
18101 esac
18102 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18103 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18104 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 else
18107 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18108 fi
18109 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18110 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18111
18112 fi
18113 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18114 ac_have_func=yes
18115
18116 cat >>confdefs.h <<\_ACEOF
18117 #define UMAX 1
18118 _ACEOF
18119
18120
18121 cat >>confdefs.h <<\_ACEOF
18122 #define UMAX4_3 1
18123 _ACEOF
18124
18125 fi
18126
18127
18128 fi
18129
18130 if test $ac_have_func = no; then
18131 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18132 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18133 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18134 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 fi
18137 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18138 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18139 else
18140 # Is the header compilable?
18141 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18142 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18143 cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h. */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 $ac_includes_default
18150 #include <sys/cpustats.h>
18151 _ACEOF
18152 rm -f conftest.$ac_objext
18153 if { (ac_try="$ac_compile"
18154 case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157 esac
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_compile") 2>conftest.er1
18160 ac_status=$?
18161 grep -v '^ *+' conftest.er1 >conftest.err
18162 rm -f conftest.er1
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } && {
18166 test -z "$ac_c_werror_flag" ||
18167 test ! -s conftest.err
18168 } && test -s conftest.$ac_objext; then
18169 ac_header_compiler=yes
18170 else
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18173
18174 ac_header_compiler=no
18175 fi
18176
18177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18179 echo "${ECHO_T}$ac_header_compiler" >&6; }
18180
18181 # Is the header present?
18182 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18183 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h. */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 #include <sys/cpustats.h>
18191 _ACEOF
18192 if { (ac_try="$ac_cpp conftest.$ac_ext"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18199 ac_status=$?
18200 grep -v '^ *+' conftest.er1 >conftest.err
18201 rm -f conftest.er1
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } >/dev/null && {
18205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18207 }; then
18208 ac_header_preproc=yes
18209 else
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18212
18213 ac_header_preproc=no
18214 fi
18215
18216 rm -f conftest.err conftest.$ac_ext
18217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18218 echo "${ECHO_T}$ac_header_preproc" >&6; }
18219
18220 # So? What about this header?
18221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18222 yes:no: )
18223 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18224 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18226 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18227 ac_header_preproc=yes
18228 ;;
18229 no:yes:* )
18230 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18231 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18232 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18233 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18234 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18235 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18236 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18237 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18238 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18239 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18240 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18241 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18242
18243 ;;
18244 esac
18245 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18246 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18247 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18251 fi
18252 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18253 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18254
18255 fi
18256 if test $ac_cv_header_sys_cpustats_h = yes; then
18257 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18258 #define UMAX 1
18259 _ACEOF
18260
18261 fi
18262
18263
18264 fi
18265
18266 if test $ac_have_func = no; then
18267
18268 for ac_header in mach/mach.h
18269 do
18270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 fi
18277 ac_res=`eval echo '${'$as_ac_Header'}'`
18278 { echo "$as_me:$LINENO: result: $ac_res" >&5
18279 echo "${ECHO_T}$ac_res" >&6; }
18280 else
18281 # Is the header compilable?
18282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18284 cat >conftest.$ac_ext <<_ACEOF
18285 /* confdefs.h. */
18286 _ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18290 $ac_includes_default
18291 #include <$ac_header>
18292 _ACEOF
18293 rm -f conftest.$ac_objext
18294 if { (ac_try="$ac_compile"
18295 case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_compile") 2>conftest.er1
18301 ac_status=$?
18302 grep -v '^ *+' conftest.er1 >conftest.err
18303 rm -f conftest.er1
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } && {
18307 test -z "$ac_c_werror_flag" ||
18308 test ! -s conftest.err
18309 } && test -s conftest.$ac_objext; then
18310 ac_header_compiler=yes
18311 else
18312 echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18314
18315 ac_header_compiler=no
18316 fi
18317
18318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18320 echo "${ECHO_T}$ac_header_compiler" >&6; }
18321
18322 # Is the header present?
18323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 #include <$ac_header>
18332 _ACEOF
18333 if { (ac_try="$ac_cpp conftest.$ac_ext"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18337 esac
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18340 ac_status=$?
18341 grep -v '^ *+' conftest.er1 >conftest.err
18342 rm -f conftest.er1
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } >/dev/null && {
18346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18347 test ! -s conftest.err
18348 }; then
18349 ac_header_preproc=yes
18350 else
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354 ac_header_preproc=no
18355 fi
18356
18357 rm -f conftest.err conftest.$ac_ext
18358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18359 echo "${ECHO_T}$ac_header_preproc" >&6; }
18360
18361 # So? What about this header?
18362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18363 yes:no: )
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18368 ac_header_preproc=yes
18369 ;;
18370 no:yes:* )
18371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18383
18384 ;;
18385 esac
18386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391 eval "$as_ac_Header=\$ac_header_preproc"
18392 fi
18393 ac_res=`eval echo '${'$as_ac_Header'}'`
18394 { echo "$as_me:$LINENO: result: $ac_res" >&5
18395 echo "${ECHO_T}$ac_res" >&6; }
18396
18397 fi
18398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18399 cat >>confdefs.h <<_ACEOF
18400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18401 _ACEOF
18402
18403 fi
18404
18405 done
18406
18407 fi
18408
18409
18410 for ac_header in nlist.h
18411 do
18412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18417 echo $ECHO_N "(cached) $ECHO_C" >&6
18418 fi
18419 ac_res=`eval echo '${'$as_ac_Header'}'`
18420 { echo "$as_me:$LINENO: result: $ac_res" >&5
18421 echo "${ECHO_T}$ac_res" >&6; }
18422 else
18423 # Is the header compilable?
18424 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18426 cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h. */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 $ac_includes_default
18433 #include <$ac_header>
18434 _ACEOF
18435 rm -f conftest.$ac_objext
18436 if { (ac_try="$ac_compile"
18437 case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18440 esac
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_compile") 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } && {
18449 test -z "$ac_c_werror_flag" ||
18450 test ! -s conftest.err
18451 } && test -s conftest.$ac_objext; then
18452 ac_header_compiler=yes
18453 else
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18456
18457 ac_header_compiler=no
18458 fi
18459
18460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18462 echo "${ECHO_T}$ac_header_compiler" >&6; }
18463
18464 # Is the header present?
18465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18467 cat >conftest.$ac_ext <<_ACEOF
18468 /* confdefs.h. */
18469 _ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h. */
18473 #include <$ac_header>
18474 _ACEOF
18475 if { (ac_try="$ac_cpp conftest.$ac_ext"
18476 case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18479 esac
18480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18482 ac_status=$?
18483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } >/dev/null && {
18488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18489 test ! -s conftest.err
18490 }; then
18491 ac_header_preproc=yes
18492 else
18493 echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18495
18496 ac_header_preproc=no
18497 fi
18498
18499 rm -f conftest.err conftest.$ac_ext
18500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18501 echo "${ECHO_T}$ac_header_preproc" >&6; }
18502
18503 # So? What about this header?
18504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18505 yes:no: )
18506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18510 ac_header_preproc=yes
18511 ;;
18512 no:yes:* )
18513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18525
18526 ;;
18527 esac
18528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18532 else
18533 eval "$as_ac_Header=\$ac_header_preproc"
18534 fi
18535 ac_res=`eval echo '${'$as_ac_Header'}'`
18536 { echo "$as_me:$LINENO: result: $ac_res" >&5
18537 echo "${ECHO_T}$ac_res" >&6; }
18538
18539 fi
18540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18541 cat >>confdefs.h <<_ACEOF
18542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18543 _ACEOF
18544 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18545 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18546 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18548 else
18549 cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h. */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18555 #include <nlist.h>
18556
18557 int
18558 main ()
18559 {
18560 static struct nlist ac_aggr;
18561 if (ac_aggr.n_un.n_name)
18562 return 0;
18563 ;
18564 return 0;
18565 }
18566 _ACEOF
18567 rm -f conftest.$ac_objext
18568 if { (ac_try="$ac_compile"
18569 case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18572 esac
18573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_compile") 2>conftest.er1
18575 ac_status=$?
18576 grep -v '^ *+' conftest.er1 >conftest.err
18577 rm -f conftest.er1
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } && {
18581 test -z "$ac_c_werror_flag" ||
18582 test ! -s conftest.err
18583 } && test -s conftest.$ac_objext; then
18584 ac_cv_member_struct_nlist_n_un_n_name=yes
18585 else
18586 echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18588
18589 cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h. */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18595 #include <nlist.h>
18596
18597 int
18598 main ()
18599 {
18600 static struct nlist ac_aggr;
18601 if (sizeof ac_aggr.n_un.n_name)
18602 return 0;
18603 ;
18604 return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest.$ac_objext
18608 if { (ac_try="$ac_compile"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_compile") 2>conftest.er1
18615 ac_status=$?
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } && {
18621 test -z "$ac_c_werror_flag" ||
18622 test ! -s conftest.err
18623 } && test -s conftest.$ac_objext; then
18624 ac_cv_member_struct_nlist_n_un_n_name=yes
18625 else
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18628
18629 ac_cv_member_struct_nlist_n_un_n_name=no
18630 fi
18631
18632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18633 fi
18634
18635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636 fi
18637 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18638 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18639 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18640
18641 cat >>confdefs.h <<_ACEOF
18642 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18643 _ACEOF
18644
18645
18646 cat >>confdefs.h <<\_ACEOF
18647 #define NLIST_NAME_UNION 1
18648 _ACEOF
18649
18650 fi
18651
18652
18653 fi
18654
18655 done
18656
18657 fi
18658 done
18659
18660
18661 # Some definitions of getloadavg require that the program be installed setgid.
18662 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18663 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18664 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18674 #ifdef LDAV_PRIVILEGED
18675 Yowza Am I SETGID yet
18676 #endif
18677 _ACEOF
18678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18679 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18680 ac_cv_func_getloadavg_setgid=yes
18681 else
18682 ac_cv_func_getloadavg_setgid=no
18683 fi
18684 rm -f conftest*
18685
18686 fi
18687 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18688 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18689 if test $ac_cv_func_getloadavg_setgid = yes; then
18690 NEED_SETGID=true
18691
18692 cat >>confdefs.h <<\_ACEOF
18693 #define GETLOADAVG_PRIVILEGED 1
18694 _ACEOF
18695
18696 else
18697 NEED_SETGID=false
18698 fi
18699
18700 if test $ac_cv_func_getloadavg_setgid = yes; then
18701 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18702 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18703 if test "${ac_cv_group_kmem+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18705 else
18706 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18707 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18708 # If we got an error (system does not support symlinks), try without -L.
18709 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18710 ac_cv_group_kmem=`echo $ac_ls_output \
18711 | sed -ne 's/[ ][ ]*/ /g;
18712 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18713 / /s/.* //;p;'`
18714
18715 fi
18716 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18717 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18718 KMEM_GROUP=$ac_cv_group_kmem
18719 fi
18720 if test "x$ac_save_LIBS" = x; then
18721 GETLOADAVG_LIBS=$LIBS
18722 else
18723 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18724 fi
18725 LIBS=$ac_save_LIBS
18726
18727
18728
18729 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18730 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18731 if test "${ac_cv_sys_largefile_source+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 else
18734 while :; do
18735 cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h. */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 #include <stdio.h>
18742 int
18743 main ()
18744 {
18745 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18746 ;
18747 return 0;
18748 }
18749 _ACEOF
18750 rm -f conftest.$ac_objext conftest$ac_exeext
18751 if { (ac_try="$ac_link"
18752 case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18755 esac
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_link") 2>conftest.er1
18758 ac_status=$?
18759 grep -v '^ *+' conftest.er1 >conftest.err
18760 rm -f conftest.er1
18761 cat conftest.err >&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } && {
18764 test -z "$ac_c_werror_flag" ||
18765 test ! -s conftest.err
18766 } && test -s conftest$ac_exeext &&
18767 $as_test_x conftest$ac_exeext; then
18768 ac_cv_sys_largefile_source=no; break
18769 else
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18772
18773
18774 fi
18775
18776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18777 conftest$ac_exeext conftest.$ac_ext
18778 cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h. */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18784 #define _LARGEFILE_SOURCE 1
18785 #include <stdio.h>
18786 int
18787 main ()
18788 {
18789 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18790 ;
18791 return 0;
18792 }
18793 _ACEOF
18794 rm -f conftest.$ac_objext conftest$ac_exeext
18795 if { (ac_try="$ac_link"
18796 case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18799 esac
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_link") 2>conftest.er1
18802 ac_status=$?
18803 grep -v '^ *+' conftest.er1 >conftest.err
18804 rm -f conftest.er1
18805 cat conftest.err >&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } && {
18808 test -z "$ac_c_werror_flag" ||
18809 test ! -s conftest.err
18810 } && test -s conftest$ac_exeext &&
18811 $as_test_x conftest$ac_exeext; then
18812 ac_cv_sys_largefile_source=1; break
18813 else
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817
18818 fi
18819
18820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18821 conftest$ac_exeext conftest.$ac_ext
18822 ac_cv_sys_largefile_source=unknown
18823 break
18824 done
18825 fi
18826 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18827 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18828 case $ac_cv_sys_largefile_source in #(
18829 no | unknown) ;;
18830 *)
18831 cat >>confdefs.h <<_ACEOF
18832 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18833 _ACEOF
18834 ;;
18835 esac
18836 rm -f conftest*
18837
18838 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18839 # in glibc 2.1.3, but that breaks too many other things.
18840 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18841 if test $ac_cv_sys_largefile_source != unknown; then
18842
18843 cat >>confdefs.h <<\_ACEOF
18844 #define HAVE_FSEEKO 1
18845 _ACEOF
18846
18847 fi
18848
18849
18850 # Configure getopt.
18851 # getopt.m4 serial 10
18852
18853 # The getopt module assume you want GNU getopt, with getopt_long etc,
18854 # rather than vanilla POSIX getopt. This means your your code should
18855 # always include <getopt.h> for the getopt prototypes.
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867 # Prerequisites of lib/getopt*.
18868
18869
18870
18871
18872 GETOPT_H=
18873
18874 for ac_header in getopt.h
18875 do
18876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18882 fi
18883 ac_res=`eval echo '${'$as_ac_Header'}'`
18884 { echo "$as_me:$LINENO: result: $ac_res" >&5
18885 echo "${ECHO_T}$ac_res" >&6; }
18886 else
18887 # Is the header compilable?
18888 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18890 cat >conftest.$ac_ext <<_ACEOF
18891 /* confdefs.h. */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 $ac_includes_default
18897 #include <$ac_header>
18898 _ACEOF
18899 rm -f conftest.$ac_objext
18900 if { (ac_try="$ac_compile"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18904 esac
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_compile") 2>conftest.er1
18907 ac_status=$?
18908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } && {
18913 test -z "$ac_c_werror_flag" ||
18914 test ! -s conftest.err
18915 } && test -s conftest.$ac_objext; then
18916 ac_header_compiler=yes
18917 else
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18920
18921 ac_header_compiler=no
18922 fi
18923
18924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18926 echo "${ECHO_T}$ac_header_compiler" >&6; }
18927
18928 # Is the header present?
18929 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18931 cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h. */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 #include <$ac_header>
18938 _ACEOF
18939 if { (ac_try="$ac_cpp conftest.$ac_ext"
18940 case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18943 esac
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18946 ac_status=$?
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } >/dev/null && {
18952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18953 test ! -s conftest.err
18954 }; then
18955 ac_header_preproc=yes
18956 else
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18959
18960 ac_header_preproc=no
18961 fi
18962
18963 rm -f conftest.err conftest.$ac_ext
18964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18965 echo "${ECHO_T}$ac_header_preproc" >&6; }
18966
18967 # So? What about this header?
18968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18969 yes:no: )
18970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18974 ac_header_preproc=yes
18975 ;;
18976 no:yes:* )
18977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18989
18990 ;;
18991 esac
18992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18995 echo $ECHO_N "(cached) $ECHO_C" >&6
18996 else
18997 eval "$as_ac_Header=\$ac_header_preproc"
18998 fi
18999 ac_res=`eval echo '${'$as_ac_Header'}'`
19000 { echo "$as_me:$LINENO: result: $ac_res" >&5
19001 echo "${ECHO_T}$ac_res" >&6; }
19002
19003 fi
19004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19005 cat >>confdefs.h <<_ACEOF
19006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19007 _ACEOF
19008
19009 else
19010 GETOPT_H=getopt.h
19011 fi
19012
19013 done
19014
19015 if test -z "$GETOPT_H"; then
19016
19017 for ac_func in getopt_long_only
19018 do
19019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
19024 else
19025 cat >conftest.$ac_ext <<_ACEOF
19026 /* confdefs.h. */
19027 _ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h. */
19031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19033 #define $ac_func innocuous_$ac_func
19034
19035 /* System header to define __stub macros and hopefully few prototypes,
19036 which can conflict with char $ac_func (); below.
19037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19038 <limits.h> exists even on freestanding compilers. */
19039
19040 #ifdef __STDC__
19041 # include <limits.h>
19042 #else
19043 # include <assert.h>
19044 #endif
19045
19046 #undef $ac_func
19047
19048 /* Override any GCC internal prototype to avoid an error.
19049 Use char because int might match the return type of a GCC
19050 builtin and then its argument prototype would still apply. */
19051 #ifdef __cplusplus
19052 extern "C"
19053 #endif
19054 char $ac_func ();
19055 /* The GNU C library defines this for functions which it implements
19056 to always fail with ENOSYS. Some functions are actually named
19057 something starting with __ and the normal name is an alias. */
19058 #if defined __stub_$ac_func || defined __stub___$ac_func
19059 choke me
19060 #endif
19061
19062 int
19063 main ()
19064 {
19065 return $ac_func ();
19066 ;
19067 return 0;
19068 }
19069 _ACEOF
19070 rm -f conftest.$ac_objext conftest$ac_exeext
19071 if { (ac_try="$ac_link"
19072 case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19075 esac
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_link") 2>conftest.er1
19078 ac_status=$?
19079 grep -v '^ *+' conftest.er1 >conftest.err
19080 rm -f conftest.er1
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } && {
19084 test -z "$ac_c_werror_flag" ||
19085 test ! -s conftest.err
19086 } && test -s conftest$ac_exeext &&
19087 $as_test_x conftest$ac_exeext; then
19088 eval "$as_ac_var=yes"
19089 else
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19092
19093 eval "$as_ac_var=no"
19094 fi
19095
19096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19097 conftest$ac_exeext conftest.$ac_ext
19098 fi
19099 ac_res=`eval echo '${'$as_ac_var'}'`
19100 { echo "$as_me:$LINENO: result: $ac_res" >&5
19101 echo "${ECHO_T}$ac_res" >&6; }
19102 if test `eval echo '${'$as_ac_var'}'` = yes; then
19103 cat >>confdefs.h <<_ACEOF
19104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19105 _ACEOF
19106
19107 else
19108 GETOPT_H=getopt.h
19109 fi
19110 done
19111
19112 fi
19113
19114 if test -z "$GETOPT_H"; then
19115 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19116 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19117 if test "${ac_cv_have_decl_optreset+set}" = set; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120 cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h. */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19126 #include <getopt.h>
19127
19128 int
19129 main ()
19130 {
19131 #ifndef optreset
19132 (void) optreset;
19133 #endif
19134
19135 ;
19136 return 0;
19137 }
19138 _ACEOF
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_compile") 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } && {
19153 test -z "$ac_c_werror_flag" ||
19154 test ! -s conftest.err
19155 } && test -s conftest.$ac_objext; then
19156 ac_cv_have_decl_optreset=yes
19157 else
19158 echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19160
19161 ac_cv_have_decl_optreset=no
19162 fi
19163
19164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19165 fi
19166 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19167 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19168 if test $ac_cv_have_decl_optreset = yes; then
19169 GETOPT_H=getopt.h
19170 fi
19171
19172 fi
19173
19174 if test -z "$GETOPT_H"; then
19175 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19176 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19177 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19179 else
19180 if test "$cross_compiling" = yes; then
19181 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19182 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19183 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 else
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 <getopt.h>
19193
19194 int
19195 main ()
19196 {
19197 #ifndef getopt_clip
19198 (void) getopt_clip;
19199 #endif
19200
19201 ;
19202 return 0;
19203 }
19204 _ACEOF
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19210 esac
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_compile") 2>conftest.er1
19213 ac_status=$?
19214 grep -v '^ *+' conftest.er1 >conftest.err
19215 rm -f conftest.er1
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest.$ac_objext; then
19222 ac_cv_have_decl_getopt_clip=yes
19223 else
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227 ac_cv_have_decl_getopt_clip=no
19228 fi
19229
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 fi
19232 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19233 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19234 if test $ac_cv_have_decl_getopt_clip = yes; then
19235 gl_cv_func_gnu_getopt=no
19236 else
19237 gl_cv_func_gnu_getopt=yes
19238 fi
19239
19240 else
19241 cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h. */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 #include <getopt.h>
19248 int
19249 main ()
19250 {
19251
19252 char *myargv[3];
19253 myargv[0] = "conftest";
19254 myargv[1] = "-+";
19255 myargv[2] = 0;
19256 return getopt (2, myargv, "+a") != '?';
19257
19258 ;
19259 return 0;
19260 }
19261 _ACEOF
19262 rm -f conftest$ac_exeext
19263 if { (ac_try="$ac_link"
19264 case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19267 esac
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_link") 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19273 { (case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19276 esac
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_try") 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; }; then
19282 gl_cv_func_gnu_getopt=yes
19283 else
19284 echo "$as_me: program exited with status $ac_status" >&5
19285 echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19287
19288 ( exit $ac_status )
19289 gl_cv_func_gnu_getopt=no
19290 fi
19291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19292 fi
19293
19294
19295 fi
19296 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19297 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19298 if test "$gl_cv_func_gnu_getopt" = "no"; then
19299 GETOPT_H=getopt.h
19300 fi
19301 fi
19302
19303
19304
19305 if test -n "$GETOPT_H"; then
19306
19307
19308 GETOPT_H=getopt.h
19309
19310 cat >>confdefs.h <<\_ACEOF
19311 #define __GETOPT_PREFIX rpl_
19312 _ACEOF
19313
19314
19315
19316 :
19317 GETOPTOBJS='getopt.o getopt1.o'
19318
19319 fi
19320
19321
19322
19323
19324 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19325 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19326 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 else
19329 # Use it with a single arg.
19330 cat >conftest.$ac_ext <<_ACEOF
19331 /* confdefs.h. */
19332 _ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h. */
19336 $ac_includes_default
19337 int
19338 main ()
19339 {
19340 getpgrp (0);
19341 ;
19342 return 0;
19343 }
19344 _ACEOF
19345 rm -f conftest.$ac_objext
19346 if { (ac_try="$ac_compile"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19350 esac
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_compile") 2>conftest.er1
19353 ac_status=$?
19354 grep -v '^ *+' conftest.er1 >conftest.err
19355 rm -f conftest.er1
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } && {
19359 test -z "$ac_c_werror_flag" ||
19360 test ! -s conftest.err
19361 } && test -s conftest.$ac_objext; then
19362 ac_cv_func_getpgrp_void=no
19363 else
19364 echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19366
19367 ac_cv_func_getpgrp_void=yes
19368 fi
19369
19370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19371
19372 fi
19373 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19374 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19375 if test $ac_cv_func_getpgrp_void = yes; then
19376
19377 cat >>confdefs.h <<\_ACEOF
19378 #define GETPGRP_VOID 1
19379 _ACEOF
19380
19381 fi
19382
19383
19384
19385 for ac_func in strftime
19386 do
19387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 else
19393 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h. */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19401 #define $ac_func innocuous_$ac_func
19402
19403 /* System header to define __stub macros and hopefully few prototypes,
19404 which can conflict with char $ac_func (); below.
19405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19406 <limits.h> exists even on freestanding compilers. */
19407
19408 #ifdef __STDC__
19409 # include <limits.h>
19410 #else
19411 # include <assert.h>
19412 #endif
19413
19414 #undef $ac_func
19415
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19419 #ifdef __cplusplus
19420 extern "C"
19421 #endif
19422 char $ac_func ();
19423 /* The GNU C library defines this for functions which it implements
19424 to always fail with ENOSYS. Some functions are actually named
19425 something starting with __ and the normal name is an alias. */
19426 #if defined __stub_$ac_func || defined __stub___$ac_func
19427 choke me
19428 #endif
19429
19430 int
19431 main ()
19432 {
19433 return $ac_func ();
19434 ;
19435 return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext conftest$ac_exeext
19439 if { (ac_try="$ac_link"
19440 case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19443 esac
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_link") 2>conftest.er1
19446 ac_status=$?
19447 grep -v '^ *+' conftest.er1 >conftest.err
19448 rm -f conftest.er1
19449 cat conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } && {
19452 test -z "$ac_c_werror_flag" ||
19453 test ! -s conftest.err
19454 } && test -s conftest$ac_exeext &&
19455 $as_test_x conftest$ac_exeext; then
19456 eval "$as_ac_var=yes"
19457 else
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19460
19461 eval "$as_ac_var=no"
19462 fi
19463
19464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19465 conftest$ac_exeext conftest.$ac_ext
19466 fi
19467 ac_res=`eval echo '${'$as_ac_var'}'`
19468 { echo "$as_me:$LINENO: result: $ac_res" >&5
19469 echo "${ECHO_T}$ac_res" >&6; }
19470 if test `eval echo '${'$as_ac_var'}'` = yes; then
19471 cat >>confdefs.h <<_ACEOF
19472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19473 _ACEOF
19474
19475 else
19476 # strftime is in -lintl on SCO UNIX.
19477 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19478 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19479 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 else
19482 ac_check_lib_save_LIBS=$LIBS
19483 LIBS="-lintl $LIBS"
19484 cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h. */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490
19491 /* Override any GCC internal prototype to avoid an error.
19492 Use char because int might match the return type of a GCC
19493 builtin and then its argument prototype would still apply. */
19494 #ifdef __cplusplus
19495 extern "C"
19496 #endif
19497 char strftime ();
19498 int
19499 main ()
19500 {
19501 return strftime ();
19502 ;
19503 return 0;
19504 }
19505 _ACEOF
19506 rm -f conftest.$ac_objext conftest$ac_exeext
19507 if { (ac_try="$ac_link"
19508 case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19511 esac
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_link") 2>conftest.er1
19514 ac_status=$?
19515 grep -v '^ *+' conftest.er1 >conftest.err
19516 rm -f conftest.er1
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } && {
19520 test -z "$ac_c_werror_flag" ||
19521 test ! -s conftest.err
19522 } && test -s conftest$ac_exeext &&
19523 $as_test_x conftest$ac_exeext; then
19524 ac_cv_lib_intl_strftime=yes
19525 else
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 ac_cv_lib_intl_strftime=no
19530 fi
19531
19532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19533 conftest$ac_exeext conftest.$ac_ext
19534 LIBS=$ac_check_lib_save_LIBS
19535 fi
19536 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19537 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19538 if test $ac_cv_lib_intl_strftime = yes; then
19539 cat >>confdefs.h <<\_ACEOF
19540 #define HAVE_STRFTIME 1
19541 _ACEOF
19542
19543 LIBS="-lintl $LIBS"
19544 fi
19545
19546 fi
19547 done
19548
19549
19550 # UNIX98 PTYs.
19551
19552 for ac_func in grantpt
19553 do
19554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19558 echo $ECHO_N "(cached) $ECHO_C" >&6
19559 else
19560 cat >conftest.$ac_ext <<_ACEOF
19561 /* confdefs.h. */
19562 _ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h. */
19566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19568 #define $ac_func innocuous_$ac_func
19569
19570 /* System header to define __stub macros and hopefully few prototypes,
19571 which can conflict with char $ac_func (); below.
19572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19573 <limits.h> exists even on freestanding compilers. */
19574
19575 #ifdef __STDC__
19576 # include <limits.h>
19577 #else
19578 # include <assert.h>
19579 #endif
19580
19581 #undef $ac_func
19582
19583 /* Override any GCC internal prototype to avoid an error.
19584 Use char because int might match the return type of a GCC
19585 builtin and then its argument prototype would still apply. */
19586 #ifdef __cplusplus
19587 extern "C"
19588 #endif
19589 char $ac_func ();
19590 /* The GNU C library defines this for functions which it implements
19591 to always fail with ENOSYS. Some functions are actually named
19592 something starting with __ and the normal name is an alias. */
19593 #if defined __stub_$ac_func || defined __stub___$ac_func
19594 choke me
19595 #endif
19596
19597 int
19598 main ()
19599 {
19600 return $ac_func ();
19601 ;
19602 return 0;
19603 }
19604 _ACEOF
19605 rm -f conftest.$ac_objext conftest$ac_exeext
19606 if { (ac_try="$ac_link"
19607 case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_link") 2>conftest.er1
19613 ac_status=$?
19614 grep -v '^ *+' conftest.er1 >conftest.err
19615 rm -f conftest.er1
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest$ac_exeext &&
19622 $as_test_x conftest$ac_exeext; then
19623 eval "$as_ac_var=yes"
19624 else
19625 echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19627
19628 eval "$as_ac_var=no"
19629 fi
19630
19631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19632 conftest$ac_exeext conftest.$ac_ext
19633 fi
19634 ac_res=`eval echo '${'$as_ac_var'}'`
19635 { echo "$as_me:$LINENO: result: $ac_res" >&5
19636 echo "${ECHO_T}$ac_res" >&6; }
19637 if test `eval echo '${'$as_ac_var'}'` = yes; then
19638 cat >>confdefs.h <<_ACEOF
19639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19640 _ACEOF
19641
19642 fi
19643 done
19644
19645
19646 # PTY-related GNU extensions.
19647
19648 for ac_func in getpt
19649 do
19650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 else
19656 cat >conftest.$ac_ext <<_ACEOF
19657 /* confdefs.h. */
19658 _ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19664 #define $ac_func innocuous_$ac_func
19665
19666 /* System header to define __stub macros and hopefully few prototypes,
19667 which can conflict with char $ac_func (); below.
19668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19669 <limits.h> exists even on freestanding compilers. */
19670
19671 #ifdef __STDC__
19672 # include <limits.h>
19673 #else
19674 # include <assert.h>
19675 #endif
19676
19677 #undef $ac_func
19678
19679 /* Override any GCC internal prototype to avoid an error.
19680 Use char because int might match the return type of a GCC
19681 builtin and then its argument prototype would still apply. */
19682 #ifdef __cplusplus
19683 extern "C"
19684 #endif
19685 char $ac_func ();
19686 /* The GNU C library defines this for functions which it implements
19687 to always fail with ENOSYS. Some functions are actually named
19688 something starting with __ and the normal name is an alias. */
19689 #if defined __stub_$ac_func || defined __stub___$ac_func
19690 choke me
19691 #endif
19692
19693 int
19694 main ()
19695 {
19696 return $ac_func ();
19697 ;
19698 return 0;
19699 }
19700 _ACEOF
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (ac_try="$ac_link"
19703 case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19706 esac
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_link") 2>conftest.er1
19709 ac_status=$?
19710 grep -v '^ *+' conftest.er1 >conftest.err
19711 rm -f conftest.er1
19712 cat conftest.err >&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } && {
19715 test -z "$ac_c_werror_flag" ||
19716 test ! -s conftest.err
19717 } && test -s conftest$ac_exeext &&
19718 $as_test_x conftest$ac_exeext; then
19719 eval "$as_ac_var=yes"
19720 else
19721 echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19723
19724 eval "$as_ac_var=no"
19725 fi
19726
19727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19728 conftest$ac_exeext conftest.$ac_ext
19729 fi
19730 ac_res=`eval echo '${'$as_ac_var'}'`
19731 { echo "$as_me:$LINENO: result: $ac_res" >&5
19732 echo "${ECHO_T}$ac_res" >&6; }
19733 if test `eval echo '${'$as_ac_var'}'` = yes; then
19734 cat >>confdefs.h <<_ACEOF
19735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19736 _ACEOF
19737
19738 fi
19739 done
19740
19741
19742 # Check this now, so that we will NOT find the above functions in ncurses.
19743 # That is because we have not set up to link ncurses in lib-src.
19744 # It's better to believe a function is not available
19745 # than to expect to find it in ncurses.
19746
19747 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19748 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19749 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752 ac_check_lib_save_LIBS=$LIBS
19753 LIBS="-lncurses $LIBS"
19754 cat >conftest.$ac_ext <<_ACEOF
19755 /* confdefs.h. */
19756 _ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19760
19761 /* Override any GCC internal prototype to avoid an error.
19762 Use char because int might match the return type of a GCC
19763 builtin and then its argument prototype would still apply. */
19764 #ifdef __cplusplus
19765 extern "C"
19766 #endif
19767 char tparm ();
19768 int
19769 main ()
19770 {
19771 return tparm ();
19772 ;
19773 return 0;
19774 }
19775 _ACEOF
19776 rm -f conftest.$ac_objext conftest$ac_exeext
19777 if { (ac_try="$ac_link"
19778 case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_link") 2>conftest.er1
19784 ac_status=$?
19785 grep -v '^ *+' conftest.er1 >conftest.err
19786 rm -f conftest.er1
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } && {
19790 test -z "$ac_c_werror_flag" ||
19791 test ! -s conftest.err
19792 } && test -s conftest$ac_exeext &&
19793 $as_test_x conftest$ac_exeext; then
19794 ac_cv_lib_ncurses_tparm=yes
19795 else
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19798
19799 ac_cv_lib_ncurses_tparm=no
19800 fi
19801
19802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19803 conftest$ac_exeext conftest.$ac_ext
19804 LIBS=$ac_check_lib_save_LIBS
19805 fi
19806 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19807 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19808 if test $ac_cv_lib_ncurses_tparm = yes; then
19809 cat >>confdefs.h <<_ACEOF
19810 #define HAVE_LIBNCURSES 1
19811 _ACEOF
19812
19813 LIBS="-lncurses $LIBS"
19814
19815 fi
19816
19817
19818 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19819
19820 resolv=no
19821 cat >conftest.$ac_ext <<_ACEOF
19822 /* confdefs.h. */
19823 _ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19827 #include <netinet/in.h>
19828 #include <arpa/nameser.h>
19829 #include <resolv.h>
19830 int
19831 main ()
19832 {
19833 return res_init();
19834 ;
19835 return 0;
19836 }
19837 _ACEOF
19838 rm -f conftest.$ac_objext conftest$ac_exeext
19839 if { (ac_try="$ac_link"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_link") 2>conftest.er1
19846 ac_status=$?
19847 grep -v '^ *+' conftest.er1 >conftest.err
19848 rm -f conftest.er1
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } && {
19852 test -z "$ac_c_werror_flag" ||
19853 test ! -s conftest.err
19854 } && test -s conftest$ac_exeext &&
19855 $as_test_x conftest$ac_exeext; then
19856 have_res_init=yes
19857 else
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861 have_res_init=no
19862 fi
19863
19864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19865 conftest$ac_exeext conftest.$ac_ext
19866 if test "$have_res_init" = no; then
19867 OLIBS="$LIBS"
19868 LIBS="$LIBS -lresolv"
19869 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19870 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19871 cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h. */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 #include <netinet/in.h>
19878 #include <arpa/nameser.h>
19879 #include <resolv.h>
19880 int
19881 main ()
19882 {
19883 return res_init();
19884 ;
19885 return 0;
19886 }
19887 _ACEOF
19888 rm -f conftest.$ac_objext conftest$ac_exeext
19889 if { (ac_try="$ac_link"
19890 case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19893 esac
19894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_link") 2>conftest.er1
19896 ac_status=$?
19897 grep -v '^ *+' conftest.er1 >conftest.err
19898 rm -f conftest.er1
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } && {
19902 test -z "$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19904 } && test -s conftest$ac_exeext &&
19905 $as_test_x conftest$ac_exeext; then
19906 have_res_init=yes
19907 else
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19910
19911 have_res_init=no
19912 fi
19913
19914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19915 conftest$ac_exeext conftest.$ac_ext
19916 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19917 echo "${ECHO_T}$have_res_init" >&6; }
19918 if test "$have_res_init" = yes ; then
19919 resolv=yes
19920 fi
19921 LIBS="$OLIBS"
19922 fi
19923
19924 if test "$have_res_init" = yes; then
19925
19926 cat >>confdefs.h <<\_ACEOF
19927 #define HAVE_RES_INIT 1
19928 _ACEOF
19929
19930 fi
19931
19932 # Do we need the Hesiod library to provide the support routines?
19933 if test "$with_hesiod" != no ; then
19934 # Don't set $LIBS here -- see comments above.
19935 { echo "$as_me:$LINENO: checking for res_send" >&5
19936 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19937 if test "${ac_cv_func_res_send+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940 cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h. */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19948 #define res_send innocuous_res_send
19949
19950 /* System header to define __stub macros and hopefully few prototypes,
19951 which can conflict with char res_send (); below.
19952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19953 <limits.h> exists even on freestanding compilers. */
19954
19955 #ifdef __STDC__
19956 # include <limits.h>
19957 #else
19958 # include <assert.h>
19959 #endif
19960
19961 #undef res_send
19962
19963 /* Override any GCC internal prototype to avoid an error.
19964 Use char because int might match the return type of a GCC
19965 builtin and then its argument prototype would still apply. */
19966 #ifdef __cplusplus
19967 extern "C"
19968 #endif
19969 char res_send ();
19970 /* The GNU C library defines this for functions which it implements
19971 to always fail with ENOSYS. Some functions are actually named
19972 something starting with __ and the normal name is an alias. */
19973 #if defined __stub_res_send || defined __stub___res_send
19974 choke me
19975 #endif
19976
19977 int
19978 main ()
19979 {
19980 return res_send ();
19981 ;
19982 return 0;
19983 }
19984 _ACEOF
19985 rm -f conftest.$ac_objext conftest$ac_exeext
19986 if { (ac_try="$ac_link"
19987 case "(($ac_try" in
19988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989 *) ac_try_echo=$ac_try;;
19990 esac
19991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19992 (eval "$ac_link") 2>conftest.er1
19993 ac_status=$?
19994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } && {
19999 test -z "$ac_c_werror_flag" ||
20000 test ! -s conftest.err
20001 } && test -s conftest$ac_exeext &&
20002 $as_test_x conftest$ac_exeext; then
20003 ac_cv_func_res_send=yes
20004 else
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20007
20008 ac_cv_func_res_send=no
20009 fi
20010
20011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20012 conftest$ac_exeext conftest.$ac_ext
20013 fi
20014 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20015 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20016 if test $ac_cv_func_res_send = yes; then
20017 :
20018 else
20019 { echo "$as_me:$LINENO: checking for __res_send" >&5
20020 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20021 if test "${ac_cv_func___res_send+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024 cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h. */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20030 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20032 #define __res_send innocuous___res_send
20033
20034 /* System header to define __stub macros and hopefully few prototypes,
20035 which can conflict with char __res_send (); below.
20036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20037 <limits.h> exists even on freestanding compilers. */
20038
20039 #ifdef __STDC__
20040 # include <limits.h>
20041 #else
20042 # include <assert.h>
20043 #endif
20044
20045 #undef __res_send
20046
20047 /* Override any GCC internal prototype to avoid an error.
20048 Use char because int might match the return type of a GCC
20049 builtin and then its argument prototype would still apply. */
20050 #ifdef __cplusplus
20051 extern "C"
20052 #endif
20053 char __res_send ();
20054 /* The GNU C library defines this for functions which it implements
20055 to always fail with ENOSYS. Some functions are actually named
20056 something starting with __ and the normal name is an alias. */
20057 #if defined __stub___res_send || defined __stub_____res_send
20058 choke me
20059 #endif
20060
20061 int
20062 main ()
20063 {
20064 return __res_send ();
20065 ;
20066 return 0;
20067 }
20068 _ACEOF
20069 rm -f conftest.$ac_objext conftest$ac_exeext
20070 if { (ac_try="$ac_link"
20071 case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20074 esac
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_link") 2>conftest.er1
20077 ac_status=$?
20078 grep -v '^ *+' conftest.er1 >conftest.err
20079 rm -f conftest.er1
20080 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } && {
20083 test -z "$ac_c_werror_flag" ||
20084 test ! -s conftest.err
20085 } && test -s conftest$ac_exeext &&
20086 $as_test_x conftest$ac_exeext; then
20087 ac_cv_func___res_send=yes
20088 else
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20091
20092 ac_cv_func___res_send=no
20093 fi
20094
20095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20096 conftest$ac_exeext conftest.$ac_ext
20097 fi
20098 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20099 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20100 if test $ac_cv_func___res_send = yes; then
20101 :
20102 else
20103 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20104 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20105 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 else
20108 ac_check_lib_save_LIBS=$LIBS
20109 LIBS="-lresolv $LIBS"
20110 cat >conftest.$ac_ext <<_ACEOF
20111 /* confdefs.h. */
20112 _ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20116
20117 /* Override any GCC internal prototype to avoid an error.
20118 Use char because int might match the return type of a GCC
20119 builtin and then its argument prototype would still apply. */
20120 #ifdef __cplusplus
20121 extern "C"
20122 #endif
20123 char res_send ();
20124 int
20125 main ()
20126 {
20127 return res_send ();
20128 ;
20129 return 0;
20130 }
20131 _ACEOF
20132 rm -f conftest.$ac_objext conftest$ac_exeext
20133 if { (ac_try="$ac_link"
20134 case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20137 esac
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_link") 2>conftest.er1
20140 ac_status=$?
20141 grep -v '^ *+' conftest.er1 >conftest.err
20142 rm -f conftest.er1
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && {
20146 test -z "$ac_c_werror_flag" ||
20147 test ! -s conftest.err
20148 } && test -s conftest$ac_exeext &&
20149 $as_test_x conftest$ac_exeext; then
20150 ac_cv_lib_resolv_res_send=yes
20151 else
20152 echo "$as_me: failed program was:" >&5
20153 sed 's/^/| /' conftest.$ac_ext >&5
20154
20155 ac_cv_lib_resolv_res_send=no
20156 fi
20157
20158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20159 conftest$ac_exeext conftest.$ac_ext
20160 LIBS=$ac_check_lib_save_LIBS
20161 fi
20162 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20163 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20164 if test $ac_cv_lib_resolv_res_send = yes; then
20165 resolv=yes
20166 else
20167 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20168 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20169 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20171 else
20172 ac_check_lib_save_LIBS=$LIBS
20173 LIBS="-lresolv $LIBS"
20174 cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h. */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20180
20181 /* Override any GCC internal prototype to avoid an error.
20182 Use char because int might match the return type of a GCC
20183 builtin and then its argument prototype would still apply. */
20184 #ifdef __cplusplus
20185 extern "C"
20186 #endif
20187 char __res_send ();
20188 int
20189 main ()
20190 {
20191 return __res_send ();
20192 ;
20193 return 0;
20194 }
20195 _ACEOF
20196 rm -f conftest.$ac_objext conftest$ac_exeext
20197 if { (ac_try="$ac_link"
20198 case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20201 esac
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_link") 2>conftest.er1
20204 ac_status=$?
20205 grep -v '^ *+' conftest.er1 >conftest.err
20206 rm -f conftest.er1
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } && {
20210 test -z "$ac_c_werror_flag" ||
20211 test ! -s conftest.err
20212 } && test -s conftest$ac_exeext &&
20213 $as_test_x conftest$ac_exeext; then
20214 ac_cv_lib_resolv___res_send=yes
20215 else
20216 echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 ac_cv_lib_resolv___res_send=no
20220 fi
20221
20222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20223 conftest$ac_exeext conftest.$ac_ext
20224 LIBS=$ac_check_lib_save_LIBS
20225 fi
20226 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20227 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20228 if test $ac_cv_lib_resolv___res_send = yes; then
20229 resolv=yes
20230 fi
20231
20232 fi
20233
20234 fi
20235
20236 fi
20237
20238 if test "$resolv" = yes ; then
20239 RESOLVLIB=-lresolv
20240 else
20241 RESOLVLIB=
20242 fi
20243 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20244 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20245 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20246 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 else
20248 cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h. */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20256 #define hes_getmailhost innocuous_hes_getmailhost
20257
20258 /* System header to define __stub macros and hopefully few prototypes,
20259 which can conflict with char hes_getmailhost (); below.
20260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20261 <limits.h> exists even on freestanding compilers. */
20262
20263 #ifdef __STDC__
20264 # include <limits.h>
20265 #else
20266 # include <assert.h>
20267 #endif
20268
20269 #undef hes_getmailhost
20270
20271 /* Override any GCC internal prototype to avoid an error.
20272 Use char because int might match the return type of a GCC
20273 builtin and then its argument prototype would still apply. */
20274 #ifdef __cplusplus
20275 extern "C"
20276 #endif
20277 char hes_getmailhost ();
20278 /* The GNU C library defines this for functions which it implements
20279 to always fail with ENOSYS. Some functions are actually named
20280 something starting with __ and the normal name is an alias. */
20281 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20282 choke me
20283 #endif
20284
20285 int
20286 main ()
20287 {
20288 return hes_getmailhost ();
20289 ;
20290 return 0;
20291 }
20292 _ACEOF
20293 rm -f conftest.$ac_objext conftest$ac_exeext
20294 if { (ac_try="$ac_link"
20295 case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20298 esac
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300 (eval "$ac_link") 2>conftest.er1
20301 ac_status=$?
20302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && {
20307 test -z "$ac_c_werror_flag" ||
20308 test ! -s conftest.err
20309 } && test -s conftest$ac_exeext &&
20310 $as_test_x conftest$ac_exeext; then
20311 ac_cv_func_hes_getmailhost=yes
20312 else
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316 ac_cv_func_hes_getmailhost=no
20317 fi
20318
20319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20320 conftest$ac_exeext conftest.$ac_ext
20321 fi
20322 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20323 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20324 if test $ac_cv_func_hes_getmailhost = yes; then
20325 :
20326 else
20327 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20328 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20329 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332 ac_check_lib_save_LIBS=$LIBS
20333 LIBS="-lhesiod $RESOLVLIB $LIBS"
20334 cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h. */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340
20341 /* Override any GCC internal prototype to avoid an error.
20342 Use char because int might match the return type of a GCC
20343 builtin and then its argument prototype would still apply. */
20344 #ifdef __cplusplus
20345 extern "C"
20346 #endif
20347 char hes_getmailhost ();
20348 int
20349 main ()
20350 {
20351 return hes_getmailhost ();
20352 ;
20353 return 0;
20354 }
20355 _ACEOF
20356 rm -f conftest.$ac_objext conftest$ac_exeext
20357 if { (ac_try="$ac_link"
20358 case "(($ac_try" in
20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360 *) ac_try_echo=$ac_try;;
20361 esac
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363 (eval "$ac_link") 2>conftest.er1
20364 ac_status=$?
20365 grep -v '^ *+' conftest.er1 >conftest.err
20366 rm -f conftest.er1
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } && {
20370 test -z "$ac_c_werror_flag" ||
20371 test ! -s conftest.err
20372 } && test -s conftest$ac_exeext &&
20373 $as_test_x conftest$ac_exeext; then
20374 ac_cv_lib_hesiod_hes_getmailhost=yes
20375 else
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379 ac_cv_lib_hesiod_hes_getmailhost=no
20380 fi
20381
20382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20383 conftest$ac_exeext conftest.$ac_ext
20384 LIBS=$ac_check_lib_save_LIBS
20385 fi
20386 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20387 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20388 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20389
20390 cat >>confdefs.h <<\_ACEOF
20391 #define HAVE_LIBHESIOD 1
20392 _ACEOF
20393
20394 else
20395 :
20396 fi
20397
20398 fi
20399
20400 fi
20401
20402 # Do we need libresolv (due to res_init or Hesiod)?
20403 if test "$resolv" = yes ; then
20404
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_LIBRESOLV 1
20407 _ACEOF
20408
20409 fi
20410
20411 # These tell us which Kerberos-related libraries to use.
20412 if test "${with_kerberos}" != no; then
20413
20414 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20415 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20416 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418 else
20419 ac_check_lib_save_LIBS=$LIBS
20420 LIBS="-lcom_err $LIBS"
20421 cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h. */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20427
20428 /* Override any GCC internal prototype to avoid an error.
20429 Use char because int might match the return type of a GCC
20430 builtin and then its argument prototype would still apply. */
20431 #ifdef __cplusplus
20432 extern "C"
20433 #endif
20434 char com_err ();
20435 int
20436 main ()
20437 {
20438 return com_err ();
20439 ;
20440 return 0;
20441 }
20442 _ACEOF
20443 rm -f conftest.$ac_objext conftest$ac_exeext
20444 if { (ac_try="$ac_link"
20445 case "(($ac_try" in
20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447 *) ac_try_echo=$ac_try;;
20448 esac
20449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20450 (eval "$ac_link") 2>conftest.er1
20451 ac_status=$?
20452 grep -v '^ *+' conftest.er1 >conftest.err
20453 rm -f conftest.er1
20454 cat conftest.err >&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } && {
20457 test -z "$ac_c_werror_flag" ||
20458 test ! -s conftest.err
20459 } && test -s conftest$ac_exeext &&
20460 $as_test_x conftest$ac_exeext; then
20461 ac_cv_lib_com_err_com_err=yes
20462 else
20463 echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20465
20466 ac_cv_lib_com_err_com_err=no
20467 fi
20468
20469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20470 conftest$ac_exeext conftest.$ac_ext
20471 LIBS=$ac_check_lib_save_LIBS
20472 fi
20473 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20474 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20475 if test $ac_cv_lib_com_err_com_err = yes; then
20476 cat >>confdefs.h <<_ACEOF
20477 #define HAVE_LIBCOM_ERR 1
20478 _ACEOF
20479
20480 LIBS="-lcom_err $LIBS"
20481
20482 fi
20483
20484
20485 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20486 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20487 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20488 echo $ECHO_N "(cached) $ECHO_C" >&6
20489 else
20490 ac_check_lib_save_LIBS=$LIBS
20491 LIBS="-lk5crypto $LIBS"
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h. */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498
20499 /* Override any GCC internal prototype to avoid an error.
20500 Use char because int might match the return type of a GCC
20501 builtin and then its argument prototype would still apply. */
20502 #ifdef __cplusplus
20503 extern "C"
20504 #endif
20505 char mit_des_cbc_encrypt ();
20506 int
20507 main ()
20508 {
20509 return mit_des_cbc_encrypt ();
20510 ;
20511 return 0;
20512 }
20513 _ACEOF
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (ac_try="$ac_link"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_link") 2>conftest.er1
20522 ac_status=$?
20523 grep -v '^ *+' conftest.er1 >conftest.err
20524 rm -f conftest.er1
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } && {
20528 test -z "$ac_c_werror_flag" ||
20529 test ! -s conftest.err
20530 } && test -s conftest$ac_exeext &&
20531 $as_test_x conftest$ac_exeext; then
20532 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20533 else
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20538 fi
20539
20540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20541 conftest$ac_exeext conftest.$ac_ext
20542 LIBS=$ac_check_lib_save_LIBS
20543 fi
20544 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20545 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20546 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20547 cat >>confdefs.h <<_ACEOF
20548 #define HAVE_LIBK5CRYPTO 1
20549 _ACEOF
20550
20551 LIBS="-lk5crypto $LIBS"
20552
20553 fi
20554
20555
20556 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20557 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20558 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 else
20561 ac_check_lib_save_LIBS=$LIBS
20562 LIBS="-lcrypto $LIBS"
20563 cat >conftest.$ac_ext <<_ACEOF
20564 /* confdefs.h. */
20565 _ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569
20570 /* Override any GCC internal prototype to avoid an error.
20571 Use char because int might match the return type of a GCC
20572 builtin and then its argument prototype would still apply. */
20573 #ifdef __cplusplus
20574 extern "C"
20575 #endif
20576 char mit_des_cbc_encrypt ();
20577 int
20578 main ()
20579 {
20580 return mit_des_cbc_encrypt ();
20581 ;
20582 return 0;
20583 }
20584 _ACEOF
20585 rm -f conftest.$ac_objext conftest$ac_exeext
20586 if { (ac_try="$ac_link"
20587 case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20590 esac
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_link") 2>conftest.er1
20593 ac_status=$?
20594 grep -v '^ *+' conftest.er1 >conftest.err
20595 rm -f conftest.er1
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } && {
20599 test -z "$ac_c_werror_flag" ||
20600 test ! -s conftest.err
20601 } && test -s conftest$ac_exeext &&
20602 $as_test_x conftest$ac_exeext; then
20603 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20604 else
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20609 fi
20610
20611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20612 conftest$ac_exeext conftest.$ac_ext
20613 LIBS=$ac_check_lib_save_LIBS
20614 fi
20615 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20616 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20617 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20618 cat >>confdefs.h <<_ACEOF
20619 #define HAVE_LIBCRYPTO 1
20620 _ACEOF
20621
20622 LIBS="-lcrypto $LIBS"
20623
20624 fi
20625
20626
20627 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20628 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20629 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632 ac_check_lib_save_LIBS=$LIBS
20633 LIBS="-lkrb5 $LIBS"
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h. */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640
20641 /* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20644 #ifdef __cplusplus
20645 extern "C"
20646 #endif
20647 char krb5_init_context ();
20648 int
20649 main ()
20650 {
20651 return krb5_init_context ();
20652 ;
20653 return 0;
20654 }
20655 _ACEOF
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_link") 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest$ac_exeext &&
20673 $as_test_x conftest$ac_exeext; then
20674 ac_cv_lib_krb5_krb5_init_context=yes
20675 else
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20678
20679 ac_cv_lib_krb5_krb5_init_context=no
20680 fi
20681
20682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20685 fi
20686 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20687 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20688 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define HAVE_LIBKRB5 1
20691 _ACEOF
20692
20693 LIBS="-lkrb5 $LIBS"
20694
20695 fi
20696
20697 if test "${with_kerberos5}" = no; then
20698
20699 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20700 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20701 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20703 else
20704 ac_check_lib_save_LIBS=$LIBS
20705 LIBS="-ldes425 $LIBS"
20706 cat >conftest.$ac_ext <<_ACEOF
20707 /* confdefs.h. */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20712
20713 /* Override any GCC internal prototype to avoid an error.
20714 Use char because int might match the return type of a GCC
20715 builtin and then its argument prototype would still apply. */
20716 #ifdef __cplusplus
20717 extern "C"
20718 #endif
20719 char des_cbc_encrypt ();
20720 int
20721 main ()
20722 {
20723 return des_cbc_encrypt ();
20724 ;
20725 return 0;
20726 }
20727 _ACEOF
20728 rm -f conftest.$ac_objext conftest$ac_exeext
20729 if { (ac_try="$ac_link"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20733 esac
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_link") 2>conftest.er1
20736 ac_status=$?
20737 grep -v '^ *+' conftest.er1 >conftest.err
20738 rm -f conftest.er1
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } && {
20742 test -z "$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20744 } && test -s conftest$ac_exeext &&
20745 $as_test_x conftest$ac_exeext; then
20746 ac_cv_lib_des425_des_cbc_encrypt=yes
20747 else
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 ac_cv_lib_des425_des_cbc_encrypt=no
20752 fi
20753
20754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20755 conftest$ac_exeext conftest.$ac_ext
20756 LIBS=$ac_check_lib_save_LIBS
20757 fi
20758 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20759 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20760 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20761 cat >>confdefs.h <<_ACEOF
20762 #define HAVE_LIBDES425 1
20763 _ACEOF
20764
20765 LIBS="-ldes425 $LIBS"
20766
20767 else
20768
20769 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20770 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20771 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 else
20774 ac_check_lib_save_LIBS=$LIBS
20775 LIBS="-ldes $LIBS"
20776 cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h. */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20782
20783 /* Override any GCC internal prototype to avoid an error.
20784 Use char because int might match the return type of a GCC
20785 builtin and then its argument prototype would still apply. */
20786 #ifdef __cplusplus
20787 extern "C"
20788 #endif
20789 char des_cbc_encrypt ();
20790 int
20791 main ()
20792 {
20793 return des_cbc_encrypt ();
20794 ;
20795 return 0;
20796 }
20797 _ACEOF
20798 rm -f conftest.$ac_objext conftest$ac_exeext
20799 if { (ac_try="$ac_link"
20800 case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20803 esac
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_link") 2>conftest.er1
20806 ac_status=$?
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } && {
20812 test -z "$ac_c_werror_flag" ||
20813 test ! -s conftest.err
20814 } && test -s conftest$ac_exeext &&
20815 $as_test_x conftest$ac_exeext; then
20816 ac_cv_lib_des_des_cbc_encrypt=yes
20817 else
20818 echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20820
20821 ac_cv_lib_des_des_cbc_encrypt=no
20822 fi
20823
20824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20825 conftest$ac_exeext conftest.$ac_ext
20826 LIBS=$ac_check_lib_save_LIBS
20827 fi
20828 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20829 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20830 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20831 cat >>confdefs.h <<_ACEOF
20832 #define HAVE_LIBDES 1
20833 _ACEOF
20834
20835 LIBS="-ldes $LIBS"
20836
20837 fi
20838
20839 fi
20840
20841
20842 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20843 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20844 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847 ac_check_lib_save_LIBS=$LIBS
20848 LIBS="-lkrb4 $LIBS"
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h. */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855
20856 /* Override any GCC internal prototype to avoid an error.
20857 Use char because int might match the return type of a GCC
20858 builtin and then its argument prototype would still apply. */
20859 #ifdef __cplusplus
20860 extern "C"
20861 #endif
20862 char krb_get_cred ();
20863 int
20864 main ()
20865 {
20866 return krb_get_cred ();
20867 ;
20868 return 0;
20869 }
20870 _ACEOF
20871 rm -f conftest.$ac_objext conftest$ac_exeext
20872 if { (ac_try="$ac_link"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_link") 2>conftest.er1
20879 ac_status=$?
20880 grep -v '^ *+' conftest.er1 >conftest.err
20881 rm -f conftest.er1
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } && {
20885 test -z "$ac_c_werror_flag" ||
20886 test ! -s conftest.err
20887 } && test -s conftest$ac_exeext &&
20888 $as_test_x conftest$ac_exeext; then
20889 ac_cv_lib_krb4_krb_get_cred=yes
20890 else
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20893
20894 ac_cv_lib_krb4_krb_get_cred=no
20895 fi
20896
20897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20898 conftest$ac_exeext conftest.$ac_ext
20899 LIBS=$ac_check_lib_save_LIBS
20900 fi
20901 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20902 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20903 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20904 cat >>confdefs.h <<_ACEOF
20905 #define HAVE_LIBKRB4 1
20906 _ACEOF
20907
20908 LIBS="-lkrb4 $LIBS"
20909
20910 else
20911
20912 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20913 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20914 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 else
20917 ac_check_lib_save_LIBS=$LIBS
20918 LIBS="-lkrb $LIBS"
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925
20926 /* Override any GCC internal prototype to avoid an error.
20927 Use char because int might match the return type of a GCC
20928 builtin and then its argument prototype would still apply. */
20929 #ifdef __cplusplus
20930 extern "C"
20931 #endif
20932 char krb_get_cred ();
20933 int
20934 main ()
20935 {
20936 return krb_get_cred ();
20937 ;
20938 return 0;
20939 }
20940 _ACEOF
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (ac_try="$ac_link"
20943 case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20946 esac
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_link") 2>conftest.er1
20949 ac_status=$?
20950 grep -v '^ *+' conftest.er1 >conftest.err
20951 rm -f conftest.er1
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } && {
20955 test -z "$ac_c_werror_flag" ||
20956 test ! -s conftest.err
20957 } && test -s conftest$ac_exeext &&
20958 $as_test_x conftest$ac_exeext; then
20959 ac_cv_lib_krb_krb_get_cred=yes
20960 else
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20963
20964 ac_cv_lib_krb_krb_get_cred=no
20965 fi
20966
20967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20968 conftest$ac_exeext conftest.$ac_ext
20969 LIBS=$ac_check_lib_save_LIBS
20970 fi
20971 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20972 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20973 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20974 cat >>confdefs.h <<_ACEOF
20975 #define HAVE_LIBKRB 1
20976 _ACEOF
20977
20978 LIBS="-lkrb $LIBS"
20979
20980 fi
20981
20982 fi
20983
20984 fi
20985
20986 if test "${with_kerberos5}" != no; then
20987
20988 for ac_header in krb5.h
20989 do
20990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20995 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 fi
20997 ac_res=`eval echo '${'$as_ac_Header'}'`
20998 { echo "$as_me:$LINENO: result: $ac_res" >&5
20999 echo "${ECHO_T}$ac_res" >&6; }
21000 else
21001 # Is the header compilable?
21002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21004 cat >conftest.$ac_ext <<_ACEOF
21005 /* confdefs.h. */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21010 $ac_includes_default
21011 #include <$ac_header>
21012 _ACEOF
21013 rm -f conftest.$ac_objext
21014 if { (ac_try="$ac_compile"
21015 case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21018 esac
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_compile") 2>conftest.er1
21021 ac_status=$?
21022 grep -v '^ *+' conftest.er1 >conftest.err
21023 rm -f conftest.er1
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } && {
21027 test -z "$ac_c_werror_flag" ||
21028 test ! -s conftest.err
21029 } && test -s conftest.$ac_objext; then
21030 ac_header_compiler=yes
21031 else
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21034
21035 ac_header_compiler=no
21036 fi
21037
21038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21040 echo "${ECHO_T}$ac_header_compiler" >&6; }
21041
21042 # Is the header present?
21043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21045 cat >conftest.$ac_ext <<_ACEOF
21046 /* confdefs.h. */
21047 _ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h. */
21051 #include <$ac_header>
21052 _ACEOF
21053 if { (ac_try="$ac_cpp conftest.$ac_ext"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21060 ac_status=$?
21061 grep -v '^ *+' conftest.er1 >conftest.err
21062 rm -f conftest.er1
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } >/dev/null && {
21066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21067 test ! -s conftest.err
21068 }; then
21069 ac_header_preproc=yes
21070 else
21071 echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21073
21074 ac_header_preproc=no
21075 fi
21076
21077 rm -f conftest.err conftest.$ac_ext
21078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21079 echo "${ECHO_T}$ac_header_preproc" >&6; }
21080
21081 # So? What about this header?
21082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21083 yes:no: )
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21088 ac_header_preproc=yes
21089 ;;
21090 no:yes:* )
21091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21103
21104 ;;
21105 esac
21106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 else
21111 eval "$as_ac_Header=\$ac_header_preproc"
21112 fi
21113 ac_res=`eval echo '${'$as_ac_Header'}'`
21114 { echo "$as_me:$LINENO: result: $ac_res" >&5
21115 echo "${ECHO_T}$ac_res" >&6; }
21116
21117 fi
21118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21119 cat >>confdefs.h <<_ACEOF
21120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21121 _ACEOF
21122 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21123 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21124 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21125 echo $ECHO_N "(cached) $ECHO_C" >&6
21126 else
21127 cat >conftest.$ac_ext <<_ACEOF
21128 /* confdefs.h. */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 #include <krb5.h>
21134
21135 int
21136 main ()
21137 {
21138 static krb5_error ac_aggr;
21139 if (ac_aggr.text)
21140 return 0;
21141 ;
21142 return 0;
21143 }
21144 _ACEOF
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21150 esac
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_compile") 2>conftest.er1
21153 ac_status=$?
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } && {
21159 test -z "$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 } && test -s conftest.$ac_objext; then
21162 ac_cv_member_krb5_error_text=yes
21163 else
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167 cat >conftest.$ac_ext <<_ACEOF
21168 /* confdefs.h. */
21169 _ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21173 #include <krb5.h>
21174
21175 int
21176 main ()
21177 {
21178 static krb5_error ac_aggr;
21179 if (sizeof ac_aggr.text)
21180 return 0;
21181 ;
21182 return 0;
21183 }
21184 _ACEOF
21185 rm -f conftest.$ac_objext
21186 if { (ac_try="$ac_compile"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21190 esac
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_compile") 2>conftest.er1
21193 ac_status=$?
21194 grep -v '^ *+' conftest.er1 >conftest.err
21195 rm -f conftest.er1
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } && {
21199 test -z "$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 } && test -s conftest.$ac_objext; then
21202 ac_cv_member_krb5_error_text=yes
21203 else
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21206
21207 ac_cv_member_krb5_error_text=no
21208 fi
21209
21210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211 fi
21212
21213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21214 fi
21215 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21216 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21217 if test $ac_cv_member_krb5_error_text = yes; then
21218
21219 cat >>confdefs.h <<_ACEOF
21220 #define HAVE_KRB5_ERROR_TEXT 1
21221 _ACEOF
21222
21223
21224 fi
21225 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21226 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21227 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 else
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h. */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 #include <krb5.h>
21237
21238 int
21239 main ()
21240 {
21241 static krb5_error ac_aggr;
21242 if (ac_aggr.e_text)
21243 return 0;
21244 ;
21245 return 0;
21246 }
21247 _ACEOF
21248 rm -f conftest.$ac_objext
21249 if { (ac_try="$ac_compile"
21250 case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_compile") 2>conftest.er1
21256 ac_status=$?
21257 grep -v '^ *+' conftest.er1 >conftest.err
21258 rm -f conftest.er1
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } && {
21262 test -z "$ac_c_werror_flag" ||
21263 test ! -s conftest.err
21264 } && test -s conftest.$ac_objext; then
21265 ac_cv_member_krb5_error_e_text=yes
21266 else
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21269
21270 cat >conftest.$ac_ext <<_ACEOF
21271 /* confdefs.h. */
21272 _ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21276 #include <krb5.h>
21277
21278 int
21279 main ()
21280 {
21281 static krb5_error ac_aggr;
21282 if (sizeof ac_aggr.e_text)
21283 return 0;
21284 ;
21285 return 0;
21286 }
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_compile") 2>conftest.er1
21296 ac_status=$?
21297 grep -v '^ *+' conftest.er1 >conftest.err
21298 rm -f conftest.er1
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } && {
21302 test -z "$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 } && test -s conftest.$ac_objext; then
21305 ac_cv_member_krb5_error_e_text=yes
21306 else
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310 ac_cv_member_krb5_error_e_text=no
21311 fi
21312
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 fi
21315
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 fi
21318 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21319 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21320 if test $ac_cv_member_krb5_error_e_text = yes; then
21321
21322 cat >>confdefs.h <<_ACEOF
21323 #define HAVE_KRB5_ERROR_E_TEXT 1
21324 _ACEOF
21325
21326
21327 fi
21328
21329 fi
21330
21331 done
21332
21333 else
21334
21335 for ac_header in des.h
21336 do
21337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21342 echo $ECHO_N "(cached) $ECHO_C" >&6
21343 fi
21344 ac_res=`eval echo '${'$as_ac_Header'}'`
21345 { echo "$as_me:$LINENO: result: $ac_res" >&5
21346 echo "${ECHO_T}$ac_res" >&6; }
21347 else
21348 # Is the header compilable?
21349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21351 cat >conftest.$ac_ext <<_ACEOF
21352 /* confdefs.h. */
21353 _ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h. */
21357 $ac_includes_default
21358 #include <$ac_header>
21359 _ACEOF
21360 rm -f conftest.$ac_objext
21361 if { (ac_try="$ac_compile"
21362 case "(($ac_try" in
21363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21365 esac
21366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21367 (eval "$ac_compile") 2>conftest.er1
21368 ac_status=$?
21369 grep -v '^ *+' conftest.er1 >conftest.err
21370 rm -f conftest.er1
21371 cat conftest.err >&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } && {
21374 test -z "$ac_c_werror_flag" ||
21375 test ! -s conftest.err
21376 } && test -s conftest.$ac_objext; then
21377 ac_header_compiler=yes
21378 else
21379 echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382 ac_header_compiler=no
21383 fi
21384
21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21387 echo "${ECHO_T}$ac_header_compiler" >&6; }
21388
21389 # Is the header present?
21390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21392 cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h. */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 #include <$ac_header>
21399 _ACEOF
21400 if { (ac_try="$ac_cpp conftest.$ac_ext"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21407 ac_status=$?
21408 grep -v '^ *+' conftest.er1 >conftest.err
21409 rm -f conftest.er1
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } >/dev/null && {
21413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21415 }; then
21416 ac_header_preproc=yes
21417 else
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21420
21421 ac_header_preproc=no
21422 fi
21423
21424 rm -f conftest.err conftest.$ac_ext
21425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21426 echo "${ECHO_T}$ac_header_preproc" >&6; }
21427
21428 # So? What about this header?
21429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21430 yes:no: )
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21435 ac_header_preproc=yes
21436 ;;
21437 no:yes:* )
21438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21450
21451 ;;
21452 esac
21453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458 eval "$as_ac_Header=\$ac_header_preproc"
21459 fi
21460 ac_res=`eval echo '${'$as_ac_Header'}'`
21461 { echo "$as_me:$LINENO: result: $ac_res" >&5
21462 echo "${ECHO_T}$ac_res" >&6; }
21463
21464 fi
21465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21466 cat >>confdefs.h <<_ACEOF
21467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21468 _ACEOF
21469
21470 else
21471
21472 for ac_header in kerberosIV/des.h
21473 do
21474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 fi
21481 ac_res=`eval echo '${'$as_ac_Header'}'`
21482 { echo "$as_me:$LINENO: result: $ac_res" >&5
21483 echo "${ECHO_T}$ac_res" >&6; }
21484 else
21485 # Is the header compilable?
21486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21488 cat >conftest.$ac_ext <<_ACEOF
21489 /* confdefs.h. */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21494 $ac_includes_default
21495 #include <$ac_header>
21496 _ACEOF
21497 rm -f conftest.$ac_objext
21498 if { (ac_try="$ac_compile"
21499 case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21502 esac
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_compile") 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest.$ac_objext; then
21514 ac_header_compiler=yes
21515 else
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519 ac_header_compiler=no
21520 fi
21521
21522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21524 echo "${ECHO_T}$ac_header_compiler" >&6; }
21525
21526 # Is the header present?
21527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21529 cat >conftest.$ac_ext <<_ACEOF
21530 /* confdefs.h. */
21531 _ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21535 #include <$ac_header>
21536 _ACEOF
21537 if { (ac_try="$ac_cpp conftest.$ac_ext"
21538 case "(($ac_try" in
21539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21541 esac
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21544 ac_status=$?
21545 grep -v '^ *+' conftest.er1 >conftest.err
21546 rm -f conftest.er1
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } >/dev/null && {
21550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 }; then
21553 ac_header_preproc=yes
21554 else
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558 ac_header_preproc=no
21559 fi
21560
21561 rm -f conftest.err conftest.$ac_ext
21562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21563 echo "${ECHO_T}$ac_header_preproc" >&6; }
21564
21565 # So? What about this header?
21566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21567 yes:no: )
21568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21572 ac_header_preproc=yes
21573 ;;
21574 no:yes:* )
21575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21587
21588 ;;
21589 esac
21590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21594 else
21595 eval "$as_ac_Header=\$ac_header_preproc"
21596 fi
21597 ac_res=`eval echo '${'$as_ac_Header'}'`
21598 { echo "$as_me:$LINENO: result: $ac_res" >&5
21599 echo "${ECHO_T}$ac_res" >&6; }
21600
21601 fi
21602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21603 cat >>confdefs.h <<_ACEOF
21604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21605 _ACEOF
21606
21607 else
21608
21609 for ac_header in kerberos/des.h
21610 do
21611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21617 fi
21618 ac_res=`eval echo '${'$as_ac_Header'}'`
21619 { echo "$as_me:$LINENO: result: $ac_res" >&5
21620 echo "${ECHO_T}$ac_res" >&6; }
21621 else
21622 # Is the header compilable?
21623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21625 cat >conftest.$ac_ext <<_ACEOF
21626 /* confdefs.h. */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21631 $ac_includes_default
21632 #include <$ac_header>
21633 _ACEOF
21634 rm -f conftest.$ac_objext
21635 if { (ac_try="$ac_compile"
21636 case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21639 esac
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_compile") 2>conftest.er1
21642 ac_status=$?
21643 grep -v '^ *+' conftest.er1 >conftest.err
21644 rm -f conftest.er1
21645 cat conftest.err >&5
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); } && {
21648 test -z "$ac_c_werror_flag" ||
21649 test ! -s conftest.err
21650 } && test -s conftest.$ac_objext; then
21651 ac_header_compiler=yes
21652 else
21653 echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21655
21656 ac_header_compiler=no
21657 fi
21658
21659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21661 echo "${ECHO_T}$ac_header_compiler" >&6; }
21662
21663 # Is the header present?
21664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21666 cat >conftest.$ac_ext <<_ACEOF
21667 /* confdefs.h. */
21668 _ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21672 #include <$ac_header>
21673 _ACEOF
21674 if { (ac_try="$ac_cpp conftest.$ac_ext"
21675 case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21678 esac
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21681 ac_status=$?
21682 grep -v '^ *+' conftest.er1 >conftest.err
21683 rm -f conftest.er1
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } >/dev/null && {
21687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21688 test ! -s conftest.err
21689 }; then
21690 ac_header_preproc=yes
21691 else
21692 echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21694
21695 ac_header_preproc=no
21696 fi
21697
21698 rm -f conftest.err conftest.$ac_ext
21699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21700 echo "${ECHO_T}$ac_header_preproc" >&6; }
21701
21702 # So? What about this header?
21703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21704 yes:no: )
21705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21709 ac_header_preproc=yes
21710 ;;
21711 no:yes:* )
21712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21724
21725 ;;
21726 esac
21727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 else
21732 eval "$as_ac_Header=\$ac_header_preproc"
21733 fi
21734 ac_res=`eval echo '${'$as_ac_Header'}'`
21735 { echo "$as_me:$LINENO: result: $ac_res" >&5
21736 echo "${ECHO_T}$ac_res" >&6; }
21737
21738 fi
21739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21740 cat >>confdefs.h <<_ACEOF
21741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21742 _ACEOF
21743
21744 fi
21745
21746 done
21747
21748 fi
21749
21750 done
21751
21752 fi
21753
21754 done
21755
21756
21757 for ac_header in krb.h
21758 do
21759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21764 echo $ECHO_N "(cached) $ECHO_C" >&6
21765 fi
21766 ac_res=`eval echo '${'$as_ac_Header'}'`
21767 { echo "$as_me:$LINENO: result: $ac_res" >&5
21768 echo "${ECHO_T}$ac_res" >&6; }
21769 else
21770 # Is the header compilable?
21771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21773 cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h. */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21779 $ac_includes_default
21780 #include <$ac_header>
21781 _ACEOF
21782 rm -f conftest.$ac_objext
21783 if { (ac_try="$ac_compile"
21784 case "(($ac_try" in
21785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786 *) ac_try_echo=$ac_try;;
21787 esac
21788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21789 (eval "$ac_compile") 2>conftest.er1
21790 ac_status=$?
21791 grep -v '^ *+' conftest.er1 >conftest.err
21792 rm -f conftest.er1
21793 cat conftest.err >&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } && {
21796 test -z "$ac_c_werror_flag" ||
21797 test ! -s conftest.err
21798 } && test -s conftest.$ac_objext; then
21799 ac_header_compiler=yes
21800 else
21801 echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21803
21804 ac_header_compiler=no
21805 fi
21806
21807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21809 echo "${ECHO_T}$ac_header_compiler" >&6; }
21810
21811 # Is the header present?
21812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21814 cat >conftest.$ac_ext <<_ACEOF
21815 /* confdefs.h. */
21816 _ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21820 #include <$ac_header>
21821 _ACEOF
21822 if { (ac_try="$ac_cpp conftest.$ac_ext"
21823 case "(($ac_try" in
21824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825 *) ac_try_echo=$ac_try;;
21826 esac
21827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21829 ac_status=$?
21830 grep -v '^ *+' conftest.er1 >conftest.err
21831 rm -f conftest.er1
21832 cat conftest.err >&5
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); } >/dev/null && {
21835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21836 test ! -s conftest.err
21837 }; then
21838 ac_header_preproc=yes
21839 else
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21842
21843 ac_header_preproc=no
21844 fi
21845
21846 rm -f conftest.err conftest.$ac_ext
21847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21848 echo "${ECHO_T}$ac_header_preproc" >&6; }
21849
21850 # So? What about this header?
21851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21852 yes:no: )
21853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21857 ac_header_preproc=yes
21858 ;;
21859 no:yes:* )
21860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21872
21873 ;;
21874 esac
21875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21878 echo $ECHO_N "(cached) $ECHO_C" >&6
21879 else
21880 eval "$as_ac_Header=\$ac_header_preproc"
21881 fi
21882 ac_res=`eval echo '${'$as_ac_Header'}'`
21883 { echo "$as_me:$LINENO: result: $ac_res" >&5
21884 echo "${ECHO_T}$ac_res" >&6; }
21885
21886 fi
21887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21888 cat >>confdefs.h <<_ACEOF
21889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21890 _ACEOF
21891
21892 else
21893
21894 for ac_header in kerberosIV/krb.h
21895 do
21896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 fi
21903 ac_res=`eval echo '${'$as_ac_Header'}'`
21904 { echo "$as_me:$LINENO: result: $ac_res" >&5
21905 echo "${ECHO_T}$ac_res" >&6; }
21906 else
21907 # Is the header compilable?
21908 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21910 cat >conftest.$ac_ext <<_ACEOF
21911 /* confdefs.h. */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21916 $ac_includes_default
21917 #include <$ac_header>
21918 _ACEOF
21919 rm -f conftest.$ac_objext
21920 if { (ac_try="$ac_compile"
21921 case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21924 esac
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_compile") 2>conftest.er1
21927 ac_status=$?
21928 grep -v '^ *+' conftest.er1 >conftest.err
21929 rm -f conftest.er1
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } && {
21933 test -z "$ac_c_werror_flag" ||
21934 test ! -s conftest.err
21935 } && test -s conftest.$ac_objext; then
21936 ac_header_compiler=yes
21937 else
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21940
21941 ac_header_compiler=no
21942 fi
21943
21944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21946 echo "${ECHO_T}$ac_header_compiler" >&6; }
21947
21948 # Is the header present?
21949 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21951 cat >conftest.$ac_ext <<_ACEOF
21952 /* confdefs.h. */
21953 _ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h. */
21957 #include <$ac_header>
21958 _ACEOF
21959 if { (ac_try="$ac_cpp conftest.$ac_ext"
21960 case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21963 esac
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21966 ac_status=$?
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } >/dev/null && {
21972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21973 test ! -s conftest.err
21974 }; then
21975 ac_header_preproc=yes
21976 else
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21979
21980 ac_header_preproc=no
21981 fi
21982
21983 rm -f conftest.err conftest.$ac_ext
21984 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21985 echo "${ECHO_T}$ac_header_preproc" >&6; }
21986
21987 # So? What about this header?
21988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21989 yes:no: )
21990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21994 ac_header_preproc=yes
21995 ;;
21996 no:yes:* )
21997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22004 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22009
22010 ;;
22011 esac
22012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22016 else
22017 eval "$as_ac_Header=\$ac_header_preproc"
22018 fi
22019 ac_res=`eval echo '${'$as_ac_Header'}'`
22020 { echo "$as_me:$LINENO: result: $ac_res" >&5
22021 echo "${ECHO_T}$ac_res" >&6; }
22022
22023 fi
22024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22027 _ACEOF
22028
22029 else
22030
22031 for ac_header in kerberos/krb.h
22032 do
22033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 fi
22040 ac_res=`eval echo '${'$as_ac_Header'}'`
22041 { echo "$as_me:$LINENO: result: $ac_res" >&5
22042 echo "${ECHO_T}$ac_res" >&6; }
22043 else
22044 # Is the header compilable?
22045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22047 cat >conftest.$ac_ext <<_ACEOF
22048 /* confdefs.h. */
22049 _ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h. */
22053 $ac_includes_default
22054 #include <$ac_header>
22055 _ACEOF
22056 rm -f conftest.$ac_objext
22057 if { (ac_try="$ac_compile"
22058 case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_compile") 2>conftest.er1
22064 ac_status=$?
22065 grep -v '^ *+' conftest.er1 >conftest.err
22066 rm -f conftest.er1
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } && {
22070 test -z "$ac_c_werror_flag" ||
22071 test ! -s conftest.err
22072 } && test -s conftest.$ac_objext; then
22073 ac_header_compiler=yes
22074 else
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078 ac_header_compiler=no
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22083 echo "${ECHO_T}$ac_header_compiler" >&6; }
22084
22085 # Is the header present?
22086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22088 cat >conftest.$ac_ext <<_ACEOF
22089 /* confdefs.h. */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 #include <$ac_header>
22095 _ACEOF
22096 if { (ac_try="$ac_cpp conftest.$ac_ext"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22103 ac_status=$?
22104 grep -v '^ *+' conftest.er1 >conftest.err
22105 rm -f conftest.er1
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } >/dev/null && {
22109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22110 test ! -s conftest.err
22111 }; then
22112 ac_header_preproc=yes
22113 else
22114 echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22116
22117 ac_header_preproc=no
22118 fi
22119
22120 rm -f conftest.err conftest.$ac_ext
22121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22122 echo "${ECHO_T}$ac_header_preproc" >&6; }
22123
22124 # So? What about this header?
22125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22126 yes:no: )
22127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22131 ac_header_preproc=yes
22132 ;;
22133 no:yes:* )
22134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22146
22147 ;;
22148 esac
22149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 else
22154 eval "$as_ac_Header=\$ac_header_preproc"
22155 fi
22156 ac_res=`eval echo '${'$as_ac_Header'}'`
22157 { echo "$as_me:$LINENO: result: $ac_res" >&5
22158 echo "${ECHO_T}$ac_res" >&6; }
22159
22160 fi
22161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22162 cat >>confdefs.h <<_ACEOF
22163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22164 _ACEOF
22165
22166 fi
22167
22168 done
22169
22170 fi
22171
22172 done
22173
22174 fi
22175
22176 done
22177
22178 fi
22179
22180 for ac_header in com_err.h
22181 do
22182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 fi
22189 ac_res=`eval echo '${'$as_ac_Header'}'`
22190 { echo "$as_me:$LINENO: result: $ac_res" >&5
22191 echo "${ECHO_T}$ac_res" >&6; }
22192 else
22193 # Is the header compilable?
22194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22196 cat >conftest.$ac_ext <<_ACEOF
22197 /* confdefs.h. */
22198 _ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22202 $ac_includes_default
22203 #include <$ac_header>
22204 _ACEOF
22205 rm -f conftest.$ac_objext
22206 if { (ac_try="$ac_compile"
22207 case "(($ac_try" in
22208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209 *) ac_try_echo=$ac_try;;
22210 esac
22211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22212 (eval "$ac_compile") 2>conftest.er1
22213 ac_status=$?
22214 grep -v '^ *+' conftest.er1 >conftest.err
22215 rm -f conftest.er1
22216 cat conftest.err >&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } && {
22219 test -z "$ac_c_werror_flag" ||
22220 test ! -s conftest.err
22221 } && test -s conftest.$ac_objext; then
22222 ac_header_compiler=yes
22223 else
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227 ac_header_compiler=no
22228 fi
22229
22230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22232 echo "${ECHO_T}$ac_header_compiler" >&6; }
22233
22234 # Is the header present?
22235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22237 cat >conftest.$ac_ext <<_ACEOF
22238 /* confdefs.h. */
22239 _ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h. */
22243 #include <$ac_header>
22244 _ACEOF
22245 if { (ac_try="$ac_cpp conftest.$ac_ext"
22246 case "(($ac_try" in
22247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248 *) ac_try_echo=$ac_try;;
22249 esac
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22252 ac_status=$?
22253 grep -v '^ *+' conftest.er1 >conftest.err
22254 rm -f conftest.er1
22255 cat conftest.err >&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); } >/dev/null && {
22258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22259 test ! -s conftest.err
22260 }; then
22261 ac_header_preproc=yes
22262 else
22263 echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22265
22266 ac_header_preproc=no
22267 fi
22268
22269 rm -f conftest.err conftest.$ac_ext
22270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22271 echo "${ECHO_T}$ac_header_preproc" >&6; }
22272
22273 # So? What about this header?
22274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22275 yes:no: )
22276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22280 ac_header_preproc=yes
22281 ;;
22282 no:yes:* )
22283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22295
22296 ;;
22297 esac
22298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22301 echo $ECHO_N "(cached) $ECHO_C" >&6
22302 else
22303 eval "$as_ac_Header=\$ac_header_preproc"
22304 fi
22305 ac_res=`eval echo '${'$as_ac_Header'}'`
22306 { echo "$as_me:$LINENO: result: $ac_res" >&5
22307 echo "${ECHO_T}$ac_res" >&6; }
22308
22309 fi
22310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22311 cat >>confdefs.h <<_ACEOF
22312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22313 _ACEOF
22314
22315 fi
22316
22317 done
22318
22319 fi
22320
22321 # Solaris requires -lintl if you want strerror (which calls dgettext)
22322 # to return localized messages.
22323
22324 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22325 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22326 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22328 else
22329 ac_check_lib_save_LIBS=$LIBS
22330 LIBS="-lintl $LIBS"
22331 cat >conftest.$ac_ext <<_ACEOF
22332 /* confdefs.h. */
22333 _ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22337
22338 /* Override any GCC internal prototype to avoid an error.
22339 Use char because int might match the return type of a GCC
22340 builtin and then its argument prototype would still apply. */
22341 #ifdef __cplusplus
22342 extern "C"
22343 #endif
22344 char dgettext ();
22345 int
22346 main ()
22347 {
22348 return dgettext ();
22349 ;
22350 return 0;
22351 }
22352 _ACEOF
22353 rm -f conftest.$ac_objext conftest$ac_exeext
22354 if { (ac_try="$ac_link"
22355 case "(($ac_try" in
22356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357 *) ac_try_echo=$ac_try;;
22358 esac
22359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22360 (eval "$ac_link") 2>conftest.er1
22361 ac_status=$?
22362 grep -v '^ *+' conftest.er1 >conftest.err
22363 rm -f conftest.er1
22364 cat conftest.err >&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } && {
22367 test -z "$ac_c_werror_flag" ||
22368 test ! -s conftest.err
22369 } && test -s conftest$ac_exeext &&
22370 $as_test_x conftest$ac_exeext; then
22371 ac_cv_lib_intl_dgettext=yes
22372 else
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22375
22376 ac_cv_lib_intl_dgettext=no
22377 fi
22378
22379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22380 conftest$ac_exeext conftest.$ac_ext
22381 LIBS=$ac_check_lib_save_LIBS
22382 fi
22383 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22384 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22385 if test $ac_cv_lib_intl_dgettext = yes; then
22386 cat >>confdefs.h <<_ACEOF
22387 #define HAVE_LIBINTL 1
22388 _ACEOF
22389
22390 LIBS="-lintl $LIBS"
22391
22392 fi
22393
22394
22395 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22396 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22397 if test "${emacs_cv_localtime_cache+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22399 else
22400 if test x$ac_cv_func_tzset = xyes; then
22401 if test "$cross_compiling" = yes; then
22402 # If we have tzset, assume the worst when cross-compiling.
22403 emacs_cv_localtime_cache=yes
22404 else
22405 cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h. */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22411 #include <time.h>
22412 extern char **environ;
22413 unset_TZ ()
22414 {
22415 char **from, **to;
22416 for (to = from = environ; (*to = *from); from++)
22417 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22418 to++;
22419 }
22420 char TZ_GMT0[] = "TZ=GMT0";
22421 char TZ_PST8[] = "TZ=PST8";
22422 main()
22423 {
22424 time_t now = time ((time_t *) 0);
22425 int hour_GMT0, hour_unset;
22426 if (putenv (TZ_GMT0) != 0)
22427 exit (1);
22428 hour_GMT0 = localtime (&now)->tm_hour;
22429 unset_TZ ();
22430 hour_unset = localtime (&now)->tm_hour;
22431 if (putenv (TZ_PST8) != 0)
22432 exit (1);
22433 if (localtime (&now)->tm_hour == hour_GMT0)
22434 exit (1);
22435 unset_TZ ();
22436 if (localtime (&now)->tm_hour != hour_unset)
22437 exit (1);
22438 exit (0);
22439 }
22440 _ACEOF
22441 rm -f conftest$ac_exeext
22442 if { (ac_try="$ac_link"
22443 case "(($ac_try" in
22444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22446 esac
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448 (eval "$ac_link") 2>&5
22449 ac_status=$?
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22452 { (case "(($ac_try" in
22453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454 *) ac_try_echo=$ac_try;;
22455 esac
22456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22457 (eval "$ac_try") 2>&5
22458 ac_status=$?
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; }; then
22461 emacs_cv_localtime_cache=no
22462 else
22463 echo "$as_me: program exited with status $ac_status" >&5
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22466
22467 ( exit $ac_status )
22468 emacs_cv_localtime_cache=yes
22469 fi
22470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22471 fi
22472
22473
22474 else
22475 # If we lack tzset, report that localtime does not cache TZ,
22476 # since we can't invalidate the cache if we don't have tzset.
22477 emacs_cv_localtime_cache=no
22478 fi
22479 fi
22480 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22481 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22482 if test $emacs_cv_localtime_cache = yes; then
22483
22484 cat >>confdefs.h <<\_ACEOF
22485 #define LOCALTIME_CACHE 1
22486 _ACEOF
22487
22488 fi
22489
22490 if test "x$HAVE_TIMEVAL" = xyes; then
22491
22492 for ac_func in gettimeofday
22493 do
22494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22499 else
22500 cat >conftest.$ac_ext <<_ACEOF
22501 /* confdefs.h. */
22502 _ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h. */
22506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22508 #define $ac_func innocuous_$ac_func
22509
22510 /* System header to define __stub macros and hopefully few prototypes,
22511 which can conflict with char $ac_func (); below.
22512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22513 <limits.h> exists even on freestanding compilers. */
22514
22515 #ifdef __STDC__
22516 # include <limits.h>
22517 #else
22518 # include <assert.h>
22519 #endif
22520
22521 #undef $ac_func
22522
22523 /* Override any GCC internal prototype to avoid an error.
22524 Use char because int might match the return type of a GCC
22525 builtin and then its argument prototype would still apply. */
22526 #ifdef __cplusplus
22527 extern "C"
22528 #endif
22529 char $ac_func ();
22530 /* The GNU C library defines this for functions which it implements
22531 to always fail with ENOSYS. Some functions are actually named
22532 something starting with __ and the normal name is an alias. */
22533 #if defined __stub_$ac_func || defined __stub___$ac_func
22534 choke me
22535 #endif
22536
22537 int
22538 main ()
22539 {
22540 return $ac_func ();
22541 ;
22542 return 0;
22543 }
22544 _ACEOF
22545 rm -f conftest.$ac_objext conftest$ac_exeext
22546 if { (ac_try="$ac_link"
22547 case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22550 esac
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_link") 2>conftest.er1
22553 ac_status=$?
22554 grep -v '^ *+' conftest.er1 >conftest.err
22555 rm -f conftest.er1
22556 cat conftest.err >&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } && {
22559 test -z "$ac_c_werror_flag" ||
22560 test ! -s conftest.err
22561 } && test -s conftest$ac_exeext &&
22562 $as_test_x conftest$ac_exeext; then
22563 eval "$as_ac_var=yes"
22564 else
22565 echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22567
22568 eval "$as_ac_var=no"
22569 fi
22570
22571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22572 conftest$ac_exeext conftest.$ac_ext
22573 fi
22574 ac_res=`eval echo '${'$as_ac_var'}'`
22575 { echo "$as_me:$LINENO: result: $ac_res" >&5
22576 echo "${ECHO_T}$ac_res" >&6; }
22577 if test `eval echo '${'$as_ac_var'}'` = yes; then
22578 cat >>confdefs.h <<_ACEOF
22579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22580 _ACEOF
22581
22582 fi
22583 done
22584
22585 if test $ac_cv_func_gettimeofday = yes; then
22586 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22587 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22588 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591 cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h. */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597
22598 #ifdef TIME_WITH_SYS_TIME
22599 #include <sys/time.h>
22600 #include <time.h>
22601 #else
22602 #ifdef HAVE_SYS_TIME_H
22603 #include <sys/time.h>
22604 #else
22605 #include <time.h>
22606 #endif
22607 #endif
22608 int
22609 main ()
22610 {
22611 struct timeval time;
22612 gettimeofday (&time, 0);
22613 ;
22614 return 0;
22615 }
22616 _ACEOF
22617 rm -f conftest.$ac_objext
22618 if { (ac_try="$ac_compile"
22619 case "(($ac_try" in
22620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621 *) ac_try_echo=$ac_try;;
22622 esac
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624 (eval "$ac_compile") 2>conftest.er1
22625 ac_status=$?
22626 grep -v '^ *+' conftest.er1 >conftest.err
22627 rm -f conftest.er1
22628 cat conftest.err >&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } && {
22631 test -z "$ac_c_werror_flag" ||
22632 test ! -s conftest.err
22633 } && test -s conftest.$ac_objext; then
22634 emacs_cv_gettimeofday_two_arguments=yes
22635 else
22636 echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22638
22639 emacs_cv_gettimeofday_two_arguments=no
22640 fi
22641
22642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22643 fi
22644 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22645 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22646 if test $emacs_cv_gettimeofday_two_arguments = no; then
22647
22648 cat >>confdefs.h <<\_ACEOF
22649 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22650 _ACEOF
22651
22652 fi
22653 fi
22654 fi
22655
22656 ok_so_far=yes
22657 { echo "$as_me:$LINENO: checking for socket" >&5
22658 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22659 if test "${ac_cv_func_socket+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22661 else
22662 cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h. */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22670 #define socket innocuous_socket
22671
22672 /* System header to define __stub macros and hopefully few prototypes,
22673 which can conflict with char socket (); below.
22674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22675 <limits.h> exists even on freestanding compilers. */
22676
22677 #ifdef __STDC__
22678 # include <limits.h>
22679 #else
22680 # include <assert.h>
22681 #endif
22682
22683 #undef socket
22684
22685 /* Override any GCC internal prototype to avoid an error.
22686 Use char because int might match the return type of a GCC
22687 builtin and then its argument prototype would still apply. */
22688 #ifdef __cplusplus
22689 extern "C"
22690 #endif
22691 char socket ();
22692 /* The GNU C library defines this for functions which it implements
22693 to always fail with ENOSYS. Some functions are actually named
22694 something starting with __ and the normal name is an alias. */
22695 #if defined __stub_socket || defined __stub___socket
22696 choke me
22697 #endif
22698
22699 int
22700 main ()
22701 {
22702 return socket ();
22703 ;
22704 return 0;
22705 }
22706 _ACEOF
22707 rm -f conftest.$ac_objext conftest$ac_exeext
22708 if { (ac_try="$ac_link"
22709 case "(($ac_try" in
22710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711 *) ac_try_echo=$ac_try;;
22712 esac
22713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22714 (eval "$ac_link") 2>conftest.er1
22715 ac_status=$?
22716 grep -v '^ *+' conftest.er1 >conftest.err
22717 rm -f conftest.er1
22718 cat conftest.err >&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); } && {
22721 test -z "$ac_c_werror_flag" ||
22722 test ! -s conftest.err
22723 } && test -s conftest$ac_exeext &&
22724 $as_test_x conftest$ac_exeext; then
22725 ac_cv_func_socket=yes
22726 else
22727 echo "$as_me: failed program was:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22729
22730 ac_cv_func_socket=no
22731 fi
22732
22733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22734 conftest$ac_exeext conftest.$ac_ext
22735 fi
22736 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22737 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22738 if test $ac_cv_func_socket = yes; then
22739 :
22740 else
22741 ok_so_far=no
22742 fi
22743
22744 if test $ok_so_far = yes; then
22745 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22746 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22747 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22748 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22749 echo $ECHO_N "(cached) $ECHO_C" >&6
22750 fi
22751 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22752 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22753 else
22754 # Is the header compilable?
22755 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22756 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22757 cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h. */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 $ac_includes_default
22764 #include <netinet/in.h>
22765 _ACEOF
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22771 esac
22772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773 (eval "$ac_compile") 2>conftest.er1
22774 ac_status=$?
22775 grep -v '^ *+' conftest.er1 >conftest.err
22776 rm -f conftest.er1
22777 cat conftest.err >&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); } && {
22780 test -z "$ac_c_werror_flag" ||
22781 test ! -s conftest.err
22782 } && test -s conftest.$ac_objext; then
22783 ac_header_compiler=yes
22784 else
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788 ac_header_compiler=no
22789 fi
22790
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22793 echo "${ECHO_T}$ac_header_compiler" >&6; }
22794
22795 # Is the header present?
22796 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22797 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22798 cat >conftest.$ac_ext <<_ACEOF
22799 /* confdefs.h. */
22800 _ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22804 #include <netinet/in.h>
22805 _ACEOF
22806 if { (ac_try="$ac_cpp conftest.$ac_ext"
22807 case "(($ac_try" in
22808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22809 *) ac_try_echo=$ac_try;;
22810 esac
22811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22813 ac_status=$?
22814 grep -v '^ *+' conftest.er1 >conftest.err
22815 rm -f conftest.er1
22816 cat conftest.err >&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); } >/dev/null && {
22819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22820 test ! -s conftest.err
22821 }; then
22822 ac_header_preproc=yes
22823 else
22824 echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827 ac_header_preproc=no
22828 fi
22829
22830 rm -f conftest.err conftest.$ac_ext
22831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22832 echo "${ECHO_T}$ac_header_preproc" >&6; }
22833
22834 # So? What about this header?
22835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22836 yes:no: )
22837 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22838 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22839 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22840 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22841 ac_header_preproc=yes
22842 ;;
22843 no:yes:* )
22844 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22845 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22846 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22847 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22848 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22849 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22850 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22851 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22852 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22853 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22854 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22855 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22856
22857 ;;
22858 esac
22859 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22860 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22861 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
22863 else
22864 ac_cv_header_netinet_in_h=$ac_header_preproc
22865 fi
22866 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22867 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22868
22869 fi
22870 if test $ac_cv_header_netinet_in_h = yes; then
22871 :
22872 else
22873 ok_so_far=no
22874 fi
22875
22876
22877 fi
22878 if test $ok_so_far = yes; then
22879 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22880 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22881 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22882 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22884 fi
22885 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22886 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22887 else
22888 # Is the header compilable?
22889 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22890 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22891 cat >conftest.$ac_ext <<_ACEOF
22892 /* confdefs.h. */
22893 _ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22897 $ac_includes_default
22898 #include <arpa/inet.h>
22899 _ACEOF
22900 rm -f conftest.$ac_objext
22901 if { (ac_try="$ac_compile"
22902 case "(($ac_try" in
22903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904 *) ac_try_echo=$ac_try;;
22905 esac
22906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22907 (eval "$ac_compile") 2>conftest.er1
22908 ac_status=$?
22909 grep -v '^ *+' conftest.er1 >conftest.err
22910 rm -f conftest.er1
22911 cat conftest.err >&5
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } && {
22914 test -z "$ac_c_werror_flag" ||
22915 test ! -s conftest.err
22916 } && test -s conftest.$ac_objext; then
22917 ac_header_compiler=yes
22918 else
22919 echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22921
22922 ac_header_compiler=no
22923 fi
22924
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22927 echo "${ECHO_T}$ac_header_compiler" >&6; }
22928
22929 # Is the header present?
22930 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22931 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22932 cat >conftest.$ac_ext <<_ACEOF
22933 /* confdefs.h. */
22934 _ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h. */
22938 #include <arpa/inet.h>
22939 _ACEOF
22940 if { (ac_try="$ac_cpp conftest.$ac_ext"
22941 case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22944 esac
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22947 ac_status=$?
22948 grep -v '^ *+' conftest.er1 >conftest.err
22949 rm -f conftest.er1
22950 cat conftest.err >&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } >/dev/null && {
22953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22954 test ! -s conftest.err
22955 }; then
22956 ac_header_preproc=yes
22957 else
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22960
22961 ac_header_preproc=no
22962 fi
22963
22964 rm -f conftest.err conftest.$ac_ext
22965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22966 echo "${ECHO_T}$ac_header_preproc" >&6; }
22967
22968 # So? What about this header?
22969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22970 yes:no: )
22971 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22972 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22973 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22974 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22975 ac_header_preproc=yes
22976 ;;
22977 no:yes:* )
22978 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22979 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22980 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22981 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22982 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22983 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22984 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22985 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22986 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22987 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22988 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22989 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22990
22991 ;;
22992 esac
22993 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22994 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22995 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22996 echo $ECHO_N "(cached) $ECHO_C" >&6
22997 else
22998 ac_cv_header_arpa_inet_h=$ac_header_preproc
22999 fi
23000 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23001 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23002
23003 fi
23004 if test $ac_cv_header_arpa_inet_h = yes; then
23005 :
23006 else
23007 ok_so_far=no
23008 fi
23009
23010
23011 fi
23012 if test $ok_so_far = yes; then
23013
23014 cat >>confdefs.h <<\_ACEOF
23015 #define HAVE_INET_SOCKETS 1
23016 _ACEOF
23017
23018 fi
23019
23020
23021 for ac_header in sys/ioctl.h
23022 do
23023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23028 echo $ECHO_N "(cached) $ECHO_C" >&6
23029 fi
23030 ac_res=`eval echo '${'$as_ac_Header'}'`
23031 { echo "$as_me:$LINENO: result: $ac_res" >&5
23032 echo "${ECHO_T}$ac_res" >&6; }
23033 else
23034 # Is the header compilable?
23035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23037 cat >conftest.$ac_ext <<_ACEOF
23038 /* confdefs.h. */
23039 _ACEOF
23040 cat confdefs.h >>conftest.$ac_ext
23041 cat >>conftest.$ac_ext <<_ACEOF
23042 /* end confdefs.h. */
23043 $ac_includes_default
23044 #include <$ac_header>
23045 _ACEOF
23046 rm -f conftest.$ac_objext
23047 if { (ac_try="$ac_compile"
23048 case "(($ac_try" in
23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050 *) ac_try_echo=$ac_try;;
23051 esac
23052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23053 (eval "$ac_compile") 2>conftest.er1
23054 ac_status=$?
23055 grep -v '^ *+' conftest.er1 >conftest.err
23056 rm -f conftest.er1
23057 cat conftest.err >&5
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); } && {
23060 test -z "$ac_c_werror_flag" ||
23061 test ! -s conftest.err
23062 } && test -s conftest.$ac_objext; then
23063 ac_header_compiler=yes
23064 else
23065 echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23067
23068 ac_header_compiler=no
23069 fi
23070
23071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23073 echo "${ECHO_T}$ac_header_compiler" >&6; }
23074
23075 # Is the header present?
23076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23078 cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h. */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 #include <$ac_header>
23085 _ACEOF
23086 if { (ac_try="$ac_cpp conftest.$ac_ext"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23090 esac
23091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23093 ac_status=$?
23094 grep -v '^ *+' conftest.er1 >conftest.err
23095 rm -f conftest.er1
23096 cat conftest.err >&5
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } >/dev/null && {
23099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23101 }; then
23102 ac_header_preproc=yes
23103 else
23104 echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23106
23107 ac_header_preproc=no
23108 fi
23109
23110 rm -f conftest.err conftest.$ac_ext
23111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23112 echo "${ECHO_T}$ac_header_preproc" >&6; }
23113
23114 # So? What about this header?
23115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23116 yes:no: )
23117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23121 ac_header_preproc=yes
23122 ;;
23123 no:yes:* )
23124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23136
23137 ;;
23138 esac
23139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23142 echo $ECHO_N "(cached) $ECHO_C" >&6
23143 else
23144 eval "$as_ac_Header=\$ac_header_preproc"
23145 fi
23146 ac_res=`eval echo '${'$as_ac_Header'}'`
23147 { echo "$as_me:$LINENO: result: $ac_res" >&5
23148 echo "${ECHO_T}$ac_res" >&6; }
23149
23150 fi
23151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23152 cat >>confdefs.h <<_ACEOF
23153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23154 _ACEOF
23155
23156 fi
23157
23158 done
23159
23160
23161 if test -f /usr/lpp/X11/bin/smt.exp; then
23162
23163 cat >>confdefs.h <<\_ACEOF
23164 #define HAVE_AIX_SMT_EXP 1
23165 _ACEOF
23166
23167 fi
23168
23169 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23170 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23171 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23172 { echo "$as_me:$LINENO: result: yes" >&5
23173 echo "${ECHO_T}yes" >&6; }
23174
23175 cat >>confdefs.h <<\_ACEOF
23176 #define HAVE_DEV_PTMX 1
23177 _ACEOF
23178
23179 else
23180 { echo "$as_me:$LINENO: result: no" >&5
23181 echo "${ECHO_T}no" >&6; }
23182 fi
23183
23184 { echo "$as_me:$LINENO: checking for pid_t" >&5
23185 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23186 if test "${ac_cv_type_pid_t+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 else
23189 cat >conftest.$ac_ext <<_ACEOF
23190 /* confdefs.h. */
23191 _ACEOF
23192 cat confdefs.h >>conftest.$ac_ext
23193 cat >>conftest.$ac_ext <<_ACEOF
23194 /* end confdefs.h. */
23195 $ac_includes_default
23196 typedef pid_t ac__type_new_;
23197 int
23198 main ()
23199 {
23200 if ((ac__type_new_ *) 0)
23201 return 0;
23202 if (sizeof (ac__type_new_))
23203 return 0;
23204 ;
23205 return 0;
23206 }
23207 _ACEOF
23208 rm -f conftest.$ac_objext
23209 if { (ac_try="$ac_compile"
23210 case "(($ac_try" in
23211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23212 *) ac_try_echo=$ac_try;;
23213 esac
23214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23215 (eval "$ac_compile") 2>conftest.er1
23216 ac_status=$?
23217 grep -v '^ *+' conftest.er1 >conftest.err
23218 rm -f conftest.er1
23219 cat conftest.err >&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } && {
23222 test -z "$ac_c_werror_flag" ||
23223 test ! -s conftest.err
23224 } && test -s conftest.$ac_objext; then
23225 ac_cv_type_pid_t=yes
23226 else
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23229
23230 ac_cv_type_pid_t=no
23231 fi
23232
23233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23234 fi
23235 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23236 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23237 if test $ac_cv_type_pid_t = yes; then
23238 :
23239 else
23240
23241 cat >>confdefs.h <<_ACEOF
23242 #define pid_t int
23243 _ACEOF
23244
23245 fi
23246
23247
23248 for ac_header in vfork.h
23249 do
23250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23255 echo $ECHO_N "(cached) $ECHO_C" >&6
23256 fi
23257 ac_res=`eval echo '${'$as_ac_Header'}'`
23258 { echo "$as_me:$LINENO: result: $ac_res" >&5
23259 echo "${ECHO_T}$ac_res" >&6; }
23260 else
23261 # Is the header compilable?
23262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23264 cat >conftest.$ac_ext <<_ACEOF
23265 /* confdefs.h. */
23266 _ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h. */
23270 $ac_includes_default
23271 #include <$ac_header>
23272 _ACEOF
23273 rm -f conftest.$ac_objext
23274 if { (ac_try="$ac_compile"
23275 case "(($ac_try" in
23276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23277 *) ac_try_echo=$ac_try;;
23278 esac
23279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23280 (eval "$ac_compile") 2>conftest.er1
23281 ac_status=$?
23282 grep -v '^ *+' conftest.er1 >conftest.err
23283 rm -f conftest.er1
23284 cat conftest.err >&5
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } && {
23287 test -z "$ac_c_werror_flag" ||
23288 test ! -s conftest.err
23289 } && test -s conftest.$ac_objext; then
23290 ac_header_compiler=yes
23291 else
23292 echo "$as_me: failed program was:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23294
23295 ac_header_compiler=no
23296 fi
23297
23298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23300 echo "${ECHO_T}$ac_header_compiler" >&6; }
23301
23302 # Is the header present?
23303 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23305 cat >conftest.$ac_ext <<_ACEOF
23306 /* confdefs.h. */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h. */
23311 #include <$ac_header>
23312 _ACEOF
23313 if { (ac_try="$ac_cpp conftest.$ac_ext"
23314 case "(($ac_try" in
23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23317 esac
23318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23320 ac_status=$?
23321 grep -v '^ *+' conftest.er1 >conftest.err
23322 rm -f conftest.er1
23323 cat conftest.err >&5
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); } >/dev/null && {
23326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23327 test ! -s conftest.err
23328 }; then
23329 ac_header_preproc=yes
23330 else
23331 echo "$as_me: failed program was:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23333
23334 ac_header_preproc=no
23335 fi
23336
23337 rm -f conftest.err conftest.$ac_ext
23338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23339 echo "${ECHO_T}$ac_header_preproc" >&6; }
23340
23341 # So? What about this header?
23342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23343 yes:no: )
23344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23348 ac_header_preproc=yes
23349 ;;
23350 no:yes:* )
23351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23363
23364 ;;
23365 esac
23366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23370 else
23371 eval "$as_ac_Header=\$ac_header_preproc"
23372 fi
23373 ac_res=`eval echo '${'$as_ac_Header'}'`
23374 { echo "$as_me:$LINENO: result: $ac_res" >&5
23375 echo "${ECHO_T}$ac_res" >&6; }
23376
23377 fi
23378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23379 cat >>confdefs.h <<_ACEOF
23380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23381 _ACEOF
23382
23383 fi
23384
23385 done
23386
23387
23388
23389 for ac_func in fork vfork
23390 do
23391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23396 else
23397 cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h. */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23405 #define $ac_func innocuous_$ac_func
23406
23407 /* System header to define __stub macros and hopefully few prototypes,
23408 which can conflict with char $ac_func (); below.
23409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23410 <limits.h> exists even on freestanding compilers. */
23411
23412 #ifdef __STDC__
23413 # include <limits.h>
23414 #else
23415 # include <assert.h>
23416 #endif
23417
23418 #undef $ac_func
23419
23420 /* Override any GCC internal prototype to avoid an error.
23421 Use char because int might match the return type of a GCC
23422 builtin and then its argument prototype would still apply. */
23423 #ifdef __cplusplus
23424 extern "C"
23425 #endif
23426 char $ac_func ();
23427 /* The GNU C library defines this for functions which it implements
23428 to always fail with ENOSYS. Some functions are actually named
23429 something starting with __ and the normal name is an alias. */
23430 #if defined __stub_$ac_func || defined __stub___$ac_func
23431 choke me
23432 #endif
23433
23434 int
23435 main ()
23436 {
23437 return $ac_func ();
23438 ;
23439 return 0;
23440 }
23441 _ACEOF
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (ac_try="$ac_link"
23444 case "(($ac_try" in
23445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23447 esac
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_link") 2>conftest.er1
23450 ac_status=$?
23451 grep -v '^ *+' conftest.er1 >conftest.err
23452 rm -f conftest.er1
23453 cat conftest.err >&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest$ac_exeext &&
23459 $as_test_x conftest$ac_exeext; then
23460 eval "$as_ac_var=yes"
23461 else
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23464
23465 eval "$as_ac_var=no"
23466 fi
23467
23468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23469 conftest$ac_exeext conftest.$ac_ext
23470 fi
23471 ac_res=`eval echo '${'$as_ac_var'}'`
23472 { echo "$as_me:$LINENO: result: $ac_res" >&5
23473 echo "${ECHO_T}$ac_res" >&6; }
23474 if test `eval echo '${'$as_ac_var'}'` = yes; then
23475 cat >>confdefs.h <<_ACEOF
23476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23477 _ACEOF
23478
23479 fi
23480 done
23481
23482 if test "x$ac_cv_func_fork" = xyes; then
23483 { echo "$as_me:$LINENO: checking for working fork" >&5
23484 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23485 if test "${ac_cv_func_fork_works+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 else
23488 if test "$cross_compiling" = yes; then
23489 ac_cv_func_fork_works=cross
23490 else
23491 cat >conftest.$ac_ext <<_ACEOF
23492 /* confdefs.h. */
23493 _ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 $ac_includes_default
23498 int
23499 main ()
23500 {
23501
23502 /* By Ruediger Kuhlmann. */
23503 return fork () < 0;
23504
23505 ;
23506 return 0;
23507 }
23508 _ACEOF
23509 rm -f conftest$ac_exeext
23510 if { (ac_try="$ac_link"
23511 case "(($ac_try" in
23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513 *) ac_try_echo=$ac_try;;
23514 esac
23515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23516 (eval "$ac_link") 2>&5
23517 ac_status=$?
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23520 { (case "(($ac_try" in
23521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23523 esac
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525 (eval "$ac_try") 2>&5
23526 ac_status=$?
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; }; then
23529 ac_cv_func_fork_works=yes
23530 else
23531 echo "$as_me: program exited with status $ac_status" >&5
23532 echo "$as_me: failed program was:" >&5
23533 sed 's/^/| /' conftest.$ac_ext >&5
23534
23535 ( exit $ac_status )
23536 ac_cv_func_fork_works=no
23537 fi
23538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23539 fi
23540
23541
23542 fi
23543 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23544 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23545
23546 else
23547 ac_cv_func_fork_works=$ac_cv_func_fork
23548 fi
23549 if test "x$ac_cv_func_fork_works" = xcross; then
23550 case $host in
23551 *-*-amigaos* | *-*-msdosdjgpp*)
23552 # Override, as these systems have only a dummy fork() stub
23553 ac_cv_func_fork_works=no
23554 ;;
23555 *)
23556 ac_cv_func_fork_works=yes
23557 ;;
23558 esac
23559 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23560 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23561 fi
23562 ac_cv_func_vfork_works=$ac_cv_func_vfork
23563 if test "x$ac_cv_func_vfork" = xyes; then
23564 { echo "$as_me:$LINENO: checking for working vfork" >&5
23565 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23566 if test "${ac_cv_func_vfork_works+set}" = set; then
23567 echo $ECHO_N "(cached) $ECHO_C" >&6
23568 else
23569 if test "$cross_compiling" = yes; then
23570 ac_cv_func_vfork_works=cross
23571 else
23572 cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h. */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h. */
23578 /* Thanks to Paul Eggert for this test. */
23579 $ac_includes_default
23580 #include <sys/wait.h>
23581 #ifdef HAVE_VFORK_H
23582 # include <vfork.h>
23583 #endif
23584 /* On some sparc systems, changes by the child to local and incoming
23585 argument registers are propagated back to the parent. The compiler
23586 is told about this with #include <vfork.h>, but some compilers
23587 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23588 static variable whose address is put into a register that is
23589 clobbered by the vfork. */
23590 static void
23591 #ifdef __cplusplus
23592 sparc_address_test (int arg)
23593 # else
23594 sparc_address_test (arg) int arg;
23595 #endif
23596 {
23597 static pid_t child;
23598 if (!child) {
23599 child = vfork ();
23600 if (child < 0) {
23601 perror ("vfork");
23602 _exit(2);
23603 }
23604 if (!child) {
23605 arg = getpid();
23606 write(-1, "", 0);
23607 _exit (arg);
23608 }
23609 }
23610 }
23611
23612 int
23613 main ()
23614 {
23615 pid_t parent = getpid ();
23616 pid_t child;
23617
23618 sparc_address_test (0);
23619
23620 child = vfork ();
23621
23622 if (child == 0) {
23623 /* Here is another test for sparc vfork register problems. This
23624 test uses lots of local variables, at least as many local
23625 variables as main has allocated so far including compiler
23626 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23627 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23628 reuse the register of parent for one of the local variables,
23629 since it will think that parent can't possibly be used any more
23630 in this routine. Assigning to the local variable will thus
23631 munge parent in the parent process. */
23632 pid_t
23633 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23634 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23635 /* Convince the compiler that p..p7 are live; otherwise, it might
23636 use the same hardware register for all 8 local variables. */
23637 if (p != p1 || p != p2 || p != p3 || p != p4
23638 || p != p5 || p != p6 || p != p7)
23639 _exit(1);
23640
23641 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23642 from child file descriptors. If the child closes a descriptor
23643 before it execs or exits, this munges the parent's descriptor
23644 as well. Test for this by closing stdout in the child. */
23645 _exit(close(fileno(stdout)) != 0);
23646 } else {
23647 int status;
23648 struct stat st;
23649
23650 while (wait(&status) != child)
23651 ;
23652 return (
23653 /* Was there some problem with vforking? */
23654 child < 0
23655
23656 /* Did the child fail? (This shouldn't happen.) */
23657 || status
23658
23659 /* Did the vfork/compiler bug occur? */
23660 || parent != getpid()
23661
23662 /* Did the file descriptor bug occur? */
23663 || fstat(fileno(stdout), &st) != 0
23664 );
23665 }
23666 }
23667 _ACEOF
23668 rm -f conftest$ac_exeext
23669 if { (ac_try="$ac_link"
23670 case "(($ac_try" in
23671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672 *) ac_try_echo=$ac_try;;
23673 esac
23674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675 (eval "$ac_link") 2>&5
23676 ac_status=$?
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23679 { (case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23682 esac
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684 (eval "$ac_try") 2>&5
23685 ac_status=$?
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); }; }; then
23688 ac_cv_func_vfork_works=yes
23689 else
23690 echo "$as_me: program exited with status $ac_status" >&5
23691 echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23693
23694 ( exit $ac_status )
23695 ac_cv_func_vfork_works=no
23696 fi
23697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23698 fi
23699
23700
23701 fi
23702 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23703 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23704
23705 fi;
23706 if test "x$ac_cv_func_fork_works" = xcross; then
23707 ac_cv_func_vfork_works=$ac_cv_func_vfork
23708 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23709 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23710 fi
23711
23712 if test "x$ac_cv_func_vfork_works" = xyes; then
23713
23714 cat >>confdefs.h <<\_ACEOF
23715 #define HAVE_WORKING_VFORK 1
23716 _ACEOF
23717
23718 else
23719
23720 cat >>confdefs.h <<\_ACEOF
23721 #define vfork fork
23722 _ACEOF
23723
23724 fi
23725 if test "x$ac_cv_func_fork_works" = xyes; then
23726
23727 cat >>confdefs.h <<\_ACEOF
23728 #define HAVE_WORKING_FORK 1
23729 _ACEOF
23730
23731 fi
23732
23733
23734 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23735 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23736 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23738 else
23739 cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h. */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23745 #include <langinfo.h>
23746 int
23747 main ()
23748 {
23749 char* cs = nl_langinfo(CODESET);
23750 ;
23751 return 0;
23752 }
23753 _ACEOF
23754 rm -f conftest.$ac_objext conftest$ac_exeext
23755 if { (ac_try="$ac_link"
23756 case "(($ac_try" in
23757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758 *) ac_try_echo=$ac_try;;
23759 esac
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761 (eval "$ac_link") 2>conftest.er1
23762 ac_status=$?
23763 grep -v '^ *+' conftest.er1 >conftest.err
23764 rm -f conftest.er1
23765 cat conftest.err >&5
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); } && {
23768 test -z "$ac_c_werror_flag" ||
23769 test ! -s conftest.err
23770 } && test -s conftest$ac_exeext &&
23771 $as_test_x conftest$ac_exeext; then
23772 emacs_cv_langinfo_codeset=yes
23773 else
23774 echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23776
23777 emacs_cv_langinfo_codeset=no
23778 fi
23779
23780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23781 conftest$ac_exeext conftest.$ac_ext
23782
23783 fi
23784 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23785 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23786 if test $emacs_cv_langinfo_codeset = yes; then
23787
23788 cat >>confdefs.h <<\_ACEOF
23789 #define HAVE_LANGINFO_CODESET 1
23790 _ACEOF
23791
23792 fi
23793
23794 { echo "$as_me:$LINENO: checking for size_t" >&5
23795 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23796 if test "${ac_cv_type_size_t+set}" = set; then
23797 echo $ECHO_N "(cached) $ECHO_C" >&6
23798 else
23799 cat >conftest.$ac_ext <<_ACEOF
23800 /* confdefs.h. */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23805 $ac_includes_default
23806 typedef size_t ac__type_new_;
23807 int
23808 main ()
23809 {
23810 if ((ac__type_new_ *) 0)
23811 return 0;
23812 if (sizeof (ac__type_new_))
23813 return 0;
23814 ;
23815 return 0;
23816 }
23817 _ACEOF
23818 rm -f conftest.$ac_objext
23819 if { (ac_try="$ac_compile"
23820 case "(($ac_try" in
23821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822 *) ac_try_echo=$ac_try;;
23823 esac
23824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23825 (eval "$ac_compile") 2>conftest.er1
23826 ac_status=$?
23827 grep -v '^ *+' conftest.er1 >conftest.err
23828 rm -f conftest.er1
23829 cat conftest.err >&5
23830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831 (exit $ac_status); } && {
23832 test -z "$ac_c_werror_flag" ||
23833 test ! -s conftest.err
23834 } && test -s conftest.$ac_objext; then
23835 ac_cv_type_size_t=yes
23836 else
23837 echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840 ac_cv_type_size_t=no
23841 fi
23842
23843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23844 fi
23845 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23846 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23847 if test $ac_cv_type_size_t = yes; then
23848
23849 cat >>confdefs.h <<_ACEOF
23850 #define HAVE_SIZE_T 1
23851 _ACEOF
23852
23853
23854 fi
23855
23856
23857 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23858 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23859 if test "${ac_cv_type_mbstate_t+set}" = set; then
23860 echo $ECHO_N "(cached) $ECHO_C" >&6
23861 else
23862 cat >conftest.$ac_ext <<_ACEOF
23863 /* confdefs.h. */
23864 _ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h. */
23868 $ac_includes_default
23869 # include <wchar.h>
23870 int
23871 main ()
23872 {
23873 mbstate_t x; return sizeof x;
23874 ;
23875 return 0;
23876 }
23877 _ACEOF
23878 rm -f conftest.$ac_objext
23879 if { (ac_try="$ac_compile"
23880 case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23883 esac
23884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23885 (eval "$ac_compile") 2>conftest.er1
23886 ac_status=$?
23887 grep -v '^ *+' conftest.er1 >conftest.err
23888 rm -f conftest.er1
23889 cat conftest.err >&5
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } && {
23892 test -z "$ac_c_werror_flag" ||
23893 test ! -s conftest.err
23894 } && test -s conftest.$ac_objext; then
23895 ac_cv_type_mbstate_t=yes
23896 else
23897 echo "$as_me: failed program was:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23899
23900 ac_cv_type_mbstate_t=no
23901 fi
23902
23903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 fi
23905 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23906 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23907 if test $ac_cv_type_mbstate_t = yes; then
23908
23909 cat >>confdefs.h <<\_ACEOF
23910 #define HAVE_MBSTATE_T 1
23911 _ACEOF
23912
23913 else
23914
23915 cat >>confdefs.h <<\_ACEOF
23916 #define mbstate_t int
23917 _ACEOF
23918
23919 fi
23920
23921 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23922 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23923 if test "${emacs_cv_c_restrict+set}" = set; then
23924 echo $ECHO_N "(cached) $ECHO_C" >&6
23925 else
23926 cat >conftest.$ac_ext <<_ACEOF
23927 /* confdefs.h. */
23928 _ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 void fred (int *restrict x);
23933 int
23934 main ()
23935 {
23936
23937 ;
23938 return 0;
23939 }
23940 _ACEOF
23941 rm -f conftest.$ac_objext
23942 if { (ac_try="$ac_compile"
23943 case "(($ac_try" in
23944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945 *) ac_try_echo=$ac_try;;
23946 esac
23947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23948 (eval "$ac_compile") 2>conftest.er1
23949 ac_status=$?
23950 grep -v '^ *+' conftest.er1 >conftest.err
23951 rm -f conftest.er1
23952 cat conftest.err >&5
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } && {
23955 test -z "$ac_c_werror_flag" ||
23956 test ! -s conftest.err
23957 } && test -s conftest.$ac_objext; then
23958 emacs_cv_c_restrict=yes
23959 else
23960 echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23962
23963 cat >conftest.$ac_ext <<_ACEOF
23964 /* confdefs.h. */
23965 _ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23969 void fred (int *__restrict x);
23970 int
23971 main ()
23972 {
23973
23974 ;
23975 return 0;
23976 }
23977 _ACEOF
23978 rm -f conftest.$ac_objext
23979 if { (ac_try="$ac_compile"
23980 case "(($ac_try" in
23981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982 *) ac_try_echo=$ac_try;;
23983 esac
23984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23985 (eval "$ac_compile") 2>conftest.er1
23986 ac_status=$?
23987 grep -v '^ *+' conftest.er1 >conftest.err
23988 rm -f conftest.er1
23989 cat conftest.err >&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } && {
23992 test -z "$ac_c_werror_flag" ||
23993 test ! -s conftest.err
23994 } && test -s conftest.$ac_objext; then
23995 emacs_cv_c_restrict=__restrict
23996 else
23997 echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
23999
24000 emacs_cv_c_restrict=no
24001 fi
24002
24003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 fi
24005
24006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24007 fi
24008 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24009 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24010 case "$emacs_cv_c_restrict" in
24011 yes) emacs_restrict=restrict;;
24012 no) emacs_restrict="";;
24013 *) emacs_restrict="$emacs_cv_c_restrict";;
24014 esac
24015 if test "$emacs_restrict" != __restrict; then
24016
24017 cat >>confdefs.h <<_ACEOF
24018 #define __restrict $emacs_restrict
24019 _ACEOF
24020
24021 fi
24022
24023 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24024 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24025 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24026 echo $ECHO_N "(cached) $ECHO_C" >&6
24027 else
24028 cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h. */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24034 void fred (int x[__restrict]);
24035 int
24036 main ()
24037 {
24038
24039 ;
24040 return 0;
24041 }
24042 _ACEOF
24043 rm -f conftest.$ac_objext
24044 if { (ac_try="$ac_compile"
24045 case "(($ac_try" in
24046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047 *) ac_try_echo=$ac_try;;
24048 esac
24049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24050 (eval "$ac_compile") 2>conftest.er1
24051 ac_status=$?
24052 grep -v '^ *+' conftest.er1 >conftest.err
24053 rm -f conftest.er1
24054 cat conftest.err >&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); } && {
24057 test -z "$ac_c_werror_flag" ||
24058 test ! -s conftest.err
24059 } && test -s conftest.$ac_objext; then
24060 emacs_cv_c_restrict_arr=yes
24061 else
24062 echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24064
24065 emacs_cv_c_restrict_arr=no
24066 fi
24067
24068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24069 fi
24070 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24071 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24072 if test "$emacs_cv_c_restrict_arr" = yes; then
24073
24074 cat >>confdefs.h <<\_ACEOF
24075 #define __restrict_arr __restrict
24076 _ACEOF
24077
24078 fi
24079
24080
24081
24082 # Set up the CFLAGS for real compilation, so we can substitute it.
24083 CFLAGS="$REAL_CFLAGS"
24084 CPPFLAGS="$REAL_CPPFLAGS"
24085
24086 #### Find out which version of Emacs this is.
24087 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24088 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24089 if test x"${version}" = x; then
24090 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24091 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24092 { (exit 1); exit 1; }; }
24093 fi
24094
24095 ### Specify what sort of things we'll be editing into Makefile and config.h.
24096 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138 cat >>confdefs.h <<_ACEOF
24139 #define EMACS_CONFIGURATION "${canonical}"
24140 _ACEOF
24141
24142
24143 cat >>confdefs.h <<_ACEOF
24144 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24145 _ACEOF
24146
24147
24148 cat >>confdefs.h <<_ACEOF
24149 #define config_machfile "${machfile}"
24150 _ACEOF
24151
24152
24153 cat >>confdefs.h <<_ACEOF
24154 #define config_opsysfile "${opsysfile}"
24155 _ACEOF
24156
24157
24158 cat >>confdefs.h <<_ACEOF
24159 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24160 _ACEOF
24161
24162
24163 cat >>confdefs.h <<_ACEOF
24164 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24165 _ACEOF
24166
24167
24168 cat >>confdefs.h <<_ACEOF
24169 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24170 _ACEOF
24171
24172
24173 cat >>confdefs.h <<_ACEOF
24174 #define UNEXEC_SRC ${UNEXEC_SRC}
24175 _ACEOF
24176
24177
24178 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24179
24180 cat >>confdefs.h <<\_ACEOF
24181 #define HAVE_X_WINDOWS 1
24182 _ACEOF
24183
24184 fi
24185 if test "${USE_X_TOOLKIT}" != "none" ; then
24186
24187 cat >>confdefs.h <<\_ACEOF
24188 #define USE_X_TOOLKIT 1
24189 _ACEOF
24190
24191 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24192
24193 cat >>confdefs.h <<\_ACEOF
24194 #define USE_LUCID 1
24195 _ACEOF
24196
24197 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24198
24199 cat >>confdefs.h <<\_ACEOF
24200 #define USE_MOTIF 1
24201 _ACEOF
24202
24203 fi
24204 fi
24205 if test "${HAVE_X11}" = "yes" ; then
24206
24207 cat >>confdefs.h <<\_ACEOF
24208 #define HAVE_X11 1
24209 _ACEOF
24210
24211 fi
24212 if test "${HAVE_MENUS}" = "yes" ; then
24213
24214 cat >>confdefs.h <<\_ACEOF
24215 #define HAVE_MENUS 1
24216 _ACEOF
24217
24218 fi
24219 if test "${GNU_MALLOC}" = "yes" ; then
24220
24221 cat >>confdefs.h <<\_ACEOF
24222 #define GNU_MALLOC 1
24223 _ACEOF
24224
24225 fi
24226 if test "${REL_ALLOC}" = "yes" ; then
24227
24228 cat >>confdefs.h <<\_ACEOF
24229 #define REL_ALLOC 1
24230 _ACEOF
24231
24232 fi
24233
24234
24235
24236
24237
24238
24239 #### Report on what we decided to do.
24240 #### Report GTK as a toolkit, even if it doesn't use Xt.
24241 #### It makes printing result more understandable as using GTK sets
24242 #### toolkit_scroll_bars to yes by default.
24243 if test "${HAVE_GTK}" = "yes"; then
24244 USE_X_TOOLKIT=GTK
24245 fi
24246
24247 echo "
24248 Configured for \`${canonical}'.
24249
24250 Where should the build process find the source code? ${srcdir}
24251 What operating system and machine description files should Emacs use?
24252 \`${opsysfile}' and \`${machfile}'
24253 What compiler should emacs be built with? ${CC} ${CFLAGS}
24254 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24255 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24256 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24257 What window system should Emacs use? ${window_system}
24258 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24259
24260 if test -n "${x_includes}"; then
24261 echo " Where do we find X Windows header files? ${x_includes}"
24262 else
24263 echo " Where do we find X Windows header files? Standard dirs"
24264 fi
24265 if test -n "${x_libraries}"; then
24266 echo " Where do we find X Windows libraries? ${x_libraries}"
24267 else
24268 echo " Where do we find X Windows libraries? Standard dirs"
24269 fi
24270
24271 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24272 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24273 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24274 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24275 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24276 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24277 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24278 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24279 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24280
24281 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24282 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24283 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24284 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24285
24286 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24287 echo
24288
24289 if test $USE_XASSERTS = yes; then
24290 echo " Compiling with asserts turned on."
24291 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24292 fi
24293
24294 echo
24295
24296 if test "$USE_X_TOOLKIT" = GTK; then
24297 case "$canonical" in
24298 *cygwin*)
24299 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24300 will probably get a crash on startup. If this happens, please use another
24301 toolkit for Emacs. See etc/PROBLEMS for more information."
24302 ;;
24303 esac
24304 fi
24305
24306 if test "$HAVE_NS" = "yes"; then
24307 echo
24308 echo "You must run \"make install\" in order to test the built application.
24309 The installed application will go to nextstep/Emacs.app and can be
24310 run or moved from there."
24311 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24312 echo "The application will be fully self-contained."
24313 else
24314 echo "The lisp resources for the application will be installed under ${prefix}.
24315 You may need to run \"make install\" with sudo. The application will fail
24316 to run if these resources are not installed."
24317 fi
24318 echo
24319 fi
24320
24321 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24322 echo "D-Bus integration has been tested for GNU/Linux only."
24323 echo
24324 fi
24325
24326
24327 # Remove any trailing slashes in these variables.
24328 test "${prefix}" != NONE &&
24329 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24330 test "${exec_prefix}" != NONE &&
24331 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24332
24333 # Now get this: Some word that is part of the ${srcdir} directory name
24334 # or the ${configuration} value might, just might, happen to be an
24335 # identifier like `sun4' or `i386' or something, and be predefined by
24336 # the C preprocessor to some helpful value like 1, or maybe the empty
24337 # string. Needless to say consequent macro substitutions are less
24338 # than conducive to the makefile finding the correct directory.
24339 cpp_undefs="`echo $srcdir $configuration $canonical |
24340 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24341 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24342
24343 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24344 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24345 ## from Makefile.c can correctly provide the arg `-traditional' to the
24346 ## C preprocessor.
24347
24348 cat >conftest.$ac_ext <<_ACEOF
24349 /* confdefs.h. */
24350 _ACEOF
24351 cat confdefs.h >>conftest.$ac_ext
24352 cat >>conftest.$ac_ext <<_ACEOF
24353 /* end confdefs.h. */
24354 yes..yes
24355 _ACEOF
24356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24357 $EGREP "yes..yes" >/dev/null 2>&1; then
24358 CPP_NEED_TRADITIONAL=no
24359 else
24360 CPP_NEED_TRADITIONAL=yes
24361 fi
24362 rm -f conftest*
24363
24364
24365 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"
24366
24367 ac_config_commands="$ac_config_commands default"
24368
24369 cat >confcache <<\_ACEOF
24370 # This file is a shell script that caches the results of configure
24371 # tests run on this system so they can be shared between configure
24372 # scripts and configure runs, see configure's option --config-cache.
24373 # It is not useful on other systems. If it contains results you don't
24374 # want to keep, you may remove or edit it.
24375 #
24376 # config.status only pays attention to the cache file if you give it
24377 # the --recheck option to rerun configure.
24378 #
24379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24381 # following values.
24382
24383 _ACEOF
24384
24385 # The following way of writing the cache mishandles newlines in values,
24386 # but we know of no workaround that is simple, portable, and efficient.
24387 # So, we kill variables containing newlines.
24388 # Ultrix sh set writes to stderr and can't be redirected directly,
24389 # and sets the high bit in the cache file unless we assign to the vars.
24390 (
24391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24392 eval ac_val=\$$ac_var
24393 case $ac_val in #(
24394 *${as_nl}*)
24395 case $ac_var in #(
24396 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24397 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24398 esac
24399 case $ac_var in #(
24400 _ | IFS | as_nl) ;; #(
24401 *) $as_unset $ac_var ;;
24402 esac ;;
24403 esac
24404 done
24405
24406 (set) 2>&1 |
24407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24408 *${as_nl}ac_space=\ *)
24409 # `set' does not quote correctly, so add quotes (double-quote
24410 # substitution turns \\\\ into \\, and sed turns \\ into \).
24411 sed -n \
24412 "s/'/'\\\\''/g;
24413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24414 ;; #(
24415 *)
24416 # `set' quotes correctly as required by POSIX, so do not add quotes.
24417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24418 ;;
24419 esac |
24420 sort
24421 ) |
24422 sed '
24423 /^ac_cv_env_/b end
24424 t clear
24425 :clear
24426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24427 t end
24428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24429 :end' >>confcache
24430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24431 if test -w "$cache_file"; then
24432 test "x$cache_file" != "x/dev/null" &&
24433 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24434 echo "$as_me: updating cache $cache_file" >&6;}
24435 cat confcache >$cache_file
24436 else
24437 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24438 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24439 fi
24440 fi
24441 rm -f confcache
24442
24443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24444 # Let make expand exec_prefix.
24445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24446
24447 DEFS=-DHAVE_CONFIG_H
24448
24449 ac_libobjs=
24450 ac_ltlibobjs=
24451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24452 # 1. Remove the extension, and $U if already installed.
24453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24454 ac_i=`echo "$ac_i" | sed "$ac_script"`
24455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24456 # will be set to the directory where LIBOBJS objects are built.
24457 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24458 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24459 done
24460 LIBOBJS=$ac_libobjs
24461
24462 LTLIBOBJS=$ac_ltlibobjs
24463
24464
24465
24466 : ${CONFIG_STATUS=./config.status}
24467 ac_clean_files_save=$ac_clean_files
24468 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24469 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24470 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24471 cat >$CONFIG_STATUS <<_ACEOF
24472 #! $SHELL
24473 # Generated by $as_me.
24474 # Run this file to recreate the current configuration.
24475 # Compiler output produced by configure, useful for debugging
24476 # configure, is in config.log if it exists.
24477
24478 debug=false
24479 ac_cs_recheck=false
24480 ac_cs_silent=false
24481 SHELL=\${CONFIG_SHELL-$SHELL}
24482 _ACEOF
24483
24484 cat >>$CONFIG_STATUS <<\_ACEOF
24485 ## --------------------- ##
24486 ## M4sh Initialization. ##
24487 ## --------------------- ##
24488
24489 # Be more Bourne compatible
24490 DUALCASE=1; export DUALCASE # for MKS sh
24491 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24492 emulate sh
24493 NULLCMD=:
24494 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24495 # is contrary to our usage. Disable this feature.
24496 alias -g '${1+"$@"}'='"$@"'
24497 setopt NO_GLOB_SUBST
24498 else
24499 case `(set -o) 2>/dev/null` in
24500 *posix*) set -o posix ;;
24501 esac
24502
24503 fi
24504
24505
24506
24507
24508 # PATH needs CR
24509 # Avoid depending upon Character Ranges.
24510 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24511 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24512 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24513 as_cr_digits='0123456789'
24514 as_cr_alnum=$as_cr_Letters$as_cr_digits
24515
24516 # The user is always right.
24517 if test "${PATH_SEPARATOR+set}" != set; then
24518 echo "#! /bin/sh" >conf$$.sh
24519 echo "exit 0" >>conf$$.sh
24520 chmod +x conf$$.sh
24521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24522 PATH_SEPARATOR=';'
24523 else
24524 PATH_SEPARATOR=:
24525 fi
24526 rm -f conf$$.sh
24527 fi
24528
24529 # Support unset when possible.
24530 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24531 as_unset=unset
24532 else
24533 as_unset=false
24534 fi
24535
24536
24537 # IFS
24538 # We need space, tab and new line, in precisely that order. Quoting is
24539 # there to prevent editors from complaining about space-tab.
24540 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24541 # splitting by setting IFS to empty value.)
24542 as_nl='
24543 '
24544 IFS=" "" $as_nl"
24545
24546 # Find who we are. Look in the path if we contain no directory separator.
24547 case $0 in
24548 *[\\/]* ) as_myself=$0 ;;
24549 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24550 for as_dir in $PATH
24551 do
24552 IFS=$as_save_IFS
24553 test -z "$as_dir" && as_dir=.
24554 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24555 done
24556 IFS=$as_save_IFS
24557
24558 ;;
24559 esac
24560 # We did not find ourselves, most probably we were run as `sh COMMAND'
24561 # in which case we are not to be found in the path.
24562 if test "x$as_myself" = x; then
24563 as_myself=$0
24564 fi
24565 if test ! -f "$as_myself"; then
24566 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24567 { (exit 1); exit 1; }
24568 fi
24569
24570 # Work around bugs in pre-3.0 UWIN ksh.
24571 for as_var in ENV MAIL MAILPATH
24572 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24573 done
24574 PS1='$ '
24575 PS2='> '
24576 PS4='+ '
24577
24578 # NLS nuisances.
24579 for as_var in \
24580 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24581 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24582 LC_TELEPHONE LC_TIME
24583 do
24584 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24585 eval $as_var=C; export $as_var
24586 else
24587 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24588 fi
24589 done
24590
24591 # Required to use basename.
24592 if expr a : '\(a\)' >/dev/null 2>&1 &&
24593 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24594 as_expr=expr
24595 else
24596 as_expr=false
24597 fi
24598
24599 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24600 as_basename=basename
24601 else
24602 as_basename=false
24603 fi
24604
24605
24606 # Name of the executable.
24607 as_me=`$as_basename -- "$0" ||
24608 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24609 X"$0" : 'X\(//\)$' \| \
24610 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24611 echo X/"$0" |
24612 sed '/^.*\/\([^/][^/]*\)\/*$/{
24613 s//\1/
24614 q
24615 }
24616 /^X\/\(\/\/\)$/{
24617 s//\1/
24618 q
24619 }
24620 /^X\/\(\/\).*/{
24621 s//\1/
24622 q
24623 }
24624 s/.*/./; q'`
24625
24626 # CDPATH.
24627 $as_unset CDPATH
24628
24629
24630
24631 as_lineno_1=$LINENO
24632 as_lineno_2=$LINENO
24633 test "x$as_lineno_1" != "x$as_lineno_2" &&
24634 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24635
24636 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24637 # uniformly replaced by the line number. The first 'sed' inserts a
24638 # line-number line after each line using $LINENO; the second 'sed'
24639 # does the real work. The second script uses 'N' to pair each
24640 # line-number line with the line containing $LINENO, and appends
24641 # trailing '-' during substitution so that $LINENO is not a special
24642 # case at line end.
24643 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24644 # scripts with optimization help from Paolo Bonzini. Blame Lee
24645 # E. McMahon (1931-1989) for sed's syntax. :-)
24646 sed -n '
24647 p
24648 /[$]LINENO/=
24649 ' <$as_myself |
24650 sed '
24651 s/[$]LINENO.*/&-/
24652 t lineno
24653 b
24654 :lineno
24655 N
24656 :loop
24657 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24658 t loop
24659 s/-\n.*//
24660 ' >$as_me.lineno &&
24661 chmod +x "$as_me.lineno" ||
24662 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24663 { (exit 1); exit 1; }; }
24664
24665 # Don't try to exec as it changes $[0], causing all sort of problems
24666 # (the dirname of $[0] is not the place where we might find the
24667 # original and so on. Autoconf is especially sensitive to this).
24668 . "./$as_me.lineno"
24669 # Exit status is that of the last command.
24670 exit
24671 }
24672
24673
24674 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24675 as_dirname=dirname
24676 else
24677 as_dirname=false
24678 fi
24679
24680 ECHO_C= ECHO_N= ECHO_T=
24681 case `echo -n x` in
24682 -n*)
24683 case `echo 'x\c'` in
24684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24685 *) ECHO_C='\c';;
24686 esac;;
24687 *)
24688 ECHO_N='-n';;
24689 esac
24690
24691 if expr a : '\(a\)' >/dev/null 2>&1 &&
24692 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24693 as_expr=expr
24694 else
24695 as_expr=false
24696 fi
24697
24698 rm -f conf$$ conf$$.exe conf$$.file
24699 if test -d conf$$.dir; then
24700 rm -f conf$$.dir/conf$$.file
24701 else
24702 rm -f conf$$.dir
24703 mkdir conf$$.dir
24704 fi
24705 echo >conf$$.file
24706 if ln -s conf$$.file conf$$ 2>/dev/null; then
24707 as_ln_s='ln -s'
24708 # ... but there are two gotchas:
24709 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24710 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24711 # In both cases, we have to default to `cp -p'.
24712 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24713 as_ln_s='cp -p'
24714 elif ln conf$$.file conf$$ 2>/dev/null; then
24715 as_ln_s=ln
24716 else
24717 as_ln_s='cp -p'
24718 fi
24719 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24720 rmdir conf$$.dir 2>/dev/null
24721
24722 if mkdir -p . 2>/dev/null; then
24723 as_mkdir_p=:
24724 else
24725 test -d ./-p && rmdir ./-p
24726 as_mkdir_p=false
24727 fi
24728
24729 if test -x / >/dev/null 2>&1; then
24730 as_test_x='test -x'
24731 else
24732 if ls -dL / >/dev/null 2>&1; then
24733 as_ls_L_option=L
24734 else
24735 as_ls_L_option=
24736 fi
24737 as_test_x='
24738 eval sh -c '\''
24739 if test -d "$1"; then
24740 test -d "$1/.";
24741 else
24742 case $1 in
24743 -*)set "./$1";;
24744 esac;
24745 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24746 ???[sx]*):;;*)false;;esac;fi
24747 '\'' sh
24748 '
24749 fi
24750 as_executable_p=$as_test_x
24751
24752 # Sed expression to map a string onto a valid CPP name.
24753 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24754
24755 # Sed expression to map a string onto a valid variable name.
24756 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24757
24758
24759 exec 6>&1
24760
24761 # Save the log message, to keep $[0] and so on meaningful, and to
24762 # report actual input values of CONFIG_FILES etc. instead of their
24763 # values after options handling.
24764 ac_log="
24765 This file was extended by emacs $as_me 23.0.60, which was
24766 generated by GNU Autoconf 2.61. Invocation command line was
24767
24768 CONFIG_FILES = $CONFIG_FILES
24769 CONFIG_HEADERS = $CONFIG_HEADERS
24770 CONFIG_LINKS = $CONFIG_LINKS
24771 CONFIG_COMMANDS = $CONFIG_COMMANDS
24772 $ $0 $@
24773
24774 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24775 "
24776
24777 _ACEOF
24778
24779 cat >>$CONFIG_STATUS <<_ACEOF
24780 # Files that config.status was made for.
24781 config_files="$ac_config_files"
24782 config_headers="$ac_config_headers"
24783 config_commands="$ac_config_commands"
24784
24785 _ACEOF
24786
24787 cat >>$CONFIG_STATUS <<\_ACEOF
24788 ac_cs_usage="\
24789 \`$as_me' instantiates files from templates according to the
24790 current configuration.
24791
24792 Usage: $0 [OPTIONS] [FILE]...
24793
24794 -h, --help print this help, then exit
24795 -V, --version print version number and configuration settings, then exit
24796 -q, --quiet do not print progress messages
24797 -d, --debug don't remove temporary files
24798 --recheck update $as_me by reconfiguring in the same conditions
24799 --file=FILE[:TEMPLATE]
24800 instantiate the configuration file FILE
24801 --header=FILE[:TEMPLATE]
24802 instantiate the configuration header FILE
24803
24804 Configuration files:
24805 $config_files
24806
24807 Configuration headers:
24808 $config_headers
24809
24810 Configuration commands:
24811 $config_commands
24812
24813 Report bugs to <bug-autoconf@gnu.org>."
24814
24815 _ACEOF
24816 cat >>$CONFIG_STATUS <<_ACEOF
24817 ac_cs_version="\\
24818 emacs config.status 23.0.60
24819 configured by $0, generated by GNU Autoconf 2.61,
24820 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24821
24822 Copyright (C) 2006 Free Software Foundation, Inc.
24823 This config.status script is free software; the Free Software Foundation
24824 gives unlimited permission to copy, distribute and modify it."
24825
24826 ac_pwd='$ac_pwd'
24827 srcdir='$srcdir'
24828 INSTALL='$INSTALL'
24829 _ACEOF
24830
24831 cat >>$CONFIG_STATUS <<\_ACEOF
24832 # If no file are specified by the user, then we need to provide default
24833 # value. By we need to know if files were specified by the user.
24834 ac_need_defaults=:
24835 while test $# != 0
24836 do
24837 case $1 in
24838 --*=*)
24839 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24840 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24841 ac_shift=:
24842 ;;
24843 *)
24844 ac_option=$1
24845 ac_optarg=$2
24846 ac_shift=shift
24847 ;;
24848 esac
24849
24850 case $ac_option in
24851 # Handling of the options.
24852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24853 ac_cs_recheck=: ;;
24854 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24855 echo "$ac_cs_version"; exit ;;
24856 --debug | --debu | --deb | --de | --d | -d )
24857 debug=: ;;
24858 --file | --fil | --fi | --f )
24859 $ac_shift
24860 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24861 ac_need_defaults=false;;
24862 --header | --heade | --head | --hea )
24863 $ac_shift
24864 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24865 ac_need_defaults=false;;
24866 --he | --h)
24867 # Conflict between --help and --header
24868 { echo "$as_me: error: ambiguous option: $1
24869 Try \`$0 --help' for more information." >&2
24870 { (exit 1); exit 1; }; };;
24871 --help | --hel | -h )
24872 echo "$ac_cs_usage"; exit ;;
24873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24874 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24875 ac_cs_silent=: ;;
24876
24877 # This is an error.
24878 -*) { echo "$as_me: error: unrecognized option: $1
24879 Try \`$0 --help' for more information." >&2
24880 { (exit 1); exit 1; }; } ;;
24881
24882 *) ac_config_targets="$ac_config_targets $1"
24883 ac_need_defaults=false ;;
24884
24885 esac
24886 shift
24887 done
24888
24889 ac_configure_extra_args=
24890
24891 if $ac_cs_silent; then
24892 exec 6>/dev/null
24893 ac_configure_extra_args="$ac_configure_extra_args --silent"
24894 fi
24895
24896 _ACEOF
24897 cat >>$CONFIG_STATUS <<_ACEOF
24898 if \$ac_cs_recheck; then
24899 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24900 CONFIG_SHELL=$SHELL
24901 export CONFIG_SHELL
24902 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24903 fi
24904
24905 _ACEOF
24906 cat >>$CONFIG_STATUS <<\_ACEOF
24907 exec 5>>config.log
24908 {
24909 echo
24910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24911 ## Running $as_me. ##
24912 _ASBOX
24913 echo "$ac_log"
24914 } >&5
24915
24916 _ACEOF
24917 cat >>$CONFIG_STATUS <<_ACEOF
24918 #
24919 # INIT-COMMANDS
24920 #
24921 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24922
24923 _ACEOF
24924
24925 cat >>$CONFIG_STATUS <<\_ACEOF
24926
24927 # Handling of arguments.
24928 for ac_config_target in $ac_config_targets
24929 do
24930 case $ac_config_target in
24931 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24932 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24933 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24934 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24935 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24936 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24937 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24938 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24939 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24940 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24941 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24942 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24943 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24944
24945 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24946 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24947 { (exit 1); exit 1; }; };;
24948 esac
24949 done
24950
24951
24952 # If the user did not use the arguments to specify the items to instantiate,
24953 # then the envvar interface is used. Set only those that are not.
24954 # We use the long form for the default assignment because of an extremely
24955 # bizarre bug on SunOS 4.1.3.
24956 if $ac_need_defaults; then
24957 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24958 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24959 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24960 fi
24961
24962 # Have a temporary directory for convenience. Make it in the build tree
24963 # simply because there is no reason against having it here, and in addition,
24964 # creating and moving files from /tmp can sometimes cause problems.
24965 # Hook for its removal unless debugging.
24966 # Note that there is a small window in which the directory will not be cleaned:
24967 # after its creation but before its name has been assigned to `$tmp'.
24968 $debug ||
24969 {
24970 tmp=
24971 trap 'exit_status=$?
24972 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24973 ' 0
24974 trap '{ (exit 1); exit 1; }' 1 2 13 15
24975 }
24976 # Create a (secure) tmp directory for tmp files.
24977
24978 {
24979 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24980 test -n "$tmp" && test -d "$tmp"
24981 } ||
24982 {
24983 tmp=./conf$$-$RANDOM
24984 (umask 077 && mkdir "$tmp")
24985 } ||
24986 {
24987 echo "$me: cannot create a temporary directory in ." >&2
24988 { (exit 1); exit 1; }
24989 }
24990
24991 #
24992 # Set up the sed scripts for CONFIG_FILES section.
24993 #
24994
24995 # No need to generate the scripts if there are no CONFIG_FILES.
24996 # This happens for instance when ./config.status config.h
24997 if test -n "$CONFIG_FILES"; then
24998
24999 _ACEOF
25000
25001
25002
25003 ac_delim='%!_!# '
25004 for ac_last_try in false false false false false :; do
25005 cat >conf$$subs.sed <<_ACEOF
25006 SHELL!$SHELL$ac_delim
25007 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25008 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25009 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25010 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25011 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25012 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25013 exec_prefix!$exec_prefix$ac_delim
25014 prefix!$prefix$ac_delim
25015 program_transform_name!$program_transform_name$ac_delim
25016 bindir!$bindir$ac_delim
25017 sbindir!$sbindir$ac_delim
25018 libexecdir!$libexecdir$ac_delim
25019 datarootdir!$datarootdir$ac_delim
25020 datadir!$datadir$ac_delim
25021 sysconfdir!$sysconfdir$ac_delim
25022 sharedstatedir!$sharedstatedir$ac_delim
25023 localstatedir!$localstatedir$ac_delim
25024 includedir!$includedir$ac_delim
25025 oldincludedir!$oldincludedir$ac_delim
25026 docdir!$docdir$ac_delim
25027 infodir!$infodir$ac_delim
25028 htmldir!$htmldir$ac_delim
25029 dvidir!$dvidir$ac_delim
25030 pdfdir!$pdfdir$ac_delim
25031 psdir!$psdir$ac_delim
25032 libdir!$libdir$ac_delim
25033 localedir!$localedir$ac_delim
25034 mandir!$mandir$ac_delim
25035 DEFS!$DEFS$ac_delim
25036 ECHO_C!$ECHO_C$ac_delim
25037 ECHO_N!$ECHO_N$ac_delim
25038 ECHO_T!$ECHO_T$ac_delim
25039 LIBS!$LIBS$ac_delim
25040 build_alias!$build_alias$ac_delim
25041 host_alias!$host_alias$ac_delim
25042 target_alias!$target_alias$ac_delim
25043 MAINT!$MAINT$ac_delim
25044 build!$build$ac_delim
25045 build_cpu!$build_cpu$ac_delim
25046 build_vendor!$build_vendor$ac_delim
25047 build_os!$build_os$ac_delim
25048 host!$host$ac_delim
25049 host_cpu!$host_cpu$ac_delim
25050 host_vendor!$host_vendor$ac_delim
25051 host_os!$host_os$ac_delim
25052 CC!$CC$ac_delim
25053 CFLAGS!$CFLAGS$ac_delim
25054 LDFLAGS!$LDFLAGS$ac_delim
25055 CPPFLAGS!$CPPFLAGS$ac_delim
25056 ac_ct_CC!$ac_ct_CC$ac_delim
25057 EXEEXT!$EXEEXT$ac_delim
25058 OBJEXT!$OBJEXT$ac_delim
25059 CPP!$CPP$ac_delim
25060 GREP!$GREP$ac_delim
25061 EGREP!$EGREP$ac_delim
25062 LN_S!$LN_S$ac_delim
25063 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25064 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25065 INSTALL_DATA!$INSTALL_DATA$ac_delim
25066 RANLIB!$RANLIB$ac_delim
25067 INSTALL_INFO!$INSTALL_INFO$ac_delim
25068 GZIP_PROG!$GZIP_PROG$ac_delim
25069 MAKEINFO!$MAKEINFO$ac_delim
25070 LIBSOUND!$LIBSOUND$ac_delim
25071 PKG_CONFIG!$PKG_CONFIG$ac_delim
25072 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25073 ALSA_LIBS!$ALSA_LIBS$ac_delim
25074 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25075 SET_MAKE!$SET_MAKE$ac_delim
25076 XMKMF!$XMKMF$ac_delim
25077 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25078 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25079 RSVG_LIBS!$RSVG_LIBS$ac_delim
25080 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25081 GTK_LIBS!$GTK_LIBS$ac_delim
25082 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25083 DBUS_LIBS!$DBUS_LIBS$ac_delim
25084 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25085 XFT_LIBS!$XFT_LIBS$ac_delim
25086 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25087 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25088 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25089 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25090 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25091 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25092 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25093 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25094 ALLOCA!$ALLOCA$ac_delim
25095 liblockfile!$liblockfile$ac_delim
25096 LIBOBJS!$LIBOBJS$ac_delim
25097 NEED_SETGID!$NEED_SETGID$ac_delim
25098 KMEM_GROUP!$KMEM_GROUP$ac_delim
25099 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25100 GETOPT_H!$GETOPT_H$ac_delim
25101 GETOPTOBJS!$GETOPTOBJS$ac_delim
25102 version!$version$ac_delim
25103 _ACEOF
25104
25105 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25106 break
25107 elif $ac_last_try; then
25108 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25109 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25110 { (exit 1); exit 1; }; }
25111 else
25112 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25113 fi
25114 done
25115
25116 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25117 if test -n "$ac_eof"; then
25118 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25119 ac_eof=`expr $ac_eof + 1`
25120 fi
25121
25122 cat >>$CONFIG_STATUS <<_ACEOF
25123 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25125 _ACEOF
25126 sed '
25127 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25128 s/^/s,@/; s/!/@,|#_!!_#|/
25129 :n
25130 t n
25131 s/'"$ac_delim"'$/,g/; t
25132 s/$/\\/; p
25133 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25134 ' >>$CONFIG_STATUS <conf$$subs.sed
25135 rm -f conf$$subs.sed
25136 cat >>$CONFIG_STATUS <<_ACEOF
25137 CEOF$ac_eof
25138 _ACEOF
25139
25140
25141 ac_delim='%!_!# '
25142 for ac_last_try in false false false false false :; do
25143 cat >conf$$subs.sed <<_ACEOF
25144 configuration!$configuration$ac_delim
25145 canonical!$canonical$ac_delim
25146 srcdir!$srcdir$ac_delim
25147 lispdir!$lispdir$ac_delim
25148 locallisppath!$locallisppath$ac_delim
25149 lisppath!$lisppath$ac_delim
25150 x_default_search_path!$x_default_search_path$ac_delim
25151 etcdir!$etcdir$ac_delim
25152 archlibdir!$archlibdir$ac_delim
25153 bitmapdir!$bitmapdir$ac_delim
25154 gamedir!$gamedir$ac_delim
25155 gameuser!$gameuser$ac_delim
25156 c_switch_system!$c_switch_system$ac_delim
25157 c_switch_machine!$c_switch_machine$ac_delim
25158 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25159 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25160 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25161 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25162 machfile!$machfile$ac_delim
25163 opsysfile!$opsysfile$ac_delim
25164 ns_appdir!$ns_appdir$ac_delim
25165 ns_appbindir!$ns_appbindir$ac_delim
25166 ns_appresdir!$ns_appresdir$ac_delim
25167 ns_appsrc!$ns_appsrc$ac_delim
25168 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25169 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25170 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25171 LTLIBOBJS!$LTLIBOBJS$ac_delim
25172 _ACEOF
25173
25174 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
25175 break
25176 elif $ac_last_try; then
25177 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25178 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25179 { (exit 1); exit 1; }; }
25180 else
25181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25182 fi
25183 done
25184
25185 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25186 if test -n "$ac_eof"; then
25187 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25188 ac_eof=`expr $ac_eof + 1`
25189 fi
25190
25191 cat >>$CONFIG_STATUS <<_ACEOF
25192 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25194 _ACEOF
25195 sed '
25196 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25197 s/^/s,@/; s/!/@,|#_!!_#|/
25198 :n
25199 t n
25200 s/'"$ac_delim"'$/,g/; t
25201 s/$/\\/; p
25202 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25203 ' >>$CONFIG_STATUS <conf$$subs.sed
25204 rm -f conf$$subs.sed
25205 cat >>$CONFIG_STATUS <<_ACEOF
25206 :end
25207 s/|#_!!_#|//g
25208 CEOF$ac_eof
25209 _ACEOF
25210
25211
25212 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25213 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25214 # trailing colons and then remove the whole line if VPATH becomes empty
25215 # (actually we leave an empty line to preserve line numbers).
25216 if test "x$srcdir" = x.; then
25217 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25218 s/:*\$(srcdir):*/:/
25219 s/:*\${srcdir}:*/:/
25220 s/:*@srcdir@:*/:/
25221 s/^\([^=]*=[ ]*\):*/\1/
25222 s/:*$//
25223 s/^[^=]*=[ ]*$//
25224 }'
25225 fi
25226
25227 cat >>$CONFIG_STATUS <<\_ACEOF
25228 fi # test -n "$CONFIG_FILES"
25229
25230
25231 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25232 do
25233 case $ac_tag in
25234 :[FHLC]) ac_mode=$ac_tag; continue;;
25235 esac
25236 case $ac_mode$ac_tag in
25237 :[FHL]*:*);;
25238 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25239 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25240 { (exit 1); exit 1; }; };;
25241 :[FH]-) ac_tag=-:-;;
25242 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25243 esac
25244 ac_save_IFS=$IFS
25245 IFS=:
25246 set x $ac_tag
25247 IFS=$ac_save_IFS
25248 shift
25249 ac_file=$1
25250 shift
25251
25252 case $ac_mode in
25253 :L) ac_source=$1;;
25254 :[FH])
25255 ac_file_inputs=
25256 for ac_f
25257 do
25258 case $ac_f in
25259 -) ac_f="$tmp/stdin";;
25260 *) # Look for the file first in the build tree, then in the source tree
25261 # (if the path is not absolute). The absolute path cannot be DOS-style,
25262 # because $ac_f cannot contain `:'.
25263 test -f "$ac_f" ||
25264 case $ac_f in
25265 [\\/$]*) false;;
25266 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25267 esac ||
25268 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25269 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25270 { (exit 1); exit 1; }; };;
25271 esac
25272 ac_file_inputs="$ac_file_inputs $ac_f"
25273 done
25274
25275 # Let's still pretend it is `configure' which instantiates (i.e., don't
25276 # use $as_me), people would be surprised to read:
25277 # /* config.h. Generated by config.status. */
25278 configure_input="Generated from "`IFS=:
25279 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25280 if test x"$ac_file" != x-; then
25281 configure_input="$ac_file. $configure_input"
25282 { echo "$as_me:$LINENO: creating $ac_file" >&5
25283 echo "$as_me: creating $ac_file" >&6;}
25284 fi
25285
25286 case $ac_tag in
25287 *:-:* | *:-) cat >"$tmp/stdin";;
25288 esac
25289 ;;
25290 esac
25291
25292 ac_dir=`$as_dirname -- "$ac_file" ||
25293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25294 X"$ac_file" : 'X\(//\)[^/]' \| \
25295 X"$ac_file" : 'X\(//\)$' \| \
25296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25297 echo X"$ac_file" |
25298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25299 s//\1/
25300 q
25301 }
25302 /^X\(\/\/\)[^/].*/{
25303 s//\1/
25304 q
25305 }
25306 /^X\(\/\/\)$/{
25307 s//\1/
25308 q
25309 }
25310 /^X\(\/\).*/{
25311 s//\1/
25312 q
25313 }
25314 s/.*/./; q'`
25315 { as_dir="$ac_dir"
25316 case $as_dir in #(
25317 -*) as_dir=./$as_dir;;
25318 esac
25319 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25320 as_dirs=
25321 while :; do
25322 case $as_dir in #(
25323 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25324 *) as_qdir=$as_dir;;
25325 esac
25326 as_dirs="'$as_qdir' $as_dirs"
25327 as_dir=`$as_dirname -- "$as_dir" ||
25328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25329 X"$as_dir" : 'X\(//\)[^/]' \| \
25330 X"$as_dir" : 'X\(//\)$' \| \
25331 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25332 echo X"$as_dir" |
25333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25334 s//\1/
25335 q
25336 }
25337 /^X\(\/\/\)[^/].*/{
25338 s//\1/
25339 q
25340 }
25341 /^X\(\/\/\)$/{
25342 s//\1/
25343 q
25344 }
25345 /^X\(\/\).*/{
25346 s//\1/
25347 q
25348 }
25349 s/.*/./; q'`
25350 test -d "$as_dir" && break
25351 done
25352 test -z "$as_dirs" || eval "mkdir $as_dirs"
25353 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25354 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25355 { (exit 1); exit 1; }; }; }
25356 ac_builddir=.
25357
25358 case "$ac_dir" in
25359 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25360 *)
25361 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25362 # A ".." for each directory in $ac_dir_suffix.
25363 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25364 case $ac_top_builddir_sub in
25365 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25366 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25367 esac ;;
25368 esac
25369 ac_abs_top_builddir=$ac_pwd
25370 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25371 # for backward compatibility:
25372 ac_top_builddir=$ac_top_build_prefix
25373
25374 case $srcdir in
25375 .) # We are building in place.
25376 ac_srcdir=.
25377 ac_top_srcdir=$ac_top_builddir_sub
25378 ac_abs_top_srcdir=$ac_pwd ;;
25379 [\\/]* | ?:[\\/]* ) # Absolute name.
25380 ac_srcdir=$srcdir$ac_dir_suffix;
25381 ac_top_srcdir=$srcdir
25382 ac_abs_top_srcdir=$srcdir ;;
25383 *) # Relative name.
25384 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25385 ac_top_srcdir=$ac_top_build_prefix$srcdir
25386 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25387 esac
25388 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25389
25390
25391 case $ac_mode in
25392 :F)
25393 #
25394 # CONFIG_FILE
25395 #
25396
25397 case $INSTALL in
25398 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25399 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25400 esac
25401 _ACEOF
25402
25403 cat >>$CONFIG_STATUS <<\_ACEOF
25404 # If the template does not know about datarootdir, expand it.
25405 # FIXME: This hack should be removed a few years after 2.60.
25406 ac_datarootdir_hack=; ac_datarootdir_seen=
25407
25408 case `sed -n '/datarootdir/ {
25409 p
25410 q
25411 }
25412 /@datadir@/p
25413 /@docdir@/p
25414 /@infodir@/p
25415 /@localedir@/p
25416 /@mandir@/p
25417 ' $ac_file_inputs` in
25418 *datarootdir*) ac_datarootdir_seen=yes;;
25419 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25420 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25421 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25422 _ACEOF
25423 cat >>$CONFIG_STATUS <<_ACEOF
25424 ac_datarootdir_hack='
25425 s&@datadir@&$datadir&g
25426 s&@docdir@&$docdir&g
25427 s&@infodir@&$infodir&g
25428 s&@localedir@&$localedir&g
25429 s&@mandir@&$mandir&g
25430 s&\\\${datarootdir}&$datarootdir&g' ;;
25431 esac
25432 _ACEOF
25433
25434 # Neutralize VPATH when `$srcdir' = `.'.
25435 # Shell code in configure.ac might set extrasub.
25436 # FIXME: do we really want to maintain this feature?
25437 cat >>$CONFIG_STATUS <<_ACEOF
25438 sed "$ac_vpsub
25439 $extrasub
25440 _ACEOF
25441 cat >>$CONFIG_STATUS <<\_ACEOF
25442 :t
25443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25444 s&@configure_input@&$configure_input&;t t
25445 s&@top_builddir@&$ac_top_builddir_sub&;t t
25446 s&@srcdir@&$ac_srcdir&;t t
25447 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25448 s&@top_srcdir@&$ac_top_srcdir&;t t
25449 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25450 s&@builddir@&$ac_builddir&;t t
25451 s&@abs_builddir@&$ac_abs_builddir&;t t
25452 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25453 s&@INSTALL@&$ac_INSTALL&;t t
25454 $ac_datarootdir_hack
25455 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25456
25457 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25458 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25459 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25460 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25461 which seems to be undefined. Please make sure it is defined." >&5
25462 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25463 which seems to be undefined. Please make sure it is defined." >&2;}
25464
25465 rm -f "$tmp/stdin"
25466 case $ac_file in
25467 -) cat "$tmp/out"; rm -f "$tmp/out";;
25468 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25469 esac
25470 ;;
25471 :H)
25472 #
25473 # CONFIG_HEADER
25474 #
25475 _ACEOF
25476
25477 # Transform confdefs.h into a sed script `conftest.defines', that
25478 # substitutes the proper values into config.h.in to produce config.h.
25479 rm -f conftest.defines conftest.tail
25480 # First, append a space to every undef/define line, to ease matching.
25481 echo 's/$/ /' >conftest.defines
25482 # Then, protect against being on the right side of a sed subst, or in
25483 # an unquoted here document, in config.status. If some macros were
25484 # called several times there might be several #defines for the same
25485 # symbol, which is useless. But do not sort them, since the last
25486 # AC_DEFINE must be honored.
25487 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25488 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25489 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25490 # PARAMS is the parameter list in the macro definition--in most cases, it's
25491 # just an empty string.
25492 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25493 ac_dB='\\)[ (].*,\\1define\\2'
25494 ac_dC=' '
25495 ac_dD=' ,'
25496
25497 uniq confdefs.h |
25498 sed -n '
25499 t rset
25500 :rset
25501 s/^[ ]*#[ ]*define[ ][ ]*//
25502 t ok
25503 d
25504 :ok
25505 s/[\\&,]/\\&/g
25506 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25507 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25508 ' >>conftest.defines
25509
25510 # Remove the space that was appended to ease matching.
25511 # Then replace #undef with comments. This is necessary, for
25512 # example, in the case of _POSIX_SOURCE, which is predefined and required
25513 # on some systems where configure will not decide to define it.
25514 # (The regexp can be short, since the line contains either #define or #undef.)
25515 echo 's/ $//
25516 s,^[ #]*u.*,/* & */,' >>conftest.defines
25517
25518 # Break up conftest.defines:
25519 ac_max_sed_lines=50
25520
25521 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25522 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25523 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25524 # et cetera.
25525 ac_in='$ac_file_inputs'
25526 ac_out='"$tmp/out1"'
25527 ac_nxt='"$tmp/out2"'
25528
25529 while :
25530 do
25531 # Write a here document:
25532 cat >>$CONFIG_STATUS <<_ACEOF
25533 # First, check the format of the line:
25534 cat >"\$tmp/defines.sed" <<\\CEOF
25535 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25536 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25537 b
25538 :def
25539 _ACEOF
25540 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25541 echo 'CEOF
25542 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25543 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25544 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25545 grep . conftest.tail >/dev/null || break
25546 rm -f conftest.defines
25547 mv conftest.tail conftest.defines
25548 done
25549 rm -f conftest.defines conftest.tail
25550
25551 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25552 cat >>$CONFIG_STATUS <<\_ACEOF
25553 if test x"$ac_file" != x-; then
25554 echo "/* $configure_input */" >"$tmp/config.h"
25555 cat "$ac_result" >>"$tmp/config.h"
25556 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25557 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25558 echo "$as_me: $ac_file is unchanged" >&6;}
25559 else
25560 rm -f $ac_file
25561 mv "$tmp/config.h" $ac_file
25562 fi
25563 else
25564 echo "/* $configure_input */"
25565 cat "$ac_result"
25566 fi
25567 rm -f "$tmp/out12"
25568 ;;
25569
25570 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25571 echo "$as_me: executing $ac_file commands" >&6;}
25572 ;;
25573 esac
25574
25575
25576 case $ac_file$ac_mode in
25577 "default":C)
25578
25579 ### Make the necessary directories, if they don't exist.
25580 for dir in etc lisp ; do
25581 test -d ${dir} || mkdir ${dir}
25582 done
25583
25584 # Build src/Makefile from ${srcdir}/src/Makefile.c
25585 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25586 # This must be done after src/config.h is built, since we rely on that file.
25587
25588 echo creating src/epaths.h
25589 ${MAKE-make} epaths-force
25590
25591 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25592 # `..' to `. .' unless invoked with -traditional
25593
25594 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25595 CPPFLAGS="$CPPFLAGS -traditional"
25596 fi
25597
25598 echo creating lib-src/Makefile
25599 ( cd lib-src
25600 rm -f junk.c junk1.c junk2.c
25601 sed -e '/start of cpp stuff/q' \
25602 < Makefile.c > junk1.c
25603 sed -e '1,/start of cpp stuff/d'\
25604 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25605 < Makefile.c > junk.c
25606 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25607 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25608 cat junk1.c junk2.c > Makefile.new
25609 rm -f junk.c junk1.c junk2.c
25610 chmod 444 Makefile.new
25611 mv -f Makefile.new Makefile
25612 )
25613
25614 echo creating src/Makefile
25615 ( cd src
25616 rm -f junk.c junk1.c junk2.c
25617 sed -e '/start of cpp stuff/q' \
25618 < Makefile.c > junk1.c
25619 sed -e '1,/start of cpp stuff/d'\
25620 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25621 < Makefile.c > junk.c
25622 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25623 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25624 cat junk1.c junk2.c > Makefile.new
25625 rm -f junk.c junk1.c junk2.c
25626 chmod 444 Makefile.new
25627 mv -f Makefile.new Makefile
25628 )
25629
25630 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25631 echo creating src/.gdbinit
25632 echo source $srcdir/src/.gdbinit > src/.gdbinit
25633 fi
25634
25635 ;;
25636
25637 esac
25638 done # for ac_tag
25639
25640
25641 { (exit 0); exit 0; }
25642 _ACEOF
25643 chmod +x $CONFIG_STATUS
25644 ac_clean_files=$ac_clean_files_save
25645
25646
25647 # configure is writing to config.log, and then calls config.status.
25648 # config.status does its own redirection, appending to config.log.
25649 # Unfortunately, on DOS this fails, as config.log is still kept open
25650 # by configure, so config.status won't be able to write to it; its
25651 # output is simply discarded. So we exec the FD to /dev/null,
25652 # effectively closing config.log, so it can be properly (re)opened and
25653 # appended to by config.status. When coming back to configure, we
25654 # need to make the FD available again.
25655 if test "$no_create" != yes; then
25656 ac_cs_success=:
25657 ac_config_status_args=
25658 test "$silent" = yes &&
25659 ac_config_status_args="$ac_config_status_args --quiet"
25660 exec 5>/dev/null
25661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25662 exec 5>>config.log
25663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25664 # would make configure fail if this is the last instruction.
25665 $ac_cs_success || { (exit 1); exit 1; }
25666 fi
25667
25668