]> code.delx.au - gnu-emacs/blob - configure
* frames.texi (Basic Parameters): Remove display-environment-variable
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.60'
576 PACKAGE_STRING='emacs 23.0.60'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_config_libobj_dir=src
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 ns_appdir
737 ns_appbindir
738 ns_appresdir
739 ns_appsrc
740 GNUSTEP_MAKEFILES
741 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
743 GNU_OBJC_CFLAGS
744 LIB_SRC_EXTRA_INSTALLABLES
745 LTLIBOBJS'
746 ac_subst_files=''
747 ac_precious_vars='build_alias
748 host_alias
749 target_alias
750 CC
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
755 CPP
756 XMKMF'
757
758
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
778
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
804
805 ac_prev=
806 ac_dashdash=
807 for ac_option
808 do
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
814 fi
815
816 case $ac_option in
817 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *) ac_optarg=yes ;;
819 esac
820
821 # Accept the important Cygnus configure options, so we can diagnose typos.
822
823 case $ac_dashdash$ac_option in
824 --)
825 ac_dashdash=yes ;;
826
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
831
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
836
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
843
844 --config-cache | -C)
845 cache_file=config.cache ;;
846
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
851
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
858
859 -disable-* | --disable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=no ;;
867
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
872
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
877
878 -enable-* | --enable-*)
879 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_$ac_feature=\$ac_optarg ;;
886
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
895
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
899
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
906
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
911
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
917
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
924
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
929
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
934
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
941
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
946
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
953
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
958
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
962
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
966
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
970
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
979
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
984
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
991
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
998
999 -program-transform-name | --program-transform-name \
1000 | --program-transform-nam | --program-transform-na \
1001 | --program-transform-n | --program-transform- \
1002 | --program-transform | --program-transfor \
1003 | --program-transfo | --program-transf \
1004 | --program-trans | --program-tran \
1005 | --progr-tra | --program-tr | --program-t)
1006 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1015
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1020
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1025
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1029
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1035
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1046
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1051
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1056
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1063
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1068
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1071
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1074
1075 -with-* | --with-*)
1076 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=\$ac_optarg ;;
1083
1084 -without-* | --without-*)
1085 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_$ac_package=no ;;
1092
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1096
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1103
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1110
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1114 ;;
1115
1116 *=*)
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1124
1125 *)
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1131 ;;
1132
1133 esac
1134 done
1135
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1140 fi
1141
1142 # Be sure to have absolute directory names.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1147 do
1148 eval ac_val=\$$ac_var
1149 case $ac_val in
1150 [\\/$]* | ?:[\\/]* ) continue;;
1151 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 esac
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1155 done
1156
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1160 build=$build_alias
1161 host=$host_alias
1162 target=$target_alias
1163
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1172 fi
1173 fi
1174
1175 ac_tool_prefix=
1176 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1177
1178 test "$silent" = yes && exec 6>/dev/null
1179
1180
1181 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di=`ls -di .` &&
1183 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1189
1190
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1200 echo X"$0" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\/\)$/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\).*/{
1214 s//\1/
1215 q
1216 }
1217 s/.*/./; q'`
1218 srcdir=$ac_confdir
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 srcdir=..
1221 fi
1222 else
1223 ac_srcdir_defaulted=no
1224 fi
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1229 fi
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1238 fi
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1251
1252 #
1253 # Report the --help message.
1254 #
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1260
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1262
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1265
1266 Defaults for the options are specified in brackets.
1267
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1284
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1289
1290 For better control, use the options below.
1291
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1313
1314 cat <<\_ACEOF
1315
1316 Program names:
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1320
1321 X features:
1322 --x-includes=DIR X include files are in DIR
1323 --x-libraries=DIR X library files are in DIR
1324
1325 System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 _ACEOF
1329 fi
1330
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1334 esac
1335 cat <<\_ACEOF
1336
1337 Optional Features:
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --enable-cocoa-experimental-ctrl-g
1341 enable experimental improved ctrl-g recognition
1342 --disable-ns-self-contained
1343 disable self contained build under NeXTstep
1344 --enable-asserts compile code with asserts enabled
1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful (and
1347 sometimes confusing) to the casual installer
1348 --enable-locallisppath=PATH
1349 directories Emacs should search for lisp files
1350 specific to this site
1351 --disable-largefile omit support for large files
1352
1353 Optional Packages:
1354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1356 --without-pop don't support POP mail retrieval with movemail
1357 --with-kerberos support Kerberos-authenticated POP
1358 --with-kerberos5 support Kerberos version 5 authenticated POP
1359 --with-hesiod support Hesiod to get the POP server host
1360 --without-sound don't compile with sound support
1361 --without-sync-input process async input synchronously
1362 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1363 motif, gtk, no)
1364 --without-xpm don't compile with XPM image support
1365 --without-jpeg don't compile with JPEG image support
1366 --without-tiff don't compile with TIFF image support
1367 --without-gif don't compile with GIF image support
1368 --without-png don't compile with PNG image support
1369 --without-rsvg don't compile with SVG image support
1370 --without-freetype don't use Freetype for local font support
1371 --without-xft don't use XFT for anti aliased fonts
1372 --without-libotf don't use libotf for OpenType font support
1373 --without-m17n-flt don't use m17n-flt for text shaping
1374 --without-toolkit-scroll-bars
1375 don't use Motif or Xaw3d scroll bars
1376 --without-xaw3d don't use Xaw3d
1377 --without-xim don't use X11 XIM
1378 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1379 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1380 console
1381 --without-dbus don't compile with D-Bus support
1382 --without-makeinfo don't require makeinfo for building manuals
1383
1384 --with-pkg-config-prog=PATH
1385 path to pkg-config for finding GTK and librsvg
1386 --with-gnustep-conf=PATH
1387 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1388 or /etc/GNUstep/GNUstep.conf
1389 --with-x use the X Window System
1390
1391 Some influential environment variables:
1392 CC C compiler command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395 nonstandard directory <lib dir>
1396 LIBS libraries to pass to the linker, e.g. -l<library>
1397 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398 you have headers in a nonstandard directory <include dir>
1399 CPP C preprocessor
1400 XMKMF Path to xmkmf, Makefile generator for X Window System
1401
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1404
1405 _ACEOF
1406 ac_status=$?
1407 fi
1408
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" || continue
1413 ac_builddir=.
1414
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *)
1418 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1430
1431 case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1455 else
1456 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1460 fi
1461
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464 cat <<\_ACEOF
1465 emacs configure 23.0.60
1466 generated by GNU Autoconf 2.61
1467
1468 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1469 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473 exit
1474 fi
1475 cat >config.log <<_ACEOF
1476 This file contains any messages produced by compilers while
1477 running configure, to aid debugging if configure makes a mistake.
1478
1479 It was created by emacs $as_me 23.0.60, which was
1480 generated by GNU Autoconf 2.61. Invocation command line was
1481
1482 $ $0 $@
1483
1484 _ACEOF
1485 exec 5>>config.log
1486 {
1487 cat <<_ASUNAME
1488 ## --------- ##
1489 ## Platform. ##
1490 ## --------- ##
1491
1492 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1497
1498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1499 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1500
1501 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1502 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1503 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1504 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1505 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1506 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1507 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1508
1509 _ASUNAME
1510
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1513 do
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 echo "PATH: $as_dir"
1517 done
1518 IFS=$as_save_IFS
1519
1520 } >&5
1521
1522 cat >&5 <<_ACEOF
1523
1524
1525 ## ----------- ##
1526 ## Core tests. ##
1527 ## ----------- ##
1528
1529 _ACEOF
1530
1531
1532 # Keep a trace of the command line.
1533 # Strip out --no-create and --no-recursion so they do not pile up.
1534 # Strip out --silent because we don't want to record it for future runs.
1535 # Also quote any args containing shell meta-characters.
1536 # Make two passes to allow for proper duplicate-argument suppression.
1537 ac_configure_args=
1538 ac_configure_args0=
1539 ac_configure_args1=
1540 ac_must_keep_next=false
1541 for ac_pass in 1 2
1542 do
1543 for ac_arg
1544 do
1545 case $ac_arg in
1546 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1548 | -silent | --silent | --silen | --sile | --sil)
1549 continue ;;
1550 *\'*)
1551 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1552 esac
1553 case $ac_pass in
1554 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1555 2)
1556 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1557 if test $ac_must_keep_next = true; then
1558 ac_must_keep_next=false # Got value, back to normal.
1559 else
1560 case $ac_arg in
1561 *=* | --config-cache | -C | -disable-* | --disable-* \
1562 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1563 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1564 | -with-* | --with-* | -without-* | --without-* | --x)
1565 case "$ac_configure_args0 " in
1566 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1567 esac
1568 ;;
1569 -* ) ac_must_keep_next=true ;;
1570 esac
1571 fi
1572 ac_configure_args="$ac_configure_args '$ac_arg'"
1573 ;;
1574 esac
1575 done
1576 done
1577 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1578 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1579
1580 # When interrupted or exit'd, cleanup temporary files, and complete
1581 # config.log. We remove comments because anyway the quotes in there
1582 # would cause problems or look ugly.
1583 # WARNING: Use '\'' to represent an apostrophe within the trap.
1584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1585 trap 'exit_status=$?
1586 # Save into config.log some information that might help in debugging.
1587 {
1588 echo
1589
1590 cat <<\_ASBOX
1591 ## ---------------- ##
1592 ## Cache variables. ##
1593 ## ---------------- ##
1594 _ASBOX
1595 echo
1596 # The following way of writing the cache mishandles newlines in values,
1597 (
1598 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1599 eval ac_val=\$$ac_var
1600 case $ac_val in #(
1601 *${as_nl}*)
1602 case $ac_var in #(
1603 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1604 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1605 esac
1606 case $ac_var in #(
1607 _ | IFS | as_nl) ;; #(
1608 *) $as_unset $ac_var ;;
1609 esac ;;
1610 esac
1611 done
1612 (set) 2>&1 |
1613 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1614 *${as_nl}ac_space=\ *)
1615 sed -n \
1616 "s/'\''/'\''\\\\'\'''\''/g;
1617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1618 ;; #(
1619 *)
1620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1621 ;;
1622 esac |
1623 sort
1624 )
1625 echo
1626
1627 cat <<\_ASBOX
1628 ## ----------------- ##
1629 ## Output variables. ##
1630 ## ----------------- ##
1631 _ASBOX
1632 echo
1633 for ac_var in $ac_subst_vars
1634 do
1635 eval ac_val=\$$ac_var
1636 case $ac_val in
1637 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638 esac
1639 echo "$ac_var='\''$ac_val'\''"
1640 done | sort
1641 echo
1642
1643 if test -n "$ac_subst_files"; then
1644 cat <<\_ASBOX
1645 ## ------------------- ##
1646 ## File substitutions. ##
1647 ## ------------------- ##
1648 _ASBOX
1649 echo
1650 for ac_var in $ac_subst_files
1651 do
1652 eval ac_val=\$$ac_var
1653 case $ac_val in
1654 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655 esac
1656 echo "$ac_var='\''$ac_val'\''"
1657 done | sort
1658 echo
1659 fi
1660
1661 if test -s confdefs.h; then
1662 cat <<\_ASBOX
1663 ## ----------- ##
1664 ## confdefs.h. ##
1665 ## ----------- ##
1666 _ASBOX
1667 echo
1668 cat confdefs.h
1669 echo
1670 fi
1671 test "$ac_signal" != 0 &&
1672 echo "$as_me: caught signal $ac_signal"
1673 echo "$as_me: exit $exit_status"
1674 } >&5
1675 rm -f core *.core core.conftest.* &&
1676 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1677 exit $exit_status
1678 ' 0
1679 for ac_signal in 1 2 13 15; do
1680 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1681 done
1682 ac_signal=0
1683
1684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1685 rm -f -r conftest* confdefs.h
1686
1687 # Predefined preprocessor variables.
1688
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_NAME "$PACKAGE_NAME"
1691 _ACEOF
1692
1693
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1696 _ACEOF
1697
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_STRING "$PACKAGE_STRING"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1711 _ACEOF
1712
1713
1714 # Let the site file select an alternate cache file if it wants to.
1715 # Prefer explicitly selected file to automatically selected ones.
1716 if test -n "$CONFIG_SITE"; then
1717 set x "$CONFIG_SITE"
1718 elif test "x$prefix" != xNONE; then
1719 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1720 else
1721 set x "$ac_default_prefix/share/config.site" \
1722 "$ac_default_prefix/etc/config.site"
1723 fi
1724 shift
1725 for ac_site_file
1726 do
1727 if test -r "$ac_site_file"; then
1728 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1729 echo "$as_me: loading site script $ac_site_file" >&6;}
1730 sed 's/^/| /' "$ac_site_file" >&5
1731 . "$ac_site_file"
1732 fi
1733 done
1734
1735 if test -r "$cache_file"; then
1736 # Some versions of bash will fail to source /dev/null (special
1737 # files actually), so we avoid doing that.
1738 if test -f "$cache_file"; then
1739 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1740 echo "$as_me: loading cache $cache_file" >&6;}
1741 case $cache_file in
1742 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1743 *) . "./$cache_file";;
1744 esac
1745 fi
1746 else
1747 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1748 echo "$as_me: creating cache $cache_file" >&6;}
1749 >$cache_file
1750 fi
1751
1752 ac_header_list="$ac_header_list sys/time.h"
1753 ac_header_list="$ac_header_list unistd.h"
1754 ac_func_list="$ac_func_list alarm"
1755 # Check that the precious variables saved in the cache have kept the same
1756 # value.
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760 eval ac_new_set=\$ac_env_${ac_var}_set
1761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762 eval ac_new_val=\$ac_env_${ac_var}_value
1763 case $ac_old_set,$ac_new_set in
1764 set,)
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1768 ,set)
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1770 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1772 ,);;
1773 *)
1774 if test "x$ac_old_val" != "x$ac_new_val"; then
1775 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1776 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1777 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1778 echo "$as_me: former value: $ac_old_val" >&2;}
1779 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1780 echo "$as_me: current value: $ac_new_val" >&2;}
1781 ac_cache_corrupted=:
1782 fi;;
1783 esac
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1786 case $ac_new_val in
1787 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1788 *) ac_arg=$ac_var=$ac_new_val ;;
1789 esac
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1793 esac
1794 fi
1795 done
1796 if $ac_cache_corrupted; then
1797 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1798 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1799 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1800 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1801 { (exit 1); exit 1; }; }
1802 fi
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828 ac_ext=c
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833
1834
1835 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1836
1837
1838
1839 test "$program_prefix" != NONE &&
1840 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1841 # Use a double $ so make ignores it.
1842 test "$program_suffix" != NONE &&
1843 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1844 # Double any \ or $. echo might interpret backslashes.
1845 # By default was `s,x,x', remove it if useless.
1846 cat <<\_ACEOF >conftest.sed
1847 s/[\\$]/&&/g;s/;s,x,x,$//
1848 _ACEOF
1849 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1850 rm -f conftest.sed
1851
1852
1853 lispdir='${datadir}/emacs/${version}/lisp'
1854 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1855 '${datadir}/emacs/site-lisp'
1856 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1857 etcdir='${datadir}/emacs/${version}/etc'
1858 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1859 docdir='${datadir}/emacs/${version}/etc'
1860 gamedir='${localstatedir}/games/emacs'
1861
1862 gameuser=games
1863
1864
1865
1866
1867 # Check whether --with-pop was given.
1868 if test "${with_pop+set}" = set; then
1869 withval=$with_pop;
1870 else
1871 with_pop=yes
1872 fi
1873
1874 if test "$with_pop" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1876 #define MAIL_USE_POP 1
1877 _ACEOF
1878
1879 fi
1880
1881
1882
1883 # Check whether --with-kerberos was given.
1884 if test "${with_kerberos+set}" = set; then
1885 withval=$with_kerberos;
1886 else
1887 with_kerberos=no
1888 fi
1889
1890 if test "$with_kerberos" != no; then
1891 cat >>confdefs.h <<\_ACEOF
1892 #define KERBEROS 1
1893 _ACEOF
1894
1895 fi
1896
1897
1898
1899 # Check whether --with-kerberos5 was given.
1900 if test "${with_kerberos5+set}" = set; then
1901 withval=$with_kerberos5;
1902 else
1903 with_kerberos5=no
1904 fi
1905
1906 if test "${with_kerberos5}" != no; then
1907 if test "${with_kerberos}" = no; then
1908 with_kerberos=yes
1909 cat >>confdefs.h <<\_ACEOF
1910 #define KERBEROS 1
1911 _ACEOF
1912
1913 fi
1914
1915 cat >>confdefs.h <<\_ACEOF
1916 #define KERBEROS5 1
1917 _ACEOF
1918
1919 fi
1920
1921
1922 # Check whether --with-hesiod was given.
1923 if test "${with_hesiod+set}" = set; then
1924 withval=$with_hesiod;
1925 else
1926 with_hesiod=no
1927 fi
1928
1929 if test "$with_hesiod" != no; then
1930
1931 cat >>confdefs.h <<\_ACEOF
1932 #define HESIOD 1
1933 _ACEOF
1934
1935 fi
1936
1937
1938 # Check whether --with-sound was given.
1939 if test "${with_sound+set}" = set; then
1940 withval=$with_sound;
1941 else
1942 with_sound=yes
1943 fi
1944
1945
1946
1947 # Check whether --with-sync-input was given.
1948 if test "${with_sync_input+set}" = set; then
1949 withval=$with_sync_input;
1950 else
1951 with_sync_input=yes
1952 fi
1953
1954 if test "$with_sync_input" = yes; then
1955
1956 cat >>confdefs.h <<\_ACEOF
1957 #define SYNC_INPUT 1
1958 _ACEOF
1959
1960 fi
1961
1962
1963 # Check whether --with-x-toolkit was given.
1964 if test "${with_x_toolkit+set}" = set; then
1965 withval=$with_x_toolkit; case "${withval}" in
1966 y | ye | yes ) val=gtk ;;
1967 n | no ) val=no ;;
1968 l | lu | luc | luci | lucid ) val=lucid ;;
1969 a | at | ath | athe | athen | athena ) val=athena ;;
1970 m | mo | mot | moti | motif ) val=motif ;;
1971 g | gt | gtk ) val=gtk ;;
1972 * )
1973 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1974 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1975 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1976 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1977 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1978 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1979 { (exit 1); exit 1; }; }
1980 ;;
1981 esac
1982 with_x_toolkit=$val
1983
1984 fi
1985
1986
1987
1988 # Check whether --with-xpm was given.
1989 if test "${with_xpm+set}" = set; then
1990 withval=$with_xpm;
1991 else
1992 with_xpm=yes
1993 fi
1994
1995
1996 # Check whether --with-jpeg was given.
1997 if test "${with_jpeg+set}" = set; then
1998 withval=$with_jpeg;
1999 else
2000 with_jpeg=yes
2001 fi
2002
2003
2004 # Check whether --with-tiff was given.
2005 if test "${with_tiff+set}" = set; then
2006 withval=$with_tiff;
2007 else
2008 with_tiff=yes
2009 fi
2010
2011
2012 # Check whether --with-gif was given.
2013 if test "${with_gif+set}" = set; then
2014 withval=$with_gif;
2015 else
2016 with_gif=yes
2017 fi
2018
2019
2020 # Check whether --with-png was given.
2021 if test "${with_png+set}" = set; then
2022 withval=$with_png;
2023 else
2024 with_png=yes
2025 fi
2026
2027
2028 # Check whether --with-rsvg was given.
2029 if test "${with_rsvg+set}" = set; then
2030 withval=$with_rsvg;
2031 else
2032 with_rsvg=yes
2033 fi
2034
2035
2036
2037 # Check whether --with-freetype was given.
2038 if test "${with_freetype+set}" = set; then
2039 withval=$with_freetype;
2040 else
2041 with_freetype=yes
2042 fi
2043
2044
2045 # Check whether --with-xft was given.
2046 if test "${with_xft+set}" = set; then
2047 withval=$with_xft;
2048 else
2049 with_xft=yes
2050 fi
2051
2052
2053 # Check whether --with-libotf was given.
2054 if test "${with_libotf+set}" = set; then
2055 withval=$with_libotf;
2056 else
2057 with_libotf=yes
2058 fi
2059
2060
2061 # Check whether --with-m17n-flt was given.
2062 if test "${with_m17n_flt+set}" = set; then
2063 withval=$with_m17n_flt;
2064 else
2065 with_m17n_flt=yes
2066 fi
2067
2068
2069
2070 # Check whether --with-toolkit-scroll-bars was given.
2071 if test "${with_toolkit_scroll_bars+set}" = set; then
2072 withval=$with_toolkit_scroll_bars;
2073 else
2074 with_toolkit_scroll_bars=yes
2075 fi
2076
2077
2078 # Check whether --with-xaw3d was given.
2079 if test "${with_xaw3d+set}" = set; then
2080 withval=$with_xaw3d;
2081 else
2082 with_xaw3d=yes
2083 fi
2084
2085
2086 # Check whether --with-xim was given.
2087 if test "${with_xim+set}" = set; then
2088 withval=$with_xim;
2089 else
2090 with_xim=yes
2091 fi
2092
2093
2094 # Check whether --with-ns was given.
2095 if test "${with_ns+set}" = set; then
2096 withval=$with_ns;
2097 else
2098 with_ns=no
2099 fi
2100
2101
2102
2103 # Check whether --with-gpm was given.
2104 if test "${with_gpm+set}" = set; then
2105 withval=$with_gpm;
2106 else
2107 with_gpm=yes
2108 fi
2109
2110
2111 # Check whether --with-dbus was given.
2112 if test "${with_dbus+set}" = set; then
2113 withval=$with_dbus;
2114 else
2115 with_dbus=yes
2116 fi
2117
2118
2119 ## For the times when you want to build Emacs but don't have
2120 ## a suitable makeinfo, and can live without the manuals.
2121
2122 # Check whether --with-makeinfo was given.
2123 if test "${with_makeinfo+set}" = set; then
2124 withval=$with_makeinfo;
2125 else
2126 with_makeinfo=yes
2127 fi
2128
2129
2130
2131 # Check whether --with-gtk was given.
2132 if test "${with_gtk+set}" = set; then
2133 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2134 specify a toolkit." >&5
2135 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2136 specify a toolkit." >&2;}
2137 { (exit 1); exit 1; }; }
2138 fi
2139
2140
2141
2142 # Check whether --with-gcc was given.
2143 if test "${with_gcc+set}" = set; then
2144 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2145 variable to specify a compiler." >&5
2146 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2147 variable to specify a compiler." >&2;}
2148 { (exit 1); exit 1; }; }
2149 fi
2150
2151
2152
2153 # Check whether --with-pkg-config-prog was given.
2154 if test "${with_pkg_config_prog+set}" = set; then
2155 withval=$with_pkg_config_prog;
2156 fi
2157
2158 if test "X${with_pkg_config_prog}" != X; then
2159 if test "${with_pkg_config_prog}" != yes; then
2160 PKG_CONFIG="${with_pkg_config_prog}"
2161 fi
2162 fi
2163
2164
2165 # Check whether --with-gnustep-conf was given.
2166 if test "${with_gnustep_conf+set}" = set; then
2167 withval=$with_gnustep_conf;
2168 fi
2169
2170 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2171 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2172 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2173 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2174
2175 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2176 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2177 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=$enableval
2178 else
2179 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2180 fi
2181
2182
2183 # Check whether --enable-ns-self-contained was given.
2184 if test "${enable_ns_self_contained+set}" = set; then
2185 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2186 else
2187 EN_NS_SELF_CONTAINED=yes
2188 fi
2189
2190
2191 # Check whether --enable-asserts was given.
2192 if test "${enable_asserts+set}" = set; then
2193 enableval=$enable_asserts; USE_XASSERTS=$enableval
2194 else
2195 USE_XASSERTS=no
2196 fi
2197
2198
2199 # Check whether --enable-maintainer-mode was given.
2200 if test "${enable_maintainer_mode+set}" = set; then
2201 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2202 else
2203 USE_MAINTAINER_MODE=no
2204 fi
2205
2206 if test $USE_MAINTAINER_MODE = yes; then
2207 MAINT=
2208 else
2209 MAINT=#
2210 fi
2211
2212
2213 # Check whether --enable-locallisppath was given.
2214 if test "${enable_locallisppath+set}" = set; then
2215 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2216 locallisppath=
2217 elif test "${enableval}" != "yes"; then
2218 locallisppath=${enableval}
2219 fi
2220 fi
2221
2222
2223 #### Make srcdir absolute, if it isn't already. It's important to
2224 #### avoid running the path through pwd unnecessarily, since pwd can
2225 #### give you automounter prefixes, which can go away. We do all this
2226 #### so Emacs can find its files when run uninstalled.
2227 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2228 unset CDPATH
2229 case "${srcdir}" in
2230 /* ) ;;
2231 . )
2232 ## We may be able to use the $PWD environment variable to make this
2233 ## absolute. But sometimes PWD is inaccurate.
2234 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2235 ## but that tested only for a well-formed and valid PWD,
2236 ## it did not object when PWD was well-formed and valid but just wrong.
2237 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2238 then
2239 srcdir="$PWD"
2240 else
2241 srcdir="`(cd ${srcdir}; pwd)`"
2242 fi
2243 ;;
2244 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2245 esac
2246
2247 #### Check if the source directory already has a configured system in it.
2248 if test `pwd` != `(cd ${srcdir} && pwd)` \
2249 && test -f "${srcdir}/src/config.h" ; then
2250 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2251 as a build directory right now; it has been configured in its own
2252 right. To configure in another directory as well, you MUST
2253 use GNU make. If you do not have GNU make, then you must
2254 now do \`make distclean' in ${srcdir},
2255 and then run $0 again." >&5
2256 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2257 as a build directory right now; it has been configured in its own
2258 right. To configure in another directory as well, you MUST
2259 use GNU make. If you do not have GNU make, then you must
2260 now do \`make distclean' in ${srcdir},
2261 and then run $0 again." >&2;}
2262 fi
2263
2264 #### Given the configuration name, set machfile and opsysfile to the
2265 #### names of the m/*.h and s/*.h files we should use.
2266
2267 ### Canonicalize the configuration name.
2268
2269 ac_aux_dir=
2270 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2271 if test -f "$ac_dir/install-sh"; then
2272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/install-sh -c"
2274 break
2275 elif test -f "$ac_dir/install.sh"; then
2276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/install.sh -c"
2278 break
2279 elif test -f "$ac_dir/shtool"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/shtool install -c"
2282 break
2283 fi
2284 done
2285 if test -z "$ac_aux_dir"; then
2286 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2287 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2288 { (exit 1); exit 1; }; }
2289 fi
2290
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2298
2299
2300 # Make sure we can run config.sub.
2301 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2302 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2303 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2304 { (exit 1); exit 1; }; }
2305
2306 { echo "$as_me:$LINENO: checking build system type" >&5
2307 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2308 if test "${ac_cv_build+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 ac_build_alias=$build_alias
2312 test "x$ac_build_alias" = x &&
2313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x &&
2315 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2316 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2317 { (exit 1); exit 1; }; }
2318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2320 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2321 { (exit 1); exit 1; }; }
2322
2323 fi
2324 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2325 echo "${ECHO_T}$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2327 *-*-*) ;;
2328 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2329 echo "$as_me: error: invalid value of canonical build" >&2;}
2330 { (exit 1); exit 1; }; };;
2331 esac
2332 build=$ac_cv_build
2333 ac_save_IFS=$IFS; IFS='-'
2334 set x $ac_cv_build
2335 shift
2336 build_cpu=$1
2337 build_vendor=$2
2338 shift; shift
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2341 build_os=$*
2342 IFS=$ac_save_IFS
2343 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2344
2345
2346 { echo "$as_me:$LINENO: checking host system type" >&5
2347 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2348 if test "${ac_cv_host+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 if test "x$host_alias" = x; then
2352 ac_cv_host=$ac_cv_build
2353 else
2354 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2355 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2356 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2358 fi
2359
2360 fi
2361 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2362 echo "${ECHO_T}$ac_cv_host" >&6; }
2363 case $ac_cv_host in
2364 *-*-*) ;;
2365 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2366 echo "$as_me: error: invalid value of canonical host" >&2;}
2367 { (exit 1); exit 1; }; };;
2368 esac
2369 host=$ac_cv_host
2370 ac_save_IFS=$IFS; IFS='-'
2371 set x $ac_cv_host
2372 shift
2373 host_cpu=$1
2374 host_vendor=$2
2375 shift; shift
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2378 host_os=$*
2379 IFS=$ac_save_IFS
2380 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2381
2382
2383 canonical=$host
2384 configuration=${host_alias-${build_alias-$host}}
2385
2386
2387
2388 ### If you add support for a new configuration, add code to this
2389 ### switch statement to recognize your configuration name and select
2390 ### the appropriate operating system and machine description files.
2391
2392 ### You would hope that you could choose an m/*.h file pretty much
2393 ### based on the machine portion of the configuration name, and an s-
2394 ### file based on the operating system portion. However, it turns out
2395 ### that each m/*.h file is pretty manufacturer-specific - for
2396 ### example mips.h is MIPS
2397 ### So we basically have to have a special case for each
2398 ### configuration name.
2399 ###
2400 ### As far as handling version numbers on operating systems is
2401 ### concerned, make sure things will fail in a fixable way. If
2402 ### /etc/MACHINES doesn't say anything about version numbers, be
2403 ### prepared to handle anything reasonably. If version numbers
2404 ### matter, be sure /etc/MACHINES says something about it.
2405 ###
2406 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2407 ### "System V Release 4"; he writes, "The old convention encouraged
2408 ### confusion between `system' and `release' levels'."
2409
2410 machine='' opsys='' unported=no
2411 case "${canonical}" in
2412
2413 ## FreeBSD ports
2414 *-*-freebsd* )
2415 opsys=freebsd
2416 case "${canonical}" in
2417 alpha*-*-freebsd*) machine=alpha ;;
2418 arm*-*-freebsd*) machine=arm ;;
2419 ia64-*-freebsd*) machine=ia64 ;;
2420 sparc-*-freebsd*) machine=sparc ;;
2421 sparc64-*-freebsd*) machine=sparc ;;
2422 powerpc-*-freebsd*) machine=macppc ;;
2423 i[3456]86-*-freebsd*) machine=intel386 ;;
2424 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2425 esac
2426 ;;
2427
2428 ## FreeBSD kernel + glibc based userland
2429 *-*-kfreebsd*gnu* )
2430 opsys=gnu-kfreebsd
2431 case "${canonical}" in
2432 alpha*-*-kfreebsd*) machine=alpha ;;
2433 ia64-*-kfreebsd*) machine=ia64 ;;
2434 sparc-*-kfreebsd*) machine=sparc ;;
2435 sparc64-*-kfreebsd*) machine=sparc ;;
2436 powerpc-*-kfreebsd*) machine=macppc ;;
2437 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2438 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2439 esac
2440 ;;
2441
2442 ## NetBSD ports
2443 *-*-netbsd* )
2444 opsys=netbsd
2445 if test -f /usr/lib/crti.o; then
2446
2447 cat >>confdefs.h <<\_ACEOF
2448 #define HAVE_CRTIN
2449 _ACEOF
2450
2451 fi
2452
2453 case "${canonical}" in
2454 alpha*-*-netbsd*) machine=alpha ;;
2455 i[3456]86-*-netbsd*) machine=intel386 ;;
2456 powerpc-*-netbsd*) machine=macppc ;;
2457 sparc*-*-netbsd*) machine=sparc ;;
2458 vax-*-netbsd*) machine=vax ;;
2459 arm-*-netbsd*) machine=arm ;;
2460 x86_64-*-netbsd*) machine=amdx86-64 ;;
2461 hppa-*-netbsd*) machine=hp800 ;;
2462 esac
2463 ;;
2464
2465 ## OpenBSD ports
2466 *-*-openbsd* )
2467 opsys=openbsd
2468 case "${canonical}" in
2469 alpha*-*-openbsd*) machine=alpha ;;
2470 arm-*-openbsd*) machine=arm ;;
2471 i386-*-openbsd*) machine=intel386 ;;
2472 powerpc-*-openbsd*) machine=macppc ;;
2473 sparc*-*-openbsd*) machine=sparc ;;
2474 vax-*-openbsd*) machine=vax ;;
2475 x86_64-*-openbsd*) machine=amdx86-64 ;;
2476 esac
2477 ;;
2478
2479 ## LynxOS ports
2480 *-*-lynxos* )
2481 opsys=lynxos
2482 case "${canonical}" in
2483 i[3456]86-*-lynxos*) machine=intel386 ;;
2484 powerpc-*-lynxos*) machine=powerpc ;;
2485 esac
2486 ;;
2487
2488 alpha*-*-linux-gnu* )
2489 machine=alpha opsys=gnu-linux
2490 ;;
2491
2492 arm*-*-linux-gnu* )
2493 machine=arm opsys=gnu-linux
2494 ;;
2495
2496 ## Apple Darwin / Mac OS X
2497 *-apple-darwin* )
2498 case "${canonical}" in
2499 i[3456]86-* ) machine=intel386 ;;
2500 powerpc-* ) machine=macppc ;;
2501 * ) unported=yes ;;
2502 esac
2503 opsys=darwin
2504 # Define CPP as follows to make autoconf work correctly.
2505 CPP="${CC-cc} -E -no-cpp-precomp"
2506 # Use fink packages if available.
2507 if test -d /sw/include && test -d /sw/lib; then
2508 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2509 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2510 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2511 fi
2512 ;;
2513
2514 ## HP 9000 series 700 and 800, running HP/UX
2515 hppa*-hp-hpux10.2* )
2516 machine=hp800 opsys=hpux10-20
2517 ;;
2518 hppa*-hp-hpux1[1-9]* )
2519 machine=hp800 opsys=hpux11
2520 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2521 ;;
2522
2523 hppa*-*-linux-gnu* )
2524 machine=hp800 opsys=gnu-linux
2525 ;;
2526
2527 ## IBM machines
2528 s390-*-linux-gnu* )
2529 machine=ibms390 opsys=gnu-linux
2530 ;;
2531 s390x-*-linux-gnu* )
2532 machine=ibms390x opsys=gnu-linux
2533 ;;
2534 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2535 machine=ibmrs6000 opsys=aix4-2
2536 ;;
2537 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2538 machine=ibmrs6000 opsys=aix4-2
2539 ;;
2540 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2541 machine=ibmrs6000 opsys=aix4-2
2542 ;;
2543 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2544 machine=ibmrs6000 opsys=aix4-2
2545 ;;
2546
2547 ## Macintosh PowerPC
2548 powerpc*-*-linux-gnu* )
2549 machine=macppc opsys=gnu-linux
2550 ;;
2551
2552 ## Silicon Graphics machines
2553 ## Iris 4D
2554 mips-sgi-irix6.5 )
2555 machine=iris4d opsys=irix6-5
2556 # Without defining _LANGUAGE_C, things get masked out in the headers
2557 # so that, for instance, grepping for `free' in stdlib.h fails and
2558 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2559 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2560 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2561 ;;
2562
2563 ## Suns
2564 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2565 machine=sparc opsys=gnu-linux
2566 ;;
2567
2568 *-sun-solaris* \
2569 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2570 | rs6000-*-solaris2*)
2571 case "${canonical}" in
2572 i[3456]86-*-* ) machine=intel386 ;;
2573 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2574 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2575 sparc* ) machine=sparc ;;
2576 * ) unported=yes ;;
2577 esac
2578 case "${canonical}" in
2579 *-sunos5.3* | *-solaris2.3* )
2580 opsys=sol2-3
2581 NON_GNU_CPP=/usr/ccs/lib/cpp
2582 ;;
2583 *-sunos5.4* | *-solaris2.4* )
2584 opsys=sol2-4
2585 NON_GNU_CPP=/usr/ccs/lib/cpp
2586 RANLIB="ar -ts"
2587 ;;
2588 *-sunos5.5* | *-solaris2.5* )
2589 opsys=sol2-5
2590 NON_GNU_CPP=/usr/ccs/lib/cpp
2591 RANLIB="ar -ts"
2592 ;;
2593 *-sunos5.6* | *-solaris2.6* )
2594 opsys=sol2-6
2595 NON_GNU_CPP=/usr/ccs/lib/cpp
2596 RANLIB="ar -ts"
2597 ;;
2598 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2599 opsys=sol2-6
2600 emacs_check_sunpro_c=yes
2601 NON_GNU_CPP=/usr/ccs/lib/cpp
2602 ;;
2603 *-sunos5* | *-solaris* )
2604 opsys=sol2-10
2605 emacs_check_sunpro_c=yes
2606 NON_GNU_CPP=/usr/ccs/lib/cpp
2607 ;;
2608 esac
2609 ## Watch out for a compiler that we know will not work.
2610 case "${canonical}" in
2611 *-solaris* | *-sunos5* )
2612 if [ "x$CC" = x/usr/ucb/cc ]; then
2613 ## /usr/ucb/cc doesn't work;
2614 ## we should find some other compiler that does work.
2615 unset CC
2616 fi
2617 ;;
2618 *) ;;
2619 esac
2620 ;;
2621
2622 ## Vaxen.
2623 vax-dec-* )
2624 machine=vax
2625 case "${canonical}" in
2626 *-vms* ) opsys=vms ;;
2627 * ) unported=yes
2628 esac
2629 ;;
2630
2631 ## IA-64
2632 ia64*-*-linux* )
2633 machine=ia64 opsys=gnu-linux
2634 ;;
2635
2636 ## Intel 386 machines where we don't care about the manufacturer
2637 i[3456]86-*-* )
2638 machine=intel386
2639 case "${canonical}" in
2640 *-cygwin ) opsys=cygwin ;;
2641 *-darwin* ) opsys=darwin
2642 CPP="${CC-cc} -E -no-cpp-precomp"
2643 ;;
2644 *-linux-gnu* ) opsys=gnu-linux ;;
2645 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2646 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2647 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2648 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2649 esac
2650 ;;
2651
2652 ## m68k Linux-based GNU system
2653 m68k-*-linux-gnu* )
2654 machine=m68k opsys=gnu-linux
2655 ;;
2656
2657 ## Mips Linux-based GNU system
2658 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2659 machine=mips opsys=gnu-linux
2660 ;;
2661
2662 ## AMD x86-64 Linux-based GNU system
2663 x86_64-*-linux-gnu* )
2664 machine=amdx86-64 opsys=gnu-linux
2665 ;;
2666
2667 ## Tensilica Xtensa Linux-based GNU system
2668 xtensa*-*-linux-gnu* )
2669 machine=xtensa opsys=gnu-linux
2670 ;;
2671
2672 ## SuperH Linux-based GNU system
2673 sh[34]*-*-linux-gnu* )
2674 machine=sh3 opsys=gnu-linux
2675 ;;
2676
2677 * )
2678 unported=yes
2679 ;;
2680 esac
2681
2682 ### If the code above didn't choose an operating system, just choose
2683 ### an operating system based on the configuration name. You really
2684 ### only want to use this when you have no idea what the right
2685 ### operating system is; if you know what operating systems a machine
2686 ### runs, it's cleaner to make it explicit in the case statement
2687 ### above.
2688 if test x"${opsys}" = x; then
2689 case "${canonical}" in
2690 *-gnu* ) opsys=gnu ;;
2691 *-sysv4.2uw* ) opsys=unixware ;;
2692 *-sysv5uw* ) opsys=unixware ;;
2693 *-sysv5OpenUNIX* ) opsys=unixware ;;
2694 *-sysv4.1* | *-sysvr4.1* )
2695 NON_GNU_CPP=/usr/lib/cpp
2696 opsys=usg5-4 ;;
2697 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2698 if [ x$NON_GNU_CPP = x ]; then
2699 if [ -f /usr/ccs/lib/cpp ]; then
2700 NON_GNU_CPP=/usr/ccs/lib/cpp
2701 else
2702 NON_GNU_CPP=/lib/cpp
2703 fi
2704 fi
2705 opsys=usg5-4-2 ;;
2706 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2707 * )
2708 unported=yes
2709 ;;
2710 esac
2711 fi
2712
2713
2714
2715 if test $unported = yes; then
2716 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2717 Check \`etc/MACHINES' for recognized configuration names." >&5
2718 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2719 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2720 { (exit 1); exit 1; }; }
2721 fi
2722
2723 machfile="m/${machine}.h"
2724 opsysfile="s/${opsys}.h"
2725
2726
2727 #### Choose a compiler.
2728 test -n "$CC" && cc_specified=yes
2729
2730 # Save the value of CFLAGS that the user specified.
2731 SPECIFIED_CFLAGS="$CFLAGS"
2732
2733 ac_ext=c
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768 { echo "$as_me:$LINENO: result: $CC" >&5
2769 echo "${ECHO_T}$CC" >&6; }
2770 else
2771 { echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6; }
2773 fi
2774
2775
2776 fi
2777 if test -z "$ac_cv_prog_CC"; then
2778 ac_ct_CC=$CC
2779 # Extract the first word of "gcc", so it can be a program name with args.
2780 set dummy gcc; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_ac_ct_CC="gcc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800 done
2801 done
2802 IFS=$as_save_IFS
2803
2804 fi
2805 fi
2806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807 if test -n "$ac_ct_CC"; then
2808 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2809 echo "${ECHO_T}$ac_ct_CC" >&6; }
2810 else
2811 { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2813 fi
2814
2815 if test "x$ac_ct_CC" = x; then
2816 CC=""
2817 else
2818 case $cross_compiling:$ac_tool_warned in
2819 yes:)
2820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2821 whose name does not start with the host triplet. If you think this
2822 configuration is useful to you, please write to autoconf@gnu.org." >&5
2823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2824 whose name does not start with the host triplet. If you think this
2825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2826 ac_tool_warned=yes ;;
2827 esac
2828 CC=$ac_ct_CC
2829 fi
2830 else
2831 CC="$ac_cv_prog_CC"
2832 fi
2833
2834 if test -z "$CC"; then
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}cc; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC="${ac_tool_prefix}cc"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865 { echo "$as_me:$LINENO: result: $CC" >&5
2866 echo "${ECHO_T}$CC" >&6; }
2867 else
2868 { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2870 fi
2871
2872
2873 fi
2874 fi
2875 if test -z "$CC"; then
2876 # Extract the first word of "cc", so it can be a program name with args.
2877 set dummy cc; ac_word=$2
2878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2880 if test "${ac_cv_prog_CC+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 else
2886 ac_prog_rejected=no
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2895 ac_prog_rejected=yes
2896 continue
2897 fi
2898 ac_cv_prog_CC="cc"
2899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2901 fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 if test $ac_prog_rejected = yes; then
2907 # We found a bogon in the path, so make sure we never use it.
2908 set dummy $ac_cv_prog_CC
2909 shift
2910 if test $# != 0; then
2911 # We chose a different compiler from the bogus one.
2912 # However, it has the same basename, so the bogon will be chosen
2913 # first if we set CC to just the basename; use the full file name.
2914 shift
2915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2916 fi
2917 fi
2918 fi
2919 fi
2920 CC=$ac_cv_prog_CC
2921 if test -n "$CC"; then
2922 { echo "$as_me:$LINENO: result: $CC" >&5
2923 echo "${ECHO_T}$CC" >&6; }
2924 else
2925 { echo "$as_me:$LINENO: result: no" >&5
2926 echo "${ECHO_T}no" >&6; }
2927 fi
2928
2929
2930 fi
2931 if test -z "$CC"; then
2932 if test -n "$ac_tool_prefix"; then
2933 for ac_prog in cl.exe
2934 do
2935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2939 if test "${ac_cv_prog_CC+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964 { echo "$as_me:$LINENO: result: $CC" >&5
2965 echo "${ECHO_T}$CC" >&6; }
2966 else
2967 { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2969 fi
2970
2971
2972 test -n "$CC" && break
2973 done
2974 fi
2975 if test -z "$CC"; then
2976 ac_ct_CC=$CC
2977 for ac_prog in cl.exe
2978 do
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3009 echo "${ECHO_T}$ac_ct_CC" >&6; }
3010 else
3011 { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3013 fi
3014
3015
3016 test -n "$ac_ct_CC" && break
3017 done
3018
3019 if test "x$ac_ct_CC" = x; then
3020 CC=""
3021 else
3022 case $cross_compiling:$ac_tool_warned in
3023 yes:)
3024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3025 whose name does not start with the host triplet. If you think this
3026 configuration is useful to you, please write to autoconf@gnu.org." >&5
3027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3028 whose name does not start with the host triplet. If you think this
3029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3030 ac_tool_warned=yes ;;
3031 esac
3032 CC=$ac_ct_CC
3033 fi
3034 fi
3035
3036 fi
3037
3038
3039 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3040 See \`config.log' for more details." >&5
3041 echo "$as_me: error: no acceptable C compiler found in \$PATH
3042 See \`config.log' for more details." >&2;}
3043 { (exit 1); exit 1; }; }
3044
3045 # Provide some information about the compiler.
3046 echo "$as_me:$LINENO: checking for C compiler version" >&5
3047 ac_compiler=`set X $ac_compile; echo $2`
3048 { (ac_try="$ac_compiler --version >&5"
3049 case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compiler --version >&5") 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }
3058 { (ac_try="$ac_compiler -v >&5"
3059 case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compiler -v >&5") 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }
3068 { (ac_try="$ac_compiler -V >&5"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compiler -V >&5") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }
3078
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085
3086 int
3087 main ()
3088 {
3089
3090 ;
3091 return 0;
3092 }
3093 _ACEOF
3094 ac_clean_files_save=$ac_clean_files
3095 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3096 # Try to create an executable without -o first, disregard a.out.
3097 # It will help us diagnose broken compilers, and finding out an intuition
3098 # of exeext.
3099 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3100 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3101 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3102 #
3103 # List of possible output files, starting from the most likely.
3104 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3105 # only as a last resort. b.out is created by i960 compilers.
3106 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3107 #
3108 # The IRIX 6 linker writes into existing files which may not be
3109 # executable, retaining their permissions. Remove them first so a
3110 # subsequent execution test works.
3111 ac_rmfiles=
3112 for ac_file in $ac_files
3113 do
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117 esac
3118 done
3119 rm -f $ac_rmfiles
3120
3121 if { (ac_try="$ac_link_default"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_link_default") 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; then
3131 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3132 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3133 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3134 # so that the user can short-circuit this test for compilers unknown to
3135 # Autoconf.
3136 for ac_file in $ac_files ''
3137 do
3138 test -f "$ac_file" || continue
3139 case $ac_file in
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3141 ;;
3142 [ab].out )
3143 # We found the default executable, but exeext='' is most
3144 # certainly right.
3145 break;;
3146 *.* )
3147 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3148 then :; else
3149 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 fi
3151 # We set ac_cv_exeext here because the later test for it is not
3152 # safe: cross compilers may not add the suffix if given an `-o'
3153 # argument, so we may need to know it at that point already.
3154 # Even if this section looks crufty: it has the advantage of
3155 # actually working.
3156 break;;
3157 * )
3158 break;;
3159 esac
3160 done
3161 test "$ac_cv_exeext" = no && ac_cv_exeext=
3162
3163 else
3164 ac_file=''
3165 fi
3166
3167 { echo "$as_me:$LINENO: result: $ac_file" >&5
3168 echo "${ECHO_T}$ac_file" >&6; }
3169 if test -z "$ac_file"; then
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3174 See \`config.log' for more details." >&5
3175 echo "$as_me: error: C compiler cannot create executables
3176 See \`config.log' for more details." >&2;}
3177 { (exit 77); exit 77; }; }
3178 fi
3179
3180 ac_exeext=$ac_cv_exeext
3181
3182 # Check that the compiler produces executables we can run. If not, either
3183 # the compiler is broken, or we cross compile.
3184 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3185 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3186 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3187 # If not cross compiling, check that we can run a simple program.
3188 if test "$cross_compiling" != yes; then
3189 if { ac_try='./$ac_file'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 cross_compiling=no
3200 else
3201 if test "$cross_compiling" = maybe; then
3202 cross_compiling=yes
3203 else
3204 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details." >&5
3207 echo "$as_me: error: cannot run C compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details." >&2;}
3210 { (exit 1); exit 1; }; }
3211 fi
3212 fi
3213 fi
3214 { echo "$as_me:$LINENO: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6; }
3216
3217 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3218 ac_clean_files=$ac_clean_files_save
3219 # Check that the compiler produces executables we can run. If not, either
3220 # the compiler is broken, or we cross compile.
3221 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3222 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3223 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3224 echo "${ECHO_T}$cross_compiling" >&6; }
3225
3226 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3227 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3228 if { (ac_try="$ac_link"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_link") 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; then
3238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3240 # work properly (i.e., refer to `conftest.exe'), while it won't with
3241 # `rm'.
3242 for ac_file in conftest.exe conftest conftest.*; do
3243 test -f "$ac_file" || continue
3244 case $ac_file in
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247 break;;
3248 * ) break;;
3249 esac
3250 done
3251 else
3252 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3253 See \`config.log' for more details." >&5
3254 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details." >&2;}
3256 { (exit 1); exit 1; }; }
3257 fi
3258
3259 rm -f conftest$ac_cv_exeext
3260 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3261 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3262
3263 rm -f conftest.$ac_ext
3264 EXEEXT=$ac_cv_exeext
3265 ac_exeext=$EXEEXT
3266 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3267 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3268 if test "${ac_cv_objext+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271 cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h. */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277
3278 int
3279 main ()
3280 {
3281
3282 ;
3283 return 0;
3284 }
3285 _ACEOF
3286 rm -f conftest.o conftest.obj
3287 if { (ac_try="$ac_compile"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compile") 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; then
3297 for ac_file in conftest.o conftest.obj conftest.*; do
3298 test -f "$ac_file" || continue;
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3302 break;;
3303 esac
3304 done
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details." >&5
3311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details." >&2;}
3313 { (exit 1); exit 1; }; }
3314 fi
3315
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3317 fi
3318 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3319 echo "${ECHO_T}$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3321 ac_objext=$OBJEXT
3322 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333
3334 int
3335 main ()
3336 {
3337 #ifndef __GNUC__
3338 choke me
3339 #endif
3340
3341 ;
3342 return 0;
3343 }
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (ac_try="$ac_compile"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_compile") 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } && {
3359 test -z "$ac_c_werror_flag" ||
3360 test ! -s conftest.err
3361 } && test -s conftest.$ac_objext; then
3362 ac_compiler_gnu=yes
3363 else
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 ac_compiler_gnu=no
3368 fi
3369
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3372
3373 fi
3374 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3375 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3376 GCC=`test $ac_compiler_gnu = yes && echo yes`
3377 ac_test_CFLAGS=${CFLAGS+set}
3378 ac_save_CFLAGS=$CFLAGS
3379 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3380 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3381 if test "${ac_cv_prog_cc_g+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 ac_save_c_werror_flag=$ac_c_werror_flag
3385 ac_c_werror_flag=yes
3386 ac_cv_prog_cc_g=no
3387 CFLAGS="-g"
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394
3395 int
3396 main ()
3397 {
3398
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (ac_try="$ac_compile"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_compile") 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } && {
3417 test -z "$ac_c_werror_flag" ||
3418 test ! -s conftest.err
3419 } && test -s conftest.$ac_objext; then
3420 ac_cv_prog_cc_g=yes
3421 else
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425 CFLAGS=""
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432
3433 int
3434 main ()
3435 {
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3458 :
3459 else
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 ac_c_werror_flag=$ac_save_c_werror_flag
3464 CFLAGS="-g"
3465 cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h. */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3471
3472 int
3473 main ()
3474 {
3475
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3497 ac_cv_prog_cc_g=yes
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 fi
3507
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 fi
3510
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_c_werror_flag=$ac_save_c_werror_flag
3513 fi
3514 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3515 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3516 if test "$ac_test_CFLAGS" = set; then
3517 CFLAGS=$ac_save_CFLAGS
3518 elif test $ac_cv_prog_cc_g = yes; then
3519 if test "$GCC" = yes; then
3520 CFLAGS="-g -O2"
3521 else
3522 CFLAGS="-g"
3523 fi
3524 else
3525 if test "$GCC" = yes; then
3526 CFLAGS="-O2"
3527 else
3528 CFLAGS=
3529 fi
3530 fi
3531 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3532 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3533 if test "${ac_cv_prog_cc_c89+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 ac_cv_prog_cc_c89=no
3537 ac_save_CC=$CC
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 #include <stdarg.h>
3545 #include <stdio.h>
3546 #include <sys/types.h>
3547 #include <sys/stat.h>
3548 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3549 struct buf { int x; };
3550 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551 static char *e (p, i)
3552 char **p;
3553 int i;
3554 {
3555 return p[i];
3556 }
3557 static char *f (char * (*g) (char **, int), char **p, ...)
3558 {
3559 char *s;
3560 va_list v;
3561 va_start (v,p);
3562 s = g (p, va_arg (v,int));
3563 va_end (v);
3564 return s;
3565 }
3566
3567 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3568 function prototypes and stuff, but not '\xHH' hex character constants.
3569 These don't provoke an error unfortunately, instead are silently treated
3570 as 'x'. The following induces an error, until -std is added to get
3571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3572 array size at least. It's necessary to write '\x00'==0 to get something
3573 that's true only with -std. */
3574 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575
3576 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577 inside strings and character constants. */
3578 #define FOO(x) 'x'
3579 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3580
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3585 int argc;
3586 char **argv;
3587 int
3588 main ()
3589 {
3590 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3597 do
3598 CC="$ac_save_CC $ac_arg"
3599 rm -f conftest.$ac_objext
3600 if { (ac_try="$ac_compile"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_compile") 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } && {
3613 test -z "$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 } && test -s conftest.$ac_objext; then
3616 ac_cv_prog_cc_c89=$ac_arg
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621
3622 fi
3623
3624 rm -f core conftest.err conftest.$ac_objext
3625 test "x$ac_cv_prog_cc_c89" != "xno" && break
3626 done
3627 rm -f conftest.$ac_ext
3628 CC=$ac_save_CC
3629
3630 fi
3631 # AC_CACHE_VAL
3632 case "x$ac_cv_prog_cc_c89" in
3633 x)
3634 { echo "$as_me:$LINENO: result: none needed" >&5
3635 echo "${ECHO_T}none needed" >&6; } ;;
3636 xno)
3637 { echo "$as_me:$LINENO: result: unsupported" >&5
3638 echo "${ECHO_T}unsupported" >&6; } ;;
3639 *)
3640 CC="$CC $ac_cv_prog_cc_c89"
3641 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3642 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3643 esac
3644
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652
3653 # On Suns, sometimes $CPP names a directory.
3654 if test -n "$CPP" && test -d "$CPP"; then
3655 CPP=
3656 fi
3657
3658 ## If not using gcc, and on Solaris, and no CPP specified, see if
3659 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3660 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3661 test x"$CPP" = x; then
3662 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3663 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3664
3665 if test "${emacs_cv_sunpro_c+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h. */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674
3675 int
3676 main ()
3677 {
3678 #ifndef __SUNPRO_C
3679 fail;
3680 #endif
3681
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 rm -f conftest.$ac_objext conftest$ac_exeext
3687 if { (ac_try="$ac_link"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_link") 2>conftest.er1
3694 ac_status=$?
3695 grep -v '^ *+' conftest.er1 >conftest.err
3696 rm -f conftest.er1
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } && {
3700 test -z "$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3702 } && test -s conftest$ac_exeext &&
3703 $as_test_x conftest$ac_exeext; then
3704 emacs_cv_sunpro_c=yes
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3708
3709 emacs_cv_sunpro_c=no
3710 fi
3711
3712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3713 conftest$ac_exeext conftest.$ac_ext
3714 fi
3715
3716 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3717 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3718
3719 if test x"$emacs_cv_sunpro_c" = xyes; then
3720 NON_GNU_CPP="$CC -E -Xs"
3721 fi
3722 fi
3723
3724 #### Some systems specify a CPP to use unless we are using GCC.
3725 #### Now that we know whether we are using GCC, we can decide whether
3726 #### to use that one.
3727 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3728 then
3729 CPP="$NON_GNU_CPP"
3730 fi
3731
3732 #### Some systems specify a CC to use unless we are using GCC.
3733 #### Now that we know whether we are using GCC, we can decide whether
3734 #### to use that one.
3735 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3736 test x$cc_specified != xyes
3737 then
3738 CC="$NON_GNU_CC"
3739 fi
3740
3741 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3742 then
3743 CC="$CC $GCC_TEST_OPTIONS"
3744 fi
3745
3746 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3747 then
3748 CC="$CC $NON_GCC_TEST_OPTIONS"
3749 fi
3750
3751
3752 cat >>confdefs.h <<\_ACEOF
3753 #define _GNU_SOURCE 1
3754 _ACEOF
3755
3756
3757 ac_ext=c
3758 ac_cpp='$CPP $CPPFLAGS'
3759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3763 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3764 # On Suns, sometimes $CPP names a directory.
3765 if test -n "$CPP" && test -d "$CPP"; then
3766 CPP=
3767 fi
3768 if test -z "$CPP"; then
3769 if test "${ac_cv_prog_CPP+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 # Double quotes because CPP needs to be expanded
3773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3774 do
3775 ac_preproc_ok=false
3776 for ac_c_preproc_warn_flag in '' yes
3777 do
3778 # Use a header file that comes with gcc, so configuring glibc
3779 # with a fresh cross-compiler works.
3780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3781 # <limits.h> exists even on freestanding compilers.
3782 # On the NeXT, cc -E runs the code through the compiler's parser,
3783 # not just through cpp. "Syntax error" is here to catch this case.
3784 cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h. */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3790 #ifdef __STDC__
3791 # include <limits.h>
3792 #else
3793 # include <assert.h>
3794 #endif
3795 Syntax error
3796 _ACEOF
3797 if { (ac_try="$ac_cpp conftest.$ac_ext"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } >/dev/null && {
3810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3811 test ! -s conftest.err
3812 }; then
3813 :
3814 else
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 # Broken: fails on valid input.
3819 continue
3820 fi
3821
3822 rm -f conftest.err conftest.$ac_ext
3823
3824 # OK, works on sane cases. Now check whether nonexistent headers
3825 # can be detected and how.
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 #include <ac_nonexistent.h>
3833 _ACEOF
3834 if { (ac_try="$ac_cpp conftest.$ac_ext"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } >/dev/null && {
3847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3848 test ! -s conftest.err
3849 }; then
3850 # Broken: success on invalid input.
3851 continue
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 # Passes both tests.
3857 ac_preproc_ok=:
3858 break
3859 fi
3860
3861 rm -f conftest.err conftest.$ac_ext
3862
3863 done
3864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3865 rm -f conftest.err conftest.$ac_ext
3866 if $ac_preproc_ok; then
3867 break
3868 fi
3869
3870 done
3871 ac_cv_prog_CPP=$CPP
3872
3873 fi
3874 CPP=$ac_cv_prog_CPP
3875 else
3876 ac_cv_prog_CPP=$CPP
3877 fi
3878 { echo "$as_me:$LINENO: result: $CPP" >&5
3879 echo "${ECHO_T}$CPP" >&6; }
3880 ac_preproc_ok=false
3881 for ac_c_preproc_warn_flag in '' yes
3882 do
3883 # Use a header file that comes with gcc, so configuring glibc
3884 # with a fresh cross-compiler works.
3885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3886 # <limits.h> exists even on freestanding compilers.
3887 # On the NeXT, cc -E runs the code through the compiler's parser,
3888 # not just through cpp. "Syntax error" is here to catch this case.
3889 cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3895 #ifdef __STDC__
3896 # include <limits.h>
3897 #else
3898 # include <assert.h>
3899 #endif
3900 Syntax error
3901 _ACEOF
3902 if { (ac_try="$ac_cpp conftest.$ac_ext"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } >/dev/null && {
3915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3916 test ! -s conftest.err
3917 }; then
3918 :
3919 else
3920 echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923 # Broken: fails on valid input.
3924 continue
3925 fi
3926
3927 rm -f conftest.err conftest.$ac_ext
3928
3929 # OK, works on sane cases. Now check whether nonexistent headers
3930 # can be detected and how.
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3938 _ACEOF
3939 if { (ac_try="$ac_cpp conftest.$ac_ext"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3946 ac_status=$?
3947 grep -v '^ *+' conftest.er1 >conftest.err
3948 rm -f conftest.er1
3949 cat conftest.err >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } >/dev/null && {
3952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3953 test ! -s conftest.err
3954 }; then
3955 # Broken: success on invalid input.
3956 continue
3957 else
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3960
3961 # Passes both tests.
3962 ac_preproc_ok=:
3963 break
3964 fi
3965
3966 rm -f conftest.err conftest.$ac_ext
3967
3968 done
3969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3970 rm -f conftest.err conftest.$ac_ext
3971 if $ac_preproc_ok; then
3972 :
3973 else
3974 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3975 See \`config.log' for more details." >&5
3976 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3977 See \`config.log' for more details." >&2;}
3978 { (exit 1); exit 1; }; }
3979 fi
3980
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
3987
3988 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3989 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3990 if test "${ac_cv_path_GREP+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 # Extract the first word of "grep ggrep" to use in msg output
3994 if test -z "$GREP"; then
3995 set dummy grep ggrep; ac_prog_name=$2
3996 if test "${ac_cv_path_GREP+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 ac_path_GREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003 do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in grep ggrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4010 # Check for GNU ac_path_GREP and select it if it is found.
4011 # Check for GNU $ac_path_GREP
4012 case `"$ac_path_GREP" --version 2>&1` in
4013 *GNU*)
4014 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4015 *)
4016 ac_count=0
4017 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4018 while :
4019 do
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 echo 'GREP' >> "conftest.nl"
4024 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026 ac_count=`expr $ac_count + 1`
4027 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_GREP="$ac_path_GREP"
4030 ac_path_GREP_max=$ac_count
4031 fi
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4034 done
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036 esac
4037
4038
4039 $ac_path_GREP_found && break 3
4040 done
4041 done
4042
4043 done
4044 IFS=$as_save_IFS
4045
4046
4047 fi
4048
4049 GREP="$ac_cv_path_GREP"
4050 if test -z "$GREP"; then
4051 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053 { (exit 1); exit 1; }; }
4054 fi
4055
4056 else
4057 ac_cv_path_GREP=$GREP
4058 fi
4059
4060
4061 fi
4062 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4063 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4064 GREP="$ac_cv_path_GREP"
4065
4066
4067 { echo "$as_me:$LINENO: checking for egrep" >&5
4068 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4069 if test "${ac_cv_path_EGREP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4073 then ac_cv_path_EGREP="$GREP -E"
4074 else
4075 # Extract the first word of "egrep" to use in msg output
4076 if test -z "$EGREP"; then
4077 set dummy egrep; ac_prog_name=$2
4078 if test "${ac_cv_path_EGREP+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081 ac_path_EGREP_found=false
4082 # Loop through the user's path and test for each of PROGNAME-LIST
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4085 do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_prog in egrep; do
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4091 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4092 # Check for GNU ac_path_EGREP and select it if it is found.
4093 # Check for GNU $ac_path_EGREP
4094 case `"$ac_path_EGREP" --version 2>&1` in
4095 *GNU*)
4096 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4097 *)
4098 ac_count=0
4099 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4100 while :
4101 do
4102 cat "conftest.in" "conftest.in" >"conftest.tmp"
4103 mv "conftest.tmp" "conftest.in"
4104 cp "conftest.in" "conftest.nl"
4105 echo 'EGREP' >> "conftest.nl"
4106 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4108 ac_count=`expr $ac_count + 1`
4109 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4110 # Best one so far, save it but keep looking for a better one
4111 ac_cv_path_EGREP="$ac_path_EGREP"
4112 ac_path_EGREP_max=$ac_count
4113 fi
4114 # 10*(2^10) chars as input seems more than enough
4115 test $ac_count -gt 10 && break
4116 done
4117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4118 esac
4119
4120
4121 $ac_path_EGREP_found && break 3
4122 done
4123 done
4124
4125 done
4126 IFS=$as_save_IFS
4127
4128
4129 fi
4130
4131 EGREP="$ac_cv_path_EGREP"
4132 if test -z "$EGREP"; then
4133 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4134 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4135 { (exit 1); exit 1; }; }
4136 fi
4137
4138 else
4139 ac_cv_path_EGREP=$EGREP
4140 fi
4141
4142
4143 fi
4144 fi
4145 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4146 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4147 EGREP="$ac_cv_path_EGREP"
4148
4149
4150
4151 { echo "$as_me:$LINENO: checking for AIX" >&5
4152 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 #ifdef _AIX
4160 yes
4161 #endif
4162
4163 _ACEOF
4164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4165 $EGREP "yes" >/dev/null 2>&1; then
4166 { echo "$as_me:$LINENO: result: yes" >&5
4167 echo "${ECHO_T}yes" >&6; }
4168 cat >>confdefs.h <<\_ACEOF
4169 #define _ALL_SOURCE 1
4170 _ACEOF
4171
4172 else
4173 { echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6; }
4175 fi
4176 rm -f conftest*
4177
4178
4179 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4180 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4181 if test "${ac_cv_header_stdc+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 #include <stdlib.h>
4191 #include <stdarg.h>
4192 #include <string.h>
4193 #include <float.h>
4194
4195 int
4196 main ()
4197 {
4198
4199 ;
4200 return 0;
4201 }
4202 _ACEOF
4203 rm -f conftest.$ac_objext
4204 if { (ac_try="$ac_compile"
4205 case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208 esac
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && {
4217 test -z "$ac_c_werror_flag" ||
4218 test ! -s conftest.err
4219 } && test -s conftest.$ac_objext; then
4220 ac_cv_header_stdc=yes
4221 else
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 ac_cv_header_stdc=no
4226 fi
4227
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229
4230 if test $ac_cv_header_stdc = yes; then
4231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 #include <string.h>
4239
4240 _ACEOF
4241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242 $EGREP "memchr" >/dev/null 2>&1; then
4243 :
4244 else
4245 ac_cv_header_stdc=no
4246 fi
4247 rm -f conftest*
4248
4249 fi
4250
4251 if test $ac_cv_header_stdc = yes; then
4252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h. */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 #include <stdlib.h>
4260
4261 _ACEOF
4262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4263 $EGREP "free" >/dev/null 2>&1; then
4264 :
4265 else
4266 ac_cv_header_stdc=no
4267 fi
4268 rm -f conftest*
4269
4270 fi
4271
4272 if test $ac_cv_header_stdc = yes; then
4273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4274 if test "$cross_compiling" = yes; then
4275 :
4276 else
4277 cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h. */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 #include <ctype.h>
4284 #include <stdlib.h>
4285 #if ((' ' & 0x0FF) == 0x020)
4286 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4287 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4288 #else
4289 # define ISLOWER(c) \
4290 (('a' <= (c) && (c) <= 'i') \
4291 || ('j' <= (c) && (c) <= 'r') \
4292 || ('s' <= (c) && (c) <= 'z'))
4293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294 #endif
4295
4296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4297 int
4298 main ()
4299 {
4300 int i;
4301 for (i = 0; i < 256; i++)
4302 if (XOR (islower (i), ISLOWER (i))
4303 || toupper (i) != TOUPPER (i))
4304 return 2;
4305 return 0;
4306 }
4307 _ACEOF
4308 rm -f conftest$ac_exeext
4309 if { (ac_try="$ac_link"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_link") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4319 { (case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 :
4329 else
4330 echo "$as_me: program exited with status $ac_status" >&5
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4333
4334 ( exit $ac_status )
4335 ac_cv_header_stdc=no
4336 fi
4337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4338 fi
4339
4340
4341 fi
4342 fi
4343 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4344 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4345 if test $ac_cv_header_stdc = yes; then
4346
4347 cat >>confdefs.h <<\_ACEOF
4348 #define STDC_HEADERS 1
4349 _ACEOF
4350
4351 fi
4352
4353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4364 inttypes.h stdint.h unistd.h
4365 do
4366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372 cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h. */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4379
4380 #include <$ac_header>
4381 _ACEOF
4382 rm -f conftest.$ac_objext
4383 if { (ac_try="$ac_compile"
4384 case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387 esac
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_compile") 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && {
4396 test -z "$ac_c_werror_flag" ||
4397 test ! -s conftest.err
4398 } && test -s conftest.$ac_objext; then
4399 eval "$as_ac_Header=yes"
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 eval "$as_ac_Header=no"
4405 fi
4406
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 fi
4409 ac_res=`eval echo '${'$as_ac_Header'}'`
4410 { echo "$as_me:$LINENO: result: $ac_res" >&5
4411 echo "${ECHO_T}$ac_res" >&6; }
4412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4413 cat >>confdefs.h <<_ACEOF
4414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4415 _ACEOF
4416
4417 fi
4418
4419 done
4420
4421
4422 if test "${ac_cv_header_minix_config_h+set}" = set; then
4423 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4424 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4425 if test "${ac_cv_header_minix_config_h+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 fi
4428 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4429 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4430 else
4431 # Is the header compilable?
4432 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4433 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4434 cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 $ac_includes_default
4441 #include <minix/config.h>
4442 _ACEOF
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4445 case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_compile") 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } && {
4457 test -z "$ac_c_werror_flag" ||
4458 test ! -s conftest.err
4459 } && test -s conftest.$ac_objext; then
4460 ac_header_compiler=yes
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465 ac_header_compiler=no
4466 fi
4467
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4470 echo "${ECHO_T}$ac_header_compiler" >&6; }
4471
4472 # Is the header present?
4473 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4474 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4475 cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h. */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 #include <minix/config.h>
4482 _ACEOF
4483 if { (ac_try="$ac_cpp conftest.$ac_ext"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null && {
4496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4497 test ! -s conftest.err
4498 }; then
4499 ac_header_preproc=yes
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 ac_header_preproc=no
4505 fi
4506
4507 rm -f conftest.err conftest.$ac_ext
4508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4509 echo "${ECHO_T}$ac_header_preproc" >&6; }
4510
4511 # So? What about this header?
4512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4513 yes:no: )
4514 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4515 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4516 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4517 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4518 ac_header_preproc=yes
4519 ;;
4520 no:yes:* )
4521 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4522 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4524 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4526 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4527 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4528 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4530 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4532 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4533
4534 ;;
4535 esac
4536 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4537 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4538 if test "${ac_cv_header_minix_config_h+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 ac_cv_header_minix_config_h=$ac_header_preproc
4542 fi
4543 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4544 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4545
4546 fi
4547 if test $ac_cv_header_minix_config_h = yes; then
4548 MINIX=yes
4549 else
4550 MINIX=
4551 fi
4552
4553
4554 if test "$MINIX" = yes; then
4555
4556 cat >>confdefs.h <<\_ACEOF
4557 #define _POSIX_SOURCE 1
4558 _ACEOF
4559
4560
4561 cat >>confdefs.h <<\_ACEOF
4562 #define _POSIX_1_SOURCE 2
4563 _ACEOF
4564
4565
4566 cat >>confdefs.h <<\_ACEOF
4567 #define _MINIX 1
4568 _ACEOF
4569
4570 fi
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4583 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4584 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h. */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593
4594 # define __EXTENSIONS__ 1
4595 $ac_includes_default
4596 int
4597 main ()
4598 {
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compile") 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } && {
4618 test -z "$ac_c_werror_flag" ||
4619 test ! -s conftest.err
4620 } && test -s conftest.$ac_objext; then
4621 ac_cv_safe_to_define___extensions__=yes
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 ac_cv_safe_to_define___extensions__=no
4627 fi
4628
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 fi
4631 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4632 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4633 test $ac_cv_safe_to_define___extensions__ = yes &&
4634 cat >>confdefs.h <<\_ACEOF
4635 #define __EXTENSIONS__ 1
4636 _ACEOF
4637
4638 cat >>confdefs.h <<\_ACEOF
4639 #define _POSIX_PTHREAD_SEMANTICS 1
4640 _ACEOF
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define _TANDEM_SOURCE 1
4644 _ACEOF
4645
4646
4647
4648 ### Use -Wno-pointer-sign if the compiler supports it
4649 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4650 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4651 SAVE_CFLAGS="$CFLAGS"
4652 CFLAGS="$CFLAGS -Wno-pointer-sign"
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659
4660 int
4661 main ()
4662 {
4663
4664 ;
4665 return 0;
4666 }
4667 _ACEOF
4668 rm -f conftest.$ac_objext
4669 if { (ac_try="$ac_compile"
4670 case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673 esac
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_compile") 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } && {
4682 test -z "$ac_c_werror_flag" ||
4683 test ! -s conftest.err
4684 } && test -s conftest.$ac_objext; then
4685 has_option=yes
4686 else
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690 has_option=no
4691 fi
4692
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 if test $has_option = yes; then
4695 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4696 fi
4697 { echo "$as_me:$LINENO: result: $has_option" >&5
4698 echo "${ECHO_T}$has_option" >&6; }
4699 CFLAGS="$SAVE_CFLAGS"
4700 unset has_option
4701 unset SAVE_CFLAGS
4702
4703 #### Some other nice autoconf tests.
4704
4705 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4706 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4707 LN_S=$as_ln_s
4708 if test "$LN_S" = "ln -s"; then
4709 { echo "$as_me:$LINENO: result: yes" >&5
4710 echo "${ECHO_T}yes" >&6; }
4711 else
4712 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4713 echo "${ECHO_T}no, using $LN_S" >&6; }
4714 fi
4715
4716 ac_ext=c
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4722 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4723 # On Suns, sometimes $CPP names a directory.
4724 if test -n "$CPP" && test -d "$CPP"; then
4725 CPP=
4726 fi
4727 if test -z "$CPP"; then
4728 if test "${ac_cv_prog_CPP+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731 # Double quotes because CPP needs to be expanded
4732 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4733 do
4734 ac_preproc_ok=false
4735 for ac_c_preproc_warn_flag in '' yes
4736 do
4737 # Use a header file that comes with gcc, so configuring glibc
4738 # with a fresh cross-compiler works.
4739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4740 # <limits.h> exists even on freestanding compilers.
4741 # On the NeXT, cc -E runs the code through the compiler's parser,
4742 # not just through cpp. "Syntax error" is here to catch this case.
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 #ifdef __STDC__
4750 # include <limits.h>
4751 #else
4752 # include <assert.h>
4753 #endif
4754 Syntax error
4755 _ACEOF
4756 if { (ac_try="$ac_cpp conftest.$ac_ext"
4757 case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null && {
4769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4770 test ! -s conftest.err
4771 }; then
4772 :
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 # Broken: fails on valid input.
4778 continue
4779 fi
4780
4781 rm -f conftest.err conftest.$ac_ext
4782
4783 # OK, works on sane cases. Now check whether nonexistent headers
4784 # can be detected and how.
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 #include <ac_nonexistent.h>
4792 _ACEOF
4793 if { (ac_try="$ac_cpp conftest.$ac_ext"
4794 case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797 esac
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } >/dev/null && {
4806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4807 test ! -s conftest.err
4808 }; then
4809 # Broken: success on invalid input.
4810 continue
4811 else
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 # Passes both tests.
4816 ac_preproc_ok=:
4817 break
4818 fi
4819
4820 rm -f conftest.err conftest.$ac_ext
4821
4822 done
4823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4824 rm -f conftest.err conftest.$ac_ext
4825 if $ac_preproc_ok; then
4826 break
4827 fi
4828
4829 done
4830 ac_cv_prog_CPP=$CPP
4831
4832 fi
4833 CPP=$ac_cv_prog_CPP
4834 else
4835 ac_cv_prog_CPP=$CPP
4836 fi
4837 { echo "$as_me:$LINENO: result: $CPP" >&5
4838 echo "${ECHO_T}$CPP" >&6; }
4839 ac_preproc_ok=false
4840 for ac_c_preproc_warn_flag in '' yes
4841 do
4842 # Use a header file that comes with gcc, so configuring glibc
4843 # with a fresh cross-compiler works.
4844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4845 # <limits.h> exists even on freestanding compilers.
4846 # On the NeXT, cc -E runs the code through the compiler's parser,
4847 # not just through cpp. "Syntax error" is here to catch this case.
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #ifdef __STDC__
4855 # include <limits.h>
4856 #else
4857 # include <assert.h>
4858 #endif
4859 Syntax error
4860 _ACEOF
4861 if { (ac_try="$ac_cpp conftest.$ac_ext"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } >/dev/null && {
4874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 }; then
4877 :
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 # Broken: fails on valid input.
4883 continue
4884 fi
4885
4886 rm -f conftest.err conftest.$ac_ext
4887
4888 # OK, works on sane cases. Now check whether nonexistent headers
4889 # can be detected and how.
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 #include <ac_nonexistent.h>
4897 _ACEOF
4898 if { (ac_try="$ac_cpp conftest.$ac_ext"
4899 case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902 esac
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } >/dev/null && {
4911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4913 }; then
4914 # Broken: success on invalid input.
4915 continue
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 # Passes both tests.
4921 ac_preproc_ok=:
4922 break
4923 fi
4924
4925 rm -f conftest.err conftest.$ac_ext
4926
4927 done
4928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4929 rm -f conftest.err conftest.$ac_ext
4930 if $ac_preproc_ok; then
4931 :
4932 else
4933 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4934 See \`config.log' for more details." >&5
4935 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4936 See \`config.log' for more details." >&2;}
4937 { (exit 1); exit 1; }; }
4938 fi
4939
4940 ac_ext=c
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945
4946 # Find a good install program. We prefer a C program (faster),
4947 # so one script is as good as another. But avoid the broken or
4948 # incompatible versions:
4949 # SysV /etc/install, /usr/sbin/install
4950 # SunOS /usr/etc/install
4951 # IRIX /sbin/install
4952 # AIX /bin/install
4953 # AmigaOS /C/install, which installs bootblocks on floppy discs
4954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4957 # OS/2's system install, which has a completely different semantic
4958 # ./install, which can be erroneously created by make from ./install.sh.
4959 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4960 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4961 if test -z "$INSTALL"; then
4962 if test "${ac_cv_path_install+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4967 do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 # Account for people who put trailing slashes in PATH elements.
4971 case $as_dir/ in
4972 ./ | .// | /cC/* | \
4973 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4974 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4975 /usr/ucb/* ) ;;
4976 *)
4977 # OSF1 and SCO ODT 3.0 have their own names for install.
4978 # Don't use installbsd from OSF since it installs stuff as root
4979 # by default.
4980 for ac_prog in ginstall scoinst install; do
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4983 if test $ac_prog = install &&
4984 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4985 # AIX install. It has an incompatible calling convention.
4986 :
4987 elif test $ac_prog = install &&
4988 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4989 # program-specific install script used by HP pwplus--don't use.
4990 :
4991 else
4992 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4993 break 3
4994 fi
4995 fi
4996 done
4997 done
4998 ;;
4999 esac
5000 done
5001 IFS=$as_save_IFS
5002
5003
5004 fi
5005 if test "${ac_cv_path_install+set}" = set; then
5006 INSTALL=$ac_cv_path_install
5007 else
5008 # As a last resort, use the slow shell script. Don't cache a
5009 # value for INSTALL within a source directory, because that will
5010 # break other packages using the cache if that directory is
5011 # removed, or if the value is a relative name.
5012 INSTALL=$ac_install_sh
5013 fi
5014 fi
5015 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5016 echo "${ECHO_T}$INSTALL" >&6; }
5017
5018 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5019 # It thinks the first close brace ends the variable substitution.
5020 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5021
5022 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5023
5024 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5025
5026 if test "x$RANLIB" = x; then
5027 if test -n "$ac_tool_prefix"; then
5028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5032 if test "${ac_cv_prog_RANLIB+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 if test -n "$RANLIB"; then
5036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5048 fi
5049 done
5050 done
5051 IFS=$as_save_IFS
5052
5053 fi
5054 fi
5055 RANLIB=$ac_cv_prog_RANLIB
5056 if test -n "$RANLIB"; then
5057 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5058 echo "${ECHO_T}$RANLIB" >&6; }
5059 else
5060 { echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6; }
5062 fi
5063
5064
5065 fi
5066 if test -z "$ac_cv_prog_RANLIB"; then
5067 ac_ct_RANLIB=$RANLIB
5068 # Extract the first word of "ranlib", so it can be a program name with args.
5069 set dummy ranlib; ac_word=$2
5070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075 if test -n "$ac_ct_RANLIB"; then
5076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 ac_cv_prog_ac_ct_RANLIB="ranlib"
5086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089 done
5090 done
5091 IFS=$as_save_IFS
5092
5093 fi
5094 fi
5095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5096 if test -n "$ac_ct_RANLIB"; then
5097 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5098 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5099 else
5100 { echo "$as_me:$LINENO: result: no" >&5
5101 echo "${ECHO_T}no" >&6; }
5102 fi
5103
5104 if test "x$ac_ct_RANLIB" = x; then
5105 RANLIB=":"
5106 else
5107 case $cross_compiling:$ac_tool_warned in
5108 yes:)
5109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5110 whose name does not start with the host triplet. If you think this
5111 configuration is useful to you, please write to autoconf@gnu.org." >&5
5112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5113 whose name does not start with the host triplet. If you think this
5114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5115 ac_tool_warned=yes ;;
5116 esac
5117 RANLIB=$ac_ct_RANLIB
5118 fi
5119 else
5120 RANLIB="$ac_cv_prog_RANLIB"
5121 fi
5122
5123 fi
5124 # Extract the first word of "install-info", so it can be a program name with args.
5125 set dummy install-info; ac_word=$2
5126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5128 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 case $INSTALL_INFO in
5132 [\\/]* | ?:[\\/]*)
5133 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5134 ;;
5135 *)
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147 done
5148 done
5149 IFS=$as_save_IFS
5150
5151 ;;
5152 esac
5153 fi
5154 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5155 if test -n "$INSTALL_INFO"; then
5156 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5157 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5158 else
5159 { echo "$as_me:$LINENO: result: no" >&5
5160 echo "${ECHO_T}no" >&6; }
5161 fi
5162
5163
5164 # Extract the first word of "install-info", so it can be a program name with args.
5165 set dummy install-info; ac_word=$2
5166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5168 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171 case $INSTALL_INFO in
5172 [\\/]* | ?:[\\/]*)
5173 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5174 ;;
5175 *)
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in /usr/sbin
5178 do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5186 fi
5187 done
5188 done
5189 IFS=$as_save_IFS
5190
5191 ;;
5192 esac
5193 fi
5194 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5195 if test -n "$INSTALL_INFO"; then
5196 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5197 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5198 else
5199 { echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6; }
5201 fi
5202
5203
5204 # Extract the first word of "install-info", so it can be a program name with args.
5205 set dummy install-info; ac_word=$2
5206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5208 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 case $INSTALL_INFO in
5212 [\\/]* | ?:[\\/]*)
5213 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5214 ;;
5215 *)
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in /sbin
5218 do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5232 ;;
5233 esac
5234 fi
5235 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5236 if test -n "$INSTALL_INFO"; then
5237 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5238 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5239 else
5240 { echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6; }
5242 fi
5243
5244
5245 # Extract the first word of "gzip", so it can be a program name with args.
5246 set dummy gzip; ac_word=$2
5247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5249 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 case $GZIP_PROG in
5253 [\\/]* | ?:[\\/]*)
5254 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5255 ;;
5256 *)
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268 done
5269 done
5270 IFS=$as_save_IFS
5271
5272 ;;
5273 esac
5274 fi
5275 GZIP_PROG=$ac_cv_path_GZIP_PROG
5276 if test -n "$GZIP_PROG"; then
5277 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5278 echo "${ECHO_T}$GZIP_PROG" >&6; }
5279 else
5280 { echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6; }
5282 fi
5283
5284
5285
5286
5287 ## Need makeinfo >= 4.6 (?) to build the manuals.
5288 # Extract the first word of "makeinfo", so it can be a program name with args.
5289 set dummy makeinfo; ac_word=$2
5290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5292 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295 case $MAKEINFO in
5296 [\\/]* | ?:[\\/]*)
5297 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5298 ;;
5299 *)
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5310 fi
5311 done
5312 done
5313 IFS=$as_save_IFS
5314
5315 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5316 ;;
5317 esac
5318 fi
5319 MAKEINFO=$ac_cv_path_MAKEINFO
5320 if test -n "$MAKEINFO"; then
5321 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5322 echo "${ECHO_T}$MAKEINFO" >&6; }
5323 else
5324 { echo "$as_me:$LINENO: result: no" >&5
5325 echo "${ECHO_T}no" >&6; }
5326 fi
5327
5328
5329 if test "$MAKEINFO" != "no" && \
5330 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
5331 MAKEINFO=no
5332 fi
5333
5334 ## Makeinfo is unusual. For a released Emacs, the manuals are
5335 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5336 ## therefore in the category of "special tools" not normally required, which
5337 ## configure does not have to check for (eg autoconf itself).
5338 ## In a CVS checkout on the other hand, the manuals are not included.
5339 ## So makeinfo is a requirement to build from CVS, and configure
5340 ## should test for it as it does for any other build requirement.
5341 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5342 ## with pre-built manuals, from a CVS checkout.
5343 if test "$MAKEINFO" = "no"; then
5344 if test "x${with_makeinfo}" = "xno"; then
5345 MAKEINFO=off
5346 elif ! test -e $srcdir/info/emacs; then
5347 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5348 source tree does not seem to have pre-built manuals in the \`info' directory.
5349 Either install a suitable version of makeinfo, or re-run configure
5350 with the \`--without-makeinfo' option to build without the manuals. " >&5
5351 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5352 source tree does not seem to have pre-built manuals in the \`info' directory.
5353 Either install a suitable version of makeinfo, or re-run configure
5354 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5355 { (exit 1); exit 1; }; }
5356 fi
5357 fi
5358
5359
5360 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5361 then
5362 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5363 fi
5364
5365 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5366 then
5367 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5368 fi
5369
5370
5371 late_LDFLAGS=$LDFLAGS
5372 if test "$GCC" = yes; then
5373 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5374 else
5375 LDFLAGS="$LDFLAGS -znocombreloc"
5376 fi
5377
5378 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5379 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5380 cat >conftest.$ac_ext <<_ACEOF
5381 main(){return 0;}
5382 _ACEOF
5383 rm -f conftest.$ac_objext conftest$ac_exeext
5384 if { (ac_try="$ac_link"
5385 case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388 esac
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_link") 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } && {
5397 test -z "$ac_c_werror_flag" ||
5398 test ! -s conftest.err
5399 } && test -s conftest$ac_exeext &&
5400 $as_test_x conftest$ac_exeext; then
5401 { echo "$as_me:$LINENO: result: yes" >&5
5402 echo "${ECHO_T}yes" >&6; }
5403 else
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5406
5407 LDFLAGS=$late_LDFLAGS
5408 { echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6; }
5410 fi
5411
5412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5413 conftest$ac_exeext conftest.$ac_ext
5414
5415 #### Extract some information from the operating system and machine files.
5416
5417 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5418 - which libraries the lib-src programs will want, and
5419 - whether the GNU malloc routines are usable..." >&5
5420 echo "$as_me: checking the machine- and system-dependent files to find out
5421 - which libraries the lib-src programs will want, and
5422 - whether the GNU malloc routines are usable..." >&6;}
5423
5424 ### First figure out CFLAGS (which we use for running the compiler here)
5425 ### and REAL_CFLAGS (which we use for real compilation).
5426 ### The two are the same except on a few systems, where they are made
5427 ### different to work around various lossages. For example,
5428 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5429 ### as implying static linking.
5430
5431 ### If the CFLAGS env var is specified, we use that value
5432 ### instead of the default.
5433
5434 ### It's not important that this name contain the PID; you can't run
5435 ### two configures in the same directory and have anything work
5436 ### anyway.
5437 tempcname="conftest.c"
5438
5439 echo '
5440 #include "'${srcdir}'/src/'${opsysfile}'"
5441 #include "'${srcdir}'/src/'${machfile}'"
5442 #ifndef LIBS_MACHINE
5443 #define LIBS_MACHINE
5444 #endif
5445 #ifndef LIBS_SYSTEM
5446 #define LIBS_SYSTEM
5447 #endif
5448 #ifndef C_SWITCH_SYSTEM
5449 #define C_SWITCH_SYSTEM
5450 #endif
5451 #ifndef C_SWITCH_MACHINE
5452 #define C_SWITCH_MACHINE
5453 #endif
5454 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5455 configure___ c_switch_system=C_SWITCH_SYSTEM
5456 configure___ c_switch_machine=C_SWITCH_MACHINE
5457
5458 #ifndef LIB_X11_LIB
5459 #define LIB_X11_LIB -lX11
5460 #endif
5461
5462 #ifndef LIBX11_SYSTEM
5463 #define LIBX11_SYSTEM
5464 #endif
5465 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5466
5467 #ifdef UNEXEC
5468 configure___ unexec=UNEXEC
5469 #else
5470 configure___ unexec=unexec.o
5471 #endif
5472
5473 #ifdef SYSTEM_MALLOC
5474 configure___ system_malloc=yes
5475 #else
5476 configure___ system_malloc=no
5477 #endif
5478
5479 #ifdef USE_MMAP_FOR_BUFFERS
5480 configure___ use_mmap_for_buffers=yes
5481 #else
5482 configure___ use_mmap_for_buffers=no
5483 #endif
5484
5485 #ifndef C_DEBUG_SWITCH
5486 #define C_DEBUG_SWITCH -g
5487 #endif
5488
5489 #ifndef C_OPTIMIZE_SWITCH
5490 #ifdef __GNUC__
5491 #define C_OPTIMIZE_SWITCH -O2
5492 #else
5493 #define C_OPTIMIZE_SWITCH -O
5494 #endif
5495 #endif
5496
5497 #ifndef C_WARNINGS_SWITCH
5498 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5499 #endif
5500
5501 #ifndef LD_SWITCH_MACHINE
5502 #define LD_SWITCH_MACHINE
5503 #endif
5504
5505 #ifndef LD_SWITCH_SYSTEM
5506 #define LD_SWITCH_SYSTEM
5507 #endif
5508
5509 #ifndef LD_SWITCH_X_SITE_AUX
5510 #define LD_SWITCH_X_SITE_AUX
5511 #endif
5512
5513 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5514 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5515
5516 #ifdef THIS_IS_CONFIGURE
5517
5518 /* Get the CFLAGS for tests in configure. */
5519 #ifdef __GNUC__
5520 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5521 #else
5522 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5523 #endif
5524
5525 #else /* not THIS_IS_CONFIGURE */
5526
5527 /* Get the CFLAGS for real compilation. */
5528 #ifdef __GNUC__
5529 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5530 #else
5531 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5532 #endif
5533
5534 #endif /* not THIS_IS_CONFIGURE */
5535 ' > ${tempcname}
5536
5537 # The value of CPP is a quoted variable reference, so we need to do this
5538 # to get its actual value...
5539 CPP=`eval "echo $CPP"`
5540 eval `${CPP} -Isrc ${tempcname} \
5541 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5542 if test "x$SPECIFIED_CFLAGS" = x; then
5543 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5544 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5545 else
5546 REAL_CFLAGS="$CFLAGS"
5547 fi
5548 rm ${tempcname}
5549
5550 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5551
5552 ### Make sure subsequent tests use flags consistent with the build flags.
5553
5554 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5555 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5556 else
5557 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5558 fi
5559
5560
5561
5562 # Check whether --enable-largefile was given.
5563 if test "${enable_largefile+set}" = set; then
5564 enableval=$enable_largefile;
5565 fi
5566
5567 if test "$enable_largefile" != no; then
5568
5569 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5570 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5571 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574 ac_cv_sys_largefile_CC=no
5575 if test "$GCC" != yes; then
5576 ac_save_CC=$CC
5577 while :; do
5578 # IRIX 6.2 and later do not support large files by default,
5579 # so use the C compiler's -n32 option if that helps.
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5594 ? 1 : -1];
5595 int
5596 main ()
5597 {
5598
5599 ;
5600 return 0;
5601 }
5602 _ACEOF
5603 rm -f conftest.$ac_objext
5604 if { (ac_try="$ac_compile"
5605 case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608 esac
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_compile") 2>conftest.er1
5611 ac_status=$?
5612 grep -v '^ *+' conftest.er1 >conftest.err
5613 rm -f conftest.er1
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && {
5617 test -z "$ac_c_werror_flag" ||
5618 test ! -s conftest.err
5619 } && test -s conftest.$ac_objext; then
5620 break
5621 else
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5624
5625
5626 fi
5627
5628 rm -f core conftest.err conftest.$ac_objext
5629 CC="$CC -n32"
5630 rm -f conftest.$ac_objext
5631 if { (ac_try="$ac_compile"
5632 case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635 esac
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compile") 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } && {
5644 test -z "$ac_c_werror_flag" ||
5645 test ! -s conftest.err
5646 } && test -s conftest.$ac_objext; then
5647 ac_cv_sys_largefile_CC=' -n32'; break
5648 else
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5651
5652
5653 fi
5654
5655 rm -f core conftest.err conftest.$ac_objext
5656 break
5657 done
5658 CC=$ac_save_CC
5659 rm -f conftest.$ac_ext
5660 fi
5661 fi
5662 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5663 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5664 if test "$ac_cv_sys_largefile_CC" != no; then
5665 CC=$CC$ac_cv_sys_largefile_CC
5666 fi
5667
5668 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5669 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5670 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 while :; do
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 #include <sys/types.h>
5681 /* Check that off_t can represent 2**63 - 1 correctly.
5682 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5683 since some C++ compilers masquerading as C compilers
5684 incorrectly reject 9223372036854775807. */
5685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5686 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5687 && LARGE_OFF_T % 2147483647 == 1)
5688 ? 1 : -1];
5689 int
5690 main ()
5691 {
5692
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 rm -f conftest.$ac_objext
5698 if { (ac_try="$ac_compile"
5699 case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702 esac
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_compile") 2>conftest.er1
5705 ac_status=$?
5706 grep -v '^ *+' conftest.er1 >conftest.err
5707 rm -f conftest.er1
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } && {
5711 test -z "$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5713 } && test -s conftest.$ac_objext; then
5714 ac_cv_sys_file_offset_bits=no; break
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5718
5719
5720 fi
5721
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 #define _FILE_OFFSET_BITS 64
5730 #include <sys/types.h>
5731 /* Check that off_t can represent 2**63 - 1 correctly.
5732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5733 since some C++ compilers masquerading as C compilers
5734 incorrectly reject 9223372036854775807. */
5735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5737 && LARGE_OFF_T % 2147483647 == 1)
5738 ? 1 : -1];
5739 int
5740 main ()
5741 {
5742
5743 ;
5744 return 0;
5745 }
5746 _ACEOF
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5749 case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compile") 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } && {
5761 test -z "$ac_c_werror_flag" ||
5762 test ! -s conftest.err
5763 } && test -s conftest.$ac_objext; then
5764 ac_cv_sys_file_offset_bits=64; break
5765 else
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769
5770 fi
5771
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 ac_cv_sys_file_offset_bits=unknown
5774 break
5775 done
5776 fi
5777 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5778 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5779 case $ac_cv_sys_file_offset_bits in #(
5780 no | unknown) ;;
5781 *)
5782 cat >>confdefs.h <<_ACEOF
5783 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5784 _ACEOF
5785 ;;
5786 esac
5787 rm -f conftest*
5788 if test $ac_cv_sys_file_offset_bits = unknown; then
5789 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5790 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5791 if test "${ac_cv_sys_large_files+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 while :; do
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 #include <sys/types.h>
5802 /* Check that off_t can represent 2**63 - 1 correctly.
5803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5804 since some C++ compilers masquerading as C compilers
5805 incorrectly reject 9223372036854775807. */
5806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5808 && LARGE_OFF_T % 2147483647 == 1)
5809 ? 1 : -1];
5810 int
5811 main ()
5812 {
5813
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (ac_try="$ac_compile"
5820 case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_compile") 2>conftest.er1
5826 ac_status=$?
5827 grep -v '^ *+' conftest.er1 >conftest.err
5828 rm -f conftest.er1
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } && {
5832 test -z "$ac_c_werror_flag" ||
5833 test ! -s conftest.err
5834 } && test -s conftest.$ac_objext; then
5835 ac_cv_sys_large_files=no; break
5836 else
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5839
5840
5841 fi
5842
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 #define _LARGE_FILES 1
5851 #include <sys/types.h>
5852 /* Check that off_t can represent 2**63 - 1 correctly.
5853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5854 since some C++ compilers masquerading as C compilers
5855 incorrectly reject 9223372036854775807. */
5856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5858 && LARGE_OFF_T % 2147483647 == 1)
5859 ? 1 : -1];
5860 int
5861 main ()
5862 {
5863
5864 ;
5865 return 0;
5866 }
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest.$ac_objext; then
5885 ac_cv_sys_large_files=1; break
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890
5891 fi
5892
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 ac_cv_sys_large_files=unknown
5895 break
5896 done
5897 fi
5898 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5899 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5900 case $ac_cv_sys_large_files in #(
5901 no | unknown) ;;
5902 *)
5903 cat >>confdefs.h <<_ACEOF
5904 #define _LARGE_FILES $ac_cv_sys_large_files
5905 _ACEOF
5906 ;;
5907 esac
5908 rm -f conftest*
5909 fi
5910 fi
5911
5912
5913
5914 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5915 ### be located in either /usr/lib64 or /usr/lib.
5916 ### In some rare cases, /usr/lib64 exists but does not contain the
5917 ### relevant files (bug#1287). Hence test for crtn.o.
5918 case "${canonical}" in
5919 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5920 if test -e /usr/lib64/crtn.o; then
5921
5922 cat >>confdefs.h <<\_ACEOF
5923 #define HAVE_LIB64_DIR 1
5924 _ACEOF
5925
5926 fi
5927 esac
5928
5929
5930
5931
5932 if test "${with_sound}" != "no"; then
5933 # Sound support for GNU/Linux and the free BSDs.
5934
5935
5936
5937 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5938 do
5939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 fi
5946 ac_res=`eval echo '${'$as_ac_Header'}'`
5947 { echo "$as_me:$LINENO: result: $ac_res" >&5
5948 echo "${ECHO_T}$ac_res" >&6; }
5949 else
5950 # Is the header compilable?
5951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 $ac_includes_default
5960 #include <$ac_header>
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5964 case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967 esac
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_compile") 2>conftest.er1
5970 ac_status=$?
5971 grep -v '^ *+' conftest.er1 >conftest.err
5972 rm -f conftest.er1
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && {
5976 test -z "$ac_c_werror_flag" ||
5977 test ! -s conftest.err
5978 } && test -s conftest.$ac_objext; then
5979 ac_header_compiler=yes
5980 else
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 ac_header_compiler=no
5985 fi
5986
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5989 echo "${ECHO_T}$ac_header_compiler" >&6; }
5990
5991 # Is the header present?
5992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5994 cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h. */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 #include <$ac_header>
6001 _ACEOF
6002 if { (ac_try="$ac_cpp conftest.$ac_ext"
6003 case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } >/dev/null && {
6015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 }; then
6018 ac_header_preproc=yes
6019 else
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023 ac_header_preproc=no
6024 fi
6025
6026 rm -f conftest.err conftest.$ac_ext
6027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6028 echo "${ECHO_T}$ac_header_preproc" >&6; }
6029
6030 # So? What about this header?
6031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6032 yes:no: )
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6037 ac_header_preproc=yes
6038 ;;
6039 no:yes:* )
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6052
6053 ;;
6054 esac
6055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060 eval "$as_ac_Header=\$ac_header_preproc"
6061 fi
6062 ac_res=`eval echo '${'$as_ac_Header'}'`
6063 { echo "$as_me:$LINENO: result: $ac_res" >&5
6064 echo "${ECHO_T}$ac_res" >&6; }
6065
6066 fi
6067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6068 cat >>confdefs.h <<_ACEOF
6069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6070 _ACEOF
6071
6072 fi
6073
6074 done
6075
6076 # Emulation library used on NetBSD.
6077 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6078 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6079 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 ac_check_lib_save_LIBS=$LIBS
6083 LIBS="-lossaudio $LIBS"
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090
6091 /* Override any GCC internal prototype to avoid an error.
6092 Use char because int might match the return type of a GCC
6093 builtin and then its argument prototype would still apply. */
6094 #ifdef __cplusplus
6095 extern "C"
6096 #endif
6097 char _oss_ioctl ();
6098 int
6099 main ()
6100 {
6101 return _oss_ioctl ();
6102 ;
6103 return 0;
6104 }
6105 _ACEOF
6106 rm -f conftest.$ac_objext conftest$ac_exeext
6107 if { (ac_try="$ac_link"
6108 case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6111 esac
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_link") 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } && {
6120 test -z "$ac_c_werror_flag" ||
6121 test ! -s conftest.err
6122 } && test -s conftest$ac_exeext &&
6123 $as_test_x conftest$ac_exeext; then
6124 ac_cv_lib_ossaudio__oss_ioctl=yes
6125 else
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 ac_cv_lib_ossaudio__oss_ioctl=no
6130 fi
6131
6132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6133 conftest$ac_exeext conftest.$ac_ext
6134 LIBS=$ac_check_lib_save_LIBS
6135 fi
6136 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6137 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6138 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6139 LIBSOUND=-lossaudio
6140 else
6141 LIBSOUND=
6142 fi
6143
6144
6145
6146 ALSA_REQUIRED=1.0.0
6147 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6148
6149 succeeded=no
6150
6151 # Extract the first word of "pkg-config", so it can be a program name with args.
6152 set dummy pkg-config; ac_word=$2
6153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 case $PKG_CONFIG in
6159 [\\/]* | ?:[\\/]*)
6160 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6161 ;;
6162 *)
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6179 ;;
6180 esac
6181 fi
6182 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6183 if test -n "$PKG_CONFIG"; then
6184 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6185 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6186 else
6187 { echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6; }
6189 fi
6190
6191
6192
6193 if test "$PKG_CONFIG" = "no" ; then
6194 HAVE_ALSA=no
6195 else
6196 PKG_CONFIG_MIN_VERSION=0.9.0
6197 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6198 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6199 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6200
6201 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6202 { echo "$as_me:$LINENO: result: yes" >&5
6203 echo "${ECHO_T}yes" >&6; }
6204 succeeded=yes
6205
6206 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6207 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6208 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6209 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6210 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6211
6212 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6213 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6214 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6215 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6216 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6217 else
6218 { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6220 ALSA_CFLAGS=""
6221 ALSA_LIBS=""
6222 ## If we have a custom action on failure, don't print errors, but
6223 ## do set a variable so people can do so.
6224 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6225
6226 fi
6227
6228
6229
6230 else
6231 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6232 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6233 fi
6234 fi
6235
6236 if test $succeeded = yes; then
6237 HAVE_ALSA=yes
6238 else
6239 HAVE_ALSA=no
6240 fi
6241
6242 if test $HAVE_ALSA = yes; then
6243 SAVE_CFLAGS="$CFLAGS"
6244 SAVE_LDFLAGS="$LDFLAGS"
6245 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6246 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6247 cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h. */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 #include <asoundlib.h>
6254 int
6255 main ()
6256 {
6257 snd_lib_error_set_handler (0);
6258 ;
6259 return 0;
6260 }
6261 _ACEOF
6262 rm -f conftest.$ac_objext
6263 if { (ac_try="$ac_compile"
6264 case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_compile") 2>conftest.er1
6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest.$ac_objext; then
6279 emacs_alsa_normal=yes
6280 else
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6283
6284 emacs_alsa_normal=no
6285 fi
6286
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 if test "$emacs_alsa_normal" != yes; then
6289 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h. */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6295 #include <alsa/asoundlib.h>
6296 int
6297 main ()
6298 {
6299 snd_lib_error_set_handler (0);
6300 ;
6301 return 0;
6302 }
6303 _ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (ac_try="$ac_compile"
6306 case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_compile") 2>conftest.er1
6312 ac_status=$?
6313 grep -v '^ *+' conftest.er1 >conftest.err
6314 rm -f conftest.er1
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest.$ac_objext; then
6321 emacs_alsa_subdir=yes
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326 emacs_alsa_subdir=no
6327 fi
6328
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 if test "$emacs_alsa_subdir" != yes; then
6331 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6332 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6333 { (exit 1); exit 1; }; }
6334 fi
6335 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6336 fi
6337
6338 CFLAGS="$SAVE_CFLAGS"
6339 LDFLAGS="$SAVE_LDFLAGS"
6340 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6341 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6342
6343 cat >>confdefs.h <<\_ACEOF
6344 #define HAVE_ALSA 1
6345 _ACEOF
6346
6347 fi
6348
6349 fi
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6377 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6378 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6379 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6380 sys/utsname.h pwd.h
6381 do
6382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 fi
6389 ac_res=`eval echo '${'$as_ac_Header'}'`
6390 { echo "$as_me:$LINENO: result: $ac_res" >&5
6391 echo "${ECHO_T}$ac_res" >&6; }
6392 else
6393 # Is the header compilable?
6394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6396 cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h. */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 $ac_includes_default
6403 #include <$ac_header>
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6407 case "(($ac_try" in
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_compile") 2>conftest.er1
6413 ac_status=$?
6414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } && {
6419 test -z "$ac_c_werror_flag" ||
6420 test ! -s conftest.err
6421 } && test -s conftest.$ac_objext; then
6422 ac_header_compiler=yes
6423 else
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6426
6427 ac_header_compiler=no
6428 fi
6429
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6432 echo "${ECHO_T}$ac_header_compiler" >&6; }
6433
6434 # Is the header present?
6435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <$ac_header>
6444 _ACEOF
6445 if { (ac_try="$ac_cpp conftest.$ac_ext"
6446 case "(($ac_try" in
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6449 esac
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } >/dev/null && {
6458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6459 test ! -s conftest.err
6460 }; then
6461 ac_header_preproc=yes
6462 else
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 ac_header_preproc=no
6467 fi
6468
6469 rm -f conftest.err conftest.$ac_ext
6470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6471 echo "${ECHO_T}$ac_header_preproc" >&6; }
6472
6473 # So? What about this header?
6474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6475 yes:no: )
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6480 ac_header_preproc=yes
6481 ;;
6482 no:yes:* )
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6495
6496 ;;
6497 esac
6498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 eval "$as_ac_Header=\$ac_header_preproc"
6504 fi
6505 ac_res=`eval echo '${'$as_ac_Header'}'`
6506 { echo "$as_me:$LINENO: result: $ac_res" >&5
6507 echo "${ECHO_T}$ac_res" >&6; }
6508
6509 fi
6510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6511 cat >>confdefs.h <<_ACEOF
6512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6513 _ACEOF
6514
6515 fi
6516
6517 done
6518
6519
6520 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6521 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <sys/personality.h>
6529 int
6530 main ()
6531 {
6532 personality (PER_LINUX32)
6533 ;
6534 return 0;
6535 }
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6539 case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542 esac
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554 emacs_cv_personality_linux32=yes
6555 else
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559 emacs_cv_personality_linux32=no
6560 fi
6561
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6564 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6565
6566 if test $emacs_cv_personality_linux32 = yes; then
6567
6568 cat >>confdefs.h <<\_ACEOF
6569 #define HAVE_PERSONALITY_LINUX32 1
6570 _ACEOF
6571
6572 fi
6573
6574
6575 for ac_header in term.h
6576 do
6577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h. */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6589 #include <$ac_header>
6590 _ACEOF
6591 if { (ac_try="$ac_cpp conftest.$ac_ext"
6592 case "(($ac_try" in
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6595 esac
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } >/dev/null && {
6604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 }; then
6607 eval "$as_ac_Header=yes"
6608 else
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6611
6612 eval "$as_ac_Header=no"
6613 fi
6614
6615 rm -f conftest.err conftest.$ac_ext
6616 fi
6617 ac_res=`eval echo '${'$as_ac_Header'}'`
6618 { echo "$as_me:$LINENO: result: $ac_res" >&5
6619 echo "${ECHO_T}$ac_res" >&6; }
6620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6621 cat >>confdefs.h <<_ACEOF
6622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6623 _ACEOF
6624
6625 fi
6626
6627 done
6628
6629 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6630 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6631 if test "${ac_cv_header_stdc+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634 cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h. */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 #include <stdlib.h>
6641 #include <stdarg.h>
6642 #include <string.h>
6643 #include <float.h>
6644
6645 int
6646 main ()
6647 {
6648
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6655 case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_compile") 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && {
6667 test -z "$ac_c_werror_flag" ||
6668 test ! -s conftest.err
6669 } && test -s conftest.$ac_objext; then
6670 ac_cv_header_stdc=yes
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6674
6675 ac_cv_header_stdc=no
6676 fi
6677
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679
6680 if test $ac_cv_header_stdc = yes; then
6681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h. */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 #include <string.h>
6689
6690 _ACEOF
6691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6692 $EGREP "memchr" >/dev/null 2>&1; then
6693 :
6694 else
6695 ac_cv_header_stdc=no
6696 fi
6697 rm -f conftest*
6698
6699 fi
6700
6701 if test $ac_cv_header_stdc = yes; then
6702 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6703 cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h. */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 #include <stdlib.h>
6710
6711 _ACEOF
6712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6713 $EGREP "free" >/dev/null 2>&1; then
6714 :
6715 else
6716 ac_cv_header_stdc=no
6717 fi
6718 rm -f conftest*
6719
6720 fi
6721
6722 if test $ac_cv_header_stdc = yes; then
6723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6724 if test "$cross_compiling" = yes; then
6725 :
6726 else
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h. */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 #include <ctype.h>
6734 #include <stdlib.h>
6735 #if ((' ' & 0x0FF) == 0x020)
6736 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6737 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6738 #else
6739 # define ISLOWER(c) \
6740 (('a' <= (c) && (c) <= 'i') \
6741 || ('j' <= (c) && (c) <= 'r') \
6742 || ('s' <= (c) && (c) <= 'z'))
6743 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6744 #endif
6745
6746 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6747 int
6748 main ()
6749 {
6750 int i;
6751 for (i = 0; i < 256; i++)
6752 if (XOR (islower (i), ISLOWER (i))
6753 || toupper (i) != TOUPPER (i))
6754 return 2;
6755 return 0;
6756 }
6757 _ACEOF
6758 rm -f conftest$ac_exeext
6759 if { (ac_try="$ac_link"
6760 case "(($ac_try" in
6761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762 *) ac_try_echo=$ac_try;;
6763 esac
6764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765 (eval "$ac_link") 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6769 { (case "(($ac_try" in
6770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771 *) ac_try_echo=$ac_try;;
6772 esac
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774 (eval "$ac_try") 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 :
6779 else
6780 echo "$as_me: program exited with status $ac_status" >&5
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 ( exit $ac_status )
6785 ac_cv_header_stdc=no
6786 fi
6787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6788 fi
6789
6790
6791 fi
6792 fi
6793 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6794 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6795 if test $ac_cv_header_stdc = yes; then
6796
6797 cat >>confdefs.h <<\_ACEOF
6798 #define STDC_HEADERS 1
6799 _ACEOF
6800
6801 fi
6802
6803 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6804 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6805 if test "${ac_cv_header_time+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <sys/types.h>
6815 #include <sys/time.h>
6816 #include <time.h>
6817
6818 int
6819 main ()
6820 {
6821 if ((struct tm *) 0)
6822 return 0;
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6829 case "(($ac_try" in
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6832 esac
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834 (eval "$ac_compile") 2>conftest.er1
6835 ac_status=$?
6836 grep -v '^ *+' conftest.er1 >conftest.err
6837 rm -f conftest.er1
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } && {
6841 test -z "$ac_c_werror_flag" ||
6842 test ! -s conftest.err
6843 } && test -s conftest.$ac_objext; then
6844 ac_cv_header_time=yes
6845 else
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6848
6849 ac_cv_header_time=no
6850 fi
6851
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 fi
6854 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6855 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6856 if test $ac_cv_header_time = yes; then
6857
6858 cat >>confdefs.h <<\_ACEOF
6859 #define TIME_WITH_SYS_TIME 1
6860 _ACEOF
6861
6862 fi
6863
6864 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6865 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6866 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 $ac_includes_default
6876 int
6877 main ()
6878 {
6879 #ifndef sys_siglist
6880 (void) sys_siglist;
6881 #endif
6882
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6889 case "(($ac_try" in
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6892 esac
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.$ac_objext; then
6904 ac_cv_have_decl_sys_siglist=yes
6905 else
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909 ac_cv_have_decl_sys_siglist=no
6910 fi
6911
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 fi
6914 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6915 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6916 if test $ac_cv_have_decl_sys_siglist = yes; then
6917
6918 cat >>confdefs.h <<_ACEOF
6919 #define HAVE_DECL_SYS_SIGLIST 1
6920 _ACEOF
6921
6922
6923 else
6924 cat >>confdefs.h <<_ACEOF
6925 #define HAVE_DECL_SYS_SIGLIST 0
6926 _ACEOF
6927
6928
6929 fi
6930
6931
6932 if test $ac_cv_have_decl_sys_siglist != yes; then
6933 # For Tru64, at least:
6934 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6935 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6936 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 $ac_includes_default
6946 int
6947 main ()
6948 {
6949 #ifndef __sys_siglist
6950 (void) __sys_siglist;
6951 #endif
6952
6953 ;
6954 return 0;
6955 }
6956 _ACEOF
6957 rm -f conftest.$ac_objext
6958 if { (ac_try="$ac_compile"
6959 case "(($ac_try" in
6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6962 esac
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_compile") 2>conftest.er1
6965 ac_status=$?
6966 grep -v '^ *+' conftest.er1 >conftest.err
6967 rm -f conftest.er1
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && {
6971 test -z "$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6973 } && test -s conftest.$ac_objext; then
6974 ac_cv_have_decl___sys_siglist=yes
6975 else
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979 ac_cv_have_decl___sys_siglist=no
6980 fi
6981
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 fi
6984 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6985 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6986 if test $ac_cv_have_decl___sys_siglist = yes; then
6987
6988 cat >>confdefs.h <<_ACEOF
6989 #define HAVE_DECL___SYS_SIGLIST 1
6990 _ACEOF
6991
6992
6993 else
6994 cat >>confdefs.h <<_ACEOF
6995 #define HAVE_DECL___SYS_SIGLIST 0
6996 _ACEOF
6997
6998
6999 fi
7000
7001
7002 if test $ac_cv_have_decl___sys_siglist = yes; then
7003
7004 cat >>confdefs.h <<\_ACEOF
7005 #define sys_siglist __sys_siglist
7006 _ACEOF
7007
7008 fi
7009 fi
7010 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7011 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7012 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015 cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h. */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 #include <sys/types.h>
7022 #include <sys/wait.h>
7023 #ifndef WEXITSTATUS
7024 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7025 #endif
7026 #ifndef WIFEXITED
7027 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7028 #endif
7029
7030 int
7031 main ()
7032 {
7033 int s;
7034 wait (&s);
7035 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7042 case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7045 esac
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_compile") 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest.$ac_objext; then
7057 ac_cv_header_sys_wait_h=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7061
7062 ac_cv_header_sys_wait_h=no
7063 fi
7064
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 fi
7067 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7068 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7069 if test $ac_cv_header_sys_wait_h = yes; then
7070
7071 cat >>confdefs.h <<\_ACEOF
7072 #define HAVE_SYS_WAIT_H 1
7073 _ACEOF
7074
7075 fi
7076
7077
7078 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7079 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7080 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 #ifdef TIME_WITH_SYS_TIME
7090 #include <sys/time.h>
7091 #include <time.h>
7092 #else
7093 #ifdef HAVE_SYS_TIME_H
7094 #include <sys/time.h>
7095 #else
7096 #include <time.h>
7097 #endif
7098 #endif
7099 #ifdef HAVE_UTIME_H
7100 #include <utime.h>
7101 #endif
7102 int
7103 main ()
7104 {
7105 static struct utimbuf x; x.actime = x.modtime;
7106 ;
7107 return 0;
7108 }
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (ac_try="$ac_compile"
7112 case "(($ac_try" in
7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7115 esac
7116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7117 (eval "$ac_compile") 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest.$ac_objext; then
7127 emacs_cv_struct_utimbuf=yes
7128 else
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 emacs_cv_struct_utimbuf=no
7133 fi
7134
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 fi
7137 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7138 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7139 if test $emacs_cv_struct_utimbuf = yes; then
7140
7141 cat >>confdefs.h <<\_ACEOF
7142 #define HAVE_STRUCT_UTIMBUF 1
7143 _ACEOF
7144
7145 fi
7146
7147 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7148 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7149 if test "${ac_cv_type_signal+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152 cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h. */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 #include <sys/types.h>
7159 #include <signal.h>
7160
7161 int
7162 main ()
7163 {
7164 return *(signal (0, 0)) (0) == 1;
7165 ;
7166 return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (ac_try="$ac_compile"
7171 case "(($ac_try" in
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176 (eval "$ac_compile") 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } && {
7183 test -z "$ac_c_werror_flag" ||
7184 test ! -s conftest.err
7185 } && test -s conftest.$ac_objext; then
7186 ac_cv_type_signal=int
7187 else
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191 ac_cv_type_signal=void
7192 fi
7193
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 fi
7196 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7197 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7198
7199 cat >>confdefs.h <<_ACEOF
7200 #define RETSIGTYPE $ac_cv_type_signal
7201 _ACEOF
7202
7203
7204
7205 { echo "$as_me:$LINENO: checking for speed_t" >&5
7206 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7207 if test "${emacs_cv_speed_t+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210 cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h. */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 #include <termios.h>
7217 int
7218 main ()
7219 {
7220 speed_t x = 1;
7221 ;
7222 return 0;
7223 }
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (ac_try="$ac_compile"
7227 case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230 esac
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_compile") 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && {
7239 test -z "$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 } && test -s conftest.$ac_objext; then
7242 emacs_cv_speed_t=yes
7243 else
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247 emacs_cv_speed_t=no
7248 fi
7249
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251 fi
7252 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7253 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7254 if test $emacs_cv_speed_t = yes; then
7255
7256 cat >>confdefs.h <<\_ACEOF
7257 #define HAVE_SPEED_T 1
7258 _ACEOF
7259
7260 fi
7261
7262 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7263 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7264 if test "${emacs_cv_struct_timeval+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267 cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h. */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h. */
7273 #ifdef TIME_WITH_SYS_TIME
7274 #include <sys/time.h>
7275 #include <time.h>
7276 #else
7277 #ifdef HAVE_SYS_TIME_H
7278 #include <sys/time.h>
7279 #else
7280 #include <time.h>
7281 #endif
7282 #endif
7283 int
7284 main ()
7285 {
7286 static struct timeval x; x.tv_sec = x.tv_usec;
7287 ;
7288 return 0;
7289 }
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (ac_try="$ac_compile"
7293 case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296 esac
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_c_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7308 emacs_cv_struct_timeval=yes
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 emacs_cv_struct_timeval=no
7314 fi
7315
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 fi
7318 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7319 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7320 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7321 if test $emacs_cv_struct_timeval = yes; then
7322
7323 cat >>confdefs.h <<\_ACEOF
7324 #define HAVE_TIMEVAL 1
7325 _ACEOF
7326
7327 fi
7328
7329 { echo "$as_me:$LINENO: checking for struct exception" >&5
7330 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7331 if test "${emacs_cv_struct_exception+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334 cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h. */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 #include <math.h>
7341 int
7342 main ()
7343 {
7344 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7345 ;
7346 return 0;
7347 }
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (ac_try="$ac_compile"
7351 case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354 esac
7355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 emacs_cv_struct_exception=yes
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 emacs_cv_struct_exception=no
7372 fi
7373
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 fi
7376 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7377 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7378 HAVE_EXCEPTION=$emacs_cv_struct_exception
7379 if test $emacs_cv_struct_exception != yes; then
7380
7381 cat >>confdefs.h <<\_ACEOF
7382 #define NO_MATHERR 1
7383 _ACEOF
7384
7385 fi
7386
7387
7388 for ac_header in sys/socket.h
7389 do
7390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 fi
7397 ac_res=`eval echo '${'$as_ac_Header'}'`
7398 { echo "$as_me:$LINENO: result: $ac_res" >&5
7399 echo "${ECHO_T}$ac_res" >&6; }
7400 else
7401 # Is the header compilable?
7402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7404 cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h. */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 $ac_includes_default
7411 #include <$ac_header>
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (ac_try="$ac_compile"
7415 case "(($ac_try" in
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7418 esac
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420 (eval "$ac_compile") 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest.$ac_objext; then
7430 ac_header_compiler=yes
7431 else
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435 ac_header_compiler=no
7436 fi
7437
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7440 echo "${ECHO_T}$ac_header_compiler" >&6; }
7441
7442 # Is the header present?
7443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h. */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 #include <$ac_header>
7452 _ACEOF
7453 if { (ac_try="$ac_cpp conftest.$ac_ext"
7454 case "(($ac_try" in
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7457 esac
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } >/dev/null && {
7466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 }; then
7469 ac_header_preproc=yes
7470 else
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474 ac_header_preproc=no
7475 fi
7476
7477 rm -f conftest.err conftest.$ac_ext
7478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7479 echo "${ECHO_T}$ac_header_preproc" >&6; }
7480
7481 # So? What about this header?
7482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7483 yes:no: )
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7488 ac_header_preproc=yes
7489 ;;
7490 no:yes:* )
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7503
7504 ;;
7505 esac
7506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 eval "$as_ac_Header=\$ac_header_preproc"
7512 fi
7513 ac_res=`eval echo '${'$as_ac_Header'}'`
7514 { echo "$as_me:$LINENO: result: $ac_res" >&5
7515 echo "${ECHO_T}$ac_res" >&6; }
7516
7517 fi
7518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7519 cat >>confdefs.h <<_ACEOF
7520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7521 _ACEOF
7522
7523 fi
7524
7525 done
7526
7527
7528 for ac_header in net/if.h
7529 do
7530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h. */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 $ac_includes_default
7543 #if HAVE_SYS_SOCKET_H
7544 #include <sys/socket.h>
7545 #endif
7546
7547 #include <$ac_header>
7548 _ACEOF
7549 rm -f conftest.$ac_objext
7550 if { (ac_try="$ac_compile"
7551 case "(($ac_try" in
7552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553 *) ac_try_echo=$ac_try;;
7554 esac
7555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556 (eval "$ac_compile") 2>conftest.er1
7557 ac_status=$?
7558 grep -v '^ *+' conftest.er1 >conftest.err
7559 rm -f conftest.er1
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } && {
7563 test -z "$ac_c_werror_flag" ||
7564 test ! -s conftest.err
7565 } && test -s conftest.$ac_objext; then
7566 eval "$as_ac_Header=yes"
7567 else
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571 eval "$as_ac_Header=no"
7572 fi
7573
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 fi
7576 ac_res=`eval echo '${'$as_ac_Header'}'`
7577 { echo "$as_me:$LINENO: result: $ac_res" >&5
7578 echo "${ECHO_T}$ac_res" >&6; }
7579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7580 cat >>confdefs.h <<_ACEOF
7581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7582 _ACEOF
7583
7584 fi
7585
7586 done
7587
7588
7589 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7590 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7591 if test "${ac_cv_struct_tm+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h. */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 #include <sys/types.h>
7601 #include <time.h>
7602
7603 int
7604 main ()
7605 {
7606 struct tm tm;
7607 int *p = &tm.tm_sec;
7608 return !p;
7609 ;
7610 return 0;
7611 }
7612 _ACEOF
7613 rm -f conftest.$ac_objext
7614 if { (ac_try="$ac_compile"
7615 case "(($ac_try" in
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618 esac
7619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620 (eval "$ac_compile") 2>conftest.er1
7621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } && {
7627 test -z "$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7629 } && test -s conftest.$ac_objext; then
7630 ac_cv_struct_tm=time.h
7631 else
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7634
7635 ac_cv_struct_tm=sys/time.h
7636 fi
7637
7638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639 fi
7640 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7641 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7642 if test $ac_cv_struct_tm = sys/time.h; then
7643
7644 cat >>confdefs.h <<\_ACEOF
7645 #define TM_IN_SYS_TIME 1
7646 _ACEOF
7647
7648 fi
7649
7650 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7651 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7652 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655 cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h. */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 #include <sys/types.h>
7662 #include <$ac_cv_struct_tm>
7663
7664
7665 int
7666 main ()
7667 {
7668 static struct tm ac_aggr;
7669 if (ac_aggr.tm_zone)
7670 return 0;
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (ac_try="$ac_compile"
7677 case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_compile") 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest.$ac_objext; then
7692 ac_cv_member_struct_tm_tm_zone=yes
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697 cat >conftest.$ac_ext <<_ACEOF
7698 /* confdefs.h. */
7699 _ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 #include <sys/types.h>
7704 #include <$ac_cv_struct_tm>
7705
7706
7707 int
7708 main ()
7709 {
7710 static struct tm ac_aggr;
7711 if (sizeof ac_aggr.tm_zone)
7712 return 0;
7713 ;
7714 return 0;
7715 }
7716 _ACEOF
7717 rm -f conftest.$ac_objext
7718 if { (ac_try="$ac_compile"
7719 case "(($ac_try" in
7720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7721 *) ac_try_echo=$ac_try;;
7722 esac
7723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7724 (eval "$ac_compile") 2>conftest.er1
7725 ac_status=$?
7726 grep -v '^ *+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } && {
7731 test -z "$ac_c_werror_flag" ||
7732 test ! -s conftest.err
7733 } && test -s conftest.$ac_objext; then
7734 ac_cv_member_struct_tm_tm_zone=yes
7735 else
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 ac_cv_member_struct_tm_tm_zone=no
7740 fi
7741
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 fi
7744
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 fi
7747 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7748 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7749 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7750
7751 cat >>confdefs.h <<_ACEOF
7752 #define HAVE_STRUCT_TM_TM_ZONE 1
7753 _ACEOF
7754
7755
7756 fi
7757
7758 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7759
7760 cat >>confdefs.h <<\_ACEOF
7761 #define HAVE_TM_ZONE 1
7762 _ACEOF
7763
7764 else
7765 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7766 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7767 if test "${ac_cv_have_decl_tzname+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 #include <time.h>
7777
7778 int
7779 main ()
7780 {
7781 #ifndef tzname
7782 (void) tzname;
7783 #endif
7784
7785 ;
7786 return 0;
7787 }
7788 _ACEOF
7789 rm -f conftest.$ac_objext
7790 if { (ac_try="$ac_compile"
7791 case "(($ac_try" in
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7794 esac
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796 (eval "$ac_compile") 2>conftest.er1
7797 ac_status=$?
7798 grep -v '^ *+' conftest.er1 >conftest.err
7799 rm -f conftest.er1
7800 cat conftest.err >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); } && {
7803 test -z "$ac_c_werror_flag" ||
7804 test ! -s conftest.err
7805 } && test -s conftest.$ac_objext; then
7806 ac_cv_have_decl_tzname=yes
7807 else
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7810
7811 ac_cv_have_decl_tzname=no
7812 fi
7813
7814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815 fi
7816 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7817 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7818 if test $ac_cv_have_decl_tzname = yes; then
7819
7820 cat >>confdefs.h <<_ACEOF
7821 #define HAVE_DECL_TZNAME 1
7822 _ACEOF
7823
7824
7825 else
7826 cat >>confdefs.h <<_ACEOF
7827 #define HAVE_DECL_TZNAME 0
7828 _ACEOF
7829
7830
7831 fi
7832
7833
7834 { echo "$as_me:$LINENO: checking for tzname" >&5
7835 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7836 if test "${ac_cv_var_tzname+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 #include <time.h>
7846 #if !HAVE_DECL_TZNAME
7847 extern char *tzname[];
7848 #endif
7849
7850 int
7851 main ()
7852 {
7853 return tzname[0][0];
7854 ;
7855 return 0;
7856 }
7857 _ACEOF
7858 rm -f conftest.$ac_objext conftest$ac_exeext
7859 if { (ac_try="$ac_link"
7860 case "(($ac_try" in
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7863 esac
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_link") 2>conftest.er1
7866 ac_status=$?
7867 grep -v '^ *+' conftest.er1 >conftest.err
7868 rm -f conftest.er1
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } && {
7872 test -z "$ac_c_werror_flag" ||
7873 test ! -s conftest.err
7874 } && test -s conftest$ac_exeext &&
7875 $as_test_x conftest$ac_exeext; then
7876 ac_cv_var_tzname=yes
7877 else
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.$ac_ext >&5
7880
7881 ac_cv_var_tzname=no
7882 fi
7883
7884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7885 conftest$ac_exeext conftest.$ac_ext
7886 fi
7887 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7888 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7889 if test $ac_cv_var_tzname = yes; then
7890
7891 cat >>confdefs.h <<\_ACEOF
7892 #define HAVE_TZNAME 1
7893 _ACEOF
7894
7895 fi
7896 fi
7897
7898 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7899 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7900 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 #include <time.h>
7910
7911 int
7912 main ()
7913 {
7914 static struct tm ac_aggr;
7915 if (ac_aggr.tm_gmtoff)
7916 return 0;
7917 ;
7918 return 0;
7919 }
7920 _ACEOF
7921 rm -f conftest.$ac_objext
7922 if { (ac_try="$ac_compile"
7923 case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926 esac
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_compile") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest.$ac_objext; then
7938 ac_cv_member_struct_tm_tm_gmtoff=yes
7939 else
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7942
7943 cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h. */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 #include <time.h>
7950
7951 int
7952 main ()
7953 {
7954 static struct tm ac_aggr;
7955 if (sizeof ac_aggr.tm_gmtoff)
7956 return 0;
7957 ;
7958 return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7963 case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.$ac_objext; then
7978 ac_cv_member_struct_tm_tm_gmtoff=yes
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 ac_cv_member_struct_tm_tm_gmtoff=no
7984 fi
7985
7986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 fi
7988
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 fi
7991 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7992 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7993 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7994
7995 cat >>confdefs.h <<\_ACEOF
7996 #define HAVE_TM_GMTOFF 1
7997 _ACEOF
7998
7999 fi
8000
8001 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8002 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8003 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 #if HAVE_SYS_SOCKET_H
8014 #include <sys/socket.h>
8015 #endif
8016 #if HAVE_NET_IF_H
8017 #include <net/if.h>
8018 #endif
8019
8020 int
8021 main ()
8022 {
8023 static struct ifreq ac_aggr;
8024 if (ac_aggr.ifr_flags)
8025 return 0;
8026 ;
8027 return 0;
8028 }
8029 _ACEOF
8030 rm -f conftest.$ac_objext
8031 if { (ac_try="$ac_compile"
8032 case "(($ac_try" in
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8035 esac
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_compile") 2>conftest.er1
8038 ac_status=$?
8039 grep -v '^ *+' conftest.er1 >conftest.err
8040 rm -f conftest.er1
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && {
8044 test -z "$ac_c_werror_flag" ||
8045 test ! -s conftest.err
8046 } && test -s conftest.$ac_objext; then
8047 ac_cv_member_struct_ifreq_ifr_flags=yes
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052 cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h. */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 $ac_includes_default
8059 #if HAVE_SYS_SOCKET_H
8060 #include <sys/socket.h>
8061 #endif
8062 #if HAVE_NET_IF_H
8063 #include <net/if.h>
8064 #endif
8065
8066 int
8067 main ()
8068 {
8069 static struct ifreq ac_aggr;
8070 if (sizeof ac_aggr.ifr_flags)
8071 return 0;
8072 ;
8073 return 0;
8074 }
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (ac_try="$ac_compile"
8078 case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081 esac
8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_compile") 2>conftest.er1
8084 ac_status=$?
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } && {
8090 test -z "$ac_c_werror_flag" ||
8091 test ! -s conftest.err
8092 } && test -s conftest.$ac_objext; then
8093 ac_cv_member_struct_ifreq_ifr_flags=yes
8094 else
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 ac_cv_member_struct_ifreq_ifr_flags=no
8099 fi
8100
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 fi
8103
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 fi
8106 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8107 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8108 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8109
8110 cat >>confdefs.h <<_ACEOF
8111 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8112 _ACEOF
8113
8114
8115 fi
8116 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8117 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8118 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121 cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h. */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 $ac_includes_default
8128 #if HAVE_SYS_SOCKET_H
8129 #include <sys/socket.h>
8130 #endif
8131 #if HAVE_NET_IF_H
8132 #include <net/if.h>
8133 #endif
8134
8135 int
8136 main ()
8137 {
8138 static struct ifreq ac_aggr;
8139 if (ac_aggr.ifr_hwaddr)
8140 return 0;
8141 ;
8142 return 0;
8143 }
8144 _ACEOF
8145 rm -f conftest.$ac_objext
8146 if { (ac_try="$ac_compile"
8147 case "(($ac_try" in
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8150 esac
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_compile") 2>conftest.er1
8153 ac_status=$?
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest.$ac_objext; then
8162 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8163 else
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8166
8167 cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h. */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173 $ac_includes_default
8174 #if HAVE_SYS_SOCKET_H
8175 #include <sys/socket.h>
8176 #endif
8177 #if HAVE_NET_IF_H
8178 #include <net/if.h>
8179 #endif
8180
8181 int
8182 main ()
8183 {
8184 static struct ifreq ac_aggr;
8185 if (sizeof ac_aggr.ifr_hwaddr)
8186 return 0;
8187 ;
8188 return 0;
8189 }
8190 _ACEOF
8191 rm -f conftest.$ac_objext
8192 if { (ac_try="$ac_compile"
8193 case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_compile") 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest.$ac_objext; then
8208 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8214 fi
8215
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 fi
8218
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8222 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8223 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8224
8225 cat >>confdefs.h <<_ACEOF
8226 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8227 _ACEOF
8228
8229
8230 fi
8231 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8232 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8233 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236 cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h. */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 $ac_includes_default
8243 #if HAVE_SYS_SOCKET_H
8244 #include <sys/socket.h>
8245 #endif
8246 #if HAVE_NET_IF_H
8247 #include <net/if.h>
8248 #endif
8249
8250 int
8251 main ()
8252 {
8253 static struct ifreq ac_aggr;
8254 if (ac_aggr.ifr_netmask)
8255 return 0;
8256 ;
8257 return 0;
8258 }
8259 _ACEOF
8260 rm -f conftest.$ac_objext
8261 if { (ac_try="$ac_compile"
8262 case "(($ac_try" in
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8265 esac
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_compile") 2>conftest.er1
8268 ac_status=$?
8269 grep -v '^ *+' conftest.er1 >conftest.err
8270 rm -f conftest.er1
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && {
8274 test -z "$ac_c_werror_flag" ||
8275 test ! -s conftest.err
8276 } && test -s conftest.$ac_objext; then
8277 ac_cv_member_struct_ifreq_ifr_netmask=yes
8278 else
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8281
8282 cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h. */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288 $ac_includes_default
8289 #if HAVE_SYS_SOCKET_H
8290 #include <sys/socket.h>
8291 #endif
8292 #if HAVE_NET_IF_H
8293 #include <net/if.h>
8294 #endif
8295
8296 int
8297 main ()
8298 {
8299 static struct ifreq ac_aggr;
8300 if (sizeof ac_aggr.ifr_netmask)
8301 return 0;
8302 ;
8303 return 0;
8304 }
8305 _ACEOF
8306 rm -f conftest.$ac_objext
8307 if { (ac_try="$ac_compile"
8308 case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8311 esac
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_compile") 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && {
8320 test -z "$ac_c_werror_flag" ||
8321 test ! -s conftest.err
8322 } && test -s conftest.$ac_objext; then
8323 ac_cv_member_struct_ifreq_ifr_netmask=yes
8324 else
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328 ac_cv_member_struct_ifreq_ifr_netmask=no
8329 fi
8330
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 fi
8333
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 fi
8336 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8337 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8338 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8339
8340 cat >>confdefs.h <<_ACEOF
8341 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8342 _ACEOF
8343
8344
8345 fi
8346 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8347 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8348 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351 cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h. */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 $ac_includes_default
8358 #if HAVE_SYS_SOCKET_H
8359 #include <sys/socket.h>
8360 #endif
8361 #if HAVE_NET_IF_H
8362 #include <net/if.h>
8363 #endif
8364
8365 int
8366 main ()
8367 {
8368 static struct ifreq ac_aggr;
8369 if (ac_aggr.ifr_broadaddr)
8370 return 0;
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (ac_try="$ac_compile"
8377 case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_compile") 2>conftest.er1
8383 ac_status=$?
8384 grep -v '^ *+' conftest.er1 >conftest.err
8385 rm -f conftest.er1
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } && {
8389 test -z "$ac_c_werror_flag" ||
8390 test ! -s conftest.err
8391 } && test -s conftest.$ac_objext; then
8392 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8393 else
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8396
8397 cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h. */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 $ac_includes_default
8404 #if HAVE_SYS_SOCKET_H
8405 #include <sys/socket.h>
8406 #endif
8407 #if HAVE_NET_IF_H
8408 #include <net/if.h>
8409 #endif
8410
8411 int
8412 main ()
8413 {
8414 static struct ifreq ac_aggr;
8415 if (sizeof ac_aggr.ifr_broadaddr)
8416 return 0;
8417 ;
8418 return 0;
8419 }
8420 _ACEOF
8421 rm -f conftest.$ac_objext
8422 if { (ac_try="$ac_compile"
8423 case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426 esac
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && {
8435 test -z "$ac_c_werror_flag" ||
8436 test ! -s conftest.err
8437 } && test -s conftest.$ac_objext; then
8438 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8444 fi
8445
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 fi
8448
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 fi
8451 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8452 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8453 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8454
8455 cat >>confdefs.h <<_ACEOF
8456 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8457 _ACEOF
8458
8459
8460 fi
8461 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8462 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8463 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 $ac_includes_default
8473 #if HAVE_SYS_SOCKET_H
8474 #include <sys/socket.h>
8475 #endif
8476 #if HAVE_NET_IF_H
8477 #include <net/if.h>
8478 #endif
8479
8480 int
8481 main ()
8482 {
8483 static struct ifreq ac_aggr;
8484 if (ac_aggr.ifr_addr)
8485 return 0;
8486 ;
8487 return 0;
8488 }
8489 _ACEOF
8490 rm -f conftest.$ac_objext
8491 if { (ac_try="$ac_compile"
8492 case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495 esac
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_compile") 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
8506 } && test -s conftest.$ac_objext; then
8507 ac_cv_member_struct_ifreq_ifr_addr=yes
8508 else
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8511
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 $ac_includes_default
8519 #if HAVE_SYS_SOCKET_H
8520 #include <sys/socket.h>
8521 #endif
8522 #if HAVE_NET_IF_H
8523 #include <net/if.h>
8524 #endif
8525
8526 int
8527 main ()
8528 {
8529 static struct ifreq ac_aggr;
8530 if (sizeof ac_aggr.ifr_addr)
8531 return 0;
8532 ;
8533 return 0;
8534 }
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (ac_try="$ac_compile"
8538 case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541 esac
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_compile") 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } && {
8550 test -z "$ac_c_werror_flag" ||
8551 test ! -s conftest.err
8552 } && test -s conftest.$ac_objext; then
8553 ac_cv_member_struct_ifreq_ifr_addr=yes
8554 else
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558 ac_cv_member_struct_ifreq_ifr_addr=no
8559 fi
8560
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 fi
8563
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 fi
8566 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8567 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8568 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8569
8570 cat >>confdefs.h <<_ACEOF
8571 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8572 _ACEOF
8573
8574
8575 fi
8576
8577
8578
8579 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8580 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8581 if test "$ac_cv_prog_cc_c89" != no; then
8582 { echo "$as_me:$LINENO: result: yes" >&5
8583 echo "${ECHO_T}yes" >&6; }
8584
8585 cat >>confdefs.h <<\_ACEOF
8586 #define PROTOTYPES 1
8587 _ACEOF
8588
8589
8590 cat >>confdefs.h <<\_ACEOF
8591 #define __PROTOTYPES 1
8592 _ACEOF
8593
8594 else
8595 { echo "$as_me:$LINENO: result: no" >&5
8596 echo "${ECHO_T}no" >&6; }
8597 fi
8598
8599 { echo "$as_me:$LINENO: checking for working volatile" >&5
8600 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8601 if test "${ac_cv_c_volatile+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h. */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610
8611 int
8612 main ()
8613 {
8614
8615 volatile int x;
8616 int * volatile y = (int *) 0;
8617 return !x && !y;
8618 ;
8619 return 0;
8620 }
8621 _ACEOF
8622 rm -f conftest.$ac_objext
8623 if { (ac_try="$ac_compile"
8624 case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_compile") 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && {
8636 test -z "$ac_c_werror_flag" ||
8637 test ! -s conftest.err
8638 } && test -s conftest.$ac_objext; then
8639 ac_cv_c_volatile=yes
8640 else
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644 ac_cv_c_volatile=no
8645 fi
8646
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 fi
8649 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8650 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8651 if test $ac_cv_c_volatile = no; then
8652
8653 cat >>confdefs.h <<\_ACEOF
8654 #define volatile
8655 _ACEOF
8656
8657 fi
8658
8659 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8660 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8661 if test "${ac_cv_c_const+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h. */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670
8671 int
8672 main ()
8673 {
8674 /* FIXME: Include the comments suggested by Paul. */
8675 #ifndef __cplusplus
8676 /* Ultrix mips cc rejects this. */
8677 typedef int charset[2];
8678 const charset cs;
8679 /* SunOS 4.1.1 cc rejects this. */
8680 char const *const *pcpcc;
8681 char **ppc;
8682 /* NEC SVR4.0.2 mips cc rejects this. */
8683 struct point {int x, y;};
8684 static struct point const zero = {0,0};
8685 /* AIX XL C 1.02.0.0 rejects this.
8686 It does not let you subtract one const X* pointer from another in
8687 an arm of an if-expression whose if-part is not a constant
8688 expression */
8689 const char *g = "string";
8690 pcpcc = &g + (g ? g-g : 0);
8691 /* HPUX 7.0 cc rejects these. */
8692 ++pcpcc;
8693 ppc = (char**) pcpcc;
8694 pcpcc = (char const *const *) ppc;
8695 { /* SCO 3.2v4 cc rejects this. */
8696 char *t;
8697 char const *s = 0 ? (char *) 0 : (char const *) 0;
8698
8699 *t++ = 0;
8700 if (s) return 0;
8701 }
8702 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8703 int x[] = {25, 17};
8704 const int *foo = &x[0];
8705 ++foo;
8706 }
8707 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8708 typedef const int *iptr;
8709 iptr p = 0;
8710 ++p;
8711 }
8712 { /* AIX XL C 1.02.0.0 rejects this saying
8713 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8714 struct s { int j; const int *ap[3]; };
8715 struct s *b; b->j = 5;
8716 }
8717 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8718 const int foo = 10;
8719 if (!foo) return 0;
8720 }
8721 return !cs[0] && !zero.x;
8722 #endif
8723
8724 ;
8725 return 0;
8726 }
8727 _ACEOF
8728 rm -f conftest.$ac_objext
8729 if { (ac_try="$ac_compile"
8730 case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733 esac
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_compile") 2>conftest.er1
8736 ac_status=$?
8737 grep -v '^ *+' conftest.er1 >conftest.err
8738 rm -f conftest.er1
8739 cat conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } && {
8742 test -z "$ac_c_werror_flag" ||
8743 test ! -s conftest.err
8744 } && test -s conftest.$ac_objext; then
8745 ac_cv_c_const=yes
8746 else
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 ac_cv_c_const=no
8751 fi
8752
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 fi
8755 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8756 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8757 if test $ac_cv_c_const = no; then
8758
8759 cat >>confdefs.h <<\_ACEOF
8760 #define const
8761 _ACEOF
8762
8763 fi
8764
8765 { echo "$as_me:$LINENO: checking for void * support" >&5
8766 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8767 if test "${emacs_cv_void_star+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776
8777 int
8778 main ()
8779 {
8780 void * foo;
8781 ;
8782 return 0;
8783 }
8784 _ACEOF
8785 rm -f conftest.$ac_objext
8786 if { (ac_try="$ac_compile"
8787 case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790 esac
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_compile") 2>conftest.er1
8793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } && {
8799 test -z "$ac_c_werror_flag" ||
8800 test ! -s conftest.err
8801 } && test -s conftest.$ac_objext; then
8802 emacs_cv_void_star=yes
8803 else
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8806
8807 emacs_cv_void_star=no
8808 fi
8809
8810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 fi
8812 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8813 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8814 if test $emacs_cv_void_star = yes; then
8815 cat >>confdefs.h <<\_ACEOF
8816 #define POINTER_TYPE void
8817 _ACEOF
8818
8819 else
8820 cat >>confdefs.h <<\_ACEOF
8821 #define POINTER_TYPE char
8822 _ACEOF
8823
8824 fi
8825
8826
8827
8828
8829
8830 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8831 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8832 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8833 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 cat >conftest.make <<\_ACEOF
8837 SHELL = /bin/sh
8838 all:
8839 @echo '@@@%%%=$(MAKE)=@@@%%%'
8840 _ACEOF
8841 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8842 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8843 *@@@%%%=?*=@@@%%%*)
8844 eval ac_cv_prog_make_${ac_make}_set=yes;;
8845 *)
8846 eval ac_cv_prog_make_${ac_make}_set=no;;
8847 esac
8848 rm -f conftest.make
8849 fi
8850 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8851 { echo "$as_me:$LINENO: result: yes" >&5
8852 echo "${ECHO_T}yes" >&6; }
8853 SET_MAKE=
8854 else
8855 { echo "$as_me:$LINENO: result: no" >&5
8856 echo "${ECHO_T}no" >&6; }
8857 SET_MAKE="MAKE=${MAKE-make}"
8858 fi
8859
8860
8861 { echo "$as_me:$LINENO: checking for long file names" >&5
8862 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8863 if test "${ac_cv_sys_long_file_names+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 ac_cv_sys_long_file_names=yes
8867 # Test for long file names in all the places we know might matter:
8868 # . the current directory, where building will happen
8869 # $prefix/lib where we will be installing things
8870 # $exec_prefix/lib likewise
8871 # $TMPDIR if set, where it might want to write temporary files
8872 # /tmp where it might want to write temporary files
8873 # /var/tmp likewise
8874 # /usr/tmp likewise
8875 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8876 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8877 # in the usual case where exec_prefix is '${prefix}'.
8878 case $ac_dir in #(
8879 . | /* | ?:[\\/]*) ;; #(
8880 *) continue;;
8881 esac
8882 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8883 ac_xdir=$ac_dir/cf$$
8884 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8885 ac_tf1=$ac_xdir/conftest9012345
8886 ac_tf2=$ac_xdir/conftest9012346
8887 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8888 ac_cv_sys_long_file_names=no
8889 rm -f -r "$ac_xdir" 2>/dev/null
8890 test $ac_cv_sys_long_file_names = no && break
8891 done
8892 fi
8893 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8894 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8895 if test $ac_cv_sys_long_file_names = yes; then
8896
8897 cat >>confdefs.h <<\_ACEOF
8898 #define HAVE_LONG_FILE_NAMES 1
8899 _ACEOF
8900
8901 fi
8902
8903
8904 #### Choose a window system.
8905
8906 { echo "$as_me:$LINENO: checking for X" >&5
8907 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8908
8909
8910 # Check whether --with-x was given.
8911 if test "${with_x+set}" = set; then
8912 withval=$with_x;
8913 fi
8914
8915 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8916 if test "x$with_x" = xno; then
8917 # The user explicitly disabled X.
8918 have_x=disabled
8919 else
8920 case $x_includes,$x_libraries in #(
8921 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8922 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8923 { (exit 1); exit 1; }; };; #(
8924 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 else
8927 # One or both of the vars are not set, and there is no cached value.
8928 ac_x_includes=no ac_x_libraries=no
8929 rm -f -r conftest.dir
8930 if mkdir conftest.dir; then
8931 cd conftest.dir
8932 cat >Imakefile <<'_ACEOF'
8933 incroot:
8934 @echo incroot='${INCROOT}'
8935 usrlibdir:
8936 @echo usrlibdir='${USRLIBDIR}'
8937 libdir:
8938 @echo libdir='${LIBDIR}'
8939 _ACEOF
8940 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8942 for ac_var in incroot usrlibdir libdir; do
8943 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8944 done
8945 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8946 for ac_extension in a so sl; do
8947 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8948 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8949 ac_im_usrlibdir=$ac_im_libdir; break
8950 fi
8951 done
8952 # Screen out bogus values from the imake configuration. They are
8953 # bogus both because they are the default anyway, and because
8954 # using them would break gcc on systems where it needs fixed includes.
8955 case $ac_im_incroot in
8956 /usr/include) ac_x_includes= ;;
8957 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8958 esac
8959 case $ac_im_usrlibdir in
8960 /usr/lib | /lib) ;;
8961 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8962 esac
8963 fi
8964 cd ..
8965 rm -f -r conftest.dir
8966 fi
8967
8968 # Standard set of common directories for X headers.
8969 # Check X11 before X11Rn because it is often a symlink to the current release.
8970 ac_x_header_dirs='
8971 /usr/X11/include
8972 /usr/X11R6/include
8973 /usr/X11R5/include
8974 /usr/X11R4/include
8975
8976 /usr/include/X11
8977 /usr/include/X11R6
8978 /usr/include/X11R5
8979 /usr/include/X11R4
8980
8981 /usr/local/X11/include
8982 /usr/local/X11R6/include
8983 /usr/local/X11R5/include
8984 /usr/local/X11R4/include
8985
8986 /usr/local/include/X11
8987 /usr/local/include/X11R6
8988 /usr/local/include/X11R5
8989 /usr/local/include/X11R4
8990
8991 /usr/X386/include
8992 /usr/x386/include
8993 /usr/XFree86/include/X11
8994
8995 /usr/include
8996 /usr/local/include
8997 /usr/unsupported/include
8998 /usr/athena/include
8999 /usr/local/x11r5/include
9000 /usr/lpp/Xamples/include
9001
9002 /usr/openwin/include
9003 /usr/openwin/share/include'
9004
9005 if test "$ac_x_includes" = no; then
9006 # Guess where to find include files, by looking for Xlib.h.
9007 # First, try using that file with no special directory specified.
9008 cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h. */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 #include <X11/Xlib.h>
9015 _ACEOF
9016 if { (ac_try="$ac_cpp conftest.$ac_ext"
9017 case "(($ac_try" in
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9020 esac
9021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9023 ac_status=$?
9024 grep -v '^ *+' conftest.er1 >conftest.err
9025 rm -f conftest.er1
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } >/dev/null && {
9029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9030 test ! -s conftest.err
9031 }; then
9032 # We can compile using X headers with no special include directory.
9033 ac_x_includes=
9034 else
9035 echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9037
9038 for ac_dir in $ac_x_header_dirs; do
9039 if test -r "$ac_dir/X11/Xlib.h"; then
9040 ac_x_includes=$ac_dir
9041 break
9042 fi
9043 done
9044 fi
9045
9046 rm -f conftest.err conftest.$ac_ext
9047 fi # $ac_x_includes = no
9048
9049 if test "$ac_x_libraries" = no; then
9050 # Check for the libraries.
9051 # See if we find them without any special options.
9052 # Don't add to $LIBS permanently.
9053 ac_save_LIBS=$LIBS
9054 LIBS="-lX11 $LIBS"
9055 cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h. */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061 #include <X11/Xlib.h>
9062 int
9063 main ()
9064 {
9065 XrmInitialize ()
9066 ;
9067 return 0;
9068 }
9069 _ACEOF
9070 rm -f conftest.$ac_objext conftest$ac_exeext
9071 if { (ac_try="$ac_link"
9072 case "(($ac_try" in
9073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074 *) ac_try_echo=$ac_try;;
9075 esac
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077 (eval "$ac_link") 2>conftest.er1
9078 ac_status=$?
9079 grep -v '^ *+' conftest.er1 >conftest.err
9080 rm -f conftest.er1
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } && {
9084 test -z "$ac_c_werror_flag" ||
9085 test ! -s conftest.err
9086 } && test -s conftest$ac_exeext &&
9087 $as_test_x conftest$ac_exeext; then
9088 LIBS=$ac_save_LIBS
9089 # We can link X programs with no special library path.
9090 ac_x_libraries=
9091 else
9092 echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9094
9095 LIBS=$ac_save_LIBS
9096 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9097 do
9098 # Don't even attempt the hair of trying to link an X program!
9099 for ac_extension in a so sl; do
9100 if test -r "$ac_dir/libX11.$ac_extension"; then
9101 ac_x_libraries=$ac_dir
9102 break 2
9103 fi
9104 done
9105 done
9106 fi
9107
9108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9109 conftest$ac_exeext conftest.$ac_ext
9110 fi # $ac_x_libraries = no
9111
9112 case $ac_x_includes,$ac_x_libraries in #(
9113 no,* | *,no | *\'*)
9114 # Didn't find X, or a directory has "'" in its name.
9115 ac_cv_have_x="have_x=no";; #(
9116 *)
9117 # Record where we found X for the cache.
9118 ac_cv_have_x="have_x=yes\
9119 ac_x_includes='$ac_x_includes'\
9120 ac_x_libraries='$ac_x_libraries'"
9121 esac
9122 fi
9123 ;; #(
9124 *) have_x=yes;;
9125 esac
9126 eval "$ac_cv_have_x"
9127 fi # $with_x != no
9128
9129 if test "$have_x" != yes; then
9130 { echo "$as_me:$LINENO: result: $have_x" >&5
9131 echo "${ECHO_T}$have_x" >&6; }
9132 no_x=yes
9133 else
9134 # If each of the values was on the command line, it overrides each guess.
9135 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9136 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9137 # Update the cache value to reflect the command line values.
9138 ac_cv_have_x="have_x=yes\
9139 ac_x_includes='$x_includes'\
9140 ac_x_libraries='$x_libraries'"
9141 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9142 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9143 fi
9144
9145 if test "$no_x" = yes; then
9146 window_system=none
9147 else
9148 window_system=x11
9149 fi
9150
9151 ## Workaround for bug in autoconf <= 2.62.
9152 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9153 ## No need to do anything special for these standard directories.
9154 ## This is an experiment, take it out if it causes problems.
9155 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9156
9157 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9158
9159 fi
9160
9161 if test "${x_libraries}" != NONE; then
9162 if test -n "${x_libraries}"; then
9163 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9164 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9165 fi
9166 x_default_search_path=""
9167 x_search_path=${x_libraries}
9168 if test -z "${x_search_path}"; then
9169 x_search_path=/usr/lib
9170 fi
9171 for x_library in `echo ${x_search_path}: | \
9172 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9173 x_search_path="\
9174 ${x_library}/X11/%L/%T/%N%C%S:\
9175 ${x_library}/X11/%l/%T/%N%C%S:\
9176 ${x_library}/X11/%T/%N%C%S:\
9177 ${x_library}/X11/%L/%T/%N%S:\
9178 ${x_library}/X11/%l/%T/%N%S:\
9179 ${x_library}/X11/%T/%N%S"
9180 if test x"${x_default_search_path}" = x; then
9181 x_default_search_path=${x_search_path}
9182 else
9183 x_default_search_path="${x_search_path}:${x_default_search_path}"
9184 fi
9185 done
9186 fi
9187 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9188 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9189 fi
9190
9191 if test x"${x_includes}" = x; then
9192 bitmapdir=/usr/include/X11/bitmaps
9193 else
9194 # accumulate include directories that have X11 bitmap subdirectories
9195 bmd_acc="dummyval"
9196 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9197 if test -d "${bmd}/X11/bitmaps"; then
9198 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9199 fi
9200 if test -d "${bmd}/bitmaps"; then
9201 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9202 fi
9203 done
9204 if test ${bmd_acc} != "dummyval"; then
9205 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9206 fi
9207 fi
9208
9209 HAVE_NS=no
9210 NS_IMPL_COCOA=no
9211 NS_IMPL_GNUSTEP=no
9212 tmp_CPPFLAGS="$CPPFLAGS"
9213 tmp_CFLAGS="$CFLAGS"
9214 CPPFLAGS="$CPPFLAGS -x objective-c"
9215 CFLAGS="$CFLAGS -x objective-c"
9216 if test "${with_ns}" != no; then
9217 if test "${opsys}" = darwin; then
9218 NS_IMPL_COCOA=yes
9219 ns_appdir=`pwd`/nextstep/Emacs.app
9220 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9221 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9222 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9223 elif test -f $GNUSTEP_CONFIG_FILE; then
9224 NS_IMPL_GNUSTEP=yes
9225 ns_appdir=`pwd`/nextstep/Emacs.app
9226 ns_appbindir=`pwd`/nextstep/Emacs.app
9227 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9228 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9229 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9230 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9231 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9232 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9233 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9234 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9235 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9236 fi
9237 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9238 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9239 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9240 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 fi
9243 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9244 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9245 else
9246 # Is the header compilable?
9247 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9248 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9249 cat >conftest.$ac_ext <<_ACEOF
9250 /* confdefs.h. */
9251 _ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h. */
9255 $ac_includes_default
9256 #include <AppKit/AppKit.h>
9257 _ACEOF
9258 rm -f conftest.$ac_objext
9259 if { (ac_try="$ac_compile"
9260 case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263 esac
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
9275 ac_header_compiler=yes
9276 else
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 ac_header_compiler=no
9281 fi
9282
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9285 echo "${ECHO_T}$ac_header_compiler" >&6; }
9286
9287 # Is the header present?
9288 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9289 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9290 cat >conftest.$ac_ext <<_ACEOF
9291 /* confdefs.h. */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9296 #include <AppKit/AppKit.h>
9297 _ACEOF
9298 if { (ac_try="$ac_cpp conftest.$ac_ext"
9299 case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302 esac
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } >/dev/null && {
9311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9312 test ! -s conftest.err
9313 }; then
9314 ac_header_preproc=yes
9315 else
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319 ac_header_preproc=no
9320 fi
9321
9322 rm -f conftest.err conftest.$ac_ext
9323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9324 echo "${ECHO_T}$ac_header_preproc" >&6; }
9325
9326 # So? What about this header?
9327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9328 yes:no: )
9329 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9330 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9331 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9332 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9333 ac_header_preproc=yes
9334 ;;
9335 no:yes:* )
9336 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9337 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9338 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9339 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9341 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9343 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9345 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9347 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9348
9349 ;;
9350 esac
9351 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9352 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9353 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9357 fi
9358 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9359 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9360
9361 fi
9362 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9363 HAVE_NS=yes
9364 else
9365 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9366 files are missing or cannot be compiled." >&5
9367 echo "$as_me: error: \`--with-ns' was specified, but the include
9368 files are missing or cannot be compiled." >&2;}
9369 { (exit 1); exit 1; }; }
9370 fi
9371
9372
9373 NS_HAVE_NSINTEGER=yes
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h. */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 #include <Foundation/NSObjCRuntime.h>
9381 int
9382 main ()
9383 {
9384 NSInteger i;
9385 ;
9386 return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest.$ac_objext
9390 if { (ac_try="$ac_compile"
9391 case "(($ac_try" in
9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393 *) ac_try_echo=$ac_try;;
9394 esac
9395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9396 (eval "$ac_compile") 2>conftest.er1
9397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } && {
9403 test -z "$ac_c_werror_flag" ||
9404 test ! -s conftest.err
9405 } && test -s conftest.$ac_objext; then
9406 ns_have_nsinteger=yes
9407 else
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9410
9411 ns_have_nsinteger=no
9412 fi
9413
9414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415 if test $ns_have_nsinteger = no; then
9416 NS_HAVE_NSINTEGER=no
9417 fi
9418 fi
9419 if test "${HAVE_NS}" = yes; then
9420 window_system=nextstep
9421 with_xft=no
9422 with_freetype=no
9423 # set up packaging dirs
9424 exec_prefix=${ns_appbindir}
9425 libexecdir=${ns_appbindir}/libexec
9426 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9427 prefix=${ns_appresdir}
9428 fi
9429 fi
9430 CFLAGS="$tmp_CFLAGS"
9431 CPPFLAGS="$tmp_CPPFLAGS"
9432
9433 case "${window_system}" in
9434 x11 )
9435 HAVE_X_WINDOWS=yes
9436 HAVE_X11=yes
9437 case "${with_x_toolkit}" in
9438 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9439 motif ) USE_X_TOOLKIT=MOTIF ;;
9440 gtk ) with_gtk=yes
9441 USE_X_TOOLKIT=none ;;
9442 no ) USE_X_TOOLKIT=none ;;
9443 * ) USE_X_TOOLKIT=maybe ;;
9444 esac
9445 ;;
9446 nextstep | none )
9447 HAVE_X_WINDOWS=no
9448 HAVE_X11=no
9449 USE_X_TOOLKIT=none
9450 ;;
9451 esac
9452
9453 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9454 # Extract the first word of "X", so it can be a program name with args.
9455 set dummy X; ac_word=$2
9456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9458 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461 if test -n "$HAVE_XSERVER"; then
9462 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9463 else
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $PATH
9466 do
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9471 ac_cv_prog_HAVE_XSERVER="true"
9472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 break 2
9474 fi
9475 done
9476 done
9477 IFS=$as_save_IFS
9478
9479 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9480 fi
9481 fi
9482 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9483 if test -n "$HAVE_XSERVER"; then
9484 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9485 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9486 else
9487 { echo "$as_me:$LINENO: result: no" >&5
9488 echo "${ECHO_T}no" >&6; }
9489 fi
9490
9491
9492 if test "$HAVE_XSERVER" = true ||
9493 test -n "$DISPLAY" ||
9494 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9495 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9496 were found. You should install the relevant development files for X
9497 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9498 sure you have development files for image handling, i.e.
9499 tiff, gif, jpeg, png and xpm.
9500 If you are sure you want Emacs compiled without X window support, pass
9501 --without-x
9502 to configure." >&5
9503 echo "$as_me: error: You seem to be running X, but no X development libraries
9504 were found. You should install the relevant development files for X
9505 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9506 sure you have development files for image handling, i.e.
9507 tiff, gif, jpeg, png and xpm.
9508 If you are sure you want Emacs compiled without X window support, pass
9509 --without-x
9510 to configure." >&2;}
9511 { (exit 1); exit 1; }; }
9512 fi
9513 fi
9514
9515 ### If we're using X11, we should use the X menu package.
9516 HAVE_MENUS=no
9517 case ${HAVE_X11} in
9518 yes ) HAVE_MENUS=yes ;;
9519 esac
9520
9521 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9522 # Assume not, until told otherwise.
9523 GNU_MALLOC=yes
9524 doug_lea_malloc=yes
9525 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9526 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9527 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530 cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h. */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9538 #define malloc_get_state innocuous_malloc_get_state
9539
9540 /* System header to define __stub macros and hopefully few prototypes,
9541 which can conflict with char malloc_get_state (); below.
9542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543 <limits.h> exists even on freestanding compilers. */
9544
9545 #ifdef __STDC__
9546 # include <limits.h>
9547 #else
9548 # include <assert.h>
9549 #endif
9550
9551 #undef malloc_get_state
9552
9553 /* Override any GCC internal prototype to avoid an error.
9554 Use char because int might match the return type of a GCC
9555 builtin and then its argument prototype would still apply. */
9556 #ifdef __cplusplus
9557 extern "C"
9558 #endif
9559 char malloc_get_state ();
9560 /* The GNU C library defines this for functions which it implements
9561 to always fail with ENOSYS. Some functions are actually named
9562 something starting with __ and the normal name is an alias. */
9563 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9564 choke me
9565 #endif
9566
9567 int
9568 main ()
9569 {
9570 return malloc_get_state ();
9571 ;
9572 return 0;
9573 }
9574 _ACEOF
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (ac_try="$ac_link"
9577 case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_link") 2>conftest.er1
9583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && {
9589 test -z "$ac_c_werror_flag" ||
9590 test ! -s conftest.err
9591 } && test -s conftest$ac_exeext &&
9592 $as_test_x conftest$ac_exeext; then
9593 ac_cv_func_malloc_get_state=yes
9594 else
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9597
9598 ac_cv_func_malloc_get_state=no
9599 fi
9600
9601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9602 conftest$ac_exeext conftest.$ac_ext
9603 fi
9604 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9605 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9606 if test $ac_cv_func_malloc_get_state = yes; then
9607 :
9608 else
9609 doug_lea_malloc=no
9610 fi
9611
9612 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9613 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9614 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617 cat >conftest.$ac_ext <<_ACEOF
9618 /* confdefs.h. */
9619 _ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9625 #define malloc_set_state innocuous_malloc_set_state
9626
9627 /* System header to define __stub macros and hopefully few prototypes,
9628 which can conflict with char malloc_set_state (); below.
9629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9630 <limits.h> exists even on freestanding compilers. */
9631
9632 #ifdef __STDC__
9633 # include <limits.h>
9634 #else
9635 # include <assert.h>
9636 #endif
9637
9638 #undef malloc_set_state
9639
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 char malloc_set_state ();
9647 /* The GNU C library defines this for functions which it implements
9648 to always fail with ENOSYS. Some functions are actually named
9649 something starting with __ and the normal name is an alias. */
9650 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9651 choke me
9652 #endif
9653
9654 int
9655 main ()
9656 {
9657 return malloc_set_state ();
9658 ;
9659 return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9664 case "(($ac_try" in
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9667 esac
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
9670 ac_status=$?
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } && {
9676 test -z "$ac_c_werror_flag" ||
9677 test ! -s conftest.err
9678 } && test -s conftest$ac_exeext &&
9679 $as_test_x conftest$ac_exeext; then
9680 ac_cv_func_malloc_set_state=yes
9681 else
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9684
9685 ac_cv_func_malloc_set_state=no
9686 fi
9687
9688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9689 conftest$ac_exeext conftest.$ac_ext
9690 fi
9691 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9692 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9693 if test $ac_cv_func_malloc_set_state = yes; then
9694 :
9695 else
9696 doug_lea_malloc=no
9697 fi
9698
9699 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9700 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9701 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704 cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h. */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9710 extern void (* __after_morecore_hook)();
9711 int
9712 main ()
9713 {
9714 __after_morecore_hook = 0
9715 ;
9716 return 0;
9717 }
9718 _ACEOF
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (ac_try="$ac_link"
9721 case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724 esac
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest$ac_exeext &&
9736 $as_test_x conftest$ac_exeext; then
9737 emacs_cv_var___after_morecore_hook=yes
9738 else
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742 emacs_cv_var___after_morecore_hook=no
9743 fi
9744
9745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9746 conftest$ac_exeext conftest.$ac_ext
9747 fi
9748 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9749 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9750 if test $emacs_cv_var___after_morecore_hook = no; then
9751 doug_lea_malloc=no
9752 fi
9753 if test "${system_malloc}" = "yes"; then
9754 GNU_MALLOC=no
9755 GNU_MALLOC_reason="
9756 (The GNU allocators don't work with this system configuration.)"
9757 fi
9758 if test "$doug_lea_malloc" = "yes" ; then
9759 if test "$GNU_MALLOC" = yes ; then
9760 GNU_MALLOC_reason="
9761 (Using Doug Lea's new malloc from the GNU C Library.)"
9762 fi
9763
9764 cat >>confdefs.h <<\_ACEOF
9765 #define DOUG_LEA_MALLOC 1
9766 _ACEOF
9767
9768 fi
9769
9770 if test x"${REL_ALLOC}" = x; then
9771 REL_ALLOC=${GNU_MALLOC}
9772 fi
9773
9774
9775
9776
9777 for ac_header in stdlib.h unistd.h
9778 do
9779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 fi
9786 ac_res=`eval echo '${'$as_ac_Header'}'`
9787 { echo "$as_me:$LINENO: result: $ac_res" >&5
9788 echo "${ECHO_T}$ac_res" >&6; }
9789 else
9790 # Is the header compilable?
9791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h. */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9799 $ac_includes_default
9800 #include <$ac_header>
9801 _ACEOF
9802 rm -f conftest.$ac_objext
9803 if { (ac_try="$ac_compile"
9804 case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9807 esac
9808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_compile") 2>conftest.er1
9810 ac_status=$?
9811 grep -v '^ *+' conftest.er1 >conftest.err
9812 rm -f conftest.er1
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } && {
9816 test -z "$ac_c_werror_flag" ||
9817 test ! -s conftest.err
9818 } && test -s conftest.$ac_objext; then
9819 ac_header_compiler=yes
9820 else
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824 ac_header_compiler=no
9825 fi
9826
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9829 echo "${ECHO_T}$ac_header_compiler" >&6; }
9830
9831 # Is the header present?
9832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h. */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 #include <$ac_header>
9841 _ACEOF
9842 if { (ac_try="$ac_cpp conftest.$ac_ext"
9843 case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9849 ac_status=$?
9850 grep -v '^ *+' conftest.er1 >conftest.err
9851 rm -f conftest.er1
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } >/dev/null && {
9855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9856 test ! -s conftest.err
9857 }; then
9858 ac_header_preproc=yes
9859 else
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9862
9863 ac_header_preproc=no
9864 fi
9865
9866 rm -f conftest.err conftest.$ac_ext
9867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9868 echo "${ECHO_T}$ac_header_preproc" >&6; }
9869
9870 # So? What about this header?
9871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9872 yes:no: )
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9877 ac_header_preproc=yes
9878 ;;
9879 no:yes:* )
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9892
9893 ;;
9894 esac
9895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 eval "$as_ac_Header=\$ac_header_preproc"
9901 fi
9902 ac_res=`eval echo '${'$as_ac_Header'}'`
9903 { echo "$as_me:$LINENO: result: $ac_res" >&5
9904 echo "${ECHO_T}$ac_res" >&6; }
9905
9906 fi
9907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9908 cat >>confdefs.h <<_ACEOF
9909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9910 _ACEOF
9911
9912 fi
9913
9914 done
9915
9916
9917 for ac_func in getpagesize
9918 do
9919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9933 #define $ac_func innocuous_$ac_func
9934
9935 /* System header to define __stub macros and hopefully few prototypes,
9936 which can conflict with char $ac_func (); below.
9937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9938 <limits.h> exists even on freestanding compilers. */
9939
9940 #ifdef __STDC__
9941 # include <limits.h>
9942 #else
9943 # include <assert.h>
9944 #endif
9945
9946 #undef $ac_func
9947
9948 /* Override any GCC internal prototype to avoid an error.
9949 Use char because int might match the return type of a GCC
9950 builtin and then its argument prototype would still apply. */
9951 #ifdef __cplusplus
9952 extern "C"
9953 #endif
9954 char $ac_func ();
9955 /* The GNU C library defines this for functions which it implements
9956 to always fail with ENOSYS. Some functions are actually named
9957 something starting with __ and the normal name is an alias. */
9958 #if defined __stub_$ac_func || defined __stub___$ac_func
9959 choke me
9960 #endif
9961
9962 int
9963 main ()
9964 {
9965 return $ac_func ();
9966 ;
9967 return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (ac_try="$ac_link"
9972 case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_link") 2>conftest.er1
9978 ac_status=$?
9979 grep -v '^ *+' conftest.er1 >conftest.err
9980 rm -f conftest.er1
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } && {
9984 test -z "$ac_c_werror_flag" ||
9985 test ! -s conftest.err
9986 } && test -s conftest$ac_exeext &&
9987 $as_test_x conftest$ac_exeext; then
9988 eval "$as_ac_var=yes"
9989 else
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9992
9993 eval "$as_ac_var=no"
9994 fi
9995
9996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9997 conftest$ac_exeext conftest.$ac_ext
9998 fi
9999 ac_res=`eval echo '${'$as_ac_var'}'`
10000 { echo "$as_me:$LINENO: result: $ac_res" >&5
10001 echo "${ECHO_T}$ac_res" >&6; }
10002 if test `eval echo '${'$as_ac_var'}'` = yes; then
10003 cat >>confdefs.h <<_ACEOF
10004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10005 _ACEOF
10006
10007 fi
10008 done
10009
10010 { echo "$as_me:$LINENO: checking for working mmap" >&5
10011 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10012 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015 if test "$cross_compiling" = yes; then
10016 ac_cv_func_mmap_fixed_mapped=no
10017 else
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 $ac_includes_default
10025 /* malloc might have been renamed as rpl_malloc. */
10026 #undef malloc
10027
10028 /* Thanks to Mike Haertel and Jim Avera for this test.
10029 Here is a matrix of mmap possibilities:
10030 mmap private not fixed
10031 mmap private fixed at somewhere currently unmapped
10032 mmap private fixed at somewhere already mapped
10033 mmap shared not fixed
10034 mmap shared fixed at somewhere currently unmapped
10035 mmap shared fixed at somewhere already mapped
10036 For private mappings, we should verify that changes cannot be read()
10037 back from the file, nor mmap's back from the file at a different
10038 address. (There have been systems where private was not correctly
10039 implemented like the infamous i386 svr4.0, and systems where the
10040 VM page cache was not coherent with the file system buffer cache
10041 like early versions of FreeBSD and possibly contemporary NetBSD.)
10042 For shared mappings, we should conversely verify that changes get
10043 propagated back to all the places they're supposed to be.
10044
10045 Grep wants private fixed already mapped.
10046 The main things grep needs to know about mmap are:
10047 * does it exist and is it safe to write into the mmap'd area
10048 * how to use it (BSD variants) */
10049
10050 #include <fcntl.h>
10051 #include <sys/mman.h>
10052
10053 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10054 char *malloc ();
10055 #endif
10056
10057 /* This mess was copied from the GNU getpagesize.h. */
10058 #ifndef HAVE_GETPAGESIZE
10059 /* Assume that all systems that can run configure have sys/param.h. */
10060 # ifndef HAVE_SYS_PARAM_H
10061 # define HAVE_SYS_PARAM_H 1
10062 # endif
10063
10064 # ifdef _SC_PAGESIZE
10065 # define getpagesize() sysconf(_SC_PAGESIZE)
10066 # else /* no _SC_PAGESIZE */
10067 # ifdef HAVE_SYS_PARAM_H
10068 # include <sys/param.h>
10069 # ifdef EXEC_PAGESIZE
10070 # define getpagesize() EXEC_PAGESIZE
10071 # else /* no EXEC_PAGESIZE */
10072 # ifdef NBPG
10073 # define getpagesize() NBPG * CLSIZE
10074 # ifndef CLSIZE
10075 # define CLSIZE 1
10076 # endif /* no CLSIZE */
10077 # else /* no NBPG */
10078 # ifdef NBPC
10079 # define getpagesize() NBPC
10080 # else /* no NBPC */
10081 # ifdef PAGESIZE
10082 # define getpagesize() PAGESIZE
10083 # endif /* PAGESIZE */
10084 # endif /* no NBPC */
10085 # endif /* no NBPG */
10086 # endif /* no EXEC_PAGESIZE */
10087 # else /* no HAVE_SYS_PARAM_H */
10088 # define getpagesize() 8192 /* punt totally */
10089 # endif /* no HAVE_SYS_PARAM_H */
10090 # endif /* no _SC_PAGESIZE */
10091
10092 #endif /* no HAVE_GETPAGESIZE */
10093
10094 int
10095 main ()
10096 {
10097 char *data, *data2, *data3;
10098 int i, pagesize;
10099 int fd;
10100
10101 pagesize = getpagesize ();
10102
10103 /* First, make a file with some known garbage in it. */
10104 data = (char *) malloc (pagesize);
10105 if (!data)
10106 return 1;
10107 for (i = 0; i < pagesize; ++i)
10108 *(data + i) = rand ();
10109 umask (0);
10110 fd = creat ("conftest.mmap", 0600);
10111 if (fd < 0)
10112 return 1;
10113 if (write (fd, data, pagesize) != pagesize)
10114 return 1;
10115 close (fd);
10116
10117 /* Next, try to mmap the file at a fixed address which already has
10118 something else allocated at it. If we can, also make sure that
10119 we see the same garbage. */
10120 fd = open ("conftest.mmap", O_RDWR);
10121 if (fd < 0)
10122 return 1;
10123 data2 = (char *) malloc (2 * pagesize);
10124 if (!data2)
10125 return 1;
10126 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10127 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10128 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10129 return 1;
10130 for (i = 0; i < pagesize; ++i)
10131 if (*(data + i) != *(data2 + i))
10132 return 1;
10133
10134 /* Finally, make sure that changes to the mapped area do not
10135 percolate back to the file as seen by read(). (This is a bug on
10136 some variants of i386 svr4.0.) */
10137 for (i = 0; i < pagesize; ++i)
10138 *(data2 + i) = *(data2 + i) + 1;
10139 data3 = (char *) malloc (pagesize);
10140 if (!data3)
10141 return 1;
10142 if (read (fd, data3, pagesize) != pagesize)
10143 return 1;
10144 for (i = 0; i < pagesize; ++i)
10145 if (*(data + i) != *(data3 + i))
10146 return 1;
10147 close (fd);
10148 return 0;
10149 }
10150 _ACEOF
10151 rm -f conftest$ac_exeext
10152 if { (ac_try="$ac_link"
10153 case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10156 esac
10157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158 (eval "$ac_link") 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10162 { (case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_try") 2>&5
10168 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 ac_cv_func_mmap_fixed_mapped=yes
10172 else
10173 echo "$as_me: program exited with status $ac_status" >&5
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10176
10177 ( exit $ac_status )
10178 ac_cv_func_mmap_fixed_mapped=no
10179 fi
10180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10181 fi
10182
10183
10184 fi
10185 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10186 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10187 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10188
10189 cat >>confdefs.h <<\_ACEOF
10190 #define HAVE_MMAP 1
10191 _ACEOF
10192
10193 fi
10194 rm -f conftest.mmap
10195
10196 if test $use_mmap_for_buffers = yes; then
10197 REL_ALLOC=no
10198 fi
10199
10200 LIBS="$libsrc_libs $LIBS"
10201
10202
10203 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10204 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10205 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208 ac_check_lib_save_LIBS=$LIBS
10209 LIBS="-ldnet $LIBS"
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h. */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216
10217 /* Override any GCC internal prototype to avoid an error.
10218 Use char because int might match the return type of a GCC
10219 builtin and then its argument prototype would still apply. */
10220 #ifdef __cplusplus
10221 extern "C"
10222 #endif
10223 char dnet_ntoa ();
10224 int
10225 main ()
10226 {
10227 return dnet_ntoa ();
10228 ;
10229 return 0;
10230 }
10231 _ACEOF
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (ac_try="$ac_link"
10234 case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10237 esac
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_link") 2>conftest.er1
10240 ac_status=$?
10241 grep -v '^ *+' conftest.er1 >conftest.err
10242 rm -f conftest.er1
10243 cat conftest.err >&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } && {
10246 test -z "$ac_c_werror_flag" ||
10247 test ! -s conftest.err
10248 } && test -s conftest$ac_exeext &&
10249 $as_test_x conftest$ac_exeext; then
10250 ac_cv_lib_dnet_dnet_ntoa=yes
10251 else
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10254
10255 ac_cv_lib_dnet_dnet_ntoa=no
10256 fi
10257
10258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10259 conftest$ac_exeext conftest.$ac_ext
10260 LIBS=$ac_check_lib_save_LIBS
10261 fi
10262 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10263 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10264 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10265 cat >>confdefs.h <<_ACEOF
10266 #define HAVE_LIBDNET 1
10267 _ACEOF
10268
10269 LIBS="-ldnet $LIBS"
10270
10271 fi
10272
10273
10274 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10275 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10276 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279 ac_check_lib_save_LIBS=$LIBS
10280 LIBS="-lXbsd $LIBS"
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287
10288
10289 int
10290 main ()
10291 {
10292 return main ();
10293 ;
10294 return 0;
10295 }
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (ac_try="$ac_link"
10299 case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10302 esac
10303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_link") 2>conftest.er1
10305 ac_status=$?
10306 grep -v '^ *+' conftest.er1 >conftest.err
10307 rm -f conftest.er1
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && {
10311 test -z "$ac_c_werror_flag" ||
10312 test ! -s conftest.err
10313 } && test -s conftest$ac_exeext &&
10314 $as_test_x conftest$ac_exeext; then
10315 ac_cv_lib_Xbsd_main=yes
10316 else
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320 ac_cv_lib_Xbsd_main=no
10321 fi
10322
10323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10324 conftest$ac_exeext conftest.$ac_ext
10325 LIBS=$ac_check_lib_save_LIBS
10326 fi
10327 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10328 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10329 if test $ac_cv_lib_Xbsd_main = yes; then
10330 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10331 fi
10332
10333
10334
10335 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10336 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10337 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340 ac_check_lib_save_LIBS=$LIBS
10341 LIBS="-lpthreads $LIBS"
10342 cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h. */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 char cma_open ();
10356 int
10357 main ()
10358 {
10359 return cma_open ();
10360 ;
10361 return 0;
10362 }
10363 _ACEOF
10364 rm -f conftest.$ac_objext conftest$ac_exeext
10365 if { (ac_try="$ac_link"
10366 case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10369 esac
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371 (eval "$ac_link") 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && {
10378 test -z "$ac_c_werror_flag" ||
10379 test ! -s conftest.err
10380 } && test -s conftest$ac_exeext &&
10381 $as_test_x conftest$ac_exeext; then
10382 ac_cv_lib_pthreads_cma_open=yes
10383 else
10384 echo "$as_me: failed program was:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10386
10387 ac_cv_lib_pthreads_cma_open=no
10388 fi
10389
10390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10391 conftest$ac_exeext conftest.$ac_ext
10392 LIBS=$ac_check_lib_save_LIBS
10393 fi
10394 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10395 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10396 if test $ac_cv_lib_pthreads_cma_open = yes; then
10397 cat >>confdefs.h <<_ACEOF
10398 #define HAVE_LIBPTHREADS 1
10399 _ACEOF
10400
10401 LIBS="-lpthreads $LIBS"
10402
10403 fi
10404
10405
10406
10407 case ${host_os} in
10408 aix*)
10409 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10410 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10411 if test "${gdb_cv_bigtoc+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414
10415 case $GCC in
10416 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10417 *) gdb_cv_bigtoc=-bbigtoc ;;
10418 esac
10419
10420 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h. */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10427
10428 int
10429 main ()
10430 {
10431 int i;
10432 ;
10433 return 0;
10434 }
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (ac_try="$ac_link"
10438 case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10441 esac
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_link") 2>conftest.er1
10444 ac_status=$?
10445 grep -v '^ *+' conftest.er1 >conftest.err
10446 rm -f conftest.er1
10447 cat conftest.err >&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } && {
10450 test -z "$ac_c_werror_flag" ||
10451 test ! -s conftest.err
10452 } && test -s conftest$ac_exeext &&
10453 $as_test_x conftest$ac_exeext; then
10454 :
10455 else
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10458
10459 gdb_cv_bigtoc=
10460 fi
10461
10462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10463 conftest$ac_exeext conftest.$ac_ext
10464
10465 fi
10466 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10467 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10468 ;;
10469 esac
10470
10471 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10472 # used for the tests that follow. We set them back to REAL_CFLAGS and
10473 # REAL_CPPFLAGS later on.
10474
10475 REAL_CPPFLAGS="$CPPFLAGS"
10476
10477 if test "${HAVE_X11}" = "yes"; then
10478 DEFS="$C_SWITCH_X_SITE $DEFS"
10479 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10480 LIBS="$LIBX $LIBS"
10481 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10482 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10483
10484 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10485 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10486 # but it's more convenient here to set LD_RUN_PATH
10487 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10488 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10489 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10490 export LD_RUN_PATH
10491 fi
10492
10493 if test "${opsys}" = "gnu-linux"; then
10494 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10495 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h. */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502
10503 int
10504 main ()
10505 {
10506 XOpenDisplay ("foo");
10507 ;
10508 return 0;
10509 }
10510 _ACEOF
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (ac_try="$ac_link"
10513 case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10516 esac
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_link") 2>conftest.er1
10519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest$ac_exeext &&
10528 $as_test_x conftest$ac_exeext; then
10529 xlinux_first_failure=no
10530 else
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10533
10534 xlinux_first_failure=yes
10535 fi
10536
10537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10538 conftest$ac_exeext conftest.$ac_ext
10539 if test "${xlinux_first_failure}" = "yes"; then
10540 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10541 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10542 OLD_CPPFLAGS="$CPPFLAGS"
10543 OLD_LIBS="$LIBS"
10544 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10545 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10546 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10547 LIBS="$LIBS -b i486-linuxaout"
10548 cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h. */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554
10555 int
10556 main ()
10557 {
10558 XOpenDisplay ("foo");
10559 ;
10560 return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (ac_try="$ac_link"
10565 case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10568 esac
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_link") 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } && {
10577 test -z "$ac_c_werror_flag" ||
10578 test ! -s conftest.err
10579 } && test -s conftest$ac_exeext &&
10580 $as_test_x conftest$ac_exeext; then
10581 xlinux_second_failure=no
10582 else
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586 xlinux_second_failure=yes
10587 fi
10588
10589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10590 conftest$ac_exeext conftest.$ac_ext
10591 if test "${xlinux_second_failure}" = "yes"; then
10592 # If we get the same failure with -b, there is no use adding -b.
10593 # So take it out. This plays safe.
10594 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10595 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10596 CPPFLAGS="$OLD_CPPFLAGS"
10597 LIBS="$OLD_LIBS"
10598 { echo "$as_me:$LINENO: result: no" >&5
10599 echo "${ECHO_T}no" >&6; }
10600 else
10601 { echo "$as_me:$LINENO: result: yes" >&5
10602 echo "${ECHO_T}yes" >&6; }
10603 fi
10604 else
10605 { echo "$as_me:$LINENO: result: no" >&5
10606 echo "${ECHO_T}no" >&6; }
10607 fi
10608 fi
10609
10610 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10611 # header files included from there.
10612 { echo "$as_me:$LINENO: checking for Xkb" >&5
10613 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10614 cat >conftest.$ac_ext <<_ACEOF
10615 /* confdefs.h. */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 #include <X11/Xlib.h>
10621 #include <X11/XKBlib.h>
10622 int
10623 main ()
10624 {
10625 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10626 ;
10627 return 0;
10628 }
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest$ac_exeext &&
10647 $as_test_x conftest$ac_exeext; then
10648 emacs_xkb=yes
10649 else
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 emacs_xkb=no
10654 fi
10655
10656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10657 conftest$ac_exeext conftest.$ac_ext
10658 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10659 echo "${ECHO_T}$emacs_xkb" >&6; }
10660 if test $emacs_xkb = yes; then
10661
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_XKBGETKEYBOARD 1
10664 _ACEOF
10665
10666 fi
10667
10668
10669
10670
10671
10672 for ac_func in XrmSetDatabase XScreenResourceString \
10673 XScreenNumberOfScreen XSetWMProtocols
10674 do
10675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10676 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681 cat >conftest.$ac_ext <<_ACEOF
10682 /* confdefs.h. */
10683 _ACEOF
10684 cat confdefs.h >>conftest.$ac_ext
10685 cat >>conftest.$ac_ext <<_ACEOF
10686 /* end confdefs.h. */
10687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10689 #define $ac_func innocuous_$ac_func
10690
10691 /* System header to define __stub macros and hopefully few prototypes,
10692 which can conflict with char $ac_func (); below.
10693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10694 <limits.h> exists even on freestanding compilers. */
10695
10696 #ifdef __STDC__
10697 # include <limits.h>
10698 #else
10699 # include <assert.h>
10700 #endif
10701
10702 #undef $ac_func
10703
10704 /* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
10707 #ifdef __cplusplus
10708 extern "C"
10709 #endif
10710 char $ac_func ();
10711 /* The GNU C library defines this for functions which it implements
10712 to always fail with ENOSYS. Some functions are actually named
10713 something starting with __ and the normal name is an alias. */
10714 #if defined __stub_$ac_func || defined __stub___$ac_func
10715 choke me
10716 #endif
10717
10718 int
10719 main ()
10720 {
10721 return $ac_func ();
10722 ;
10723 return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (ac_try="$ac_link"
10728 case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731 esac
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_link") 2>conftest.er1
10734 ac_status=$?
10735 grep -v '^ *+' conftest.er1 >conftest.err
10736 rm -f conftest.er1
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } && {
10740 test -z "$ac_c_werror_flag" ||
10741 test ! -s conftest.err
10742 } && test -s conftest$ac_exeext &&
10743 $as_test_x conftest$ac_exeext; then
10744 eval "$as_ac_var=yes"
10745 else
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749 eval "$as_ac_var=no"
10750 fi
10751
10752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10753 conftest$ac_exeext conftest.$ac_ext
10754 fi
10755 ac_res=`eval echo '${'$as_ac_var'}'`
10756 { echo "$as_me:$LINENO: result: $ac_res" >&5
10757 echo "${ECHO_T}$ac_res" >&6; }
10758 if test `eval echo '${'$as_ac_var'}'` = yes; then
10759 cat >>confdefs.h <<_ACEOF
10760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10761 _ACEOF
10762
10763 fi
10764 done
10765
10766 fi
10767
10768 if test "${window_system}" = "x11"; then
10769 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10770 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10771 if test "${emacs_cv_x11_version_6+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h. */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 #include <X11/Xlib.h>
10781 int
10782 main ()
10783 {
10784 #if XlibSpecificationRelease < 6
10785 fail;
10786 #endif
10787
10788 ;
10789 return 0;
10790 }
10791 _ACEOF
10792 rm -f conftest.$ac_objext conftest$ac_exeext
10793 if { (ac_try="$ac_link"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_link") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest$ac_exeext &&
10809 $as_test_x conftest$ac_exeext; then
10810 emacs_cv_x11_version_6=yes
10811 else
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815 emacs_cv_x11_version_6=no
10816 fi
10817
10818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10819 conftest$ac_exeext conftest.$ac_ext
10820 fi
10821
10822 if test $emacs_cv_x11_version_6 = yes; then
10823 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10824 echo "${ECHO_T}6 or newer" >&6; }
10825
10826 cat >>confdefs.h <<\_ACEOF
10827 #define HAVE_X11R6 1
10828 _ACEOF
10829
10830 else
10831 { echo "$as_me:$LINENO: result: before 6" >&5
10832 echo "${ECHO_T}before 6" >&6; }
10833 fi
10834 fi
10835
10836
10837 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10838 HAVE_RSVG=no
10839 if test "${HAVE_X11}" = "yes"; then
10840 if test "${with_rsvg}" != "no"; then
10841 RSVG_REQUIRED=2.0.0
10842 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10843
10844
10845 succeeded=no
10846
10847 # Extract the first word of "pkg-config", so it can be a program name with args.
10848 set dummy pkg-config; ac_word=$2
10849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10851 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 case $PKG_CONFIG in
10855 [\\/]* | ?:[\\/]*)
10856 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10857 ;;
10858 *)
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10861 do
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10869 fi
10870 done
10871 done
10872 IFS=$as_save_IFS
10873
10874 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10875 ;;
10876 esac
10877 fi
10878 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10879 if test -n "$PKG_CONFIG"; then
10880 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10881 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10882 else
10883 { echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6; }
10885 fi
10886
10887
10888
10889 if test "$PKG_CONFIG" = "no" ; then
10890 :
10891 else
10892 PKG_CONFIG_MIN_VERSION=0.9.0
10893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10894 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10895 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10896
10897 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10898 { echo "$as_me:$LINENO: result: yes" >&5
10899 echo "${ECHO_T}yes" >&6; }
10900 succeeded=yes
10901
10902 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10903 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10904 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10905 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10906 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10907
10908 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10909 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10910 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10911 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10912 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10913 else
10914 { echo "$as_me:$LINENO: result: no" >&5
10915 echo "${ECHO_T}no" >&6; }
10916 RSVG_CFLAGS=""
10917 RSVG_LIBS=""
10918 ## If we have a custom action on failure, don't print errors, but
10919 ## do set a variable so people can do so.
10920 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10921
10922 fi
10923
10924
10925
10926 else
10927 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10928 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10929 fi
10930 fi
10931
10932 if test $succeeded = yes; then
10933 :
10934 else
10935 :
10936 fi
10937
10938
10939
10940
10941 if test ".${RSVG_CFLAGS}" != "."; then
10942 HAVE_RSVG=yes
10943
10944 cat >>confdefs.h <<\_ACEOF
10945 #define HAVE_RSVG 1
10946 _ACEOF
10947
10948 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10949 LIBS="$RSVG_LIBS $LIBS"
10950 fi
10951 fi
10952 fi
10953
10954
10955 HAVE_GTK=no
10956 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10957 GLIB_REQUIRED=2.6
10958 GTK_REQUIRED=2.6
10959 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10960
10961
10962 succeeded=no
10963
10964 # Extract the first word of "pkg-config", so it can be a program name with args.
10965 set dummy pkg-config; ac_word=$2
10966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10968 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 else
10971 case $PKG_CONFIG in
10972 [\\/]* | ?:[\\/]*)
10973 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10974 ;;
10975 *)
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 for as_dir in $PATH
10978 do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10983 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987 done
10988 done
10989 IFS=$as_save_IFS
10990
10991 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10992 ;;
10993 esac
10994 fi
10995 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10996 if test -n "$PKG_CONFIG"; then
10997 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10998 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10999 else
11000 { echo "$as_me:$LINENO: result: no" >&5
11001 echo "${ECHO_T}no" >&6; }
11002 fi
11003
11004
11005
11006 if test "$PKG_CONFIG" = "no" ; then
11007 pkg_check_gtk=no
11008 else
11009 PKG_CONFIG_MIN_VERSION=0.9.0
11010 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11011 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11012 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11013
11014 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11015 { echo "$as_me:$LINENO: result: yes" >&5
11016 echo "${ECHO_T}yes" >&6; }
11017 succeeded=yes
11018
11019 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11020 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11021 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11022 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11023 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11024
11025 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11026 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11027 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11028 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11029 echo "${ECHO_T}$GTK_LIBS" >&6; }
11030 else
11031 { echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6; }
11033 GTK_CFLAGS=""
11034 GTK_LIBS=""
11035 ## If we have a custom action on failure, don't print errors, but
11036 ## do set a variable so people can do so.
11037 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11038
11039 fi
11040
11041
11042
11043 else
11044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11046 fi
11047 fi
11048
11049 if test $succeeded = yes; then
11050 pkg_check_gtk=yes
11051 else
11052 pkg_check_gtk=no
11053 fi
11054
11055 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11056 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11057 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11058 { (exit 1); exit 1; }; }
11059 fi
11060 fi
11061
11062
11063 if test x"$pkg_check_gtk" = xyes; then
11064
11065
11066
11067 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11068 CFLAGS="$CFLAGS $GTK_CFLAGS"
11069 LIBS="$GTK_LIBS $LIBS"
11070 GTK_COMPILES=no
11071
11072 for ac_func in gtk_main
11073 do
11074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11077 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11088 #define $ac_func innocuous_$ac_func
11089
11090 /* System header to define __stub macros and hopefully few prototypes,
11091 which can conflict with char $ac_func (); below.
11092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11093 <limits.h> exists even on freestanding compilers. */
11094
11095 #ifdef __STDC__
11096 # include <limits.h>
11097 #else
11098 # include <assert.h>
11099 #endif
11100
11101 #undef $ac_func
11102
11103 /* Override any GCC internal prototype to avoid an error.
11104 Use char because int might match the return type of a GCC
11105 builtin and then its argument prototype would still apply. */
11106 #ifdef __cplusplus
11107 extern "C"
11108 #endif
11109 char $ac_func ();
11110 /* The GNU C library defines this for functions which it implements
11111 to always fail with ENOSYS. Some functions are actually named
11112 something starting with __ and the normal name is an alias. */
11113 #if defined __stub_$ac_func || defined __stub___$ac_func
11114 choke me
11115 #endif
11116
11117 int
11118 main ()
11119 {
11120 return $ac_func ();
11121 ;
11122 return 0;
11123 }
11124 _ACEOF
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (ac_try="$ac_link"
11127 case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130 esac
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_link") 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && {
11139 test -z "$ac_c_werror_flag" ||
11140 test ! -s conftest.err
11141 } && test -s conftest$ac_exeext &&
11142 $as_test_x conftest$ac_exeext; then
11143 eval "$as_ac_var=yes"
11144 else
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11147
11148 eval "$as_ac_var=no"
11149 fi
11150
11151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11152 conftest$ac_exeext conftest.$ac_ext
11153 fi
11154 ac_res=`eval echo '${'$as_ac_var'}'`
11155 { echo "$as_me:$LINENO: result: $ac_res" >&5
11156 echo "${ECHO_T}$ac_res" >&6; }
11157 if test `eval echo '${'$as_ac_var'}'` = yes; then
11158 cat >>confdefs.h <<_ACEOF
11159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11160 _ACEOF
11161 GTK_COMPILES=yes
11162 fi
11163 done
11164
11165 if test "${GTK_COMPILES}" != "yes"; then
11166 if test "$USE_X_TOOLKIT" != "maybe"; then
11167 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11168 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11169 { (exit 1); exit 1; }; };
11170 fi
11171 else
11172 HAVE_GTK=yes
11173
11174 cat >>confdefs.h <<\_ACEOF
11175 #define USE_GTK 1
11176 _ACEOF
11177
11178 USE_X_TOOLKIT=none
11179 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11180 :
11181 else
11182 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11183 closing open displays. This is no problem if you just use
11184 one display, but if you use more than one and close one of them
11185 Emacs may crash." >&5
11186 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11187 closing open displays. This is no problem if you just use
11188 one display, but if you use more than one and close one of them
11189 Emacs may crash." >&2;}
11190 sleep 3
11191 fi
11192 fi
11193
11194 fi
11195
11196
11197 if test "${HAVE_GTK}" = "yes"; then
11198
11199 if test "$with_toolkit_scroll_bars" != no; then
11200 with_toolkit_scroll_bars=yes
11201 fi
11202
11203 HAVE_GTK_MULTIDISPLAY=no
11204
11205 for ac_func in gdk_display_open
11206 do
11207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11221 #define $ac_func innocuous_$ac_func
11222
11223 /* System header to define __stub macros and hopefully few prototypes,
11224 which can conflict with char $ac_func (); below.
11225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11226 <limits.h> exists even on freestanding compilers. */
11227
11228 #ifdef __STDC__
11229 # include <limits.h>
11230 #else
11231 # include <assert.h>
11232 #endif
11233
11234 #undef $ac_func
11235
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 char $ac_func ();
11243 /* The GNU C library defines this for functions which it implements
11244 to always fail with ENOSYS. Some functions are actually named
11245 something starting with __ and the normal name is an alias. */
11246 #if defined __stub_$ac_func || defined __stub___$ac_func
11247 choke me
11248 #endif
11249
11250 int
11251 main ()
11252 {
11253 return $ac_func ();
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 rm -f conftest.$ac_objext conftest$ac_exeext
11259 if { (ac_try="$ac_link"
11260 case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_link") 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && {
11272 test -z "$ac_c_werror_flag" ||
11273 test ! -s conftest.err
11274 } && test -s conftest$ac_exeext &&
11275 $as_test_x conftest$ac_exeext; then
11276 eval "$as_ac_var=yes"
11277 else
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281 eval "$as_ac_var=no"
11282 fi
11283
11284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11285 conftest$ac_exeext conftest.$ac_ext
11286 fi
11287 ac_res=`eval echo '${'$as_ac_var'}'`
11288 { echo "$as_me:$LINENO: result: $ac_res" >&5
11289 echo "${ECHO_T}$ac_res" >&6; }
11290 if test `eval echo '${'$as_ac_var'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11293 _ACEOF
11294 HAVE_GTK_MULTIDISPLAY=yes
11295 fi
11296 done
11297
11298 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11299
11300 cat >>confdefs.h <<\_ACEOF
11301 #define HAVE_GTK_MULTIDISPLAY 1
11302 _ACEOF
11303
11304 fi
11305
11306 HAVE_GTK_FILE_SELECTION=no
11307
11308 for ac_func in gtk_file_selection_new
11309 do
11310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h. */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11324 #define $ac_func innocuous_$ac_func
11325
11326 /* System header to define __stub macros and hopefully few prototypes,
11327 which can conflict with char $ac_func (); below.
11328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11329 <limits.h> exists even on freestanding compilers. */
11330
11331 #ifdef __STDC__
11332 # include <limits.h>
11333 #else
11334 # include <assert.h>
11335 #endif
11336
11337 #undef $ac_func
11338
11339 /* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11342 #ifdef __cplusplus
11343 extern "C"
11344 #endif
11345 char $ac_func ();
11346 /* The GNU C library defines this for functions which it implements
11347 to always fail with ENOSYS. Some functions are actually named
11348 something starting with __ and the normal name is an alias. */
11349 #if defined __stub_$ac_func || defined __stub___$ac_func
11350 choke me
11351 #endif
11352
11353 int
11354 main ()
11355 {
11356 return $ac_func ();
11357 ;
11358 return 0;
11359 }
11360 _ACEOF
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (ac_try="$ac_link"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366 esac
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_link") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } && {
11375 test -z "$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 } && test -s conftest$ac_exeext &&
11378 $as_test_x conftest$ac_exeext; then
11379 eval "$as_ac_var=yes"
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11383
11384 eval "$as_ac_var=no"
11385 fi
11386
11387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11388 conftest$ac_exeext conftest.$ac_ext
11389 fi
11390 ac_res=`eval echo '${'$as_ac_var'}'`
11391 { echo "$as_me:$LINENO: result: $ac_res" >&5
11392 echo "${ECHO_T}$ac_res" >&6; }
11393 if test `eval echo '${'$as_ac_var'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11396 _ACEOF
11397 HAVE_GTK_FILE_SELECTION=yes
11398 fi
11399 done
11400
11401
11402 HAVE_GTK_FILE_CHOOSER=no
11403
11404 for ac_func in gtk_file_chooser_dialog_new
11405 do
11406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h. */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11420 #define $ac_func innocuous_$ac_func
11421
11422 /* System header to define __stub macros and hopefully few prototypes,
11423 which can conflict with char $ac_func (); below.
11424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11425 <limits.h> exists even on freestanding compilers. */
11426
11427 #ifdef __STDC__
11428 # include <limits.h>
11429 #else
11430 # include <assert.h>
11431 #endif
11432
11433 #undef $ac_func
11434
11435 /* Override any GCC internal prototype to avoid an error.
11436 Use char because int might match the return type of a GCC
11437 builtin and then its argument prototype would still apply. */
11438 #ifdef __cplusplus
11439 extern "C"
11440 #endif
11441 char $ac_func ();
11442 /* The GNU C library defines this for functions which it implements
11443 to always fail with ENOSYS. Some functions are actually named
11444 something starting with __ and the normal name is an alias. */
11445 #if defined __stub_$ac_func || defined __stub___$ac_func
11446 choke me
11447 #endif
11448
11449 int
11450 main ()
11451 {
11452 return $ac_func ();
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 rm -f conftest.$ac_objext conftest$ac_exeext
11458 if { (ac_try="$ac_link"
11459 case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11462 esac
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_link") 2>conftest.er1
11465 ac_status=$?
11466 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && {
11471 test -z "$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 } && test -s conftest$ac_exeext &&
11474 $as_test_x conftest$ac_exeext; then
11475 eval "$as_ac_var=yes"
11476 else
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11479
11480 eval "$as_ac_var=no"
11481 fi
11482
11483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11484 conftest$ac_exeext conftest.$ac_ext
11485 fi
11486 ac_res=`eval echo '${'$as_ac_var'}'`
11487 { echo "$as_me:$LINENO: result: $ac_res" >&5
11488 echo "${ECHO_T}$ac_res" >&6; }
11489 if test `eval echo '${'$as_ac_var'}'` = yes; then
11490 cat >>confdefs.h <<_ACEOF
11491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11492 _ACEOF
11493 HAVE_GTK_FILE_CHOOSER=yes
11494 fi
11495 done
11496
11497
11498 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11499 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11500
11501 cat >>confdefs.h <<\_ACEOF
11502 #define HAVE_GTK_FILE_BOTH 1
11503 _ACEOF
11504
11505 fi
11506
11507 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11508 HAVE_GTK_AND_PTHREAD=no
11509
11510 for ac_header in pthread.h
11511 do
11512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 fi
11519 ac_res=`eval echo '${'$as_ac_Header'}'`
11520 { echo "$as_me:$LINENO: result: $ac_res" >&5
11521 echo "${ECHO_T}$ac_res" >&6; }
11522 else
11523 # Is the header compilable?
11524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 $ac_includes_default
11533 #include <$ac_header>
11534 _ACEOF
11535 rm -f conftest.$ac_objext
11536 if { (ac_try="$ac_compile"
11537 case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11540 esac
11541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542 (eval "$ac_compile") 2>conftest.er1
11543 ac_status=$?
11544 grep -v '^ *+' conftest.er1 >conftest.err
11545 rm -f conftest.er1
11546 cat conftest.err >&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } && {
11549 test -z "$ac_c_werror_flag" ||
11550 test ! -s conftest.err
11551 } && test -s conftest.$ac_objext; then
11552 ac_header_compiler=yes
11553 else
11554 echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11556
11557 ac_header_compiler=no
11558 fi
11559
11560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11562 echo "${ECHO_T}$ac_header_compiler" >&6; }
11563
11564 # Is the header present?
11565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h. */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573 #include <$ac_header>
11574 _ACEOF
11575 if { (ac_try="$ac_cpp conftest.$ac_ext"
11576 case "(($ac_try" in
11577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578 *) ac_try_echo=$ac_try;;
11579 esac
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } >/dev/null && {
11588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11589 test ! -s conftest.err
11590 }; then
11591 ac_header_preproc=yes
11592 else
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11595
11596 ac_header_preproc=no
11597 fi
11598
11599 rm -f conftest.err conftest.$ac_ext
11600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11601 echo "${ECHO_T}$ac_header_preproc" >&6; }
11602
11603 # So? What about this header?
11604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11605 yes:no: )
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11610 ac_header_preproc=yes
11611 ;;
11612 no:yes:* )
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11625
11626 ;;
11627 esac
11628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 eval "$as_ac_Header=\$ac_header_preproc"
11634 fi
11635 ac_res=`eval echo '${'$as_ac_Header'}'`
11636 { echo "$as_me:$LINENO: result: $ac_res" >&5
11637 echo "${ECHO_T}$ac_res" >&6; }
11638
11639 fi
11640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11641 cat >>confdefs.h <<_ACEOF
11642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643 _ACEOF
11644
11645 fi
11646
11647 done
11648
11649 if test "$ac_cv_header_pthread_h"; then
11650 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11651 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11652 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655 ac_check_lib_save_LIBS=$LIBS
11656 LIBS="-lpthread $LIBS"
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char pthread_self ();
11671 int
11672 main ()
11673 {
11674 return pthread_self ();
11675 ;
11676 return 0;
11677 }
11678 _ACEOF
11679 rm -f conftest.$ac_objext conftest$ac_exeext
11680 if { (ac_try="$ac_link"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_link") 2>conftest.er1
11687 ac_status=$?
11688 grep -v '^ *+' conftest.er1 >conftest.err
11689 rm -f conftest.er1
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } && {
11693 test -z "$ac_c_werror_flag" ||
11694 test ! -s conftest.err
11695 } && test -s conftest$ac_exeext &&
11696 $as_test_x conftest$ac_exeext; then
11697 ac_cv_lib_pthread_pthread_self=yes
11698 else
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702 ac_cv_lib_pthread_pthread_self=no
11703 fi
11704
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LIBS=$ac_check_lib_save_LIBS
11708 fi
11709 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11710 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11711 if test $ac_cv_lib_pthread_pthread_self = yes; then
11712 HAVE_GTK_AND_PTHREAD=yes
11713 fi
11714
11715 fi
11716 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11717 case "${canonical}" in
11718 *-hpux*) ;;
11719 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11720 esac
11721
11722 cat >>confdefs.h <<\_ACEOF
11723 #define HAVE_GTK_AND_PTHREAD 1
11724 _ACEOF
11725
11726 fi
11727 fi
11728 fi
11729
11730 HAVE_DBUS=no
11731 if test "${with_dbus}" = "yes"; then
11732
11733 succeeded=no
11734
11735 # Extract the first word of "pkg-config", so it can be a program name with args.
11736 set dummy pkg-config; ac_word=$2
11737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11739 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742 case $PKG_CONFIG in
11743 [\\/]* | ?:[\\/]*)
11744 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11745 ;;
11746 *)
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11754 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 break 2
11757 fi
11758 done
11759 done
11760 IFS=$as_save_IFS
11761
11762 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11763 ;;
11764 esac
11765 fi
11766 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11767 if test -n "$PKG_CONFIG"; then
11768 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11769 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11770 else
11771 { echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6; }
11773 fi
11774
11775
11776
11777 if test "$PKG_CONFIG" = "no" ; then
11778 HAVE_DBUS=no
11779 else
11780 PKG_CONFIG_MIN_VERSION=0.9.0
11781 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11782 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11783 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11784
11785 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11786 { echo "$as_me:$LINENO: result: yes" >&5
11787 echo "${ECHO_T}yes" >&6; }
11788 succeeded=yes
11789
11790 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11791 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11792 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11793 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11794 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11795
11796 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11797 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11798 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11799 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11800 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11801 else
11802 { echo "$as_me:$LINENO: result: no" >&5
11803 echo "${ECHO_T}no" >&6; }
11804 DBUS_CFLAGS=""
11805 DBUS_LIBS=""
11806 ## If we have a custom action on failure, don't print errors, but
11807 ## do set a variable so people can do so.
11808 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11809
11810 fi
11811
11812
11813
11814 else
11815 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11816 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11817 fi
11818 fi
11819
11820 if test $succeeded = yes; then
11821 HAVE_DBUS=yes
11822 else
11823 HAVE_DBUS=no
11824 fi
11825
11826 if test "$HAVE_DBUS" = yes; then
11827
11828 cat >>confdefs.h <<\_ACEOF
11829 #define HAVE_DBUS 1
11830 _ACEOF
11831
11832 fi
11833 fi
11834
11835 HAVE_XAW3D=no
11836 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11837 if test "$with_xaw3d" != no; then
11838 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11839 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11840 if test "${emacs_cv_xaw3d+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h. */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849
11850 #include <X11/Intrinsic.h>
11851 #include <X11/Xaw3d/Simple.h>
11852 int
11853 main ()
11854 {
11855
11856 ;
11857 return 0;
11858 }
11859 _ACEOF
11860 rm -f conftest.$ac_objext conftest$ac_exeext
11861 if { (ac_try="$ac_link"
11862 case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11865 esac
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_link") 2>conftest.er1
11868 ac_status=$?
11869 grep -v '^ *+' conftest.er1 >conftest.err
11870 rm -f conftest.er1
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } && {
11874 test -z "$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11876 } && test -s conftest$ac_exeext &&
11877 $as_test_x conftest$ac_exeext; then
11878 emacs_cv_xaw3d=yes
11879 else
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11882
11883 emacs_cv_xaw3d=no
11884 fi
11885
11886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11887 conftest$ac_exeext conftest.$ac_ext
11888 fi
11889
11890 else
11891 emacs_cv_xaw3d=no
11892 fi
11893 if test $emacs_cv_xaw3d = yes; then
11894 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11895 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11896 USE_X_TOOLKIT=LUCID
11897 HAVE_XAW3D=yes
11898
11899 cat >>confdefs.h <<\_ACEOF
11900 #define HAVE_XAW3D 1
11901 _ACEOF
11902
11903 else
11904 { echo "$as_me:$LINENO: result: no" >&5
11905 echo "${ECHO_T}no" >&6; }
11906 { echo "$as_me:$LINENO: checking for libXaw" >&5
11907 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11908 if test "${emacs_cv_xaw+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h. */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11917
11918 #include <X11/Intrinsic.h>
11919 #include <X11/Xaw/Simple.h>
11920 int
11921 main ()
11922 {
11923
11924 ;
11925 return 0;
11926 }
11927 _ACEOF
11928 rm -f conftest.$ac_objext conftest$ac_exeext
11929 if { (ac_try="$ac_link"
11930 case "(($ac_try" in
11931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11933 esac
11934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935 (eval "$ac_link") 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } && {
11942 test -z "$ac_c_werror_flag" ||
11943 test ! -s conftest.err
11944 } && test -s conftest$ac_exeext &&
11945 $as_test_x conftest$ac_exeext; then
11946 emacs_cv_xaw=yes
11947 else
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11950
11951 emacs_cv_xaw=no
11952 fi
11953
11954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11955 conftest$ac_exeext conftest.$ac_ext
11956 fi
11957
11958 if test $emacs_cv_xaw = yes; then
11959 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11960 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11961 USE_X_TOOLKIT=LUCID
11962 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11963 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11964 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11965 { (exit 1); exit 1; }; }
11966 else
11967 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11968 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11969 USE_X_TOOLKIT=none
11970 fi
11971 fi
11972 fi
11973
11974 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11975
11976 if test "${USE_X_TOOLKIT}" != "none"; then
11977 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11978 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11979 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 #include <X11/Intrinsic.h>
11989 int
11990 main ()
11991 {
11992 #if XtSpecificationRelease < 6
11993 fail;
11994 #endif
11995
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (ac_try="$ac_link"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_link") 2>conftest.er1
12008 ac_status=$?
12009 grep -v '^ *+' conftest.er1 >conftest.err
12010 rm -f conftest.er1
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } && {
12014 test -z "$ac_c_werror_flag" ||
12015 test ! -s conftest.err
12016 } && test -s conftest$ac_exeext &&
12017 $as_test_x conftest$ac_exeext; then
12018 emacs_cv_x11_toolkit_version_6=yes
12019 else
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 emacs_cv_x11_toolkit_version_6=no
12024 fi
12025
12026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12027 conftest$ac_exeext conftest.$ac_ext
12028 fi
12029
12030 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12031 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12032 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12033 echo "${ECHO_T}6 or newer" >&6; }
12034
12035 cat >>confdefs.h <<\_ACEOF
12036 #define HAVE_X11XTR6 1
12037 _ACEOF
12038
12039 else
12040 { echo "$as_me:$LINENO: result: before 6" >&5
12041 echo "${ECHO_T}before 6" >&6; }
12042 fi
12043
12044 OLDLIBS="$LIBS"
12045 if test x$HAVE_X11XTR6 = xyes; then
12046 LIBS="-lXt -lSM -lICE $LIBS"
12047 else
12048 LIBS="-lXt $LIBS"
12049 fi
12050
12051 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12052 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12053 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056 ac_check_lib_save_LIBS=$LIBS
12057 LIBS="-lXmu $LIBS"
12058 cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h. */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12068 #ifdef __cplusplus
12069 extern "C"
12070 #endif
12071 char XmuConvertStandardSelection ();
12072 int
12073 main ()
12074 {
12075 return XmuConvertStandardSelection ();
12076 ;
12077 return 0;
12078 }
12079 _ACEOF
12080 rm -f conftest.$ac_objext conftest$ac_exeext
12081 if { (ac_try="$ac_link"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_link") 2>conftest.er1
12088 ac_status=$?
12089 grep -v '^ *+' conftest.er1 >conftest.err
12090 rm -f conftest.er1
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } && {
12094 test -z "$ac_c_werror_flag" ||
12095 test ! -s conftest.err
12096 } && test -s conftest$ac_exeext &&
12097 $as_test_x conftest$ac_exeext; then
12098 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12099 else
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12102
12103 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12104 fi
12105
12106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12107 conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12109 fi
12110 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12111 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12112 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12113 cat >>confdefs.h <<_ACEOF
12114 #define HAVE_LIBXMU 1
12115 _ACEOF
12116
12117 LIBS="-lXmu $LIBS"
12118
12119 fi
12120
12121 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12122 fi
12123
12124 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12125 if test "${HAVE_X11}" = "yes"; then
12126 if test "${USE_X_TOOLKIT}" != "none"; then
12127
12128 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12129 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12130 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 else
12133 ac_check_lib_save_LIBS=$LIBS
12134 LIBS="-lXext $LIBS"
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12145 #ifdef __cplusplus
12146 extern "C"
12147 #endif
12148 char XShapeQueryExtension ();
12149 int
12150 main ()
12151 {
12152 return XShapeQueryExtension ();
12153 ;
12154 return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (ac_try="$ac_link"
12159 case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12162 esac
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164 (eval "$ac_link") 2>conftest.er1
12165 ac_status=$?
12166 grep -v '^ *+' conftest.er1 >conftest.err
12167 rm -f conftest.er1
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } && {
12171 test -z "$ac_c_werror_flag" ||
12172 test ! -s conftest.err
12173 } && test -s conftest$ac_exeext &&
12174 $as_test_x conftest$ac_exeext; then
12175 ac_cv_lib_Xext_XShapeQueryExtension=yes
12176 else
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180 ac_cv_lib_Xext_XShapeQueryExtension=no
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12186 fi
12187 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12188 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12189 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12190 cat >>confdefs.h <<_ACEOF
12191 #define HAVE_LIBXEXT 1
12192 _ACEOF
12193
12194 LIBS="-lXext $LIBS"
12195
12196 fi
12197
12198 fi
12199 fi
12200
12201 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12202 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12203 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12204 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h. */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 #include <Xm/Xm.h>
12214 int
12215 main ()
12216 {
12217 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12218 int x = 5;
12219 #else
12220 Motif version prior to 2.1.
12221 #endif
12222 ;
12223 return 0;
12224 }
12225 _ACEOF
12226 rm -f conftest.$ac_objext
12227 if { (ac_try="$ac_compile"
12228 case "(($ac_try" in
12229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230 *) ac_try_echo=$ac_try;;
12231 esac
12232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12233 (eval "$ac_compile") 2>conftest.er1
12234 ac_status=$?
12235 grep -v '^ *+' conftest.er1 >conftest.err
12236 rm -f conftest.er1
12237 cat conftest.err >&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } && {
12240 test -z "$ac_c_werror_flag" ||
12241 test ! -s conftest.err
12242 } && test -s conftest.$ac_objext; then
12243 emacs_cv_motif_version_2_1=yes
12244 else
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12247
12248 emacs_cv_motif_version_2_1=no
12249 fi
12250
12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 fi
12253 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12254 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12255 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12256 if test $emacs_cv_motif_version_2_1 = yes; then
12257 HAVE_LIBXP=no
12258
12259 cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_MOTIF_2_1 1
12261 _ACEOF
12262
12263 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12264 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12265 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268 ac_check_lib_save_LIBS=$LIBS
12269 LIBS="-lXp $LIBS"
12270 cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h. */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276
12277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12280 #ifdef __cplusplus
12281 extern "C"
12282 #endif
12283 char XpCreateContext ();
12284 int
12285 main ()
12286 {
12287 return XpCreateContext ();
12288 ;
12289 return 0;
12290 }
12291 _ACEOF
12292 rm -f conftest.$ac_objext conftest$ac_exeext
12293 if { (ac_try="$ac_link"
12294 case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297 esac
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_link") 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } && {
12306 test -z "$ac_c_werror_flag" ||
12307 test ! -s conftest.err
12308 } && test -s conftest$ac_exeext &&
12309 $as_test_x conftest$ac_exeext; then
12310 ac_cv_lib_Xp_XpCreateContext=yes
12311 else
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315 ac_cv_lib_Xp_XpCreateContext=no
12316 fi
12317
12318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12319 conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12321 fi
12322 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12323 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12324 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12325 HAVE_LIBXP=yes
12326 fi
12327
12328 if test ${HAVE_LIBXP} = yes; then
12329
12330 cat >>confdefs.h <<\_ACEOF
12331 #define HAVE_LIBXP 1
12332 _ACEOF
12333
12334 fi
12335 else
12336 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12337 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12338 if test "${emacs_cv_lesstif+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341 # We put this in CFLAGS temporarily to precede other -I options
12342 # that might be in CFLAGS temporarily.
12343 # We put this in CPPFLAGS where it precedes the other -I options.
12344 OLD_CPPFLAGS=$CPPFLAGS
12345 OLD_CFLAGS=$CFLAGS
12346 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12347 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12355 int
12356 main ()
12357 {
12358 int x = 5;
12359 ;
12360 return 0;
12361 }
12362 _ACEOF
12363 rm -f conftest.$ac_objext
12364 if { (ac_try="$ac_compile"
12365 case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12368 esac
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_compile") 2>conftest.er1
12371 ac_status=$?
12372 grep -v '^ *+' conftest.er1 >conftest.err
12373 rm -f conftest.er1
12374 cat conftest.err >&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } && {
12377 test -z "$ac_c_werror_flag" ||
12378 test ! -s conftest.err
12379 } && test -s conftest.$ac_objext; then
12380 emacs_cv_lesstif=yes
12381 else
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385 emacs_cv_lesstif=no
12386 fi
12387
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 fi
12390 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12391 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12392 if test $emacs_cv_lesstif = yes; then
12393 # Make sure this -I option remains in CPPFLAGS after it is set
12394 # back to REAL_CPPFLAGS.
12395 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12396 # have those other -I options anyway. Ultimately, having this
12397 # directory ultimately in CPPFLAGS will be enough.
12398 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12399 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12400 else
12401 CFLAGS=$OLD_CFLAGS
12402 CPPFLAGS=$OLD_CPPFLAGS
12403 fi
12404 fi
12405 fi
12406
12407
12408
12409 USE_TOOLKIT_SCROLL_BARS=no
12410 if test "${with_toolkit_scroll_bars}" != "no"; then
12411 if test "${USE_X_TOOLKIT}" != "none"; then
12412 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12413 cat >>confdefs.h <<\_ACEOF
12414 #define USE_TOOLKIT_SCROLL_BARS 1
12415 _ACEOF
12416
12417 HAVE_XAW3D=no
12418 USE_TOOLKIT_SCROLL_BARS=yes
12419 elif test "${HAVE_XAW3D}" = "yes"; then
12420 cat >>confdefs.h <<\_ACEOF
12421 #define USE_TOOLKIT_SCROLL_BARS 1
12422 _ACEOF
12423
12424 USE_TOOLKIT_SCROLL_BARS=yes
12425 fi
12426 elif test "${HAVE_GTK}" = "yes"; then
12427 cat >>confdefs.h <<\_ACEOF
12428 #define USE_TOOLKIT_SCROLL_BARS 1
12429 _ACEOF
12430
12431 USE_TOOLKIT_SCROLL_BARS=yes
12432 elif test "${HAVE_NS}" = "yes"; then
12433 cat >>confdefs.h <<\_ACEOF
12434 #define USE_TOOLKIT_SCROLL_BARS 1
12435 _ACEOF
12436
12437 USE_TOOLKIT_SCROLL_BARS=yes
12438 fi
12439 fi
12440
12441 cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h. */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447
12448 #include <X11/Xlib.h>
12449 #include <X11/Xresource.h>
12450 int
12451 main ()
12452 {
12453 XIMProc callback;
12454 ;
12455 return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext
12459 if { (ac_try="$ac_compile"
12460 case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463 esac
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_compile") 2>conftest.er1
12466 ac_status=$?
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } && {
12472 test -z "$ac_c_werror_flag" ||
12473 test ! -s conftest.err
12474 } && test -s conftest.$ac_objext; then
12475 HAVE_XIM=yes
12476
12477 cat >>confdefs.h <<\_ACEOF
12478 #define HAVE_XIM 1
12479 _ACEOF
12480
12481 else
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12484
12485 HAVE_XIM=no
12486 fi
12487
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489
12490
12491 if test "${with_xim}" != "no"; then
12492
12493 cat >>confdefs.h <<\_ACEOF
12494 #define USE_XIM 1
12495 _ACEOF
12496
12497 fi
12498
12499
12500 if test "${HAVE_XIM}" != "no"; then
12501 late_CFLAGS=$CFLAGS
12502 if test "$GCC" = yes; then
12503 CFLAGS="$CFLAGS --pedantic-errors"
12504 fi
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h. */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511
12512 #include <X11/Xlib.h>
12513 #include <X11/Xresource.h>
12514 int
12515 main ()
12516 {
12517 Display *display;
12518 XrmDatabase db;
12519 char *res_name;
12520 char *res_class;
12521 XIMProc callback;
12522 XPointer *client_data;
12523 #ifndef __GNUC__
12524 /* If we're not using GCC, it's probably not XFree86, and this is
12525 probably right, but we can't use something like --pedantic-errors. */
12526 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12527 char*, XIMProc, XPointer*);
12528 #endif
12529 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12530 client_data);
12531 ;
12532 return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (ac_try="$ac_compile"
12537 case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_compile") 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest.$ac_objext; then
12552 emacs_cv_arg6_star=yes
12553 else
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557
12558 fi
12559
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561
12562 if test "$emacs_cv_arg6_star" = yes; then
12563 cat >>confdefs.h <<\_ACEOF
12564 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12565 _ACEOF
12566
12567 else
12568 cat >>confdefs.h <<\_ACEOF
12569 #define XRegisterIMInstantiateCallback_arg6 XPointer
12570 _ACEOF
12571
12572 fi
12573 CFLAGS=$late_CFLAGS
12574 fi
12575
12576 ### Start of font-backend section.
12577
12578 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12579 HAVE_XFT=maybe
12580 if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then
12581 with_xft="no";
12582 fi
12583 if test "x${with_xft}" != "xno"; then
12584
12585
12586 succeeded=no
12587
12588 # Extract the first word of "pkg-config", so it can be a program name with args.
12589 set dummy pkg-config; ac_word=$2
12590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12592 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 case $PKG_CONFIG in
12596 [\\/]* | ?:[\\/]*)
12597 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12598 ;;
12599 *)
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12602 do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12607 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611 done
12612 done
12613 IFS=$as_save_IFS
12614
12615 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12616 ;;
12617 esac
12618 fi
12619 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12620 if test -n "$PKG_CONFIG"; then
12621 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12622 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12623 else
12624 { echo "$as_me:$LINENO: result: no" >&5
12625 echo "${ECHO_T}no" >&6; }
12626 fi
12627
12628
12629
12630 if test "$PKG_CONFIG" = "no" ; then
12631 HAVE_XFT=no
12632 else
12633 PKG_CONFIG_MIN_VERSION=0.9.0
12634 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12635 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12636 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12637
12638 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12639 { echo "$as_me:$LINENO: result: yes" >&5
12640 echo "${ECHO_T}yes" >&6; }
12641 succeeded=yes
12642
12643 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12644 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12645 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12646 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12647 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12648
12649 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12650 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12651 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12652 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12653 echo "${ECHO_T}$XFT_LIBS" >&6; }
12654 else
12655 { echo "$as_me:$LINENO: result: no" >&5
12656 echo "${ECHO_T}no" >&6; }
12657 XFT_CFLAGS=""
12658 XFT_LIBS=""
12659 ## If we have a custom action on failure, don't print errors, but
12660 ## do set a variable so people can do so.
12661 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12662
12663 fi
12664
12665
12666
12667 else
12668 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12669 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12670 fi
12671 fi
12672
12673 if test $succeeded = yes; then
12674 :
12675 else
12676 HAVE_XFT=no
12677 fi
12678
12679 if test "$HAVE_XFT" != no; then
12680 OLD_CPPFLAGS="$CPPFLAGS"
12681 OLD_CFLAGS="$CFLAGS"
12682 OLD_LIBS="$LIBS"
12683 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12684 CFLAGS="$CFLAGS $XFT_CFLAGS"
12685 LIBS="$XFT_LIBS $LIBS"
12686 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12687 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12688 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12689 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 fi
12692 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12693 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12694 else
12695 # Is the header compilable?
12696 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12697 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12698 cat >conftest.$ac_ext <<_ACEOF
12699 /* confdefs.h. */
12700 _ACEOF
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12704 $ac_includes_default
12705 #include <X11/Xft/Xft.h>
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (ac_try="$ac_compile"
12709 case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12712 esac
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_compile") 2>conftest.er1
12715 ac_status=$?
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } && {
12721 test -z "$ac_c_werror_flag" ||
12722 test ! -s conftest.err
12723 } && test -s conftest.$ac_objext; then
12724 ac_header_compiler=yes
12725 else
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12728
12729 ac_header_compiler=no
12730 fi
12731
12732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12734 echo "${ECHO_T}$ac_header_compiler" >&6; }
12735
12736 # Is the header present?
12737 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12738 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h. */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12745 #include <X11/Xft/Xft.h>
12746 _ACEOF
12747 if { (ac_try="$ac_cpp conftest.$ac_ext"
12748 case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751 esac
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } >/dev/null && {
12760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12761 test ! -s conftest.err
12762 }; then
12763 ac_header_preproc=yes
12764 else
12765 echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12767
12768 ac_header_preproc=no
12769 fi
12770
12771 rm -f conftest.err conftest.$ac_ext
12772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12773 echo "${ECHO_T}$ac_header_preproc" >&6; }
12774
12775 # So? What about this header?
12776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12777 yes:no: )
12778 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12779 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12780 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12781 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12782 ac_header_preproc=yes
12783 ;;
12784 no:yes:* )
12785 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12786 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12787 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12788 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12789 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12790 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12792 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12793 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12794 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12795 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12796 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12797
12798 ;;
12799 esac
12800 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12801 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12802 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12806 fi
12807 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12808 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12809
12810 fi
12811 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12812 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12813 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12814 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817 ac_check_lib_save_LIBS=$LIBS
12818 LIBS="-lXft $XFT_LIBS $LIBS"
12819 cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h. */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12825
12826 /* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
12829 #ifdef __cplusplus
12830 extern "C"
12831 #endif
12832 char XftFontOpen ();
12833 int
12834 main ()
12835 {
12836 return XftFontOpen ();
12837 ;
12838 return 0;
12839 }
12840 _ACEOF
12841 rm -f conftest.$ac_objext conftest$ac_exeext
12842 if { (ac_try="$ac_link"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846 esac
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_link") 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } && {
12855 test -z "$ac_c_werror_flag" ||
12856 test ! -s conftest.err
12857 } && test -s conftest$ac_exeext &&
12858 $as_test_x conftest$ac_exeext; then
12859 ac_cv_lib_Xft_XftFontOpen=yes
12860 else
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12863
12864 ac_cv_lib_Xft_XftFontOpen=no
12865 fi
12866
12867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12868 conftest$ac_exeext conftest.$ac_ext
12869 LIBS=$ac_check_lib_save_LIBS
12870 fi
12871 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12872 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12873 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12874 HAVE_XFT=yes
12875 fi
12876
12877 fi
12878
12879
12880
12881 if test "${HAVE_XFT}" = "yes"; then
12882
12883 cat >>confdefs.h <<\_ACEOF
12884 #define HAVE_XFT 1
12885 _ACEOF
12886
12887
12888 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12889 else
12890 CPPFLAGS="$OLD_CPPFLAGS"
12891 CFLAGS="$OLD_CFLAGS"
12892 LIBS="$OLD_LIBS"
12893 fi # "${HAVE_XFT}" = "yes"
12894 fi # "$HAVE_XFT" != no
12895 fi # "x${with_xft}" != "xno"
12896
12897 if test "$HAVE_XFT" != "yes"; then
12898 HAVE_XFT=no
12899 fi
12900
12901
12902 HAVE_FREETYPE=no
12903 ### Use -lfreetype if available, unless `--with-freetype=no'.
12904 if test "${HAVE_XFT}" = "yes"; then
12905 HAVE_FREETYPE=yes
12906 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
12907
12908
12909 succeeded=no
12910
12911 # Extract the first word of "pkg-config", so it can be a program name with args.
12912 set dummy pkg-config; ac_word=$2
12913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12915 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 else
12918 case $PKG_CONFIG in
12919 [\\/]* | ?:[\\/]*)
12920 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12921 ;;
12922 *)
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 for as_dir in $PATH
12925 do
12926 IFS=$as_save_IFS
12927 test -z "$as_dir" && as_dir=.
12928 for ac_exec_ext in '' $ac_executable_extensions; do
12929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12930 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12932 break 2
12933 fi
12934 done
12935 done
12936 IFS=$as_save_IFS
12937
12938 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12939 ;;
12940 esac
12941 fi
12942 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12943 if test -n "$PKG_CONFIG"; then
12944 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12945 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12946 else
12947 { echo "$as_me:$LINENO: result: no" >&5
12948 echo "${ECHO_T}no" >&6; }
12949 fi
12950
12951
12952
12953 if test "$PKG_CONFIG" = "no" ; then
12954 HAVE_FREETYPE=no
12955 else
12956 PKG_CONFIG_MIN_VERSION=0.9.0
12957 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12958 { echo "$as_me:$LINENO: checking for freetype2" >&5
12959 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12960
12961 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12962 { echo "$as_me:$LINENO: result: yes" >&5
12963 echo "${ECHO_T}yes" >&6; }
12964 succeeded=yes
12965
12966 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12967 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12968 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12969 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12970 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12971
12972 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12973 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12974 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12975 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12976 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12977 else
12978 { echo "$as_me:$LINENO: result: no" >&5
12979 echo "${ECHO_T}no" >&6; }
12980 FREETYPE_CFLAGS=""
12981 FREETYPE_LIBS=""
12982 ## If we have a custom action on failure, don't print errors, but
12983 ## do set a variable so people can do so.
12984 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12985
12986 fi
12987
12988
12989
12990 else
12991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12993 fi
12994 fi
12995
12996 if test $succeeded = yes; then
12997 HAVE_FREETYPE=yes
12998 else
12999 HAVE_FREETYPE=no
13000 fi
13001
13002 if test "${HAVE_FREETYPE}" = "yes"; then
13003
13004 succeeded=no
13005
13006 # Extract the first word of "pkg-config", so it can be a program name with args.
13007 set dummy pkg-config; ac_word=$2
13008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13010 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13011 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013 case $PKG_CONFIG in
13014 [\\/]* | ?:[\\/]*)
13015 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13016 ;;
13017 *)
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13020 do
13021 IFS=$as_save_IFS
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
13024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13025 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 break 2
13028 fi
13029 done
13030 done
13031 IFS=$as_save_IFS
13032
13033 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13034 ;;
13035 esac
13036 fi
13037 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13038 if test -n "$PKG_CONFIG"; then
13039 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13040 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13041 else
13042 { echo "$as_me:$LINENO: result: no" >&5
13043 echo "${ECHO_T}no" >&6; }
13044 fi
13045
13046
13047
13048 if test "$PKG_CONFIG" = "no" ; then
13049 HAVE_FC=no
13050 else
13051 PKG_CONFIG_MIN_VERSION=0.9.0
13052 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13053 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13054 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13055
13056 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13057 { echo "$as_me:$LINENO: result: yes" >&5
13058 echo "${ECHO_T}yes" >&6; }
13059 succeeded=yes
13060
13061 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13062 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13063 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13064 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13065 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13066
13067 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13068 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13069 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13070 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13071 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13072 else
13073 { echo "$as_me:$LINENO: result: no" >&5
13074 echo "${ECHO_T}no" >&6; }
13075 FONTCONFIG_CFLAGS=""
13076 FONTCONFIG_LIBS=""
13077 ## If we have a custom action on failure, don't print errors, but
13078 ## do set a variable so people can do so.
13079 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13080
13081 fi
13082
13083
13084
13085 else
13086 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13087 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13088 fi
13089 fi
13090
13091 if test $succeeded = yes; then
13092 HAVE_FC=yes
13093 else
13094 HAVE_FC=no
13095 fi
13096
13097 if test "${HAVE_FC}" = "no"; then
13098 HAVE_FREETYPE=no
13099 fi
13100 fi
13101 fi
13102
13103 HAVE_LIBOTF=no
13104 if test "${HAVE_FREETYPE}" = "yes"; then
13105
13106 cat >>confdefs.h <<\_ACEOF
13107 #define HAVE_FREETYPE 1
13108 _ACEOF
13109
13110 if test "${with_libotf}" != "no"; then
13111
13112 succeeded=no
13113
13114 # Extract the first word of "pkg-config", so it can be a program name with args.
13115 set dummy pkg-config; ac_word=$2
13116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 else
13121 case $PKG_CONFIG in
13122 [\\/]* | ?:[\\/]*)
13123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13124 ;;
13125 *)
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127 for as_dir in $PATH
13128 do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
13136 fi
13137 done
13138 done
13139 IFS=$as_save_IFS
13140
13141 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13142 ;;
13143 esac
13144 fi
13145 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13146 if test -n "$PKG_CONFIG"; then
13147 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13148 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13149 else
13150 { echo "$as_me:$LINENO: result: no" >&5
13151 echo "${ECHO_T}no" >&6; }
13152 fi
13153
13154
13155
13156 if test "$PKG_CONFIG" = "no" ; then
13157 HAVE_LIBOTF=no
13158 else
13159 PKG_CONFIG_MIN_VERSION=0.9.0
13160 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13161 { echo "$as_me:$LINENO: checking for libotf" >&5
13162 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13163
13164 if $PKG_CONFIG --exists "libotf" 2>&5; then
13165 { echo "$as_me:$LINENO: result: yes" >&5
13166 echo "${ECHO_T}yes" >&6; }
13167 succeeded=yes
13168
13169 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13170 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13171 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13172 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13173 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13174
13175 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13176 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13177 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13178 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13179 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13180 else
13181 { echo "$as_me:$LINENO: result: no" >&5
13182 echo "${ECHO_T}no" >&6; }
13183 LIBOTF_CFLAGS=""
13184 LIBOTF_LIBS=""
13185 ## If we have a custom action on failure, don't print errors, but
13186 ## do set a variable so people can do so.
13187 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13188
13189 fi
13190
13191
13192
13193 else
13194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13196 fi
13197 fi
13198
13199 if test $succeeded = yes; then
13200 HAVE_LIBOTF=yes
13201 else
13202 HAVE_LIBOTF=no
13203 fi
13204
13205 if test "$HAVE_LIBOTF" = "yes"; then
13206
13207 cat >>confdefs.h <<\_ACEOF
13208 #define HAVE_LIBOTF 1
13209 _ACEOF
13210
13211 fi
13212 fi
13213 fi
13214
13215 HAVE_M17N_FLT=no
13216 if test "${HAVE_LIBOTF}" = yes; then
13217 if test "${with_m17n_flt}" != "no"; then
13218
13219 succeeded=no
13220
13221 # Extract the first word of "pkg-config", so it can be a program name with args.
13222 set dummy pkg-config; ac_word=$2
13223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13225 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228 case $PKG_CONFIG in
13229 [\\/]* | ?:[\\/]*)
13230 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13231 ;;
13232 *)
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13235 do
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13243 fi
13244 done
13245 done
13246 IFS=$as_save_IFS
13247
13248 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13249 ;;
13250 esac
13251 fi
13252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13253 if test -n "$PKG_CONFIG"; then
13254 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13255 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13256 else
13257 { echo "$as_me:$LINENO: result: no" >&5
13258 echo "${ECHO_T}no" >&6; }
13259 fi
13260
13261
13262
13263 if test "$PKG_CONFIG" = "no" ; then
13264 HAVE_M17N_FLT=no
13265 else
13266 PKG_CONFIG_MIN_VERSION=0.9.0
13267 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13268 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13269 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13270
13271 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13272 { echo "$as_me:$LINENO: result: yes" >&5
13273 echo "${ECHO_T}yes" >&6; }
13274 succeeded=yes
13275
13276 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13277 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13278 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13279 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13280 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13281
13282 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13283 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13284 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13285 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13286 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13287 else
13288 { echo "$as_me:$LINENO: result: no" >&5
13289 echo "${ECHO_T}no" >&6; }
13290 M17N_FLT_CFLAGS=""
13291 M17N_FLT_LIBS=""
13292 ## If we have a custom action on failure, don't print errors, but
13293 ## do set a variable so people can do so.
13294 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13295
13296 fi
13297
13298
13299
13300 else
13301 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13302 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13303 fi
13304 fi
13305
13306 if test $succeeded = yes; then
13307 HAVE_M17N_FLT=yes
13308 else
13309 HAVE_M17N_FLT=no
13310 fi
13311
13312 if test "$HAVE_M17N_FLT" = "yes"; then
13313
13314 cat >>confdefs.h <<\_ACEOF
13315 #define HAVE_M17N_FLT 1
13316 _ACEOF
13317
13318 fi
13319 fi
13320 fi
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331 ### End of font-backend section.
13332
13333 ### Use -lXpm if available, unless `--with-xpm=no'.
13334 HAVE_XPM=no
13335 if test "${HAVE_X11}" = "yes"; then
13336 if test "${with_xpm}" != "no"; then
13337 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13338 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13339 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13340 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 fi
13343 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13344 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13345 else
13346 # Is the header compilable?
13347 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13348 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13349 cat >conftest.$ac_ext <<_ACEOF
13350 /* confdefs.h. */
13351 _ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 $ac_includes_default
13356 #include <X11/xpm.h>
13357 _ACEOF
13358 rm -f conftest.$ac_objext
13359 if { (ac_try="$ac_compile"
13360 case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363 esac
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_compile") 2>conftest.er1
13366 ac_status=$?
13367 grep -v '^ *+' conftest.er1 >conftest.err
13368 rm -f conftest.er1
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } && {
13372 test -z "$ac_c_werror_flag" ||
13373 test ! -s conftest.err
13374 } && test -s conftest.$ac_objext; then
13375 ac_header_compiler=yes
13376 else
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13379
13380 ac_header_compiler=no
13381 fi
13382
13383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13385 echo "${ECHO_T}$ac_header_compiler" >&6; }
13386
13387 # Is the header present?
13388 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13389 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13390 cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h. */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 #include <X11/xpm.h>
13397 _ACEOF
13398 if { (ac_try="$ac_cpp conftest.$ac_ext"
13399 case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402 esac
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13405 ac_status=$?
13406 grep -v '^ *+' conftest.er1 >conftest.err
13407 rm -f conftest.er1
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } >/dev/null && {
13411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13412 test ! -s conftest.err
13413 }; then
13414 ac_header_preproc=yes
13415 else
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13418
13419 ac_header_preproc=no
13420 fi
13421
13422 rm -f conftest.err conftest.$ac_ext
13423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13424 echo "${ECHO_T}$ac_header_preproc" >&6; }
13425
13426 # So? What about this header?
13427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13428 yes:no: )
13429 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13430 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13431 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13432 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13433 ac_header_preproc=yes
13434 ;;
13435 no:yes:* )
13436 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13437 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13439 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13440 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13441 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13443 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13445 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13447 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13448
13449 ;;
13450 esac
13451 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13452 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13453 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456 ac_cv_header_X11_xpm_h=$ac_header_preproc
13457 fi
13458 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13459 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13460
13461 fi
13462 if test $ac_cv_header_X11_xpm_h = yes; then
13463 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13464 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13465 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468 ac_check_lib_save_LIBS=$LIBS
13469 LIBS="-lXpm -lX11 $LIBS"
13470 cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h. */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476
13477 /* Override any GCC internal prototype to avoid an error.
13478 Use char because int might match the return type of a GCC
13479 builtin and then its argument prototype would still apply. */
13480 #ifdef __cplusplus
13481 extern "C"
13482 #endif
13483 char XpmReadFileToPixmap ();
13484 int
13485 main ()
13486 {
13487 return XpmReadFileToPixmap ();
13488 ;
13489 return 0;
13490 }
13491 _ACEOF
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (ac_try="$ac_link"
13494 case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_link") 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } && {
13506 test -z "$ac_c_werror_flag" ||
13507 test ! -s conftest.err
13508 } && test -s conftest$ac_exeext &&
13509 $as_test_x conftest$ac_exeext; then
13510 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13511 else
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13516 fi
13517
13518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LIBS=$ac_check_lib_save_LIBS
13521 fi
13522 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13523 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13524 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13525 HAVE_XPM=yes
13526 fi
13527
13528 fi
13529
13530
13531 if test "${HAVE_XPM}" = "yes"; then
13532 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13533 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h. */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13540 #include "X11/xpm.h"
13541 #ifndef XpmReturnAllocPixels
13542 no_return_alloc_pixels
13543 #endif
13544
13545 _ACEOF
13546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13547 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13548 HAVE_XPM=no
13549 else
13550 HAVE_XPM=yes
13551 fi
13552 rm -f conftest*
13553
13554
13555 if test "${HAVE_XPM}" = "yes"; then
13556 { echo "$as_me:$LINENO: result: yes" >&5
13557 echo "${ECHO_T}yes" >&6; }
13558 else
13559 { echo "$as_me:$LINENO: result: no" >&5
13560 echo "${ECHO_T}no" >&6; }
13561 fi
13562 fi
13563 fi
13564
13565 if test "${HAVE_XPM}" = "yes"; then
13566
13567 cat >>confdefs.h <<\_ACEOF
13568 #define HAVE_XPM 1
13569 _ACEOF
13570
13571 fi
13572 fi
13573
13574 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13575 HAVE_JPEG=no
13576 if test "${HAVE_X11}" = "yes"; then
13577 if test "${with_jpeg}" != "no"; then
13578 if test "${ac_cv_header_jerror_h+set}" = set; then
13579 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13580 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13581 if test "${ac_cv_header_jerror_h+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 fi
13584 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13585 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13586 else
13587 # Is the header compilable?
13588 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13589 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h. */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13596 $ac_includes_default
13597 #include <jerror.h>
13598 _ACEOF
13599 rm -f conftest.$ac_objext
13600 if { (ac_try="$ac_compile"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13604 esac
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_compile") 2>conftest.er1
13607 ac_status=$?
13608 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } && {
13613 test -z "$ac_c_werror_flag" ||
13614 test ! -s conftest.err
13615 } && test -s conftest.$ac_objext; then
13616 ac_header_compiler=yes
13617 else
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13620
13621 ac_header_compiler=no
13622 fi
13623
13624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13626 echo "${ECHO_T}$ac_header_compiler" >&6; }
13627
13628 # Is the header present?
13629 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13630 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13631 cat >conftest.$ac_ext <<_ACEOF
13632 /* confdefs.h. */
13633 _ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13637 #include <jerror.h>
13638 _ACEOF
13639 if { (ac_try="$ac_cpp conftest.$ac_ext"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643 esac
13644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } >/dev/null && {
13652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13653 test ! -s conftest.err
13654 }; then
13655 ac_header_preproc=yes
13656 else
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13659
13660 ac_header_preproc=no
13661 fi
13662
13663 rm -f conftest.err conftest.$ac_ext
13664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13665 echo "${ECHO_T}$ac_header_preproc" >&6; }
13666
13667 # So? What about this header?
13668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13669 yes:no: )
13670 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13671 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13672 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13673 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13674 ac_header_preproc=yes
13675 ;;
13676 no:yes:* )
13677 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13678 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13680 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13681 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13682 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13683 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13684 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13686 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13687 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13688 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13689
13690 ;;
13691 esac
13692 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13693 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13694 if test "${ac_cv_header_jerror_h+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13696 else
13697 ac_cv_header_jerror_h=$ac_header_preproc
13698 fi
13699 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13700 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13701
13702 fi
13703 if test $ac_cv_header_jerror_h = yes; then
13704 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13705 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13706 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 else
13709 ac_check_lib_save_LIBS=$LIBS
13710 LIBS="-ljpeg $LIBS"
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h. */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717
13718 /* Override any GCC internal prototype to avoid an error.
13719 Use char because int might match the return type of a GCC
13720 builtin and then its argument prototype would still apply. */
13721 #ifdef __cplusplus
13722 extern "C"
13723 #endif
13724 char jpeg_destroy_compress ();
13725 int
13726 main ()
13727 {
13728 return jpeg_destroy_compress ();
13729 ;
13730 return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest.$ac_objext conftest$ac_exeext
13734 if { (ac_try="$ac_link"
13735 case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13738 esac
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_link") 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } && {
13747 test -z "$ac_c_werror_flag" ||
13748 test ! -s conftest.err
13749 } && test -s conftest$ac_exeext &&
13750 $as_test_x conftest$ac_exeext; then
13751 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13752 else
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13755
13756 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13757 fi
13758
13759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13760 conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13762 fi
13763 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13764 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13765 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13766 HAVE_JPEG=yes
13767 fi
13768
13769 fi
13770
13771
13772 fi
13773
13774
13775 if test "${HAVE_JPEG}" = "yes"; then
13776 cat >>confdefs.h <<\_ACEOF
13777 #define HAVE_JPEG 1
13778 _ACEOF
13779
13780 cat >conftest.$ac_ext <<_ACEOF
13781 /* confdefs.h. */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 #include <jpeglib.h>
13787 version=JPEG_LIB_VERSION
13788
13789 _ACEOF
13790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13791 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13792 cat >>confdefs.h <<\_ACEOF
13793 #define HAVE_JPEG 1
13794 _ACEOF
13795
13796 else
13797 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13798 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13799 HAVE_JPEG=no
13800 fi
13801 rm -f conftest*
13802
13803 fi
13804 fi
13805
13806 ### Use -lpng if available, unless `--with-png=no'.
13807 HAVE_PNG=no
13808 if test "${HAVE_X11}" = "yes"; then
13809 if test "${with_png}" != "no"; then
13810 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13811 # in /usr/include/libpng.
13812
13813
13814 for ac_header in png.h libpng/png.h
13815 do
13816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 fi
13823 ac_res=`eval echo '${'$as_ac_Header'}'`
13824 { echo "$as_me:$LINENO: result: $ac_res" >&5
13825 echo "${ECHO_T}$ac_res" >&6; }
13826 else
13827 # Is the header compilable?
13828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h. */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 #include <$ac_header>
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (ac_try="$ac_compile"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compile") 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && {
13853 test -z "$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 } && test -s conftest.$ac_objext; then
13856 ac_header_compiler=yes
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 ac_header_compiler=no
13862 fi
13863
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13866 echo "${ECHO_T}$ac_header_compiler" >&6; }
13867
13868 # Is the header present?
13869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13871 cat >conftest.$ac_ext <<_ACEOF
13872 /* confdefs.h. */
13873 _ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877 #include <$ac_header>
13878 _ACEOF
13879 if { (ac_try="$ac_cpp conftest.$ac_ext"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883 esac
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } >/dev/null && {
13892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13894 }; then
13895 ac_header_preproc=yes
13896 else
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13899
13900 ac_header_preproc=no
13901 fi
13902
13903 rm -f conftest.err conftest.$ac_ext
13904 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13905 echo "${ECHO_T}$ac_header_preproc" >&6; }
13906
13907 # So? What about this header?
13908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13909 yes:no: )
13910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13914 ac_header_preproc=yes
13915 ;;
13916 no:yes:* )
13917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13929
13930 ;;
13931 esac
13932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 eval "$as_ac_Header=\$ac_header_preproc"
13938 fi
13939 ac_res=`eval echo '${'$as_ac_Header'}'`
13940 { echo "$as_me:$LINENO: result: $ac_res" >&5
13941 echo "${ECHO_T}$ac_res" >&6; }
13942
13943 fi
13944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13945 cat >>confdefs.h <<_ACEOF
13946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13947 _ACEOF
13948
13949 fi
13950
13951 done
13952
13953 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13954 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13955 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13956 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959 ac_check_lib_save_LIBS=$LIBS
13960 LIBS="-lpng -lz -lm $LIBS"
13961 cat >conftest.$ac_ext <<_ACEOF
13962 /* confdefs.h. */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967
13968 /* Override any GCC internal prototype to avoid an error.
13969 Use char because int might match the return type of a GCC
13970 builtin and then its argument prototype would still apply. */
13971 #ifdef __cplusplus
13972 extern "C"
13973 #endif
13974 char png_get_channels ();
13975 int
13976 main ()
13977 {
13978 return png_get_channels ();
13979 ;
13980 return 0;
13981 }
13982 _ACEOF
13983 rm -f conftest.$ac_objext conftest$ac_exeext
13984 if { (ac_try="$ac_link"
13985 case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13988 esac
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_link") 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } && {
13997 test -z "$ac_c_werror_flag" ||
13998 test ! -s conftest.err
13999 } && test -s conftest$ac_exeext &&
14000 $as_test_x conftest$ac_exeext; then
14001 ac_cv_lib_png_png_get_channels=yes
14002 else
14003 echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14005
14006 ac_cv_lib_png_png_get_channels=no
14007 fi
14008
14009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14010 conftest$ac_exeext conftest.$ac_ext
14011 LIBS=$ac_check_lib_save_LIBS
14012 fi
14013 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14014 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14015 if test $ac_cv_lib_png_png_get_channels = yes; then
14016 HAVE_PNG=yes
14017 fi
14018
14019 fi
14020 fi
14021
14022 if test "${HAVE_PNG}" = "yes"; then
14023
14024 cat >>confdefs.h <<\_ACEOF
14025 #define HAVE_PNG 1
14026 _ACEOF
14027
14028 fi
14029 fi
14030
14031 ### Use -ltiff if available, unless `--with-tiff=no'.
14032 HAVE_TIFF=no
14033 if test "${HAVE_X11}" = "yes"; then
14034 if test "${with_tiff}" != "no"; then
14035 if test "${ac_cv_header_tiffio_h+set}" = set; then
14036 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14037 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14038 if test "${ac_cv_header_tiffio_h+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 fi
14041 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14042 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14043 else
14044 # Is the header compilable?
14045 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14046 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14047 cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h. */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 $ac_includes_default
14054 #include <tiffio.h>
14055 _ACEOF
14056 rm -f conftest.$ac_objext
14057 if { (ac_try="$ac_compile"
14058 case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14061 esac
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_compile") 2>conftest.er1
14064 ac_status=$?
14065 grep -v '^ *+' conftest.er1 >conftest.err
14066 rm -f conftest.er1
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } && {
14070 test -z "$ac_c_werror_flag" ||
14071 test ! -s conftest.err
14072 } && test -s conftest.$ac_objext; then
14073 ac_header_compiler=yes
14074 else
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 ac_header_compiler=no
14079 fi
14080
14081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14083 echo "${ECHO_T}$ac_header_compiler" >&6; }
14084
14085 # Is the header present?
14086 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14087 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14088 cat >conftest.$ac_ext <<_ACEOF
14089 /* confdefs.h. */
14090 _ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 #include <tiffio.h>
14095 _ACEOF
14096 if { (ac_try="$ac_cpp conftest.$ac_ext"
14097 case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14100 esac
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14103 ac_status=$?
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } >/dev/null && {
14109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14110 test ! -s conftest.err
14111 }; then
14112 ac_header_preproc=yes
14113 else
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117 ac_header_preproc=no
14118 fi
14119
14120 rm -f conftest.err conftest.$ac_ext
14121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14122 echo "${ECHO_T}$ac_header_preproc" >&6; }
14123
14124 # So? What about this header?
14125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14126 yes:no: )
14127 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14128 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14130 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14131 ac_header_preproc=yes
14132 ;;
14133 no:yes:* )
14134 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14135 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14136 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14137 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14138 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14139 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14140 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14141 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14143 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14145 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14146
14147 ;;
14148 esac
14149 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14150 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14151 if test "${ac_cv_header_tiffio_h+set}" = set; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 else
14154 ac_cv_header_tiffio_h=$ac_header_preproc
14155 fi
14156 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14157 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14158
14159 fi
14160 if test $ac_cv_header_tiffio_h = yes; then
14161 tifflibs="-lz -lm"
14162 # At least one tiff package requires the jpeg library.
14163 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14164 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14165 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14166 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169 ac_check_lib_save_LIBS=$LIBS
14170 LIBS="-ltiff $tifflibs $LIBS"
14171 cat >conftest.$ac_ext <<_ACEOF
14172 /* confdefs.h. */
14173 _ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14177
14178 /* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
14181 #ifdef __cplusplus
14182 extern "C"
14183 #endif
14184 char TIFFGetVersion ();
14185 int
14186 main ()
14187 {
14188 return TIFFGetVersion ();
14189 ;
14190 return 0;
14191 }
14192 _ACEOF
14193 rm -f conftest.$ac_objext conftest$ac_exeext
14194 if { (ac_try="$ac_link"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198 esac
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest$ac_exeext &&
14210 $as_test_x conftest$ac_exeext; then
14211 ac_cv_lib_tiff_TIFFGetVersion=yes
14212 else
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14215
14216 ac_cv_lib_tiff_TIFFGetVersion=no
14217 fi
14218
14219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14220 conftest$ac_exeext conftest.$ac_ext
14221 LIBS=$ac_check_lib_save_LIBS
14222 fi
14223 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14224 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14225 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14226 HAVE_TIFF=yes
14227 fi
14228
14229 fi
14230
14231
14232 fi
14233
14234 if test "${HAVE_TIFF}" = "yes"; then
14235
14236 cat >>confdefs.h <<\_ACEOF
14237 #define HAVE_TIFF 1
14238 _ACEOF
14239
14240 fi
14241 fi
14242
14243 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14244 HAVE_GIF=no
14245 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14246 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14247 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14248 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14249 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 fi
14252 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14253 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14254 else
14255 # Is the header compilable?
14256 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14257 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14258 cat >conftest.$ac_ext <<_ACEOF
14259 /* confdefs.h. */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264 $ac_includes_default
14265 #include <gif_lib.h>
14266 _ACEOF
14267 rm -f conftest.$ac_objext
14268 if { (ac_try="$ac_compile"
14269 case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_compile") 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } && {
14281 test -z "$ac_c_werror_flag" ||
14282 test ! -s conftest.err
14283 } && test -s conftest.$ac_objext; then
14284 ac_header_compiler=yes
14285 else
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14288
14289 ac_header_compiler=no
14290 fi
14291
14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14294 echo "${ECHO_T}$ac_header_compiler" >&6; }
14295
14296 # Is the header present?
14297 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14298 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14299 cat >conftest.$ac_ext <<_ACEOF
14300 /* confdefs.h. */
14301 _ACEOF
14302 cat confdefs.h >>conftest.$ac_ext
14303 cat >>conftest.$ac_ext <<_ACEOF
14304 /* end confdefs.h. */
14305 #include <gif_lib.h>
14306 _ACEOF
14307 if { (ac_try="$ac_cpp conftest.$ac_ext"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14314 ac_status=$?
14315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } >/dev/null && {
14320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14321 test ! -s conftest.err
14322 }; then
14323 ac_header_preproc=yes
14324 else
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328 ac_header_preproc=no
14329 fi
14330
14331 rm -f conftest.err conftest.$ac_ext
14332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14333 echo "${ECHO_T}$ac_header_preproc" >&6; }
14334
14335 # So? What about this header?
14336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14337 yes:no: )
14338 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14339 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14341 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14342 ac_header_preproc=yes
14343 ;;
14344 no:yes:* )
14345 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14346 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14348 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14350 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14351 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14352 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14354 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14355 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14356 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14357
14358 ;;
14359 esac
14360 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14361 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14362 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 else
14365 ac_cv_header_gif_lib_h=$ac_header_preproc
14366 fi
14367 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14368 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14369
14370 fi
14371 if test $ac_cv_header_gif_lib_h = yes; then
14372 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14373 # Earlier versions can crash Emacs.
14374 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14375 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14376 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379 ac_check_lib_save_LIBS=$LIBS
14380 LIBS="-lgif $LIBS"
14381 cat >conftest.$ac_ext <<_ACEOF
14382 /* confdefs.h. */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14387
14388 /* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply. */
14391 #ifdef __cplusplus
14392 extern "C"
14393 #endif
14394 char EGifPutExtensionLast ();
14395 int
14396 main ()
14397 {
14398 return EGifPutExtensionLast ();
14399 ;
14400 return 0;
14401 }
14402 _ACEOF
14403 rm -f conftest.$ac_objext conftest$ac_exeext
14404 if { (ac_try="$ac_link"
14405 case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_link") 2>conftest.er1
14411 ac_status=$?
14412 grep -v '^ *+' conftest.er1 >conftest.err
14413 rm -f conftest.er1
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } && {
14417 test -z "$ac_c_werror_flag" ||
14418 test ! -s conftest.err
14419 } && test -s conftest$ac_exeext &&
14420 $as_test_x conftest$ac_exeext; then
14421 ac_cv_lib_gif_EGifPutExtensionLast=yes
14422 else
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426 ac_cv_lib_gif_EGifPutExtensionLast=no
14427 fi
14428
14429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14430 conftest$ac_exeext conftest.$ac_ext
14431 LIBS=$ac_check_lib_save_LIBS
14432 fi
14433 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14434 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14435 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14436 HAVE_GIF=yes
14437 else
14438 try_libungif=yes
14439 fi
14440
14441 fi
14442
14443
14444
14445 if test "$HAVE_GIF" = yes; then
14446 ac_gif_lib_name="-lgif"
14447 fi
14448
14449 # If gif_lib.h but no libgif, try libungif.
14450 if test x"$try_libungif" = xyes; then
14451 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14452 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14453 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 else
14456 ac_check_lib_save_LIBS=$LIBS
14457 LIBS="-lungif $LIBS"
14458 cat >conftest.$ac_ext <<_ACEOF
14459 /* confdefs.h. */
14460 _ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14464
14465 /* Override any GCC internal prototype to avoid an error.
14466 Use char because int might match the return type of a GCC
14467 builtin and then its argument prototype would still apply. */
14468 #ifdef __cplusplus
14469 extern "C"
14470 #endif
14471 char EGifPutExtensionLast ();
14472 int
14473 main ()
14474 {
14475 return EGifPutExtensionLast ();
14476 ;
14477 return 0;
14478 }
14479 _ACEOF
14480 rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (ac_try="$ac_link"
14482 case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485 esac
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_link") 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } && {
14494 test -z "$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14496 } && test -s conftest$ac_exeext &&
14497 $as_test_x conftest$ac_exeext; then
14498 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 ac_cv_lib_ungif_EGifPutExtensionLast=no
14504 fi
14505
14506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14507 conftest$ac_exeext conftest.$ac_ext
14508 LIBS=$ac_check_lib_save_LIBS
14509 fi
14510 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14511 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14512 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14513 HAVE_GIF=yes
14514 fi
14515
14516
14517 if test "$HAVE_GIF" = yes; then
14518
14519 cat >>confdefs.h <<\_ACEOF
14520 #define LIBGIF -lungif
14521 _ACEOF
14522
14523 ac_gif_lib_name="-lungif"
14524 fi
14525 fi
14526
14527 if test "${HAVE_GIF}" = "yes"; then
14528
14529 cat >>confdefs.h <<\_ACEOF
14530 #define HAVE_GIF 1
14531 _ACEOF
14532
14533 fi
14534 fi
14535
14536 if test "${HAVE_X11}" = "yes"; then
14537 MISSING=""
14538 WITH_NO=""
14539 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14540 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14541 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14542 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14543 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14544 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14545 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14546 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14547 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14548 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14549
14550 if test "X${MISSING}" != X; then
14551 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14552 $MISSING
14553 Maybe some development libraries/packages are missing?
14554 If you don't want to link with them give
14555 $WITH_NO
14556 as options to configure" >&5
14557 echo "$as_me: error: The following required libraries were not found:
14558 $MISSING
14559 Maybe some development libraries/packages are missing?
14560 If you don't want to link with them give
14561 $WITH_NO
14562 as options to configure" >&2;}
14563 { (exit 1); exit 1; }; }
14564 fi
14565 fi
14566
14567 ### Use -lgpm if available, unless `--with-gpm=no'.
14568 HAVE_GPM=no
14569 if test "${with_gpm}" != "no"; then
14570 if test "${ac_cv_header_gpm_h+set}" = set; then
14571 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14572 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14573 if test "${ac_cv_header_gpm_h+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 fi
14576 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14577 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14578 else
14579 # Is the header compilable?
14580 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14581 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14582 cat >conftest.$ac_ext <<_ACEOF
14583 /* confdefs.h. */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 $ac_includes_default
14589 #include <gpm.h>
14590 _ACEOF
14591 rm -f conftest.$ac_objext
14592 if { (ac_try="$ac_compile"
14593 case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14596 esac
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_compile") 2>conftest.er1
14599 ac_status=$?
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } && {
14605 test -z "$ac_c_werror_flag" ||
14606 test ! -s conftest.err
14607 } && test -s conftest.$ac_objext; then
14608 ac_header_compiler=yes
14609 else
14610 echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14612
14613 ac_header_compiler=no
14614 fi
14615
14616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14618 echo "${ECHO_T}$ac_header_compiler" >&6; }
14619
14620 # Is the header present?
14621 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14622 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 #include <gpm.h>
14630 _ACEOF
14631 if { (ac_try="$ac_cpp conftest.$ac_ext"
14632 case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14635 esac
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14638 ac_status=$?
14639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } >/dev/null && {
14644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14645 test ! -s conftest.err
14646 }; then
14647 ac_header_preproc=yes
14648 else
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14651
14652 ac_header_preproc=no
14653 fi
14654
14655 rm -f conftest.err conftest.$ac_ext
14656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14657 echo "${ECHO_T}$ac_header_preproc" >&6; }
14658
14659 # So? What about this header?
14660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14661 yes:no: )
14662 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14663 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14664 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14665 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14666 ac_header_preproc=yes
14667 ;;
14668 no:yes:* )
14669 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14670 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14671 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14672 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14673 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14674 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14676 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14678 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14680 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14681
14682 ;;
14683 esac
14684 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14685 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14686 if test "${ac_cv_header_gpm_h+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689 ac_cv_header_gpm_h=$ac_header_preproc
14690 fi
14691 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14692 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14693
14694 fi
14695 if test $ac_cv_header_gpm_h = yes; then
14696 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14697 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14698 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701 ac_check_lib_save_LIBS=$LIBS
14702 LIBS="-lgpm $LIBS"
14703 cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h. */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709
14710 /* Override any GCC internal prototype to avoid an error.
14711 Use char because int might match the return type of a GCC
14712 builtin and then its argument prototype would still apply. */
14713 #ifdef __cplusplus
14714 extern "C"
14715 #endif
14716 char Gpm_Open ();
14717 int
14718 main ()
14719 {
14720 return Gpm_Open ();
14721 ;
14722 return 0;
14723 }
14724 _ACEOF
14725 rm -f conftest.$ac_objext conftest$ac_exeext
14726 if { (ac_try="$ac_link"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730 esac
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_link") 2>conftest.er1
14733 ac_status=$?
14734 grep -v '^ *+' conftest.er1 >conftest.err
14735 rm -f conftest.er1
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } && {
14739 test -z "$ac_c_werror_flag" ||
14740 test ! -s conftest.err
14741 } && test -s conftest$ac_exeext &&
14742 $as_test_x conftest$ac_exeext; then
14743 ac_cv_lib_gpm_Gpm_Open=yes
14744 else
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748 ac_cv_lib_gpm_Gpm_Open=no
14749 fi
14750
14751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14752 conftest$ac_exeext conftest.$ac_ext
14753 LIBS=$ac_check_lib_save_LIBS
14754 fi
14755 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14756 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14757 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14758 HAVE_GPM=yes
14759 fi
14760
14761 fi
14762
14763
14764 fi
14765
14766 if test "${HAVE_GPM}" = "yes"; then
14767
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_GPM 1
14770 _ACEOF
14771
14772 fi
14773
14774 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14775 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14776 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14777 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 fi
14780 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14781 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14782 else
14783 # Is the header compilable?
14784 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14785 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14786 cat >conftest.$ac_ext <<_ACEOF
14787 /* confdefs.h. */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14792 $ac_includes_default
14793 #include <malloc/malloc.h>
14794 _ACEOF
14795 rm -f conftest.$ac_objext
14796 if { (ac_try="$ac_compile"
14797 case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14800 esac
14801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802 (eval "$ac_compile") 2>conftest.er1
14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } && {
14809 test -z "$ac_c_werror_flag" ||
14810 test ! -s conftest.err
14811 } && test -s conftest.$ac_objext; then
14812 ac_header_compiler=yes
14813 else
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817 ac_header_compiler=no
14818 fi
14819
14820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14822 echo "${ECHO_T}$ac_header_compiler" >&6; }
14823
14824 # Is the header present?
14825 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14826 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14827 cat >conftest.$ac_ext <<_ACEOF
14828 /* confdefs.h. */
14829 _ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h. */
14833 #include <malloc/malloc.h>
14834 _ACEOF
14835 if { (ac_try="$ac_cpp conftest.$ac_ext"
14836 case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14839 esac
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14842 ac_status=$?
14843 grep -v '^ *+' conftest.er1 >conftest.err
14844 rm -f conftest.er1
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } >/dev/null && {
14848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14849 test ! -s conftest.err
14850 }; then
14851 ac_header_preproc=yes
14852 else
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14855
14856 ac_header_preproc=no
14857 fi
14858
14859 rm -f conftest.err conftest.$ac_ext
14860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14861 echo "${ECHO_T}$ac_header_preproc" >&6; }
14862
14863 # So? What about this header?
14864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14865 yes:no: )
14866 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14867 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14869 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14870 ac_header_preproc=yes
14871 ;;
14872 no:yes:* )
14873 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14874 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14876 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14878 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14880 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14882 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14884 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14885
14886 ;;
14887 esac
14888 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14889 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14890 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 else
14893 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14894 fi
14895 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14896 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14897
14898 fi
14899 if test $ac_cv_header_malloc_malloc_h = yes; then
14900
14901 cat >>confdefs.h <<\_ACEOF
14902 #define HAVE_MALLOC_MALLOC_H 1
14903 _ACEOF
14904
14905 fi
14906
14907
14908
14909 ### Use NeXTstep API to implement GUI.
14910 if test "${HAVE_NS}" = "yes"; then
14911
14912 cat >>confdefs.h <<\_ACEOF
14913 #define HAVE_NS 1
14914 _ACEOF
14915
14916 if test "${NS_IMPL_COCOA}" = "yes"; then
14917
14918 cat >>confdefs.h <<\_ACEOF
14919 #define NS_IMPL_COCOA 1
14920 _ACEOF
14921
14922 GNU_OBJC_CFLAGS=
14923 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14924 fi
14925 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14926
14927 cat >>confdefs.h <<\_ACEOF
14928 #define COCOA_EXPERIMENTAL_CTRL_G 1
14929 _ACEOF
14930
14931 fi
14932 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14933
14934 cat >>confdefs.h <<\_ACEOF
14935 #define NS_IMPL_GNUSTEP 1
14936 _ACEOF
14937
14938 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14939 fi
14940 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14941
14942 cat >>confdefs.h <<\_ACEOF
14943 #define NS_HAVE_NSINTEGER 1
14944 _ACEOF
14945
14946 fi
14947 # We also have mouse menus.
14948 HAVE_MENUS=yes
14949 fi
14950
14951
14952 ### Use session management (-lSM -lICE) if available
14953 HAVE_X_SM=no
14954 if test "${HAVE_X11}" = "yes"; then
14955 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14956 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14957 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14958 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 fi
14961 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14962 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14963 else
14964 # Is the header compilable?
14965 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14966 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14967 cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h. */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 $ac_includes_default
14974 #include <X11/SM/SMlib.h>
14975 _ACEOF
14976 rm -f conftest.$ac_objext
14977 if { (ac_try="$ac_compile"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_compile") 2>conftest.er1
14984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && {
14990 test -z "$ac_c_werror_flag" ||
14991 test ! -s conftest.err
14992 } && test -s conftest.$ac_objext; then
14993 ac_header_compiler=yes
14994 else
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 ac_header_compiler=no
14999 fi
15000
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15003 echo "${ECHO_T}$ac_header_compiler" >&6; }
15004
15005 # Is the header present?
15006 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15007 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15008 cat >conftest.$ac_ext <<_ACEOF
15009 /* confdefs.h. */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 #include <X11/SM/SMlib.h>
15015 _ACEOF
15016 if { (ac_try="$ac_cpp conftest.$ac_ext"
15017 case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15020 esac
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } >/dev/null && {
15029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15030 test ! -s conftest.err
15031 }; then
15032 ac_header_preproc=yes
15033 else
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15036
15037 ac_header_preproc=no
15038 fi
15039
15040 rm -f conftest.err conftest.$ac_ext
15041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15042 echo "${ECHO_T}$ac_header_preproc" >&6; }
15043
15044 # So? What about this header?
15045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15046 yes:no: )
15047 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15048 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15050 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15051 ac_header_preproc=yes
15052 ;;
15053 no:yes:* )
15054 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15055 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15056 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15057 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15058 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15059 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15060 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15061 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15063 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15065 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15066
15067 ;;
15068 esac
15069 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15070 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15071 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15075 fi
15076 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15077 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15078
15079 fi
15080 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15081 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15082 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15083 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086 ac_check_lib_save_LIBS=$LIBS
15087 LIBS="-lSM -lICE $LIBS"
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h. */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15094
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char SmcOpenConnection ();
15102 int
15103 main ()
15104 {
15105 return SmcOpenConnection ();
15106 ;
15107 return 0;
15108 }
15109 _ACEOF
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (ac_try="$ac_link"
15112 case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15115 esac
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_link") 2>conftest.er1
15118 ac_status=$?
15119 grep -v '^ *+' conftest.er1 >conftest.err
15120 rm -f conftest.er1
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } && {
15124 test -z "$ac_c_werror_flag" ||
15125 test ! -s conftest.err
15126 } && test -s conftest$ac_exeext &&
15127 $as_test_x conftest$ac_exeext; then
15128 ac_cv_lib_SM_SmcOpenConnection=yes
15129 else
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133 ac_cv_lib_SM_SmcOpenConnection=no
15134 fi
15135
15136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15137 conftest$ac_exeext conftest.$ac_ext
15138 LIBS=$ac_check_lib_save_LIBS
15139 fi
15140 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15141 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15142 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15143 HAVE_X_SM=yes
15144 fi
15145
15146 fi
15147
15148
15149
15150 if test "${HAVE_X_SM}" = "yes"; then
15151
15152 cat >>confdefs.h <<\_ACEOF
15153 #define HAVE_X_SM 1
15154 _ACEOF
15155
15156 case "$LIBS" in
15157 *-lSM*) ;;
15158 *) LIBS="-lSM -lICE $LIBS" ;;
15159 esac
15160 fi
15161 fi
15162
15163 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15164 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15165 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15166 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169 cat >conftest.$ac_ext <<_ACEOF
15170 /* confdefs.h. */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15175 #include <netdb.h>
15176 int
15177 main ()
15178 {
15179 return h_errno;
15180 ;
15181 return 0;
15182 }
15183 _ACEOF
15184 rm -f conftest.$ac_objext conftest$ac_exeext
15185 if { (ac_try="$ac_link"
15186 case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15189 esac
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_link") 2>conftest.er1
15192 ac_status=$?
15193 grep -v '^ *+' conftest.er1 >conftest.err
15194 rm -f conftest.er1
15195 cat conftest.err >&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } && {
15198 test -z "$ac_c_werror_flag" ||
15199 test ! -s conftest.err
15200 } && test -s conftest$ac_exeext &&
15201 $as_test_x conftest$ac_exeext; then
15202 emacs_cv_netdb_declares_h_errno=yes
15203 else
15204 echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15206
15207 emacs_cv_netdb_declares_h_errno=no
15208 fi
15209
15210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15211 conftest$ac_exeext conftest.$ac_ext
15212 fi
15213 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15214 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15215 if test $emacs_cv_netdb_declares_h_errno = yes; then
15216
15217 cat >>confdefs.h <<\_ACEOF
15218 #define HAVE_H_ERRNO 1
15219 _ACEOF
15220
15221 fi
15222
15223 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15224 # for constant arguments. Useless!
15225 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15226 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15227 if test "${ac_cv_working_alloca_h+set}" = set; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15229 else
15230 cat >conftest.$ac_ext <<_ACEOF
15231 /* confdefs.h. */
15232 _ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15236 #include <alloca.h>
15237 int
15238 main ()
15239 {
15240 char *p = (char *) alloca (2 * sizeof (int));
15241 if (p) return 0;
15242 ;
15243 return 0;
15244 }
15245 _ACEOF
15246 rm -f conftest.$ac_objext conftest$ac_exeext
15247 if { (ac_try="$ac_link"
15248 case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15251 esac
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_link") 2>conftest.er1
15254 ac_status=$?
15255 grep -v '^ *+' conftest.er1 >conftest.err
15256 rm -f conftest.er1
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } && {
15260 test -z "$ac_c_werror_flag" ||
15261 test ! -s conftest.err
15262 } && test -s conftest$ac_exeext &&
15263 $as_test_x conftest$ac_exeext; then
15264 ac_cv_working_alloca_h=yes
15265 else
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15268
15269 ac_cv_working_alloca_h=no
15270 fi
15271
15272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15273 conftest$ac_exeext conftest.$ac_ext
15274 fi
15275 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15276 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15277 if test $ac_cv_working_alloca_h = yes; then
15278
15279 cat >>confdefs.h <<\_ACEOF
15280 #define HAVE_ALLOCA_H 1
15281 _ACEOF
15282
15283 fi
15284
15285 { echo "$as_me:$LINENO: checking for alloca" >&5
15286 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15287 if test "${ac_cv_func_alloca_works+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h. */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 #ifdef __GNUC__
15297 # define alloca __builtin_alloca
15298 #else
15299 # ifdef _MSC_VER
15300 # include <malloc.h>
15301 # define alloca _alloca
15302 # else
15303 # ifdef HAVE_ALLOCA_H
15304 # include <alloca.h>
15305 # else
15306 # ifdef _AIX
15307 #pragma alloca
15308 # else
15309 # ifndef alloca /* predefined by HP cc +Olibcalls */
15310 char *alloca ();
15311 # endif
15312 # endif
15313 # endif
15314 # endif
15315 #endif
15316
15317 int
15318 main ()
15319 {
15320 char *p = (char *) alloca (1);
15321 if (p) return 0;
15322 ;
15323 return 0;
15324 }
15325 _ACEOF
15326 rm -f conftest.$ac_objext conftest$ac_exeext
15327 if { (ac_try="$ac_link"
15328 case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_link") 2>conftest.er1
15334 ac_status=$?
15335 grep -v '^ *+' conftest.er1 >conftest.err
15336 rm -f conftest.er1
15337 cat conftest.err >&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } && {
15340 test -z "$ac_c_werror_flag" ||
15341 test ! -s conftest.err
15342 } && test -s conftest$ac_exeext &&
15343 $as_test_x conftest$ac_exeext; then
15344 ac_cv_func_alloca_works=yes
15345 else
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349 ac_cv_func_alloca_works=no
15350 fi
15351
15352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15353 conftest$ac_exeext conftest.$ac_ext
15354 fi
15355 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15356 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15357
15358 if test $ac_cv_func_alloca_works = yes; then
15359
15360 cat >>confdefs.h <<\_ACEOF
15361 #define HAVE_ALLOCA 1
15362 _ACEOF
15363
15364 else
15365 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15366 # that cause trouble. Some versions do not even contain alloca or
15367 # contain a buggy version. If you still want to use their alloca,
15368 # use ar to extract alloca.o from them instead of compiling alloca.c.
15369
15370 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15371
15372 cat >>confdefs.h <<\_ACEOF
15373 #define C_ALLOCA 1
15374 _ACEOF
15375
15376
15377 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15378 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15379 if test "${ac_cv_os_cray+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382 cat >conftest.$ac_ext <<_ACEOF
15383 /* confdefs.h. */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 #if defined CRAY && ! defined CRAY2
15389 webecray
15390 #else
15391 wenotbecray
15392 #endif
15393
15394 _ACEOF
15395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15396 $EGREP "webecray" >/dev/null 2>&1; then
15397 ac_cv_os_cray=yes
15398 else
15399 ac_cv_os_cray=no
15400 fi
15401 rm -f conftest*
15402
15403 fi
15404 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15405 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15406 if test $ac_cv_os_cray = yes; then
15407 for ac_func in _getb67 GETB67 getb67; do
15408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 else
15414 cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h. */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15422 #define $ac_func innocuous_$ac_func
15423
15424 /* System header to define __stub macros and hopefully few prototypes,
15425 which can conflict with char $ac_func (); below.
15426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15427 <limits.h> exists even on freestanding compilers. */
15428
15429 #ifdef __STDC__
15430 # include <limits.h>
15431 #else
15432 # include <assert.h>
15433 #endif
15434
15435 #undef $ac_func
15436
15437 /* Override any GCC internal prototype to avoid an error.
15438 Use char because int might match the return type of a GCC
15439 builtin and then its argument prototype would still apply. */
15440 #ifdef __cplusplus
15441 extern "C"
15442 #endif
15443 char $ac_func ();
15444 /* The GNU C library defines this for functions which it implements
15445 to always fail with ENOSYS. Some functions are actually named
15446 something starting with __ and the normal name is an alias. */
15447 #if defined __stub_$ac_func || defined __stub___$ac_func
15448 choke me
15449 #endif
15450
15451 int
15452 main ()
15453 {
15454 return $ac_func ();
15455 ;
15456 return 0;
15457 }
15458 _ACEOF
15459 rm -f conftest.$ac_objext conftest$ac_exeext
15460 if { (ac_try="$ac_link"
15461 case "(($ac_try" in
15462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15463 *) ac_try_echo=$ac_try;;
15464 esac
15465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466 (eval "$ac_link") 2>conftest.er1
15467 ac_status=$?
15468 grep -v '^ *+' conftest.er1 >conftest.err
15469 rm -f conftest.er1
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } && {
15473 test -z "$ac_c_werror_flag" ||
15474 test ! -s conftest.err
15475 } && test -s conftest$ac_exeext &&
15476 $as_test_x conftest$ac_exeext; then
15477 eval "$as_ac_var=yes"
15478 else
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482 eval "$as_ac_var=no"
15483 fi
15484
15485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15486 conftest$ac_exeext conftest.$ac_ext
15487 fi
15488 ac_res=`eval echo '${'$as_ac_var'}'`
15489 { echo "$as_me:$LINENO: result: $ac_res" >&5
15490 echo "${ECHO_T}$ac_res" >&6; }
15491 if test `eval echo '${'$as_ac_var'}'` = yes; then
15492
15493 cat >>confdefs.h <<_ACEOF
15494 #define CRAY_STACKSEG_END $ac_func
15495 _ACEOF
15496
15497 break
15498 fi
15499
15500 done
15501 fi
15502
15503 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15504 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15505 if test "${ac_cv_c_stack_direction+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 else
15508 if test "$cross_compiling" = yes; then
15509 ac_cv_c_stack_direction=0
15510 else
15511 cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h. */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 $ac_includes_default
15518 int
15519 find_stack_direction ()
15520 {
15521 static char *addr = 0;
15522 auto char dummy;
15523 if (addr == 0)
15524 {
15525 addr = &dummy;
15526 return find_stack_direction ();
15527 }
15528 else
15529 return (&dummy > addr) ? 1 : -1;
15530 }
15531
15532 int
15533 main ()
15534 {
15535 return find_stack_direction () < 0;
15536 }
15537 _ACEOF
15538 rm -f conftest$ac_exeext
15539 if { (ac_try="$ac_link"
15540 case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15543 esac
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_link") 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15549 { (case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552 esac
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_try") 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_cv_c_stack_direction=1
15559 else
15560 echo "$as_me: program exited with status $ac_status" >&5
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15563
15564 ( exit $ac_status )
15565 ac_cv_c_stack_direction=-1
15566 fi
15567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15568 fi
15569
15570
15571 fi
15572 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15573 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15574
15575 cat >>confdefs.h <<_ACEOF
15576 #define STACK_DIRECTION $ac_cv_c_stack_direction
15577 _ACEOF
15578
15579
15580 fi
15581
15582
15583 if test x"$ac_cv_func_alloca_works" != xyes; then
15584 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15585 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15586 { (exit 1); exit 1; }; }
15587 fi
15588
15589 # fmod, logb, and frexp are found in -lm on most systems.
15590 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15591
15592 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15593 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15594 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597 ac_check_lib_save_LIBS=$LIBS
15598 LIBS="-lm $LIBS"
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h. */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605
15606 /* Override any GCC internal prototype to avoid an error.
15607 Use char because int might match the return type of a GCC
15608 builtin and then its argument prototype would still apply. */
15609 #ifdef __cplusplus
15610 extern "C"
15611 #endif
15612 char sqrt ();
15613 int
15614 main ()
15615 {
15616 return sqrt ();
15617 ;
15618 return 0;
15619 }
15620 _ACEOF
15621 rm -f conftest.$ac_objext conftest$ac_exeext
15622 if { (ac_try="$ac_link"
15623 case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15626 esac
15627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_link") 2>conftest.er1
15629 ac_status=$?
15630 grep -v '^ *+' conftest.er1 >conftest.err
15631 rm -f conftest.er1
15632 cat conftest.err >&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } && {
15635 test -z "$ac_c_werror_flag" ||
15636 test ! -s conftest.err
15637 } && test -s conftest$ac_exeext &&
15638 $as_test_x conftest$ac_exeext; then
15639 ac_cv_lib_m_sqrt=yes
15640 else
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 ac_cv_lib_m_sqrt=no
15645 fi
15646
15647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15648 conftest$ac_exeext conftest.$ac_ext
15649 LIBS=$ac_check_lib_save_LIBS
15650 fi
15651 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15652 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15653 if test $ac_cv_lib_m_sqrt = yes; then
15654 cat >>confdefs.h <<_ACEOF
15655 #define HAVE_LIBM 1
15656 _ACEOF
15657
15658 LIBS="-lm $LIBS"
15659
15660 fi
15661
15662
15663 # Check for mail-locking functions in a "mail" library. Probably this should
15664 # have the same check as for liblockfile below.
15665
15666 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15667 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15668 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 else
15671 ac_check_lib_save_LIBS=$LIBS
15672 LIBS="-lmail $LIBS"
15673 cat >conftest.$ac_ext <<_ACEOF
15674 /* confdefs.h. */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679
15680 /* Override any GCC internal prototype to avoid an error.
15681 Use char because int might match the return type of a GCC
15682 builtin and then its argument prototype would still apply. */
15683 #ifdef __cplusplus
15684 extern "C"
15685 #endif
15686 char maillock ();
15687 int
15688 main ()
15689 {
15690 return maillock ();
15691 ;
15692 return 0;
15693 }
15694 _ACEOF
15695 rm -f conftest.$ac_objext conftest$ac_exeext
15696 if { (ac_try="$ac_link"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15700 esac
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_link") 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } && {
15709 test -z "$ac_c_werror_flag" ||
15710 test ! -s conftest.err
15711 } && test -s conftest$ac_exeext &&
15712 $as_test_x conftest$ac_exeext; then
15713 ac_cv_lib_mail_maillock=yes
15714 else
15715 echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15717
15718 ac_cv_lib_mail_maillock=no
15719 fi
15720
15721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15722 conftest$ac_exeext conftest.$ac_ext
15723 LIBS=$ac_check_lib_save_LIBS
15724 fi
15725 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15726 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15727 if test $ac_cv_lib_mail_maillock = yes; then
15728 cat >>confdefs.h <<_ACEOF
15729 #define HAVE_LIBMAIL 1
15730 _ACEOF
15731
15732 LIBS="-lmail $LIBS"
15733
15734 fi
15735
15736
15737 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15738 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15739 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 else
15742 ac_check_lib_save_LIBS=$LIBS
15743 LIBS="-llockfile $LIBS"
15744 cat >conftest.$ac_ext <<_ACEOF
15745 /* confdefs.h. */
15746 _ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15750
15751 /* Override any GCC internal prototype to avoid an error.
15752 Use char because int might match the return type of a GCC
15753 builtin and then its argument prototype would still apply. */
15754 #ifdef __cplusplus
15755 extern "C"
15756 #endif
15757 char maillock ();
15758 int
15759 main ()
15760 {
15761 return maillock ();
15762 ;
15763 return 0;
15764 }
15765 _ACEOF
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (ac_try="$ac_link"
15768 case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15771 esac
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_link") 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } && {
15780 test -z "$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 } && test -s conftest$ac_exeext &&
15783 $as_test_x conftest$ac_exeext; then
15784 ac_cv_lib_lockfile_maillock=yes
15785 else
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 ac_cv_lib_lockfile_maillock=no
15790 fi
15791
15792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15793 conftest$ac_exeext conftest.$ac_ext
15794 LIBS=$ac_check_lib_save_LIBS
15795 fi
15796 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15797 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15798 if test $ac_cv_lib_lockfile_maillock = yes; then
15799 cat >>confdefs.h <<_ACEOF
15800 #define HAVE_LIBLOCKFILE 1
15801 _ACEOF
15802
15803 LIBS="-llockfile $LIBS"
15804
15805 fi
15806
15807 # If we have the shared liblockfile, assume we must use it for mail
15808 # locking (e.g. Debian). If we couldn't link against liblockfile
15809 # (no liblockfile.a installed), ensure that we don't need to.
15810 if test "$ac_cv_lib_lockfile_maillock" = no; then
15811 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15812 set dummy liblockfile.so; ac_word=$2
15813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15815 if test "${ac_cv_prog_liblockfile+set}" = set; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818 if test -n "$liblockfile"; then
15819 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15820 else
15821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15822 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15823 for as_dir in $as_dummy
15824 do
15825 IFS=$as_save_IFS
15826 test -z "$as_dir" && as_dir=.
15827 for ac_exec_ext in '' $ac_executable_extensions; do
15828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15829 ac_cv_prog_liblockfile="yes"
15830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15831 break 2
15832 fi
15833 done
15834 done
15835 IFS=$as_save_IFS
15836
15837 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15838 fi
15839 fi
15840 liblockfile=$ac_cv_prog_liblockfile
15841 if test -n "$liblockfile"; then
15842 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15843 echo "${ECHO_T}$liblockfile" >&6; }
15844 else
15845 { echo "$as_me:$LINENO: result: no" >&5
15846 echo "${ECHO_T}no" >&6; }
15847 fi
15848
15849
15850 if test $ac_cv_prog_liblockfile = yes; then
15851 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15852 This probably means that movemail could lose mail.
15853 There may be a \`development' package to install containing liblockfile." >&5
15854 echo "$as_me: error: Shared liblockfile found but can't link against it.
15855 This probably means that movemail could lose mail.
15856 There may be a \`development' package to install containing liblockfile." >&2;}
15857 { (exit 1); exit 1; }; }
15858 else :
15859 fi
15860 fi
15861
15862 for ac_func in touchlock
15863 do
15864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 else
15870 cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h. */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15878 #define $ac_func innocuous_$ac_func
15879
15880 /* System header to define __stub macros and hopefully few prototypes,
15881 which can conflict with char $ac_func (); below.
15882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15883 <limits.h> exists even on freestanding compilers. */
15884
15885 #ifdef __STDC__
15886 # include <limits.h>
15887 #else
15888 # include <assert.h>
15889 #endif
15890
15891 #undef $ac_func
15892
15893 /* Override any GCC internal prototype to avoid an error.
15894 Use char because int might match the return type of a GCC
15895 builtin and then its argument prototype would still apply. */
15896 #ifdef __cplusplus
15897 extern "C"
15898 #endif
15899 char $ac_func ();
15900 /* The GNU C library defines this for functions which it implements
15901 to always fail with ENOSYS. Some functions are actually named
15902 something starting with __ and the normal name is an alias. */
15903 #if defined __stub_$ac_func || defined __stub___$ac_func
15904 choke me
15905 #endif
15906
15907 int
15908 main ()
15909 {
15910 return $ac_func ();
15911 ;
15912 return 0;
15913 }
15914 _ACEOF
15915 rm -f conftest.$ac_objext conftest$ac_exeext
15916 if { (ac_try="$ac_link"
15917 case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15920 esac
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_link") 2>conftest.er1
15923 ac_status=$?
15924 grep -v '^ *+' conftest.er1 >conftest.err
15925 rm -f conftest.er1
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } && {
15929 test -z "$ac_c_werror_flag" ||
15930 test ! -s conftest.err
15931 } && test -s conftest$ac_exeext &&
15932 $as_test_x conftest$ac_exeext; then
15933 eval "$as_ac_var=yes"
15934 else
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15937
15938 eval "$as_ac_var=no"
15939 fi
15940
15941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15942 conftest$ac_exeext conftest.$ac_ext
15943 fi
15944 ac_res=`eval echo '${'$as_ac_var'}'`
15945 { echo "$as_me:$LINENO: result: $ac_res" >&5
15946 echo "${ECHO_T}$ac_res" >&6; }
15947 if test `eval echo '${'$as_ac_var'}'` = yes; then
15948 cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15950 _ACEOF
15951
15952 fi
15953 done
15954
15955
15956 for ac_header in maillock.h
15957 do
15958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 fi
15965 ac_res=`eval echo '${'$as_ac_Header'}'`
15966 { echo "$as_me:$LINENO: result: $ac_res" >&5
15967 echo "${ECHO_T}$ac_res" >&6; }
15968 else
15969 # Is the header compilable?
15970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h. */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 $ac_includes_default
15979 #include <$ac_header>
15980 _ACEOF
15981 rm -f conftest.$ac_objext
15982 if { (ac_try="$ac_compile"
15983 case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15986 esac
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_compile") 2>conftest.er1
15989 ac_status=$?
15990 grep -v '^ *+' conftest.er1 >conftest.err
15991 rm -f conftest.er1
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } && {
15995 test -z "$ac_c_werror_flag" ||
15996 test ! -s conftest.err
15997 } && test -s conftest.$ac_objext; then
15998 ac_header_compiler=yes
15999 else
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16002
16003 ac_header_compiler=no
16004 fi
16005
16006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16008 echo "${ECHO_T}$ac_header_compiler" >&6; }
16009
16010 # Is the header present?
16011 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16013 cat >conftest.$ac_ext <<_ACEOF
16014 /* confdefs.h. */
16015 _ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 #include <$ac_header>
16020 _ACEOF
16021 if { (ac_try="$ac_cpp conftest.$ac_ext"
16022 case "(($ac_try" in
16023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16024 *) ac_try_echo=$ac_try;;
16025 esac
16026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16028 ac_status=$?
16029 grep -v '^ *+' conftest.er1 >conftest.err
16030 rm -f conftest.er1
16031 cat conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } >/dev/null && {
16034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16035 test ! -s conftest.err
16036 }; then
16037 ac_header_preproc=yes
16038 else
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16041
16042 ac_header_preproc=no
16043 fi
16044
16045 rm -f conftest.err conftest.$ac_ext
16046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16047 echo "${ECHO_T}$ac_header_preproc" >&6; }
16048
16049 # So? What about this header?
16050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16051 yes:no: )
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16056 ac_header_preproc=yes
16057 ;;
16058 no:yes:* )
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16071
16072 ;;
16073 esac
16074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 else
16079 eval "$as_ac_Header=\$ac_header_preproc"
16080 fi
16081 ac_res=`eval echo '${'$as_ac_Header'}'`
16082 { echo "$as_me:$LINENO: result: $ac_res" >&5
16083 echo "${ECHO_T}$ac_res" >&6; }
16084
16085 fi
16086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16087 cat >>confdefs.h <<_ACEOF
16088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16089 _ACEOF
16090
16091 fi
16092
16093 done
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
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167 for ac_func in gethostname getdomainname dup2 \
16168 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16169 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16170 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16171 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16172 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16173 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16174 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16175 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16176 cfmakeraw cfsetspeed
16177 do
16178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16183 else
16184 cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h. */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16192 #define $ac_func innocuous_$ac_func
16193
16194 /* System header to define __stub macros and hopefully few prototypes,
16195 which can conflict with char $ac_func (); below.
16196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16197 <limits.h> exists even on freestanding compilers. */
16198
16199 #ifdef __STDC__
16200 # include <limits.h>
16201 #else
16202 # include <assert.h>
16203 #endif
16204
16205 #undef $ac_func
16206
16207 /* Override any GCC internal prototype to avoid an error.
16208 Use char because int might match the return type of a GCC
16209 builtin and then its argument prototype would still apply. */
16210 #ifdef __cplusplus
16211 extern "C"
16212 #endif
16213 char $ac_func ();
16214 /* The GNU C library defines this for functions which it implements
16215 to always fail with ENOSYS. Some functions are actually named
16216 something starting with __ and the normal name is an alias. */
16217 #if defined __stub_$ac_func || defined __stub___$ac_func
16218 choke me
16219 #endif
16220
16221 int
16222 main ()
16223 {
16224 return $ac_func ();
16225 ;
16226 return 0;
16227 }
16228 _ACEOF
16229 rm -f conftest.$ac_objext conftest$ac_exeext
16230 if { (ac_try="$ac_link"
16231 case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_link") 2>conftest.er1
16237 ac_status=$?
16238 grep -v '^ *+' conftest.er1 >conftest.err
16239 rm -f conftest.er1
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } && {
16243 test -z "$ac_c_werror_flag" ||
16244 test ! -s conftest.err
16245 } && test -s conftest$ac_exeext &&
16246 $as_test_x conftest$ac_exeext; then
16247 eval "$as_ac_var=yes"
16248 else
16249 echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16251
16252 eval "$as_ac_var=no"
16253 fi
16254
16255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16256 conftest$ac_exeext conftest.$ac_ext
16257 fi
16258 ac_res=`eval echo '${'$as_ac_var'}'`
16259 { echo "$as_me:$LINENO: result: $ac_res" >&5
16260 echo "${ECHO_T}$ac_res" >&6; }
16261 if test `eval echo '${'$as_ac_var'}'` = yes; then
16262 cat >>confdefs.h <<_ACEOF
16263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16264 _ACEOF
16265
16266 fi
16267 done
16268
16269
16270
16271 for ac_header in sys/un.h
16272 do
16273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 fi
16280 ac_res=`eval echo '${'$as_ac_Header'}'`
16281 { echo "$as_me:$LINENO: result: $ac_res" >&5
16282 echo "${ECHO_T}$ac_res" >&6; }
16283 else
16284 # Is the header compilable?
16285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 $ac_includes_default
16294 #include <$ac_header>
16295 _ACEOF
16296 rm -f conftest.$ac_objext
16297 if { (ac_try="$ac_compile"
16298 case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16301 esac
16302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303 (eval "$ac_compile") 2>conftest.er1
16304 ac_status=$?
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } && {
16310 test -z "$ac_c_werror_flag" ||
16311 test ! -s conftest.err
16312 } && test -s conftest.$ac_objext; then
16313 ac_header_compiler=yes
16314 else
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 ac_header_compiler=no
16319 fi
16320
16321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16323 echo "${ECHO_T}$ac_header_compiler" >&6; }
16324
16325 # Is the header present?
16326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16328 cat >conftest.$ac_ext <<_ACEOF
16329 /* confdefs.h. */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 #include <$ac_header>
16335 _ACEOF
16336 if { (ac_try="$ac_cpp conftest.$ac_ext"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } >/dev/null && {
16349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16350 test ! -s conftest.err
16351 }; then
16352 ac_header_preproc=yes
16353 else
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16356
16357 ac_header_preproc=no
16358 fi
16359
16360 rm -f conftest.err conftest.$ac_ext
16361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16362 echo "${ECHO_T}$ac_header_preproc" >&6; }
16363
16364 # So? What about this header?
16365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16366 yes:no: )
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16371 ac_header_preproc=yes
16372 ;;
16373 no:yes:* )
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16386
16387 ;;
16388 esac
16389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 else
16394 eval "$as_ac_Header=\$ac_header_preproc"
16395 fi
16396 ac_res=`eval echo '${'$as_ac_Header'}'`
16397 { echo "$as_me:$LINENO: result: $ac_res" >&5
16398 echo "${ECHO_T}$ac_res" >&6; }
16399
16400 fi
16401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16402 cat >>confdefs.h <<_ACEOF
16403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16404 _ACEOF
16405
16406 fi
16407
16408 done
16409
16410
16411
16412
16413
16414
16415 for ac_header in $ac_header_list
16416 do
16417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16423 fi
16424 ac_res=`eval echo '${'$as_ac_Header'}'`
16425 { echo "$as_me:$LINENO: result: $ac_res" >&5
16426 echo "${ECHO_T}$ac_res" >&6; }
16427 else
16428 # Is the header compilable?
16429 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16431 cat >conftest.$ac_ext <<_ACEOF
16432 /* confdefs.h. */
16433 _ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16437 $ac_includes_default
16438 #include <$ac_header>
16439 _ACEOF
16440 rm -f conftest.$ac_objext
16441 if { (ac_try="$ac_compile"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_compile") 2>conftest.er1
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } && {
16454 test -z "$ac_c_werror_flag" ||
16455 test ! -s conftest.err
16456 } && test -s conftest.$ac_objext; then
16457 ac_header_compiler=yes
16458 else
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16461
16462 ac_header_compiler=no
16463 fi
16464
16465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16467 echo "${ECHO_T}$ac_header_compiler" >&6; }
16468
16469 # Is the header present?
16470 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16472 cat >conftest.$ac_ext <<_ACEOF
16473 /* confdefs.h. */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16478 #include <$ac_header>
16479 _ACEOF
16480 if { (ac_try="$ac_cpp conftest.$ac_ext"
16481 case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16484 esac
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16487 ac_status=$?
16488 grep -v '^ *+' conftest.er1 >conftest.err
16489 rm -f conftest.er1
16490 cat conftest.err >&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } >/dev/null && {
16493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16494 test ! -s conftest.err
16495 }; then
16496 ac_header_preproc=yes
16497 else
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16500
16501 ac_header_preproc=no
16502 fi
16503
16504 rm -f conftest.err conftest.$ac_ext
16505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16506 echo "${ECHO_T}$ac_header_preproc" >&6; }
16507
16508 # So? What about this header?
16509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16510 yes:no: )
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16515 ac_header_preproc=yes
16516 ;;
16517 no:yes:* )
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16530
16531 ;;
16532 esac
16533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538 eval "$as_ac_Header=\$ac_header_preproc"
16539 fi
16540 ac_res=`eval echo '${'$as_ac_Header'}'`
16541 { echo "$as_me:$LINENO: result: $ac_res" >&5
16542 echo "${ECHO_T}$ac_res" >&6; }
16543
16544 fi
16545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16546 cat >>confdefs.h <<_ACEOF
16547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16548 _ACEOF
16549
16550 fi
16551
16552 done
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562 for ac_func in $ac_func_list
16563 do
16564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h. */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16578 #define $ac_func innocuous_$ac_func
16579
16580 /* System header to define __stub macros and hopefully few prototypes,
16581 which can conflict with char $ac_func (); below.
16582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16583 <limits.h> exists even on freestanding compilers. */
16584
16585 #ifdef __STDC__
16586 # include <limits.h>
16587 #else
16588 # include <assert.h>
16589 #endif
16590
16591 #undef $ac_func
16592
16593 /* Override any GCC internal prototype to avoid an error.
16594 Use char because int might match the return type of a GCC
16595 builtin and then its argument prototype would still apply. */
16596 #ifdef __cplusplus
16597 extern "C"
16598 #endif
16599 char $ac_func ();
16600 /* The GNU C library defines this for functions which it implements
16601 to always fail with ENOSYS. Some functions are actually named
16602 something starting with __ and the normal name is an alias. */
16603 #if defined __stub_$ac_func || defined __stub___$ac_func
16604 choke me
16605 #endif
16606
16607 int
16608 main ()
16609 {
16610 return $ac_func ();
16611 ;
16612 return 0;
16613 }
16614 _ACEOF
16615 rm -f conftest.$ac_objext conftest$ac_exeext
16616 if { (ac_try="$ac_link"
16617 case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_link") 2>conftest.er1
16623 ac_status=$?
16624 grep -v '^ *+' conftest.er1 >conftest.err
16625 rm -f conftest.er1
16626 cat conftest.err >&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } && {
16629 test -z "$ac_c_werror_flag" ||
16630 test ! -s conftest.err
16631 } && test -s conftest$ac_exeext &&
16632 $as_test_x conftest$ac_exeext; then
16633 eval "$as_ac_var=yes"
16634 else
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16637
16638 eval "$as_ac_var=no"
16639 fi
16640
16641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16642 conftest$ac_exeext conftest.$ac_ext
16643 fi
16644 ac_res=`eval echo '${'$as_ac_var'}'`
16645 { echo "$as_me:$LINENO: result: $ac_res" >&5
16646 echo "${ECHO_T}$ac_res" >&6; }
16647 if test `eval echo '${'$as_ac_var'}'` = yes; then
16648 cat >>confdefs.h <<_ACEOF
16649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16650 _ACEOF
16651
16652 fi
16653 done
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671 { echo "$as_me:$LINENO: checking for working mktime" >&5
16672 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16673 if test "${ac_cv_func_working_mktime+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 else
16676 if test "$cross_compiling" = yes; then
16677 ac_cv_func_working_mktime=no
16678 else
16679 cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h. */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 /* Test program from Paul Eggert and Tony Leneis. */
16686 #ifdef TIME_WITH_SYS_TIME
16687 # include <sys/time.h>
16688 # include <time.h>
16689 #else
16690 # ifdef HAVE_SYS_TIME_H
16691 # include <sys/time.h>
16692 # else
16693 # include <time.h>
16694 # endif
16695 #endif
16696
16697 #include <limits.h>
16698 #include <stdlib.h>
16699
16700 #ifdef HAVE_UNISTD_H
16701 # include <unistd.h>
16702 #endif
16703
16704 #ifndef HAVE_ALARM
16705 # define alarm(X) /* empty */
16706 #endif
16707
16708 /* Work around redefinition to rpl_putenv by other config tests. */
16709 #undef putenv
16710
16711 static time_t time_t_max;
16712 static time_t time_t_min;
16713
16714 /* Values we'll use to set the TZ environment variable. */
16715 static char *tz_strings[] = {
16716 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16717 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16718 };
16719 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16720
16721 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16722 Based on a problem report from Andreas Jaeger. */
16723 static int
16724 spring_forward_gap ()
16725 {
16726 /* glibc (up to about 1998-10-07) failed this test. */
16727 struct tm tm;
16728
16729 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16730 instead of "TZ=America/Vancouver" in order to detect the bug even
16731 on systems that don't support the Olson extension, or don't have the
16732 full zoneinfo tables installed. */
16733 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16734
16735 tm.tm_year = 98;
16736 tm.tm_mon = 3;
16737 tm.tm_mday = 5;
16738 tm.tm_hour = 2;
16739 tm.tm_min = 0;
16740 tm.tm_sec = 0;
16741 tm.tm_isdst = -1;
16742 return mktime (&tm) != (time_t) -1;
16743 }
16744
16745 static int
16746 mktime_test1 (now)
16747 time_t now;
16748 {
16749 struct tm *lt;
16750 return ! (lt = localtime (&now)) || mktime (lt) == now;
16751 }
16752
16753 static int
16754 mktime_test (now)
16755 time_t now;
16756 {
16757 return (mktime_test1 (now)
16758 && mktime_test1 ((time_t) (time_t_max - now))
16759 && mktime_test1 ((time_t) (time_t_min + now)));
16760 }
16761
16762 static int
16763 irix_6_4_bug ()
16764 {
16765 /* Based on code from Ariel Faigon. */
16766 struct tm tm;
16767 tm.tm_year = 96;
16768 tm.tm_mon = 3;
16769 tm.tm_mday = 0;
16770 tm.tm_hour = 0;
16771 tm.tm_min = 0;
16772 tm.tm_sec = 0;
16773 tm.tm_isdst = -1;
16774 mktime (&tm);
16775 return tm.tm_mon == 2 && tm.tm_mday == 31;
16776 }
16777
16778 static int
16779 bigtime_test (j)
16780 int j;
16781 {
16782 struct tm tm;
16783 time_t now;
16784 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16785 now = mktime (&tm);
16786 if (now != (time_t) -1)
16787 {
16788 struct tm *lt = localtime (&now);
16789 if (! (lt
16790 && lt->tm_year == tm.tm_year
16791 && lt->tm_mon == tm.tm_mon
16792 && lt->tm_mday == tm.tm_mday
16793 && lt->tm_hour == tm.tm_hour
16794 && lt->tm_min == tm.tm_min
16795 && lt->tm_sec == tm.tm_sec
16796 && lt->tm_yday == tm.tm_yday
16797 && lt->tm_wday == tm.tm_wday
16798 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16799 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16800 return 0;
16801 }
16802 return 1;
16803 }
16804
16805 static int
16806 year_2050_test ()
16807 {
16808 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16809 ignoring leap seconds. */
16810 unsigned long int answer = 2527315200UL;
16811
16812 struct tm tm;
16813 time_t t;
16814 tm.tm_year = 2050 - 1900;
16815 tm.tm_mon = 2 - 1;
16816 tm.tm_mday = 1;
16817 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16818 tm.tm_isdst = -1;
16819
16820 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16821 instead of "TZ=America/Vancouver" in order to detect the bug even
16822 on systems that don't support the Olson extension, or don't have the
16823 full zoneinfo tables installed. */
16824 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16825
16826 t = mktime (&tm);
16827
16828 /* Check that the result is either a failure, or close enough
16829 to the correct answer that we can assume the discrepancy is
16830 due to leap seconds. */
16831 return (t == (time_t) -1
16832 || (0 < t && answer - 120 <= t && t <= answer + 120));
16833 }
16834
16835 int
16836 main ()
16837 {
16838 time_t t, delta;
16839 int i, j;
16840
16841 /* This test makes some buggy mktime implementations loop.
16842 Give up after 60 seconds; a mktime slower than that
16843 isn't worth using anyway. */
16844 alarm (60);
16845
16846 for (;;)
16847 {
16848 t = (time_t_max << 1) + 1;
16849 if (t <= time_t_max)
16850 break;
16851 time_t_max = t;
16852 }
16853 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16854
16855 delta = time_t_max / 997; /* a suitable prime number */
16856 for (i = 0; i < N_STRINGS; i++)
16857 {
16858 if (tz_strings[i])
16859 putenv (tz_strings[i]);
16860
16861 for (t = 0; t <= time_t_max - delta; t += delta)
16862 if (! mktime_test (t))
16863 return 1;
16864 if (! (mktime_test ((time_t) 1)
16865 && mktime_test ((time_t) (60 * 60))
16866 && mktime_test ((time_t) (60 * 60 * 24))))
16867 return 1;
16868
16869 for (j = 1; ; j <<= 1)
16870 if (! bigtime_test (j))
16871 return 1;
16872 else if (INT_MAX / 2 < j)
16873 break;
16874 if (! bigtime_test (INT_MAX))
16875 return 1;
16876 }
16877 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16878 }
16879 _ACEOF
16880 rm -f conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_link") 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16891 { (case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_try") 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 ac_cv_func_working_mktime=yes
16901 else
16902 echo "$as_me: program exited with status $ac_status" >&5
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16905
16906 ( exit $ac_status )
16907 ac_cv_func_working_mktime=no
16908 fi
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16910 fi
16911
16912
16913 fi
16914 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16915 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16916 if test $ac_cv_func_working_mktime = no; then
16917 case " $LIBOBJS " in
16918 *" mktime.$ac_objext "* ) ;;
16919 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16920 ;;
16921 esac
16922
16923 fi
16924
16925 if test "$ac_cv_func_working_mktime" = no; then
16926
16927 cat >>confdefs.h <<\_ACEOF
16928 #define BROKEN_MKTIME 1
16929 _ACEOF
16930
16931 fi
16932
16933 ac_have_func=no # yes means we've found a way to get the load average.
16934
16935 # Make sure getloadavg.c is where it belongs, at configure-time.
16936 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16937 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16938 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16939 { (exit 1); exit 1; }; }
16940
16941 ac_save_LIBS=$LIBS
16942
16943 # Check for getloadavg, but be sure not to touch the cache variable.
16944 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16945 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16946 if test "${ac_cv_func_getloadavg+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16948 else
16949 cat >conftest.$ac_ext <<_ACEOF
16950 /* confdefs.h. */
16951 _ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16955 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16957 #define getloadavg innocuous_getloadavg
16958
16959 /* System header to define __stub macros and hopefully few prototypes,
16960 which can conflict with char getloadavg (); below.
16961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16962 <limits.h> exists even on freestanding compilers. */
16963
16964 #ifdef __STDC__
16965 # include <limits.h>
16966 #else
16967 # include <assert.h>
16968 #endif
16969
16970 #undef getloadavg
16971
16972 /* Override any GCC internal prototype to avoid an error.
16973 Use char because int might match the return type of a GCC
16974 builtin and then its argument prototype would still apply. */
16975 #ifdef __cplusplus
16976 extern "C"
16977 #endif
16978 char getloadavg ();
16979 /* The GNU C library defines this for functions which it implements
16980 to always fail with ENOSYS. Some functions are actually named
16981 something starting with __ and the normal name is an alias. */
16982 #if defined __stub_getloadavg || defined __stub___getloadavg
16983 choke me
16984 #endif
16985
16986 int
16987 main ()
16988 {
16989 return getloadavg ();
16990 ;
16991 return 0;
16992 }
16993 _ACEOF
16994 rm -f conftest.$ac_objext conftest$ac_exeext
16995 if { (ac_try="$ac_link"
16996 case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999 esac
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_link") 2>conftest.er1
17002 ac_status=$?
17003 grep -v '^ *+' conftest.er1 >conftest.err
17004 rm -f conftest.er1
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } && {
17008 test -z "$ac_c_werror_flag" ||
17009 test ! -s conftest.err
17010 } && test -s conftest$ac_exeext &&
17011 $as_test_x conftest$ac_exeext; then
17012 ac_cv_func_getloadavg=yes
17013 else
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17016
17017 ac_cv_func_getloadavg=no
17018 fi
17019
17020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17021 conftest$ac_exeext conftest.$ac_ext
17022 fi
17023 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17024 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17025 if test $ac_cv_func_getloadavg = yes; then
17026 exit 0
17027 else
17028 exit 1
17029 fi
17030 ) && ac_have_func=yes
17031
17032 # On HPUX9, an unprivileged user can get load averages through this function.
17033
17034 for ac_func in pstat_getdynamic
17035 do
17036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 else
17042 cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h. */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17050 #define $ac_func innocuous_$ac_func
17051
17052 /* System header to define __stub macros and hopefully few prototypes,
17053 which can conflict with char $ac_func (); below.
17054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17055 <limits.h> exists even on freestanding compilers. */
17056
17057 #ifdef __STDC__
17058 # include <limits.h>
17059 #else
17060 # include <assert.h>
17061 #endif
17062
17063 #undef $ac_func
17064
17065 /* Override any GCC internal prototype to avoid an error.
17066 Use char because int might match the return type of a GCC
17067 builtin and then its argument prototype would still apply. */
17068 #ifdef __cplusplus
17069 extern "C"
17070 #endif
17071 char $ac_func ();
17072 /* The GNU C library defines this for functions which it implements
17073 to always fail with ENOSYS. Some functions are actually named
17074 something starting with __ and the normal name is an alias. */
17075 #if defined __stub_$ac_func || defined __stub___$ac_func
17076 choke me
17077 #endif
17078
17079 int
17080 main ()
17081 {
17082 return $ac_func ();
17083 ;
17084 return 0;
17085 }
17086 _ACEOF
17087 rm -f conftest.$ac_objext conftest$ac_exeext
17088 if { (ac_try="$ac_link"
17089 case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_link") 2>conftest.er1
17095 ac_status=$?
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } && {
17101 test -z "$ac_c_werror_flag" ||
17102 test ! -s conftest.err
17103 } && test -s conftest$ac_exeext &&
17104 $as_test_x conftest$ac_exeext; then
17105 eval "$as_ac_var=yes"
17106 else
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17109
17110 eval "$as_ac_var=no"
17111 fi
17112
17113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17114 conftest$ac_exeext conftest.$ac_ext
17115 fi
17116 ac_res=`eval echo '${'$as_ac_var'}'`
17117 { echo "$as_me:$LINENO: result: $ac_res" >&5
17118 echo "${ECHO_T}$ac_res" >&6; }
17119 if test `eval echo '${'$as_ac_var'}'` = yes; then
17120 cat >>confdefs.h <<_ACEOF
17121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17122 _ACEOF
17123
17124 fi
17125 done
17126
17127
17128 # Solaris has libkstat which does not require root.
17129
17130 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17131 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17132 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 else
17135 ac_check_lib_save_LIBS=$LIBS
17136 LIBS="-lkstat $LIBS"
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17143
17144 /* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17147 #ifdef __cplusplus
17148 extern "C"
17149 #endif
17150 char kstat_open ();
17151 int
17152 main ()
17153 {
17154 return kstat_open ();
17155 ;
17156 return 0;
17157 }
17158 _ACEOF
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>conftest.er1
17167 ac_status=$?
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest$ac_exeext &&
17176 $as_test_x conftest$ac_exeext; then
17177 ac_cv_lib_kstat_kstat_open=yes
17178 else
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 ac_cv_lib_kstat_kstat_open=no
17183 fi
17184
17185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17186 conftest$ac_exeext conftest.$ac_ext
17187 LIBS=$ac_check_lib_save_LIBS
17188 fi
17189 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17190 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17191 if test $ac_cv_lib_kstat_kstat_open = yes; then
17192 cat >>confdefs.h <<_ACEOF
17193 #define HAVE_LIBKSTAT 1
17194 _ACEOF
17195
17196 LIBS="-lkstat $LIBS"
17197
17198 fi
17199
17200 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17201
17202 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17203 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17204 # to get the right answer into the cache.
17205 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17206 if test $ac_have_func = no; then
17207 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17208 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17209 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17210 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 else
17212 ac_check_lib_save_LIBS=$LIBS
17213 LIBS="-lelf $LIBS"
17214 cat >conftest.$ac_ext <<_ACEOF
17215 /* confdefs.h. */
17216 _ACEOF
17217 cat confdefs.h >>conftest.$ac_ext
17218 cat >>conftest.$ac_ext <<_ACEOF
17219 /* end confdefs.h. */
17220
17221 /* Override any GCC internal prototype to avoid an error.
17222 Use char because int might match the return type of a GCC
17223 builtin and then its argument prototype would still apply. */
17224 #ifdef __cplusplus
17225 extern "C"
17226 #endif
17227 char elf_begin ();
17228 int
17229 main ()
17230 {
17231 return elf_begin ();
17232 ;
17233 return 0;
17234 }
17235 _ACEOF
17236 rm -f conftest.$ac_objext conftest$ac_exeext
17237 if { (ac_try="$ac_link"
17238 case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241 esac
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_link") 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } && {
17250 test -z "$ac_c_werror_flag" ||
17251 test ! -s conftest.err
17252 } && test -s conftest$ac_exeext &&
17253 $as_test_x conftest$ac_exeext; then
17254 ac_cv_lib_elf_elf_begin=yes
17255 else
17256 echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17258
17259 ac_cv_lib_elf_elf_begin=no
17260 fi
17261
17262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17263 conftest$ac_exeext conftest.$ac_ext
17264 LIBS=$ac_check_lib_save_LIBS
17265 fi
17266 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17267 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17268 if test $ac_cv_lib_elf_elf_begin = yes; then
17269 LIBS="-lelf $LIBS"
17270 fi
17271
17272 fi
17273 if test $ac_have_func = no; then
17274 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17275 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17276 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279 ac_check_lib_save_LIBS=$LIBS
17280 LIBS="-lkvm $LIBS"
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h. */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287
17288 /* Override any GCC internal prototype to avoid an error.
17289 Use char because int might match the return type of a GCC
17290 builtin and then its argument prototype would still apply. */
17291 #ifdef __cplusplus
17292 extern "C"
17293 #endif
17294 char kvm_open ();
17295 int
17296 main ()
17297 {
17298 return kvm_open ();
17299 ;
17300 return 0;
17301 }
17302 _ACEOF
17303 rm -f conftest.$ac_objext conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_link") 2>conftest.er1
17311 ac_status=$?
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } && {
17317 test -z "$ac_c_werror_flag" ||
17318 test ! -s conftest.err
17319 } && test -s conftest$ac_exeext &&
17320 $as_test_x conftest$ac_exeext; then
17321 ac_cv_lib_kvm_kvm_open=yes
17322 else
17323 echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17325
17326 ac_cv_lib_kvm_kvm_open=no
17327 fi
17328
17329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17330 conftest$ac_exeext conftest.$ac_ext
17331 LIBS=$ac_check_lib_save_LIBS
17332 fi
17333 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17334 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17335 if test $ac_cv_lib_kvm_kvm_open = yes; then
17336 LIBS="-lkvm $LIBS"
17337 fi
17338
17339 # Check for the 4.4BSD definition of getloadavg.
17340 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17341 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17342 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345 ac_check_lib_save_LIBS=$LIBS
17346 LIBS="-lutil $LIBS"
17347 cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h. */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353
17354 /* Override any GCC internal prototype to avoid an error.
17355 Use char because int might match the return type of a GCC
17356 builtin and then its argument prototype would still apply. */
17357 #ifdef __cplusplus
17358 extern "C"
17359 #endif
17360 char getloadavg ();
17361 int
17362 main ()
17363 {
17364 return getloadavg ();
17365 ;
17366 return 0;
17367 }
17368 _ACEOF
17369 rm -f conftest.$ac_objext conftest$ac_exeext
17370 if { (ac_try="$ac_link"
17371 case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17374 esac
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_link") 2>conftest.er1
17377 ac_status=$?
17378 grep -v '^ *+' conftest.er1 >conftest.err
17379 rm -f conftest.er1
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } && {
17383 test -z "$ac_c_werror_flag" ||
17384 test ! -s conftest.err
17385 } && test -s conftest$ac_exeext &&
17386 $as_test_x conftest$ac_exeext; then
17387 ac_cv_lib_util_getloadavg=yes
17388 else
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392 ac_cv_lib_util_getloadavg=no
17393 fi
17394
17395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17396 conftest$ac_exeext conftest.$ac_ext
17397 LIBS=$ac_check_lib_save_LIBS
17398 fi
17399 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17400 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17401 if test $ac_cv_lib_util_getloadavg = yes; then
17402 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17403 fi
17404
17405 fi
17406
17407 if test $ac_have_func = no; then
17408 # There is a commonly available library for RS/6000 AIX.
17409 # Since it is not a standard part of AIX, it might be installed locally.
17410 ac_getloadavg_LIBS=$LIBS
17411 LIBS="-L/usr/local/lib $LIBS"
17412 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17413 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17414 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17416 else
17417 ac_check_lib_save_LIBS=$LIBS
17418 LIBS="-lgetloadavg $LIBS"
17419 cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h. */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17425
17426 /* Override any GCC internal prototype to avoid an error.
17427 Use char because int might match the return type of a GCC
17428 builtin and then its argument prototype would still apply. */
17429 #ifdef __cplusplus
17430 extern "C"
17431 #endif
17432 char getloadavg ();
17433 int
17434 main ()
17435 {
17436 return getloadavg ();
17437 ;
17438 return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>conftest.er1
17449 ac_status=$?
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } && {
17455 test -z "$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest$ac_exeext &&
17458 $as_test_x conftest$ac_exeext; then
17459 ac_cv_lib_getloadavg_getloadavg=yes
17460 else
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464 ac_cv_lib_getloadavg_getloadavg=no
17465 fi
17466
17467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17468 conftest$ac_exeext conftest.$ac_ext
17469 LIBS=$ac_check_lib_save_LIBS
17470 fi
17471 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17472 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17473 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17474 LIBS="-lgetloadavg $LIBS"
17475 else
17476 LIBS=$ac_getloadavg_LIBS
17477 fi
17478
17479 fi
17480
17481 # Make sure it is really in the library, if we think we found it,
17482 # otherwise set up the replacement function.
17483
17484 for ac_func in getloadavg
17485 do
17486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492 cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h. */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17500 #define $ac_func innocuous_$ac_func
17501
17502 /* System header to define __stub macros and hopefully few prototypes,
17503 which can conflict with char $ac_func (); below.
17504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17505 <limits.h> exists even on freestanding compilers. */
17506
17507 #ifdef __STDC__
17508 # include <limits.h>
17509 #else
17510 # include <assert.h>
17511 #endif
17512
17513 #undef $ac_func
17514
17515 /* Override any GCC internal prototype to avoid an error.
17516 Use char because int might match the return type of a GCC
17517 builtin and then its argument prototype would still apply. */
17518 #ifdef __cplusplus
17519 extern "C"
17520 #endif
17521 char $ac_func ();
17522 /* The GNU C library defines this for functions which it implements
17523 to always fail with ENOSYS. Some functions are actually named
17524 something starting with __ and the normal name is an alias. */
17525 #if defined __stub_$ac_func || defined __stub___$ac_func
17526 choke me
17527 #endif
17528
17529 int
17530 main ()
17531 {
17532 return $ac_func ();
17533 ;
17534 return 0;
17535 }
17536 _ACEOF
17537 rm -f conftest.$ac_objext conftest$ac_exeext
17538 if { (ac_try="$ac_link"
17539 case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17542 esac
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_link") 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } && {
17551 test -z "$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17553 } && test -s conftest$ac_exeext &&
17554 $as_test_x conftest$ac_exeext; then
17555 eval "$as_ac_var=yes"
17556 else
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17559
17560 eval "$as_ac_var=no"
17561 fi
17562
17563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17564 conftest$ac_exeext conftest.$ac_ext
17565 fi
17566 ac_res=`eval echo '${'$as_ac_var'}'`
17567 { echo "$as_me:$LINENO: result: $ac_res" >&5
17568 echo "${ECHO_T}$ac_res" >&6; }
17569 if test `eval echo '${'$as_ac_var'}'` = yes; then
17570 cat >>confdefs.h <<_ACEOF
17571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17572 _ACEOF
17573
17574 else
17575 case " $LIBOBJS " in
17576 *" getloadavg.$ac_objext "* ) ;;
17577 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17578 ;;
17579 esac
17580
17581
17582 cat >>confdefs.h <<\_ACEOF
17583 #define C_GETLOADAVG 1
17584 _ACEOF
17585
17586 # Figure out what our getloadavg.c needs.
17587 ac_have_func=no
17588 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17589 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17590 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17591 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 fi
17594 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17595 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17596 else
17597 # Is the header compilable?
17598 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17599 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17600 cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h. */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 $ac_includes_default
17607 #include <sys/dg_sys_info.h>
17608 _ACEOF
17609 rm -f conftest.$ac_objext
17610 if { (ac_try="$ac_compile"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17614 esac
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_compile") 2>conftest.er1
17617 ac_status=$?
17618 grep -v '^ *+' conftest.er1 >conftest.err
17619 rm -f conftest.er1
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest.$ac_objext; then
17626 ac_header_compiler=yes
17627 else
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17630
17631 ac_header_compiler=no
17632 fi
17633
17634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17636 echo "${ECHO_T}$ac_header_compiler" >&6; }
17637
17638 # Is the header present?
17639 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17640 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17641 cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h. */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647 #include <sys/dg_sys_info.h>
17648 _ACEOF
17649 if { (ac_try="$ac_cpp conftest.$ac_ext"
17650 case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17653 esac
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17656 ac_status=$?
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } >/dev/null && {
17662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17664 }; then
17665 ac_header_preproc=yes
17666 else
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 ac_header_preproc=no
17671 fi
17672
17673 rm -f conftest.err conftest.$ac_ext
17674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17675 echo "${ECHO_T}$ac_header_preproc" >&6; }
17676
17677 # So? What about this header?
17678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17679 yes:no: )
17680 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17681 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17682 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17683 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17684 ac_header_preproc=yes
17685 ;;
17686 no:yes:* )
17687 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17688 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17689 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17690 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17691 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17692 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17693 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17694 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17695 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17696 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17697 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17698 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17699
17700 ;;
17701 esac
17702 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17703 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17704 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17708 fi
17709 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17710 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17711
17712 fi
17713 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17714 ac_have_func=yes
17715
17716 cat >>confdefs.h <<\_ACEOF
17717 #define DGUX 1
17718 _ACEOF
17719
17720
17721 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17722 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17723 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 else
17726 ac_check_lib_save_LIBS=$LIBS
17727 LIBS="-ldgc $LIBS"
17728 cat >conftest.$ac_ext <<_ACEOF
17729 /* confdefs.h. */
17730 _ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17734
17735 /* Override any GCC internal prototype to avoid an error.
17736 Use char because int might match the return type of a GCC
17737 builtin and then its argument prototype would still apply. */
17738 #ifdef __cplusplus
17739 extern "C"
17740 #endif
17741 char dg_sys_info ();
17742 int
17743 main ()
17744 {
17745 return dg_sys_info ();
17746 ;
17747 return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (ac_try="$ac_link"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17755 esac
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_link") 2>conftest.er1
17758 ac_status=$?
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } && {
17764 test -z "$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17766 } && test -s conftest$ac_exeext &&
17767 $as_test_x conftest$ac_exeext; then
17768 ac_cv_lib_dgc_dg_sys_info=yes
17769 else
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773 ac_cv_lib_dgc_dg_sys_info=no
17774 fi
17775
17776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17777 conftest$ac_exeext conftest.$ac_ext
17778 LIBS=$ac_check_lib_save_LIBS
17779 fi
17780 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17781 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17782 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17783 cat >>confdefs.h <<_ACEOF
17784 #define HAVE_LIBDGC 1
17785 _ACEOF
17786
17787 LIBS="-ldgc $LIBS"
17788
17789 fi
17790
17791 fi
17792
17793
17794
17795 if test "${ac_cv_header_locale_h+set}" = set; then
17796 { echo "$as_me:$LINENO: checking for locale.h" >&5
17797 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17798 if test "${ac_cv_header_locale_h+set}" = set; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 fi
17801 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17802 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17803 else
17804 # Is the header compilable?
17805 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17806 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17807 cat >conftest.$ac_ext <<_ACEOF
17808 /* confdefs.h. */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813 $ac_includes_default
17814 #include <locale.h>
17815 _ACEOF
17816 rm -f conftest.$ac_objext
17817 if { (ac_try="$ac_compile"
17818 case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17821 esac
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_compile") 2>conftest.er1
17824 ac_status=$?
17825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } && {
17830 test -z "$ac_c_werror_flag" ||
17831 test ! -s conftest.err
17832 } && test -s conftest.$ac_objext; then
17833 ac_header_compiler=yes
17834 else
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17837
17838 ac_header_compiler=no
17839 fi
17840
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17843 echo "${ECHO_T}$ac_header_compiler" >&6; }
17844
17845 # Is the header present?
17846 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17847 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17848 cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h. */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 #include <locale.h>
17855 _ACEOF
17856 if { (ac_try="$ac_cpp conftest.$ac_ext"
17857 case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17860 esac
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17863 ac_status=$?
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } >/dev/null && {
17869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17871 }; then
17872 ac_header_preproc=yes
17873 else
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 ac_header_preproc=no
17878 fi
17879
17880 rm -f conftest.err conftest.$ac_ext
17881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17882 echo "${ECHO_T}$ac_header_preproc" >&6; }
17883
17884 # So? What about this header?
17885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17886 yes:no: )
17887 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17888 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17889 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17890 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17891 ac_header_preproc=yes
17892 ;;
17893 no:yes:* )
17894 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17895 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17897 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17899 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17901 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17903 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17904 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17905 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17906
17907 ;;
17908 esac
17909 { echo "$as_me:$LINENO: checking for locale.h" >&5
17910 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17911 if test "${ac_cv_header_locale_h+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
17914 ac_cv_header_locale_h=$ac_header_preproc
17915 fi
17916 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17917 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17918
17919 fi
17920
17921
17922
17923 for ac_func in setlocale
17924 do
17925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 else
17931 cat >conftest.$ac_ext <<_ACEOF
17932 /* confdefs.h. */
17933 _ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17939 #define $ac_func innocuous_$ac_func
17940
17941 /* System header to define __stub macros and hopefully few prototypes,
17942 which can conflict with char $ac_func (); below.
17943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17944 <limits.h> exists even on freestanding compilers. */
17945
17946 #ifdef __STDC__
17947 # include <limits.h>
17948 #else
17949 # include <assert.h>
17950 #endif
17951
17952 #undef $ac_func
17953
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17957 #ifdef __cplusplus
17958 extern "C"
17959 #endif
17960 char $ac_func ();
17961 /* The GNU C library defines this for functions which it implements
17962 to always fail with ENOSYS. Some functions are actually named
17963 something starting with __ and the normal name is an alias. */
17964 #if defined __stub_$ac_func || defined __stub___$ac_func
17965 choke me
17966 #endif
17967
17968 int
17969 main ()
17970 {
17971 return $ac_func ();
17972 ;
17973 return 0;
17974 }
17975 _ACEOF
17976 rm -f conftest.$ac_objext conftest$ac_exeext
17977 if { (ac_try="$ac_link"
17978 case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17981 esac
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_link") 2>conftest.er1
17984 ac_status=$?
17985 grep -v '^ *+' conftest.er1 >conftest.err
17986 rm -f conftest.er1
17987 cat conftest.err >&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } && {
17990 test -z "$ac_c_werror_flag" ||
17991 test ! -s conftest.err
17992 } && test -s conftest$ac_exeext &&
17993 $as_test_x conftest$ac_exeext; then
17994 eval "$as_ac_var=yes"
17995 else
17996 echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999 eval "$as_ac_var=no"
18000 fi
18001
18002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18003 conftest$ac_exeext conftest.$ac_ext
18004 fi
18005 ac_res=`eval echo '${'$as_ac_var'}'`
18006 { echo "$as_me:$LINENO: result: $ac_res" >&5
18007 echo "${ECHO_T}$ac_res" >&6; }
18008 if test `eval echo '${'$as_ac_var'}'` = yes; then
18009 cat >>confdefs.h <<_ACEOF
18010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18011 _ACEOF
18012
18013 fi
18014 done
18015
18016
18017 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18018 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18019 # Irix 4.0.5F has the header but not the library.
18020 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18021 ac_have_func=yes
18022
18023 cat >>confdefs.h <<\_ACEOF
18024 #define SVR4 1
18025 _ACEOF
18026
18027 fi
18028
18029 if test $ac_have_func = no; then
18030 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18031 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18032 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18033 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18035 fi
18036 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18037 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18038 else
18039 # Is the header compilable?
18040 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18041 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 $ac_includes_default
18049 #include <inq_stats/cpustats.h>
18050 _ACEOF
18051 rm -f conftest.$ac_objext
18052 if { (ac_try="$ac_compile"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_compile") 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest.$ac_objext; then
18068 ac_header_compiler=yes
18069 else
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18072
18073 ac_header_compiler=no
18074 fi
18075
18076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18078 echo "${ECHO_T}$ac_header_compiler" >&6; }
18079
18080 # Is the header present?
18081 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18082 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18083 cat >conftest.$ac_ext <<_ACEOF
18084 /* confdefs.h. */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 #include <inq_stats/cpustats.h>
18090 _ACEOF
18091 if { (ac_try="$ac_cpp conftest.$ac_ext"
18092 case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18095 esac
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18098 ac_status=$?
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } >/dev/null && {
18104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18105 test ! -s conftest.err
18106 }; then
18107 ac_header_preproc=yes
18108 else
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18111
18112 ac_header_preproc=no
18113 fi
18114
18115 rm -f conftest.err conftest.$ac_ext
18116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18117 echo "${ECHO_T}$ac_header_preproc" >&6; }
18118
18119 # So? What about this header?
18120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18121 yes:no: )
18122 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18123 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18124 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18125 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18126 ac_header_preproc=yes
18127 ;;
18128 no:yes:* )
18129 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18130 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18131 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18132 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18133 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18134 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18136 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18138 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18139 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18140 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18141
18142 ;;
18143 esac
18144 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18145 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18146 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 else
18149 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18150 fi
18151 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18152 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18153
18154 fi
18155 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18156 ac_have_func=yes
18157
18158 cat >>confdefs.h <<\_ACEOF
18159 #define UMAX 1
18160 _ACEOF
18161
18162
18163 cat >>confdefs.h <<\_ACEOF
18164 #define UMAX4_3 1
18165 _ACEOF
18166
18167 fi
18168
18169
18170 fi
18171
18172 if test $ac_have_func = no; then
18173 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18174 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18175 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18176 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 fi
18179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18180 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18181 else
18182 # Is the header compilable?
18183 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18184 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h. */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 $ac_includes_default
18192 #include <sys/cpustats.h>
18193 _ACEOF
18194 rm -f conftest.$ac_objext
18195 if { (ac_try="$ac_compile"
18196 case "(($ac_try" in
18197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198 *) ac_try_echo=$ac_try;;
18199 esac
18200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201 (eval "$ac_compile") 2>conftest.er1
18202 ac_status=$?
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } && {
18208 test -z "$ac_c_werror_flag" ||
18209 test ! -s conftest.err
18210 } && test -s conftest.$ac_objext; then
18211 ac_header_compiler=yes
18212 else
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18215
18216 ac_header_compiler=no
18217 fi
18218
18219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18221 echo "${ECHO_T}$ac_header_compiler" >&6; }
18222
18223 # Is the header present?
18224 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18225 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18226 cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h. */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 #include <sys/cpustats.h>
18233 _ACEOF
18234 if { (ac_try="$ac_cpp conftest.$ac_ext"
18235 case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18241 ac_status=$?
18242 grep -v '^ *+' conftest.er1 >conftest.err
18243 rm -f conftest.er1
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } >/dev/null && {
18247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18248 test ! -s conftest.err
18249 }; then
18250 ac_header_preproc=yes
18251 else
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18254
18255 ac_header_preproc=no
18256 fi
18257
18258 rm -f conftest.err conftest.$ac_ext
18259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18260 echo "${ECHO_T}$ac_header_preproc" >&6; }
18261
18262 # So? What about this header?
18263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18264 yes:no: )
18265 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18266 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18267 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18268 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18269 ac_header_preproc=yes
18270 ;;
18271 no:yes:* )
18272 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18273 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18274 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18275 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18276 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18277 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18278 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18279 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18280 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18281 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18282 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18283 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18284
18285 ;;
18286 esac
18287 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18288 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18289 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 else
18292 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18293 fi
18294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18295 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18296
18297 fi
18298 if test $ac_cv_header_sys_cpustats_h = yes; then
18299 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18300 #define UMAX 1
18301 _ACEOF
18302
18303 fi
18304
18305
18306 fi
18307
18308 if test $ac_have_func = no; then
18309
18310 for ac_header in mach/mach.h
18311 do
18312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 fi
18319 ac_res=`eval echo '${'$as_ac_Header'}'`
18320 { echo "$as_me:$LINENO: result: $ac_res" >&5
18321 echo "${ECHO_T}$ac_res" >&6; }
18322 else
18323 # Is the header compilable?
18324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18326 cat >conftest.$ac_ext <<_ACEOF
18327 /* confdefs.h. */
18328 _ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18332 $ac_includes_default
18333 #include <$ac_header>
18334 _ACEOF
18335 rm -f conftest.$ac_objext
18336 if { (ac_try="$ac_compile"
18337 case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_compile") 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } && {
18349 test -z "$ac_c_werror_flag" ||
18350 test ! -s conftest.err
18351 } && test -s conftest.$ac_objext; then
18352 ac_header_compiler=yes
18353 else
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357 ac_header_compiler=no
18358 fi
18359
18360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18362 echo "${ECHO_T}$ac_header_compiler" >&6; }
18363
18364 # Is the header present?
18365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18367 cat >conftest.$ac_ext <<_ACEOF
18368 /* confdefs.h. */
18369 _ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18373 #include <$ac_header>
18374 _ACEOF
18375 if { (ac_try="$ac_cpp conftest.$ac_ext"
18376 case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18379 esac
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18382 ac_status=$?
18383 grep -v '^ *+' conftest.er1 >conftest.err
18384 rm -f conftest.er1
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } >/dev/null && {
18388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18389 test ! -s conftest.err
18390 }; then
18391 ac_header_preproc=yes
18392 else
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18395
18396 ac_header_preproc=no
18397 fi
18398
18399 rm -f conftest.err conftest.$ac_ext
18400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18401 echo "${ECHO_T}$ac_header_preproc" >&6; }
18402
18403 # So? What about this header?
18404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18405 yes:no: )
18406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18410 ac_header_preproc=yes
18411 ;;
18412 no:yes:* )
18413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18425
18426 ;;
18427 esac
18428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18432 else
18433 eval "$as_ac_Header=\$ac_header_preproc"
18434 fi
18435 ac_res=`eval echo '${'$as_ac_Header'}'`
18436 { echo "$as_me:$LINENO: result: $ac_res" >&5
18437 echo "${ECHO_T}$ac_res" >&6; }
18438
18439 fi
18440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18441 cat >>confdefs.h <<_ACEOF
18442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18443 _ACEOF
18444
18445 fi
18446
18447 done
18448
18449 fi
18450
18451
18452 for ac_header in nlist.h
18453 do
18454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18460 fi
18461 ac_res=`eval echo '${'$as_ac_Header'}'`
18462 { echo "$as_me:$LINENO: result: $ac_res" >&5
18463 echo "${ECHO_T}$ac_res" >&6; }
18464 else
18465 # Is the header compilable?
18466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18468 cat >conftest.$ac_ext <<_ACEOF
18469 /* confdefs.h. */
18470 _ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 $ac_includes_default
18475 #include <$ac_header>
18476 _ACEOF
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18482 esac
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_compile") 2>conftest.er1
18485 ac_status=$?
18486 grep -v '^ *+' conftest.er1 >conftest.err
18487 rm -f conftest.er1
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } && {
18491 test -z "$ac_c_werror_flag" ||
18492 test ! -s conftest.err
18493 } && test -s conftest.$ac_objext; then
18494 ac_header_compiler=yes
18495 else
18496 echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18498
18499 ac_header_compiler=no
18500 fi
18501
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18504 echo "${ECHO_T}$ac_header_compiler" >&6; }
18505
18506 # Is the header present?
18507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18509 cat >conftest.$ac_ext <<_ACEOF
18510 /* confdefs.h. */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 #include <$ac_header>
18516 _ACEOF
18517 if { (ac_try="$ac_cpp conftest.$ac_ext"
18518 case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521 esac
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } >/dev/null && {
18530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18531 test ! -s conftest.err
18532 }; then
18533 ac_header_preproc=yes
18534 else
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538 ac_header_preproc=no
18539 fi
18540
18541 rm -f conftest.err conftest.$ac_ext
18542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18543 echo "${ECHO_T}$ac_header_preproc" >&6; }
18544
18545 # So? What about this header?
18546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18547 yes:no: )
18548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18552 ac_header_preproc=yes
18553 ;;
18554 no:yes:* )
18555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18567
18568 ;;
18569 esac
18570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575 eval "$as_ac_Header=\$ac_header_preproc"
18576 fi
18577 ac_res=`eval echo '${'$as_ac_Header'}'`
18578 { echo "$as_me:$LINENO: result: $ac_res" >&5
18579 echo "${ECHO_T}$ac_res" >&6; }
18580
18581 fi
18582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18583 cat >>confdefs.h <<_ACEOF
18584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18585 _ACEOF
18586 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18587 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18588 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591 cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h. */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18597 #include <nlist.h>
18598
18599 int
18600 main ()
18601 {
18602 static struct nlist ac_aggr;
18603 if (ac_aggr.n_un.n_name)
18604 return 0;
18605 ;
18606 return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (ac_try="$ac_compile"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_compile") 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } && {
18623 test -z "$ac_c_werror_flag" ||
18624 test ! -s conftest.err
18625 } && test -s conftest.$ac_objext; then
18626 ac_cv_member_struct_nlist_n_un_n_name=yes
18627 else
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18630
18631 cat >conftest.$ac_ext <<_ACEOF
18632 /* confdefs.h. */
18633 _ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h. */
18637 #include <nlist.h>
18638
18639 int
18640 main ()
18641 {
18642 static struct nlist ac_aggr;
18643 if (sizeof ac_aggr.n_un.n_name)
18644 return 0;
18645 ;
18646 return 0;
18647 }
18648 _ACEOF
18649 rm -f conftest.$ac_objext
18650 if { (ac_try="$ac_compile"
18651 case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18654 esac
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_compile") 2>conftest.er1
18657 ac_status=$?
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } && {
18663 test -z "$ac_c_werror_flag" ||
18664 test ! -s conftest.err
18665 } && test -s conftest.$ac_objext; then
18666 ac_cv_member_struct_nlist_n_un_n_name=yes
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671 ac_cv_member_struct_nlist_n_un_n_name=no
18672 fi
18673
18674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18675 fi
18676
18677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18678 fi
18679 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18680 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18681 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18682
18683 cat >>confdefs.h <<_ACEOF
18684 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18685 _ACEOF
18686
18687
18688 cat >>confdefs.h <<\_ACEOF
18689 #define NLIST_NAME_UNION 1
18690 _ACEOF
18691
18692 fi
18693
18694
18695 fi
18696
18697 done
18698
18699 fi
18700 done
18701
18702
18703 # Some definitions of getloadavg require that the program be installed setgid.
18704 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18705 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18706 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h. */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18715 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18716 #ifdef LDAV_PRIVILEGED
18717 Yowza Am I SETGID yet
18718 #endif
18719 _ACEOF
18720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18721 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18722 ac_cv_func_getloadavg_setgid=yes
18723 else
18724 ac_cv_func_getloadavg_setgid=no
18725 fi
18726 rm -f conftest*
18727
18728 fi
18729 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18730 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18731 if test $ac_cv_func_getloadavg_setgid = yes; then
18732 NEED_SETGID=true
18733
18734 cat >>confdefs.h <<\_ACEOF
18735 #define GETLOADAVG_PRIVILEGED 1
18736 _ACEOF
18737
18738 else
18739 NEED_SETGID=false
18740 fi
18741
18742 if test $ac_cv_func_getloadavg_setgid = yes; then
18743 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18744 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18745 if test "${ac_cv_group_kmem+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 else
18748 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18749 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18750 # If we got an error (system does not support symlinks), try without -L.
18751 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18752 ac_cv_group_kmem=`echo $ac_ls_output \
18753 | sed -ne 's/[ ][ ]*/ /g;
18754 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18755 / /s/.* //;p;'`
18756
18757 fi
18758 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18759 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18760 KMEM_GROUP=$ac_cv_group_kmem
18761 fi
18762 if test "x$ac_save_LIBS" = x; then
18763 GETLOADAVG_LIBS=$LIBS
18764 else
18765 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18766 fi
18767 LIBS=$ac_save_LIBS
18768
18769
18770
18771 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18772 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18773 if test "${ac_cv_sys_largefile_source+set}" = set; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18775 else
18776 while :; do
18777 cat >conftest.$ac_ext <<_ACEOF
18778 /* confdefs.h. */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 #include <sys/types.h> /* for off_t */
18784 #include <stdio.h>
18785 int
18786 main ()
18787 {
18788 int (*fp) (FILE *, off_t, int) = fseeko;
18789 return fseeko (stdin, 0, 0) && fp (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=no; 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 cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h. */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18828 #define _LARGEFILE_SOURCE 1
18829 #include <sys/types.h> /* for off_t */
18830 #include <stdio.h>
18831 int
18832 main ()
18833 {
18834 int (*fp) (FILE *, off_t, int) = fseeko;
18835 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18836 ;
18837 return 0;
18838 }
18839 _ACEOF
18840 rm -f conftest.$ac_objext conftest$ac_exeext
18841 if { (ac_try="$ac_link"
18842 case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18845 esac
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_link") 2>conftest.er1
18848 ac_status=$?
18849 grep -v '^ *+' conftest.er1 >conftest.err
18850 rm -f conftest.er1
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } && {
18854 test -z "$ac_c_werror_flag" ||
18855 test ! -s conftest.err
18856 } && test -s conftest$ac_exeext &&
18857 $as_test_x conftest$ac_exeext; then
18858 ac_cv_sys_largefile_source=1; break
18859 else
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863
18864 fi
18865
18866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18867 conftest$ac_exeext conftest.$ac_ext
18868 ac_cv_sys_largefile_source=unknown
18869 break
18870 done
18871 fi
18872 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18873 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18874 case $ac_cv_sys_largefile_source in #(
18875 no | unknown) ;;
18876 *)
18877 cat >>confdefs.h <<_ACEOF
18878 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18879 _ACEOF
18880 ;;
18881 esac
18882 rm -f conftest*
18883
18884 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18885 # in glibc 2.1.3, but that breaks too many other things.
18886 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18887 if test $ac_cv_sys_largefile_source != unknown; then
18888
18889 cat >>confdefs.h <<\_ACEOF
18890 #define HAVE_FSEEKO 1
18891 _ACEOF
18892
18893 fi
18894
18895
18896 # Configure getopt.
18897 # getopt.m4 serial 10
18898
18899 # The getopt module assume you want GNU getopt, with getopt_long etc,
18900 # rather than vanilla POSIX getopt. This means your your code should
18901 # always include <getopt.h> for the getopt prototypes.
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913 # Prerequisites of lib/getopt*.
18914
18915
18916
18917
18918 GETOPT_H=
18919
18920 for ac_header in getopt.h
18921 do
18922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 fi
18929 ac_res=`eval echo '${'$as_ac_Header'}'`
18930 { echo "$as_me:$LINENO: result: $ac_res" >&5
18931 echo "${ECHO_T}$ac_res" >&6; }
18932 else
18933 # Is the header compilable?
18934 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18936 cat >conftest.$ac_ext <<_ACEOF
18937 /* confdefs.h. */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18942 $ac_includes_default
18943 #include <$ac_header>
18944 _ACEOF
18945 rm -f conftest.$ac_objext
18946 if { (ac_try="$ac_compile"
18947 case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_compile") 2>conftest.er1
18953 ac_status=$?
18954 grep -v '^ *+' conftest.er1 >conftest.err
18955 rm -f conftest.er1
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest.$ac_objext; then
18962 ac_header_compiler=yes
18963 else
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18966
18967 ac_header_compiler=no
18968 fi
18969
18970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18972 echo "${ECHO_T}$ac_header_compiler" >&6; }
18973
18974 # Is the header present?
18975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18977 cat >conftest.$ac_ext <<_ACEOF
18978 /* confdefs.h. */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 #include <$ac_header>
18984 _ACEOF
18985 if { (ac_try="$ac_cpp conftest.$ac_ext"
18986 case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18989 esac
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18992 ac_status=$?
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } >/dev/null && {
18998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18999 test ! -s conftest.err
19000 }; then
19001 ac_header_preproc=yes
19002 else
19003 echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19005
19006 ac_header_preproc=no
19007 fi
19008
19009 rm -f conftest.err conftest.$ac_ext
19010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19011 echo "${ECHO_T}$ac_header_preproc" >&6; }
19012
19013 # So? What about this header?
19014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19015 yes:no: )
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19020 ac_header_preproc=yes
19021 ;;
19022 no:yes:* )
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19035
19036 ;;
19037 esac
19038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043 eval "$as_ac_Header=\$ac_header_preproc"
19044 fi
19045 ac_res=`eval echo '${'$as_ac_Header'}'`
19046 { echo "$as_me:$LINENO: result: $ac_res" >&5
19047 echo "${ECHO_T}$ac_res" >&6; }
19048
19049 fi
19050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19051 cat >>confdefs.h <<_ACEOF
19052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19053 _ACEOF
19054
19055 else
19056 GETOPT_H=getopt.h
19057 fi
19058
19059 done
19060
19061 if test -z "$GETOPT_H"; then
19062
19063 for ac_func in getopt_long_only
19064 do
19065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 else
19071 cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h. */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19079 #define $ac_func innocuous_$ac_func
19080
19081 /* System header to define __stub macros and hopefully few prototypes,
19082 which can conflict with char $ac_func (); below.
19083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19084 <limits.h> exists even on freestanding compilers. */
19085
19086 #ifdef __STDC__
19087 # include <limits.h>
19088 #else
19089 # include <assert.h>
19090 #endif
19091
19092 #undef $ac_func
19093
19094 /* Override any GCC internal prototype to avoid an error.
19095 Use char because int might match the return type of a GCC
19096 builtin and then its argument prototype would still apply. */
19097 #ifdef __cplusplus
19098 extern "C"
19099 #endif
19100 char $ac_func ();
19101 /* The GNU C library defines this for functions which it implements
19102 to always fail with ENOSYS. Some functions are actually named
19103 something starting with __ and the normal name is an alias. */
19104 #if defined __stub_$ac_func || defined __stub___$ac_func
19105 choke me
19106 #endif
19107
19108 int
19109 main ()
19110 {
19111 return $ac_func ();
19112 ;
19113 return 0;
19114 }
19115 _ACEOF
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && {
19130 test -z "$ac_c_werror_flag" ||
19131 test ! -s conftest.err
19132 } && test -s conftest$ac_exeext &&
19133 $as_test_x conftest$ac_exeext; then
19134 eval "$as_ac_var=yes"
19135 else
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19138
19139 eval "$as_ac_var=no"
19140 fi
19141
19142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19143 conftest$ac_exeext conftest.$ac_ext
19144 fi
19145 ac_res=`eval echo '${'$as_ac_var'}'`
19146 { echo "$as_me:$LINENO: result: $ac_res" >&5
19147 echo "${ECHO_T}$ac_res" >&6; }
19148 if test `eval echo '${'$as_ac_var'}'` = yes; then
19149 cat >>confdefs.h <<_ACEOF
19150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19151 _ACEOF
19152
19153 else
19154 GETOPT_H=getopt.h
19155 fi
19156 done
19157
19158 fi
19159
19160 if test -z "$GETOPT_H"; then
19161 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19162 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19163 if test "${ac_cv_have_decl_optreset+set}" = set; then
19164 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 else
19166 cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h. */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19172 #include <getopt.h>
19173
19174 int
19175 main ()
19176 {
19177 #ifndef optreset
19178 (void) optreset;
19179 #endif
19180
19181 ;
19182 return 0;
19183 }
19184 _ACEOF
19185 rm -f conftest.$ac_objext
19186 if { (ac_try="$ac_compile"
19187 case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19190 esac
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_compile") 2>conftest.er1
19193 ac_status=$?
19194 grep -v '^ *+' conftest.er1 >conftest.err
19195 rm -f conftest.er1
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } && {
19199 test -z "$ac_c_werror_flag" ||
19200 test ! -s conftest.err
19201 } && test -s conftest.$ac_objext; then
19202 ac_cv_have_decl_optreset=yes
19203 else
19204 echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19206
19207 ac_cv_have_decl_optreset=no
19208 fi
19209
19210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211 fi
19212 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19213 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19214 if test $ac_cv_have_decl_optreset = yes; then
19215 GETOPT_H=getopt.h
19216 fi
19217
19218 fi
19219
19220 if test -z "$GETOPT_H"; then
19221 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19222 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19223 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19225 else
19226 if test "$cross_compiling" = yes; then
19227 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19228 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19229 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232 cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h. */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 #include <getopt.h>
19239
19240 int
19241 main ()
19242 {
19243 #ifndef getopt_clip
19244 (void) getopt_clip;
19245 #endif
19246
19247 ;
19248 return 0;
19249 }
19250 _ACEOF
19251 rm -f conftest.$ac_objext
19252 if { (ac_try="$ac_compile"
19253 case "(($ac_try" in
19254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255 *) ac_try_echo=$ac_try;;
19256 esac
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_compile") 2>conftest.er1
19259 ac_status=$?
19260 grep -v '^ *+' conftest.er1 >conftest.err
19261 rm -f conftest.er1
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } && {
19265 test -z "$ac_c_werror_flag" ||
19266 test ! -s conftest.err
19267 } && test -s conftest.$ac_objext; then
19268 ac_cv_have_decl_getopt_clip=yes
19269 else
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19272
19273 ac_cv_have_decl_getopt_clip=no
19274 fi
19275
19276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19277 fi
19278 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19279 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19280 if test $ac_cv_have_decl_getopt_clip = yes; then
19281 gl_cv_func_gnu_getopt=no
19282 else
19283 gl_cv_func_gnu_getopt=yes
19284 fi
19285
19286 else
19287 cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h. */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 #include <getopt.h>
19294 int
19295 main ()
19296 {
19297
19298 char *myargv[3];
19299 myargv[0] = "conftest";
19300 myargv[1] = "-+";
19301 myargv[2] = 0;
19302 return getopt (2, myargv, "+a") != '?';
19303
19304 ;
19305 return 0;
19306 }
19307 _ACEOF
19308 rm -f conftest$ac_exeext
19309 if { (ac_try="$ac_link"
19310 case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19313 esac
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_link") 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19319 { (case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19322 esac
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_try") 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 gl_cv_func_gnu_getopt=yes
19329 else
19330 echo "$as_me: program exited with status $ac_status" >&5
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334 ( exit $ac_status )
19335 gl_cv_func_gnu_getopt=no
19336 fi
19337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19338 fi
19339
19340
19341 fi
19342 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19343 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19344 if test "$gl_cv_func_gnu_getopt" = "no"; then
19345 GETOPT_H=getopt.h
19346 fi
19347 fi
19348
19349
19350
19351 if test -n "$GETOPT_H"; then
19352
19353
19354 GETOPT_H=getopt.h
19355
19356 cat >>confdefs.h <<\_ACEOF
19357 #define __GETOPT_PREFIX rpl_
19358 _ACEOF
19359
19360
19361
19362 :
19363 GETOPTOBJS='getopt.o getopt1.o'
19364
19365 fi
19366
19367
19368
19369
19370 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19371 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19372 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 else
19375 # Use it with a single arg.
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h. */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 $ac_includes_default
19383 int
19384 main ()
19385 {
19386 getpgrp (0);
19387 ;
19388 return 0;
19389 }
19390 _ACEOF
19391 rm -f conftest.$ac_objext
19392 if { (ac_try="$ac_compile"
19393 case "(($ac_try" in
19394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395 *) ac_try_echo=$ac_try;;
19396 esac
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398 (eval "$ac_compile") 2>conftest.er1
19399 ac_status=$?
19400 grep -v '^ *+' conftest.er1 >conftest.err
19401 rm -f conftest.er1
19402 cat conftest.err >&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } && {
19405 test -z "$ac_c_werror_flag" ||
19406 test ! -s conftest.err
19407 } && test -s conftest.$ac_objext; then
19408 ac_cv_func_getpgrp_void=no
19409 else
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19412
19413 ac_cv_func_getpgrp_void=yes
19414 fi
19415
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417
19418 fi
19419 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19420 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19421 if test $ac_cv_func_getpgrp_void = yes; then
19422
19423 cat >>confdefs.h <<\_ACEOF
19424 #define GETPGRP_VOID 1
19425 _ACEOF
19426
19427 fi
19428
19429
19430
19431 for ac_func in strftime
19432 do
19433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19438 else
19439 cat >conftest.$ac_ext <<_ACEOF
19440 /* confdefs.h. */
19441 _ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19447 #define $ac_func innocuous_$ac_func
19448
19449 /* System header to define __stub macros and hopefully few prototypes,
19450 which can conflict with char $ac_func (); below.
19451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19452 <limits.h> exists even on freestanding compilers. */
19453
19454 #ifdef __STDC__
19455 # include <limits.h>
19456 #else
19457 # include <assert.h>
19458 #endif
19459
19460 #undef $ac_func
19461
19462 /* Override any GCC internal prototype to avoid an error.
19463 Use char because int might match the return type of a GCC
19464 builtin and then its argument prototype would still apply. */
19465 #ifdef __cplusplus
19466 extern "C"
19467 #endif
19468 char $ac_func ();
19469 /* The GNU C library defines this for functions which it implements
19470 to always fail with ENOSYS. Some functions are actually named
19471 something starting with __ and the normal name is an alias. */
19472 #if defined __stub_$ac_func || defined __stub___$ac_func
19473 choke me
19474 #endif
19475
19476 int
19477 main ()
19478 {
19479 return $ac_func ();
19480 ;
19481 return 0;
19482 }
19483 _ACEOF
19484 rm -f conftest.$ac_objext conftest$ac_exeext
19485 if { (ac_try="$ac_link"
19486 case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19489 esac
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_link") 2>conftest.er1
19492 ac_status=$?
19493 grep -v '^ *+' conftest.er1 >conftest.err
19494 rm -f conftest.er1
19495 cat conftest.err >&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } && {
19498 test -z "$ac_c_werror_flag" ||
19499 test ! -s conftest.err
19500 } && test -s conftest$ac_exeext &&
19501 $as_test_x conftest$ac_exeext; then
19502 eval "$as_ac_var=yes"
19503 else
19504 echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.$ac_ext >&5
19506
19507 eval "$as_ac_var=no"
19508 fi
19509
19510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19511 conftest$ac_exeext conftest.$ac_ext
19512 fi
19513 ac_res=`eval echo '${'$as_ac_var'}'`
19514 { echo "$as_me:$LINENO: result: $ac_res" >&5
19515 echo "${ECHO_T}$ac_res" >&6; }
19516 if test `eval echo '${'$as_ac_var'}'` = yes; then
19517 cat >>confdefs.h <<_ACEOF
19518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19519 _ACEOF
19520
19521 else
19522 # strftime is in -lintl on SCO UNIX.
19523 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19524 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19525 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19527 else
19528 ac_check_lib_save_LIBS=$LIBS
19529 LIBS="-lintl $LIBS"
19530 cat >conftest.$ac_ext <<_ACEOF
19531 /* confdefs.h. */
19532 _ACEOF
19533 cat confdefs.h >>conftest.$ac_ext
19534 cat >>conftest.$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19536
19537 /* Override any GCC internal prototype to avoid an error.
19538 Use char because int might match the return type of a GCC
19539 builtin and then its argument prototype would still apply. */
19540 #ifdef __cplusplus
19541 extern "C"
19542 #endif
19543 char strftime ();
19544 int
19545 main ()
19546 {
19547 return strftime ();
19548 ;
19549 return 0;
19550 }
19551 _ACEOF
19552 rm -f conftest.$ac_objext conftest$ac_exeext
19553 if { (ac_try="$ac_link"
19554 case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_link") 2>conftest.er1
19560 ac_status=$?
19561 grep -v '^ *+' conftest.er1 >conftest.err
19562 rm -f conftest.er1
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && {
19566 test -z "$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 } && test -s conftest$ac_exeext &&
19569 $as_test_x conftest$ac_exeext; then
19570 ac_cv_lib_intl_strftime=yes
19571 else
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 ac_cv_lib_intl_strftime=no
19576 fi
19577
19578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19579 conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_check_lib_save_LIBS
19581 fi
19582 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19583 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19584 if test $ac_cv_lib_intl_strftime = yes; then
19585 cat >>confdefs.h <<\_ACEOF
19586 #define HAVE_STRFTIME 1
19587 _ACEOF
19588
19589 LIBS="-lintl $LIBS"
19590 fi
19591
19592 fi
19593 done
19594
19595
19596 # UNIX98 PTYs.
19597
19598 for ac_func in grantpt
19599 do
19600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606 cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h. */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19614 #define $ac_func innocuous_$ac_func
19615
19616 /* System header to define __stub macros and hopefully few prototypes,
19617 which can conflict with char $ac_func (); below.
19618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19619 <limits.h> exists even on freestanding compilers. */
19620
19621 #ifdef __STDC__
19622 # include <limits.h>
19623 #else
19624 # include <assert.h>
19625 #endif
19626
19627 #undef $ac_func
19628
19629 /* Override any GCC internal prototype to avoid an error.
19630 Use char because int might match the return type of a GCC
19631 builtin and then its argument prototype would still apply. */
19632 #ifdef __cplusplus
19633 extern "C"
19634 #endif
19635 char $ac_func ();
19636 /* The GNU C library defines this for functions which it implements
19637 to always fail with ENOSYS. Some functions are actually named
19638 something starting with __ and the normal name is an alias. */
19639 #if defined __stub_$ac_func || defined __stub___$ac_func
19640 choke me
19641 #endif
19642
19643 int
19644 main ()
19645 {
19646 return $ac_func ();
19647 ;
19648 return 0;
19649 }
19650 _ACEOF
19651 rm -f conftest.$ac_objext conftest$ac_exeext
19652 if { (ac_try="$ac_link"
19653 case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19656 esac
19657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_link") 2>conftest.er1
19659 ac_status=$?
19660 grep -v '^ *+' conftest.er1 >conftest.err
19661 rm -f conftest.er1
19662 cat conftest.err >&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } && {
19665 test -z "$ac_c_werror_flag" ||
19666 test ! -s conftest.err
19667 } && test -s conftest$ac_exeext &&
19668 $as_test_x conftest$ac_exeext; then
19669 eval "$as_ac_var=yes"
19670 else
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19673
19674 eval "$as_ac_var=no"
19675 fi
19676
19677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19678 conftest$ac_exeext conftest.$ac_ext
19679 fi
19680 ac_res=`eval echo '${'$as_ac_var'}'`
19681 { echo "$as_me:$LINENO: result: $ac_res" >&5
19682 echo "${ECHO_T}$ac_res" >&6; }
19683 if test `eval echo '${'$as_ac_var'}'` = yes; then
19684 cat >>confdefs.h <<_ACEOF
19685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19686 _ACEOF
19687
19688 fi
19689 done
19690
19691
19692 # PTY-related GNU extensions.
19693
19694 for ac_func in getpt
19695 do
19696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 else
19702 cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h. */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19710 #define $ac_func innocuous_$ac_func
19711
19712 /* System header to define __stub macros and hopefully few prototypes,
19713 which can conflict with char $ac_func (); below.
19714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19715 <limits.h> exists even on freestanding compilers. */
19716
19717 #ifdef __STDC__
19718 # include <limits.h>
19719 #else
19720 # include <assert.h>
19721 #endif
19722
19723 #undef $ac_func
19724
19725 /* Override any GCC internal prototype to avoid an error.
19726 Use char because int might match the return type of a GCC
19727 builtin and then its argument prototype would still apply. */
19728 #ifdef __cplusplus
19729 extern "C"
19730 #endif
19731 char $ac_func ();
19732 /* The GNU C library defines this for functions which it implements
19733 to always fail with ENOSYS. Some functions are actually named
19734 something starting with __ and the normal name is an alias. */
19735 #if defined __stub_$ac_func || defined __stub___$ac_func
19736 choke me
19737 #endif
19738
19739 int
19740 main ()
19741 {
19742 return $ac_func ();
19743 ;
19744 return 0;
19745 }
19746 _ACEOF
19747 rm -f conftest.$ac_objext conftest$ac_exeext
19748 if { (ac_try="$ac_link"
19749 case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_link") 2>conftest.er1
19755 ac_status=$?
19756 grep -v '^ *+' conftest.er1 >conftest.err
19757 rm -f conftest.er1
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } && {
19761 test -z "$ac_c_werror_flag" ||
19762 test ! -s conftest.err
19763 } && test -s conftest$ac_exeext &&
19764 $as_test_x conftest$ac_exeext; then
19765 eval "$as_ac_var=yes"
19766 else
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770 eval "$as_ac_var=no"
19771 fi
19772
19773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19774 conftest$ac_exeext conftest.$ac_ext
19775 fi
19776 ac_res=`eval echo '${'$as_ac_var'}'`
19777 { echo "$as_me:$LINENO: result: $ac_res" >&5
19778 echo "${ECHO_T}$ac_res" >&6; }
19779 if test `eval echo '${'$as_ac_var'}'` = yes; then
19780 cat >>confdefs.h <<_ACEOF
19781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19782 _ACEOF
19783
19784 fi
19785 done
19786
19787
19788 # Check this now, so that we will NOT find the above functions in ncurses.
19789 # That is because we have not set up to link ncurses in lib-src.
19790 # It's better to believe a function is not available
19791 # than to expect to find it in ncurses.
19792
19793 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19794 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19795 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19797 else
19798 ac_check_lib_save_LIBS=$LIBS
19799 LIBS="-lncurses $LIBS"
19800 cat >conftest.$ac_ext <<_ACEOF
19801 /* confdefs.h. */
19802 _ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19806
19807 /* Override any GCC internal prototype to avoid an error.
19808 Use char because int might match the return type of a GCC
19809 builtin and then its argument prototype would still apply. */
19810 #ifdef __cplusplus
19811 extern "C"
19812 #endif
19813 char tparm ();
19814 int
19815 main ()
19816 {
19817 return tparm ();
19818 ;
19819 return 0;
19820 }
19821 _ACEOF
19822 rm -f conftest.$ac_objext conftest$ac_exeext
19823 if { (ac_try="$ac_link"
19824 case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19827 esac
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_link") 2>conftest.er1
19830 ac_status=$?
19831 grep -v '^ *+' conftest.er1 >conftest.err
19832 rm -f conftest.er1
19833 cat conftest.err >&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } && {
19836 test -z "$ac_c_werror_flag" ||
19837 test ! -s conftest.err
19838 } && test -s conftest$ac_exeext &&
19839 $as_test_x conftest$ac_exeext; then
19840 ac_cv_lib_ncurses_tparm=yes
19841 else
19842 echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19844
19845 ac_cv_lib_ncurses_tparm=no
19846 fi
19847
19848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19849 conftest$ac_exeext conftest.$ac_ext
19850 LIBS=$ac_check_lib_save_LIBS
19851 fi
19852 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19853 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19854 if test $ac_cv_lib_ncurses_tparm = yes; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define HAVE_LIBNCURSES 1
19857 _ACEOF
19858
19859 LIBS="-lncurses $LIBS"
19860
19861 fi
19862
19863
19864 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19865
19866 resolv=no
19867 cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h. */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 #include <netinet/in.h>
19874 #include <arpa/nameser.h>
19875 #include <resolv.h>
19876 int
19877 main ()
19878 {
19879 return res_init();
19880 ;
19881 return 0;
19882 }
19883 _ACEOF
19884 rm -f conftest.$ac_objext conftest$ac_exeext
19885 if { (ac_try="$ac_link"
19886 case "(($ac_try" in
19887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888 *) ac_try_echo=$ac_try;;
19889 esac
19890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891 (eval "$ac_link") 2>conftest.er1
19892 ac_status=$?
19893 grep -v '^ *+' conftest.er1 >conftest.err
19894 rm -f conftest.er1
19895 cat conftest.err >&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } && {
19898 test -z "$ac_c_werror_flag" ||
19899 test ! -s conftest.err
19900 } && test -s conftest$ac_exeext &&
19901 $as_test_x conftest$ac_exeext; then
19902 have_res_init=yes
19903 else
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19906
19907 have_res_init=no
19908 fi
19909
19910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19911 conftest$ac_exeext conftest.$ac_ext
19912 if test "$have_res_init" = no; then
19913 OLIBS="$LIBS"
19914 LIBS="$LIBS -lresolv"
19915 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19916 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19917 cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h. */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 #include <netinet/in.h>
19924 #include <arpa/nameser.h>
19925 #include <resolv.h>
19926 int
19927 main ()
19928 {
19929 return res_init();
19930 ;
19931 return 0;
19932 }
19933 _ACEOF
19934 rm -f conftest.$ac_objext conftest$ac_exeext
19935 if { (ac_try="$ac_link"
19936 case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19939 esac
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_link") 2>conftest.er1
19942 ac_status=$?
19943 grep -v '^ *+' conftest.er1 >conftest.err
19944 rm -f conftest.er1
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && {
19948 test -z "$ac_c_werror_flag" ||
19949 test ! -s conftest.err
19950 } && test -s conftest$ac_exeext &&
19951 $as_test_x conftest$ac_exeext; then
19952 have_res_init=yes
19953 else
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956
19957 have_res_init=no
19958 fi
19959
19960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961 conftest$ac_exeext conftest.$ac_ext
19962 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19963 echo "${ECHO_T}$have_res_init" >&6; }
19964 if test "$have_res_init" = yes ; then
19965 resolv=yes
19966 fi
19967 LIBS="$OLIBS"
19968 fi
19969
19970 if test "$have_res_init" = yes; then
19971
19972 cat >>confdefs.h <<\_ACEOF
19973 #define HAVE_RES_INIT 1
19974 _ACEOF
19975
19976 fi
19977
19978 # Do we need the Hesiod library to provide the support routines?
19979 if test "$with_hesiod" != no ; then
19980 # Don't set $LIBS here -- see comments above.
19981 { echo "$as_me:$LINENO: checking for res_send" >&5
19982 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19983 if test "${ac_cv_func_res_send+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h. */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19994 #define res_send innocuous_res_send
19995
19996 /* System header to define __stub macros and hopefully few prototypes,
19997 which can conflict with char res_send (); below.
19998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19999 <limits.h> exists even on freestanding compilers. */
20000
20001 #ifdef __STDC__
20002 # include <limits.h>
20003 #else
20004 # include <assert.h>
20005 #endif
20006
20007 #undef res_send
20008
20009 /* Override any GCC internal prototype to avoid an error.
20010 Use char because int might match the return type of a GCC
20011 builtin and then its argument prototype would still apply. */
20012 #ifdef __cplusplus
20013 extern "C"
20014 #endif
20015 char res_send ();
20016 /* The GNU C library defines this for functions which it implements
20017 to always fail with ENOSYS. Some functions are actually named
20018 something starting with __ and the normal name is an alias. */
20019 #if defined __stub_res_send || defined __stub___res_send
20020 choke me
20021 #endif
20022
20023 int
20024 main ()
20025 {
20026 return res_send ();
20027 ;
20028 return 0;
20029 }
20030 _ACEOF
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (ac_try="$ac_link"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_link") 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest$ac_exeext &&
20048 $as_test_x conftest$ac_exeext; then
20049 ac_cv_func_res_send=yes
20050 else
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054 ac_cv_func_res_send=no
20055 fi
20056
20057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20058 conftest$ac_exeext conftest.$ac_ext
20059 fi
20060 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20061 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20062 if test $ac_cv_func_res_send = yes; then
20063 :
20064 else
20065 { echo "$as_me:$LINENO: checking for __res_send" >&5
20066 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20067 if test "${ac_cv_func___res_send+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 else
20070 cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h. */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20078 #define __res_send innocuous___res_send
20079
20080 /* System header to define __stub macros and hopefully few prototypes,
20081 which can conflict with char __res_send (); below.
20082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20083 <limits.h> exists even on freestanding compilers. */
20084
20085 #ifdef __STDC__
20086 # include <limits.h>
20087 #else
20088 # include <assert.h>
20089 #endif
20090
20091 #undef __res_send
20092
20093 /* Override any GCC internal prototype to avoid an error.
20094 Use char because int might match the return type of a GCC
20095 builtin and then its argument prototype would still apply. */
20096 #ifdef __cplusplus
20097 extern "C"
20098 #endif
20099 char __res_send ();
20100 /* The GNU C library defines this for functions which it implements
20101 to always fail with ENOSYS. Some functions are actually named
20102 something starting with __ and the normal name is an alias. */
20103 #if defined __stub___res_send || defined __stub_____res_send
20104 choke me
20105 #endif
20106
20107 int
20108 main ()
20109 {
20110 return __res_send ();
20111 ;
20112 return 0;
20113 }
20114 _ACEOF
20115 rm -f conftest.$ac_objext conftest$ac_exeext
20116 if { (ac_try="$ac_link"
20117 case "(($ac_try" in
20118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119 *) ac_try_echo=$ac_try;;
20120 esac
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122 (eval "$ac_link") 2>conftest.er1
20123 ac_status=$?
20124 grep -v '^ *+' conftest.er1 >conftest.err
20125 rm -f conftest.er1
20126 cat conftest.err >&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } && {
20129 test -z "$ac_c_werror_flag" ||
20130 test ! -s conftest.err
20131 } && test -s conftest$ac_exeext &&
20132 $as_test_x conftest$ac_exeext; then
20133 ac_cv_func___res_send=yes
20134 else
20135 echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.$ac_ext >&5
20137
20138 ac_cv_func___res_send=no
20139 fi
20140
20141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20142 conftest$ac_exeext conftest.$ac_ext
20143 fi
20144 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20145 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20146 if test $ac_cv_func___res_send = yes; then
20147 :
20148 else
20149 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20150 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20151 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154 ac_check_lib_save_LIBS=$LIBS
20155 LIBS="-lresolv $LIBS"
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h. */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20162
20163 /* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20166 #ifdef __cplusplus
20167 extern "C"
20168 #endif
20169 char res_send ();
20170 int
20171 main ()
20172 {
20173 return res_send ();
20174 ;
20175 return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (ac_try="$ac_link"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_link") 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest$ac_exeext &&
20195 $as_test_x conftest$ac_exeext; then
20196 ac_cv_lib_resolv_res_send=yes
20197 else
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20200
20201 ac_cv_lib_resolv_res_send=no
20202 fi
20203
20204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20205 conftest$ac_exeext conftest.$ac_ext
20206 LIBS=$ac_check_lib_save_LIBS
20207 fi
20208 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20209 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20210 if test $ac_cv_lib_resolv_res_send = yes; then
20211 resolv=yes
20212 else
20213 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20214 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20215 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 else
20218 ac_check_lib_save_LIBS=$LIBS
20219 LIBS="-lresolv $LIBS"
20220 cat >conftest.$ac_ext <<_ACEOF
20221 /* confdefs.h. */
20222 _ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h. */
20226
20227 /* Override any GCC internal prototype to avoid an error.
20228 Use char because int might match the return type of a GCC
20229 builtin and then its argument prototype would still apply. */
20230 #ifdef __cplusplus
20231 extern "C"
20232 #endif
20233 char __res_send ();
20234 int
20235 main ()
20236 {
20237 return __res_send ();
20238 ;
20239 return 0;
20240 }
20241 _ACEOF
20242 rm -f conftest.$ac_objext conftest$ac_exeext
20243 if { (ac_try="$ac_link"
20244 case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247 esac
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_link") 2>conftest.er1
20250 ac_status=$?
20251 grep -v '^ *+' conftest.er1 >conftest.err
20252 rm -f conftest.er1
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } && {
20256 test -z "$ac_c_werror_flag" ||
20257 test ! -s conftest.err
20258 } && test -s conftest$ac_exeext &&
20259 $as_test_x conftest$ac_exeext; then
20260 ac_cv_lib_resolv___res_send=yes
20261 else
20262 echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20264
20265 ac_cv_lib_resolv___res_send=no
20266 fi
20267
20268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20269 conftest$ac_exeext conftest.$ac_ext
20270 LIBS=$ac_check_lib_save_LIBS
20271 fi
20272 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20273 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20274 if test $ac_cv_lib_resolv___res_send = yes; then
20275 resolv=yes
20276 fi
20277
20278 fi
20279
20280 fi
20281
20282 fi
20283
20284 if test "$resolv" = yes ; then
20285 RESOLVLIB=-lresolv
20286 else
20287 RESOLVLIB=
20288 fi
20289 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20290 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20291 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20293 else
20294 cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h. */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20302 #define hes_getmailhost innocuous_hes_getmailhost
20303
20304 /* System header to define __stub macros and hopefully few prototypes,
20305 which can conflict with char hes_getmailhost (); below.
20306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20307 <limits.h> exists even on freestanding compilers. */
20308
20309 #ifdef __STDC__
20310 # include <limits.h>
20311 #else
20312 # include <assert.h>
20313 #endif
20314
20315 #undef hes_getmailhost
20316
20317 /* Override any GCC internal prototype to avoid an error.
20318 Use char because int might match the return type of a GCC
20319 builtin and then its argument prototype would still apply. */
20320 #ifdef __cplusplus
20321 extern "C"
20322 #endif
20323 char hes_getmailhost ();
20324 /* The GNU C library defines this for functions which it implements
20325 to always fail with ENOSYS. Some functions are actually named
20326 something starting with __ and the normal name is an alias. */
20327 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20328 choke me
20329 #endif
20330
20331 int
20332 main ()
20333 {
20334 return hes_getmailhost ();
20335 ;
20336 return 0;
20337 }
20338 _ACEOF
20339 rm -f conftest.$ac_objext conftest$ac_exeext
20340 if { (ac_try="$ac_link"
20341 case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20344 esac
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_link") 2>conftest.er1
20347 ac_status=$?
20348 grep -v '^ *+' conftest.er1 >conftest.err
20349 rm -f conftest.er1
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } && {
20353 test -z "$ac_c_werror_flag" ||
20354 test ! -s conftest.err
20355 } && test -s conftest$ac_exeext &&
20356 $as_test_x conftest$ac_exeext; then
20357 ac_cv_func_hes_getmailhost=yes
20358 else
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20361
20362 ac_cv_func_hes_getmailhost=no
20363 fi
20364
20365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20366 conftest$ac_exeext conftest.$ac_ext
20367 fi
20368 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20369 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20370 if test $ac_cv_func_hes_getmailhost = yes; then
20371 :
20372 else
20373 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20374 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20375 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378 ac_check_lib_save_LIBS=$LIBS
20379 LIBS="-lhesiod $RESOLVLIB $LIBS"
20380 cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h. */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20386
20387 /* Override any GCC internal prototype to avoid an error.
20388 Use char because int might match the return type of a GCC
20389 builtin and then its argument prototype would still apply. */
20390 #ifdef __cplusplus
20391 extern "C"
20392 #endif
20393 char hes_getmailhost ();
20394 int
20395 main ()
20396 {
20397 return hes_getmailhost ();
20398 ;
20399 return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (ac_try="$ac_link"
20404 case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20407 esac
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_link") 2>conftest.er1
20410 ac_status=$?
20411 grep -v '^ *+' conftest.er1 >conftest.err
20412 rm -f conftest.er1
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } && {
20416 test -z "$ac_c_werror_flag" ||
20417 test ! -s conftest.err
20418 } && test -s conftest$ac_exeext &&
20419 $as_test_x conftest$ac_exeext; then
20420 ac_cv_lib_hesiod_hes_getmailhost=yes
20421 else
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425 ac_cv_lib_hesiod_hes_getmailhost=no
20426 fi
20427
20428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20429 conftest$ac_exeext conftest.$ac_ext
20430 LIBS=$ac_check_lib_save_LIBS
20431 fi
20432 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20433 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20434 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20435
20436 cat >>confdefs.h <<\_ACEOF
20437 #define HAVE_LIBHESIOD 1
20438 _ACEOF
20439
20440 else
20441 :
20442 fi
20443
20444 fi
20445
20446 fi
20447
20448 # Do we need libresolv (due to res_init or Hesiod)?
20449 if test "$resolv" = yes ; then
20450
20451 cat >>confdefs.h <<\_ACEOF
20452 #define HAVE_LIBRESOLV 1
20453 _ACEOF
20454
20455 fi
20456
20457 # These tell us which Kerberos-related libraries to use.
20458 if test "${with_kerberos}" != no; then
20459
20460 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20461 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20462 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465 ac_check_lib_save_LIBS=$LIBS
20466 LIBS="-lcom_err $LIBS"
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h. */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20473
20474 /* Override any GCC internal prototype to avoid an error.
20475 Use char because int might match the return type of a GCC
20476 builtin and then its argument prototype would still apply. */
20477 #ifdef __cplusplus
20478 extern "C"
20479 #endif
20480 char com_err ();
20481 int
20482 main ()
20483 {
20484 return com_err ();
20485 ;
20486 return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_link") 2>conftest.er1
20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest$ac_exeext &&
20506 $as_test_x conftest$ac_exeext; then
20507 ac_cv_lib_com_err_com_err=yes
20508 else
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 ac_cv_lib_com_err_com_err=no
20513 fi
20514
20515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20516 conftest$ac_exeext conftest.$ac_ext
20517 LIBS=$ac_check_lib_save_LIBS
20518 fi
20519 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20520 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20521 if test $ac_cv_lib_com_err_com_err = yes; then
20522 cat >>confdefs.h <<_ACEOF
20523 #define HAVE_LIBCOM_ERR 1
20524 _ACEOF
20525
20526 LIBS="-lcom_err $LIBS"
20527
20528 fi
20529
20530
20531 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20532 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20533 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536 ac_check_lib_save_LIBS=$LIBS
20537 LIBS="-lk5crypto $LIBS"
20538 cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h. */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20544
20545 /* Override any GCC internal prototype to avoid an error.
20546 Use char because int might match the return type of a GCC
20547 builtin and then its argument prototype would still apply. */
20548 #ifdef __cplusplus
20549 extern "C"
20550 #endif
20551 char mit_des_cbc_encrypt ();
20552 int
20553 main ()
20554 {
20555 return mit_des_cbc_encrypt ();
20556 ;
20557 return 0;
20558 }
20559 _ACEOF
20560 rm -f conftest.$ac_objext conftest$ac_exeext
20561 if { (ac_try="$ac_link"
20562 case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20565 esac
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_link") 2>conftest.er1
20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } && {
20574 test -z "$ac_c_werror_flag" ||
20575 test ! -s conftest.err
20576 } && test -s conftest$ac_exeext &&
20577 $as_test_x conftest$ac_exeext; then
20578 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20579 else
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20582
20583 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20584 fi
20585
20586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20587 conftest$ac_exeext conftest.$ac_ext
20588 LIBS=$ac_check_lib_save_LIBS
20589 fi
20590 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20591 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20592 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20593 cat >>confdefs.h <<_ACEOF
20594 #define HAVE_LIBK5CRYPTO 1
20595 _ACEOF
20596
20597 LIBS="-lk5crypto $LIBS"
20598
20599 fi
20600
20601
20602 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20603 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20604 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607 ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-lcrypto $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h. */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20615
20616 /* Override any GCC internal prototype to avoid an error.
20617 Use char because int might match the return type of a GCC
20618 builtin and then its argument prototype would still apply. */
20619 #ifdef __cplusplus
20620 extern "C"
20621 #endif
20622 char mit_des_cbc_encrypt ();
20623 int
20624 main ()
20625 {
20626 return mit_des_cbc_encrypt ();
20627 ;
20628 return 0;
20629 }
20630 _ACEOF
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (ac_try="$ac_link"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20636 esac
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_link") 2>conftest.er1
20639 ac_status=$?
20640 grep -v '^ *+' conftest.er1 >conftest.err
20641 rm -f conftest.er1
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } && {
20645 test -z "$ac_c_werror_flag" ||
20646 test ! -s conftest.err
20647 } && test -s conftest$ac_exeext &&
20648 $as_test_x conftest$ac_exeext; then
20649 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20650 else
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20655 fi
20656
20657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20658 conftest$ac_exeext conftest.$ac_ext
20659 LIBS=$ac_check_lib_save_LIBS
20660 fi
20661 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20662 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20663 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20664 cat >>confdefs.h <<_ACEOF
20665 #define HAVE_LIBCRYPTO 1
20666 _ACEOF
20667
20668 LIBS="-lcrypto $LIBS"
20669
20670 fi
20671
20672
20673 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20674 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20675 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678 ac_check_lib_save_LIBS=$LIBS
20679 LIBS="-lkrb5 $LIBS"
20680 cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h. */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20686
20687 /* Override any GCC internal prototype to avoid an error.
20688 Use char because int might match the return type of a GCC
20689 builtin and then its argument prototype would still apply. */
20690 #ifdef __cplusplus
20691 extern "C"
20692 #endif
20693 char krb5_init_context ();
20694 int
20695 main ()
20696 {
20697 return krb5_init_context ();
20698 ;
20699 return 0;
20700 }
20701 _ACEOF
20702 rm -f conftest.$ac_objext conftest$ac_exeext
20703 if { (ac_try="$ac_link"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_link") 2>conftest.er1
20710 ac_status=$?
20711 grep -v '^ *+' conftest.er1 >conftest.err
20712 rm -f conftest.er1
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest$ac_exeext &&
20719 $as_test_x conftest$ac_exeext; then
20720 ac_cv_lib_krb5_krb5_init_context=yes
20721 else
20722 echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725 ac_cv_lib_krb5_krb5_init_context=no
20726 fi
20727
20728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20729 conftest$ac_exeext conftest.$ac_ext
20730 LIBS=$ac_check_lib_save_LIBS
20731 fi
20732 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20733 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20734 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20735 cat >>confdefs.h <<_ACEOF
20736 #define HAVE_LIBKRB5 1
20737 _ACEOF
20738
20739 LIBS="-lkrb5 $LIBS"
20740
20741 fi
20742
20743 if test "${with_kerberos5}" = no; then
20744
20745 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20746 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20747 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750 ac_check_lib_save_LIBS=$LIBS
20751 LIBS="-ldes425 $LIBS"
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h. */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758
20759 /* Override any GCC internal prototype to avoid an error.
20760 Use char because int might match the return type of a GCC
20761 builtin and then its argument prototype would still apply. */
20762 #ifdef __cplusplus
20763 extern "C"
20764 #endif
20765 char des_cbc_encrypt ();
20766 int
20767 main ()
20768 {
20769 return des_cbc_encrypt ();
20770 ;
20771 return 0;
20772 }
20773 _ACEOF
20774 rm -f conftest.$ac_objext conftest$ac_exeext
20775 if { (ac_try="$ac_link"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_link") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest$ac_exeext &&
20791 $as_test_x conftest$ac_exeext; then
20792 ac_cv_lib_des425_des_cbc_encrypt=yes
20793 else
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797 ac_cv_lib_des425_des_cbc_encrypt=no
20798 fi
20799
20800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20801 conftest$ac_exeext conftest.$ac_ext
20802 LIBS=$ac_check_lib_save_LIBS
20803 fi
20804 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20805 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20806 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20807 cat >>confdefs.h <<_ACEOF
20808 #define HAVE_LIBDES425 1
20809 _ACEOF
20810
20811 LIBS="-ldes425 $LIBS"
20812
20813 else
20814
20815 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20816 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20817 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 else
20820 ac_check_lib_save_LIBS=$LIBS
20821 LIBS="-ldes $LIBS"
20822 cat >conftest.$ac_ext <<_ACEOF
20823 /* confdefs.h. */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20828
20829 /* Override any GCC internal prototype to avoid an error.
20830 Use char because int might match the return type of a GCC
20831 builtin and then its argument prototype would still apply. */
20832 #ifdef __cplusplus
20833 extern "C"
20834 #endif
20835 char des_cbc_encrypt ();
20836 int
20837 main ()
20838 {
20839 return des_cbc_encrypt ();
20840 ;
20841 return 0;
20842 }
20843 _ACEOF
20844 rm -f conftest.$ac_objext conftest$ac_exeext
20845 if { (ac_try="$ac_link"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20849 esac
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_link") 2>conftest.er1
20852 ac_status=$?
20853 grep -v '^ *+' conftest.er1 >conftest.err
20854 rm -f conftest.er1
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } && {
20858 test -z "$ac_c_werror_flag" ||
20859 test ! -s conftest.err
20860 } && test -s conftest$ac_exeext &&
20861 $as_test_x conftest$ac_exeext; then
20862 ac_cv_lib_des_des_cbc_encrypt=yes
20863 else
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20866
20867 ac_cv_lib_des_des_cbc_encrypt=no
20868 fi
20869
20870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20871 conftest$ac_exeext conftest.$ac_ext
20872 LIBS=$ac_check_lib_save_LIBS
20873 fi
20874 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20875 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20876 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20877 cat >>confdefs.h <<_ACEOF
20878 #define HAVE_LIBDES 1
20879 _ACEOF
20880
20881 LIBS="-ldes $LIBS"
20882
20883 fi
20884
20885 fi
20886
20887
20888 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20889 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20890 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 else
20893 ac_check_lib_save_LIBS=$LIBS
20894 LIBS="-lkrb4 $LIBS"
20895 cat >conftest.$ac_ext <<_ACEOF
20896 /* confdefs.h. */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20901
20902 /* Override any GCC internal prototype to avoid an error.
20903 Use char because int might match the return type of a GCC
20904 builtin and then its argument prototype would still apply. */
20905 #ifdef __cplusplus
20906 extern "C"
20907 #endif
20908 char krb_get_cred ();
20909 int
20910 main ()
20911 {
20912 return krb_get_cred ();
20913 ;
20914 return 0;
20915 }
20916 _ACEOF
20917 rm -f conftest.$ac_objext conftest$ac_exeext
20918 if { (ac_try="$ac_link"
20919 case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20922 esac
20923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20924 (eval "$ac_link") 2>conftest.er1
20925 ac_status=$?
20926 grep -v '^ *+' conftest.er1 >conftest.err
20927 rm -f conftest.er1
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } && {
20931 test -z "$ac_c_werror_flag" ||
20932 test ! -s conftest.err
20933 } && test -s conftest$ac_exeext &&
20934 $as_test_x conftest$ac_exeext; then
20935 ac_cv_lib_krb4_krb_get_cred=yes
20936 else
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940 ac_cv_lib_krb4_krb_get_cred=no
20941 fi
20942
20943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20944 conftest$ac_exeext conftest.$ac_ext
20945 LIBS=$ac_check_lib_save_LIBS
20946 fi
20947 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20948 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20949 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20950 cat >>confdefs.h <<_ACEOF
20951 #define HAVE_LIBKRB4 1
20952 _ACEOF
20953
20954 LIBS="-lkrb4 $LIBS"
20955
20956 else
20957
20958 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20959 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20960 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 else
20963 ac_check_lib_save_LIBS=$LIBS
20964 LIBS="-lkrb $LIBS"
20965 cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h. */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971
20972 /* Override any GCC internal prototype to avoid an error.
20973 Use char because int might match the return type of a GCC
20974 builtin and then its argument prototype would still apply. */
20975 #ifdef __cplusplus
20976 extern "C"
20977 #endif
20978 char krb_get_cred ();
20979 int
20980 main ()
20981 {
20982 return krb_get_cred ();
20983 ;
20984 return 0;
20985 }
20986 _ACEOF
20987 rm -f conftest.$ac_objext conftest$ac_exeext
20988 if { (ac_try="$ac_link"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20992 esac
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_link") 2>conftest.er1
20995 ac_status=$?
20996 grep -v '^ *+' conftest.er1 >conftest.err
20997 rm -f conftest.er1
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest$ac_exeext &&
21004 $as_test_x conftest$ac_exeext; then
21005 ac_cv_lib_krb_krb_get_cred=yes
21006 else
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 ac_cv_lib_krb_krb_get_cred=no
21011 fi
21012
21013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21014 conftest$ac_exeext conftest.$ac_ext
21015 LIBS=$ac_check_lib_save_LIBS
21016 fi
21017 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21018 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21019 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21020 cat >>confdefs.h <<_ACEOF
21021 #define HAVE_LIBKRB 1
21022 _ACEOF
21023
21024 LIBS="-lkrb $LIBS"
21025
21026 fi
21027
21028 fi
21029
21030 fi
21031
21032 if test "${with_kerberos5}" != no; then
21033
21034 for ac_header in krb5.h
21035 do
21036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
21042 fi
21043 ac_res=`eval echo '${'$as_ac_Header'}'`
21044 { echo "$as_me:$LINENO: result: $ac_res" >&5
21045 echo "${ECHO_T}$ac_res" >&6; }
21046 else
21047 # Is the header compilable?
21048 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21050 cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h. */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 $ac_includes_default
21057 #include <$ac_header>
21058 _ACEOF
21059 rm -f conftest.$ac_objext
21060 if { (ac_try="$ac_compile"
21061 case "(($ac_try" in
21062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21063 *) ac_try_echo=$ac_try;;
21064 esac
21065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21066 (eval "$ac_compile") 2>conftest.er1
21067 ac_status=$?
21068 grep -v '^ *+' conftest.er1 >conftest.err
21069 rm -f conftest.er1
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } && {
21073 test -z "$ac_c_werror_flag" ||
21074 test ! -s conftest.err
21075 } && test -s conftest.$ac_objext; then
21076 ac_header_compiler=yes
21077 else
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21080
21081 ac_header_compiler=no
21082 fi
21083
21084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21086 echo "${ECHO_T}$ac_header_compiler" >&6; }
21087
21088 # Is the header present?
21089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21091 cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h. */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 #include <$ac_header>
21098 _ACEOF
21099 if { (ac_try="$ac_cpp conftest.$ac_ext"
21100 case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21103 esac
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21106 ac_status=$?
21107 grep -v '^ *+' conftest.er1 >conftest.err
21108 rm -f conftest.er1
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } >/dev/null && {
21112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21113 test ! -s conftest.err
21114 }; then
21115 ac_header_preproc=yes
21116 else
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21119
21120 ac_header_preproc=no
21121 fi
21122
21123 rm -f conftest.err conftest.$ac_ext
21124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21125 echo "${ECHO_T}$ac_header_preproc" >&6; }
21126
21127 # So? What about this header?
21128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21129 yes:no: )
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21134 ac_header_preproc=yes
21135 ;;
21136 no:yes:* )
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21149
21150 ;;
21151 esac
21152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 else
21157 eval "$as_ac_Header=\$ac_header_preproc"
21158 fi
21159 ac_res=`eval echo '${'$as_ac_Header'}'`
21160 { echo "$as_me:$LINENO: result: $ac_res" >&5
21161 echo "${ECHO_T}$ac_res" >&6; }
21162
21163 fi
21164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21165 cat >>confdefs.h <<_ACEOF
21166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21167 _ACEOF
21168 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21169 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21170 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 else
21173 cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h. */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179 #include <krb5.h>
21180
21181 int
21182 main ()
21183 {
21184 static krb5_error ac_aggr;
21185 if (ac_aggr.text)
21186 return 0;
21187 ;
21188 return 0;
21189 }
21190 _ACEOF
21191 rm -f conftest.$ac_objext
21192 if { (ac_try="$ac_compile"
21193 case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21196 esac
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_compile") 2>conftest.er1
21199 ac_status=$?
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest.$ac_objext; then
21208 ac_cv_member_krb5_error_text=yes
21209 else
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21212
21213 cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h. */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 #include <krb5.h>
21220
21221 int
21222 main ()
21223 {
21224 static krb5_error ac_aggr;
21225 if (sizeof ac_aggr.text)
21226 return 0;
21227 ;
21228 return 0;
21229 }
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21236 esac
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238 (eval "$ac_compile") 2>conftest.er1
21239 ac_status=$?
21240 grep -v '^ *+' conftest.er1 >conftest.err
21241 rm -f conftest.er1
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } && {
21245 test -z "$ac_c_werror_flag" ||
21246 test ! -s conftest.err
21247 } && test -s conftest.$ac_objext; then
21248 ac_cv_member_krb5_error_text=yes
21249 else
21250 echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253 ac_cv_member_krb5_error_text=no
21254 fi
21255
21256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 fi
21258
21259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 fi
21261 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21262 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21263 if test $ac_cv_member_krb5_error_text = yes; then
21264
21265 cat >>confdefs.h <<_ACEOF
21266 #define HAVE_KRB5_ERROR_TEXT 1
21267 _ACEOF
21268
21269
21270 fi
21271 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21272 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21273 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h. */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 #include <krb5.h>
21283
21284 int
21285 main ()
21286 {
21287 static krb5_error ac_aggr;
21288 if (ac_aggr.e_text)
21289 return 0;
21290 ;
21291 return 0;
21292 }
21293 _ACEOF
21294 rm -f conftest.$ac_objext
21295 if { (ac_try="$ac_compile"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_compile") 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest.$ac_objext; then
21311 ac_cv_member_krb5_error_e_text=yes
21312 else
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316 cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h. */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 #include <krb5.h>
21323
21324 int
21325 main ()
21326 {
21327 static krb5_error ac_aggr;
21328 if (sizeof ac_aggr.e_text)
21329 return 0;
21330 ;
21331 return 0;
21332 }
21333 _ACEOF
21334 rm -f conftest.$ac_objext
21335 if { (ac_try="$ac_compile"
21336 case "(($ac_try" in
21337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338 *) ac_try_echo=$ac_try;;
21339 esac
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341 (eval "$ac_compile") 2>conftest.er1
21342 ac_status=$?
21343 grep -v '^ *+' conftest.er1 >conftest.err
21344 rm -f conftest.er1
21345 cat conftest.err >&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } && {
21348 test -z "$ac_c_werror_flag" ||
21349 test ! -s conftest.err
21350 } && test -s conftest.$ac_objext; then
21351 ac_cv_member_krb5_error_e_text=yes
21352 else
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356 ac_cv_member_krb5_error_e_text=no
21357 fi
21358
21359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21360 fi
21361
21362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21363 fi
21364 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21365 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21366 if test $ac_cv_member_krb5_error_e_text = yes; then
21367
21368 cat >>confdefs.h <<_ACEOF
21369 #define HAVE_KRB5_ERROR_E_TEXT 1
21370 _ACEOF
21371
21372
21373 fi
21374
21375 fi
21376
21377 done
21378
21379 else
21380
21381 for ac_header in des.h
21382 do
21383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 fi
21390 ac_res=`eval echo '${'$as_ac_Header'}'`
21391 { echo "$as_me:$LINENO: result: $ac_res" >&5
21392 echo "${ECHO_T}$ac_res" >&6; }
21393 else
21394 # Is the header compilable?
21395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21397 cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h. */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 $ac_includes_default
21404 #include <$ac_header>
21405 _ACEOF
21406 rm -f conftest.$ac_objext
21407 if { (ac_try="$ac_compile"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411 esac
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_compile") 2>conftest.er1
21414 ac_status=$?
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } && {
21420 test -z "$ac_c_werror_flag" ||
21421 test ! -s conftest.err
21422 } && test -s conftest.$ac_objext; then
21423 ac_header_compiler=yes
21424 else
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21427
21428 ac_header_compiler=no
21429 fi
21430
21431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21433 echo "${ECHO_T}$ac_header_compiler" >&6; }
21434
21435 # Is the header present?
21436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21438 cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h. */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include <$ac_header>
21445 _ACEOF
21446 if { (ac_try="$ac_cpp conftest.$ac_ext"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21453 ac_status=$?
21454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } >/dev/null && {
21459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 }; then
21462 ac_header_preproc=yes
21463 else
21464 echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467 ac_header_preproc=no
21468 fi
21469
21470 rm -f conftest.err conftest.$ac_ext
21471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21472 echo "${ECHO_T}$ac_header_preproc" >&6; }
21473
21474 # So? What about this header?
21475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21476 yes:no: )
21477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21481 ac_header_preproc=yes
21482 ;;
21483 no:yes:* )
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21496
21497 ;;
21498 esac
21499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 else
21504 eval "$as_ac_Header=\$ac_header_preproc"
21505 fi
21506 ac_res=`eval echo '${'$as_ac_Header'}'`
21507 { echo "$as_me:$LINENO: result: $ac_res" >&5
21508 echo "${ECHO_T}$ac_res" >&6; }
21509
21510 fi
21511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21512 cat >>confdefs.h <<_ACEOF
21513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21514 _ACEOF
21515
21516 else
21517
21518 for ac_header in kerberosIV/des.h
21519 do
21520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 fi
21527 ac_res=`eval echo '${'$as_ac_Header'}'`
21528 { echo "$as_me:$LINENO: result: $ac_res" >&5
21529 echo "${ECHO_T}$ac_res" >&6; }
21530 else
21531 # Is the header compilable?
21532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21534 cat >conftest.$ac_ext <<_ACEOF
21535 /* confdefs.h. */
21536 _ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21540 $ac_includes_default
21541 #include <$ac_header>
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (ac_try="$ac_compile"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21548 esac
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21551 ac_status=$?
21552 grep -v '^ *+' conftest.er1 >conftest.err
21553 rm -f conftest.er1
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest.$ac_objext; then
21560 ac_header_compiler=yes
21561 else
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565 ac_header_compiler=no
21566 fi
21567
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21570 echo "${ECHO_T}$ac_header_compiler" >&6; }
21571
21572 # Is the header present?
21573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21575 cat >conftest.$ac_ext <<_ACEOF
21576 /* confdefs.h. */
21577 _ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h. */
21581 #include <$ac_header>
21582 _ACEOF
21583 if { (ac_try="$ac_cpp conftest.$ac_ext"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21587 esac
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21590 ac_status=$?
21591 grep -v '^ *+' conftest.er1 >conftest.err
21592 rm -f conftest.er1
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } >/dev/null && {
21596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21597 test ! -s conftest.err
21598 }; then
21599 ac_header_preproc=yes
21600 else
21601 echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21603
21604 ac_header_preproc=no
21605 fi
21606
21607 rm -f conftest.err conftest.$ac_ext
21608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21609 echo "${ECHO_T}$ac_header_preproc" >&6; }
21610
21611 # So? What about this header?
21612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21613 yes:no: )
21614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21618 ac_header_preproc=yes
21619 ;;
21620 no:yes:* )
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21633
21634 ;;
21635 esac
21636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21639 echo $ECHO_N "(cached) $ECHO_C" >&6
21640 else
21641 eval "$as_ac_Header=\$ac_header_preproc"
21642 fi
21643 ac_res=`eval echo '${'$as_ac_Header'}'`
21644 { echo "$as_me:$LINENO: result: $ac_res" >&5
21645 echo "${ECHO_T}$ac_res" >&6; }
21646
21647 fi
21648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21649 cat >>confdefs.h <<_ACEOF
21650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21651 _ACEOF
21652
21653 else
21654
21655 for ac_header in kerberos/des.h
21656 do
21657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 fi
21664 ac_res=`eval echo '${'$as_ac_Header'}'`
21665 { echo "$as_me:$LINENO: result: $ac_res" >&5
21666 echo "${ECHO_T}$ac_res" >&6; }
21667 else
21668 # Is the header compilable?
21669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21671 cat >conftest.$ac_ext <<_ACEOF
21672 /* confdefs.h. */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h. */
21677 $ac_includes_default
21678 #include <$ac_header>
21679 _ACEOF
21680 rm -f conftest.$ac_objext
21681 if { (ac_try="$ac_compile"
21682 case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21685 esac
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_compile") 2>conftest.er1
21688 ac_status=$?
21689 grep -v '^ *+' conftest.er1 >conftest.err
21690 rm -f conftest.er1
21691 cat conftest.err >&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); } && {
21694 test -z "$ac_c_werror_flag" ||
21695 test ! -s conftest.err
21696 } && test -s conftest.$ac_objext; then
21697 ac_header_compiler=yes
21698 else
21699 echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21701
21702 ac_header_compiler=no
21703 fi
21704
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21707 echo "${ECHO_T}$ac_header_compiler" >&6; }
21708
21709 # Is the header present?
21710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h. */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 #include <$ac_header>
21719 _ACEOF
21720 if { (ac_try="$ac_cpp conftest.$ac_ext"
21721 case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21724 esac
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21727 ac_status=$?
21728 grep -v '^ *+' conftest.er1 >conftest.err
21729 rm -f conftest.er1
21730 cat conftest.err >&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); } >/dev/null && {
21733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21734 test ! -s conftest.err
21735 }; then
21736 ac_header_preproc=yes
21737 else
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21740
21741 ac_header_preproc=no
21742 fi
21743
21744 rm -f conftest.err conftest.$ac_ext
21745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21746 echo "${ECHO_T}$ac_header_preproc" >&6; }
21747
21748 # So? What about this header?
21749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21750 yes:no: )
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21755 ac_header_preproc=yes
21756 ;;
21757 no:yes:* )
21758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21770
21771 ;;
21772 esac
21773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21777 else
21778 eval "$as_ac_Header=\$ac_header_preproc"
21779 fi
21780 ac_res=`eval echo '${'$as_ac_Header'}'`
21781 { echo "$as_me:$LINENO: result: $ac_res" >&5
21782 echo "${ECHO_T}$ac_res" >&6; }
21783
21784 fi
21785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21786 cat >>confdefs.h <<_ACEOF
21787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21788 _ACEOF
21789
21790 fi
21791
21792 done
21793
21794 fi
21795
21796 done
21797
21798 fi
21799
21800 done
21801
21802
21803 for ac_header in krb.h
21804 do
21805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 fi
21812 ac_res=`eval echo '${'$as_ac_Header'}'`
21813 { echo "$as_me:$LINENO: result: $ac_res" >&5
21814 echo "${ECHO_T}$ac_res" >&6; }
21815 else
21816 # Is the header compilable?
21817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21819 cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h. */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21825 $ac_includes_default
21826 #include <$ac_header>
21827 _ACEOF
21828 rm -f conftest.$ac_objext
21829 if { (ac_try="$ac_compile"
21830 case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21833 esac
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_compile") 2>conftest.er1
21836 ac_status=$?
21837 grep -v '^ *+' conftest.er1 >conftest.err
21838 rm -f conftest.er1
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest.$ac_objext; then
21845 ac_header_compiler=yes
21846 else
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21849
21850 ac_header_compiler=no
21851 fi
21852
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21855 echo "${ECHO_T}$ac_header_compiler" >&6; }
21856
21857 # Is the header present?
21858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h. */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 #include <$ac_header>
21867 _ACEOF
21868 if { (ac_try="$ac_cpp conftest.$ac_ext"
21869 case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21872 esac
21873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21875 ac_status=$?
21876 grep -v '^ *+' conftest.er1 >conftest.err
21877 rm -f conftest.er1
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } >/dev/null && {
21881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 }; then
21884 ac_header_preproc=yes
21885 else
21886 echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21888
21889 ac_header_preproc=no
21890 fi
21891
21892 rm -f conftest.err conftest.$ac_ext
21893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21894 echo "${ECHO_T}$ac_header_preproc" >&6; }
21895
21896 # So? What about this header?
21897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21898 yes:no: )
21899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21903 ac_header_preproc=yes
21904 ;;
21905 no:yes:* )
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21918
21919 ;;
21920 esac
21921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 else
21926 eval "$as_ac_Header=\$ac_header_preproc"
21927 fi
21928 ac_res=`eval echo '${'$as_ac_Header'}'`
21929 { echo "$as_me:$LINENO: result: $ac_res" >&5
21930 echo "${ECHO_T}$ac_res" >&6; }
21931
21932 fi
21933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21934 cat >>confdefs.h <<_ACEOF
21935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21936 _ACEOF
21937
21938 else
21939
21940 for ac_header in kerberosIV/krb.h
21941 do
21942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 fi
21949 ac_res=`eval echo '${'$as_ac_Header'}'`
21950 { echo "$as_me:$LINENO: result: $ac_res" >&5
21951 echo "${ECHO_T}$ac_res" >&6; }
21952 else
21953 # Is the header compilable?
21954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21956 cat >conftest.$ac_ext <<_ACEOF
21957 /* confdefs.h. */
21958 _ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 $ac_includes_default
21963 #include <$ac_header>
21964 _ACEOF
21965 rm -f conftest.$ac_objext
21966 if { (ac_try="$ac_compile"
21967 case "(($ac_try" in
21968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21970 esac
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972 (eval "$ac_compile") 2>conftest.er1
21973 ac_status=$?
21974 grep -v '^ *+' conftest.er1 >conftest.err
21975 rm -f conftest.er1
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } && {
21979 test -z "$ac_c_werror_flag" ||
21980 test ! -s conftest.err
21981 } && test -s conftest.$ac_objext; then
21982 ac_header_compiler=yes
21983 else
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21986
21987 ac_header_compiler=no
21988 fi
21989
21990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21992 echo "${ECHO_T}$ac_header_compiler" >&6; }
21993
21994 # Is the header present?
21995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21997 cat >conftest.$ac_ext <<_ACEOF
21998 /* confdefs.h. */
21999 _ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 #include <$ac_header>
22004 _ACEOF
22005 if { (ac_try="$ac_cpp conftest.$ac_ext"
22006 case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22009 esac
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22012 ac_status=$?
22013 grep -v '^ *+' conftest.er1 >conftest.err
22014 rm -f conftest.er1
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } >/dev/null && {
22018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22020 }; then
22021 ac_header_preproc=yes
22022 else
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22025
22026 ac_header_preproc=no
22027 fi
22028
22029 rm -f conftest.err conftest.$ac_ext
22030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22031 echo "${ECHO_T}$ac_header_preproc" >&6; }
22032
22033 # So? What about this header?
22034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22035 yes:no: )
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22040 ac_header_preproc=yes
22041 ;;
22042 no:yes:* )
22043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22055
22056 ;;
22057 esac
22058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 else
22063 eval "$as_ac_Header=\$ac_header_preproc"
22064 fi
22065 ac_res=`eval echo '${'$as_ac_Header'}'`
22066 { echo "$as_me:$LINENO: result: $ac_res" >&5
22067 echo "${ECHO_T}$ac_res" >&6; }
22068
22069 fi
22070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22071 cat >>confdefs.h <<_ACEOF
22072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22073 _ACEOF
22074
22075 else
22076
22077 for ac_header in kerberos/krb.h
22078 do
22079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 fi
22086 ac_res=`eval echo '${'$as_ac_Header'}'`
22087 { echo "$as_me:$LINENO: result: $ac_res" >&5
22088 echo "${ECHO_T}$ac_res" >&6; }
22089 else
22090 # Is the header compilable?
22091 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22093 cat >conftest.$ac_ext <<_ACEOF
22094 /* confdefs.h. */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22099 $ac_includes_default
22100 #include <$ac_header>
22101 _ACEOF
22102 rm -f conftest.$ac_objext
22103 if { (ac_try="$ac_compile"
22104 case "(($ac_try" in
22105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106 *) ac_try_echo=$ac_try;;
22107 esac
22108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109 (eval "$ac_compile") 2>conftest.er1
22110 ac_status=$?
22111 grep -v '^ *+' conftest.er1 >conftest.err
22112 rm -f conftest.er1
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } && {
22116 test -z "$ac_c_werror_flag" ||
22117 test ! -s conftest.err
22118 } && test -s conftest.$ac_objext; then
22119 ac_header_compiler=yes
22120 else
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22123
22124 ac_header_compiler=no
22125 fi
22126
22127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22129 echo "${ECHO_T}$ac_header_compiler" >&6; }
22130
22131 # Is the header present?
22132 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22134 cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h. */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 #include <$ac_header>
22141 _ACEOF
22142 if { (ac_try="$ac_cpp conftest.$ac_ext"
22143 case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22146 esac
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22149 ac_status=$?
22150 grep -v '^ *+' conftest.er1 >conftest.err
22151 rm -f conftest.er1
22152 cat conftest.err >&5
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); } >/dev/null && {
22155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22156 test ! -s conftest.err
22157 }; then
22158 ac_header_preproc=yes
22159 else
22160 echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22162
22163 ac_header_preproc=no
22164 fi
22165
22166 rm -f conftest.err conftest.$ac_ext
22167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22168 echo "${ECHO_T}$ac_header_preproc" >&6; }
22169
22170 # So? What about this header?
22171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22172 yes:no: )
22173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22177 ac_header_preproc=yes
22178 ;;
22179 no:yes:* )
22180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22192
22193 ;;
22194 esac
22195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22199 else
22200 eval "$as_ac_Header=\$ac_header_preproc"
22201 fi
22202 ac_res=`eval echo '${'$as_ac_Header'}'`
22203 { echo "$as_me:$LINENO: result: $ac_res" >&5
22204 echo "${ECHO_T}$ac_res" >&6; }
22205
22206 fi
22207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22208 cat >>confdefs.h <<_ACEOF
22209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22210 _ACEOF
22211
22212 fi
22213
22214 done
22215
22216 fi
22217
22218 done
22219
22220 fi
22221
22222 done
22223
22224 fi
22225
22226 for ac_header in com_err.h
22227 do
22228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22233 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 fi
22235 ac_res=`eval echo '${'$as_ac_Header'}'`
22236 { echo "$as_me:$LINENO: result: $ac_res" >&5
22237 echo "${ECHO_T}$ac_res" >&6; }
22238 else
22239 # Is the header compilable?
22240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22242 cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h. */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 $ac_includes_default
22249 #include <$ac_header>
22250 _ACEOF
22251 rm -f conftest.$ac_objext
22252 if { (ac_try="$ac_compile"
22253 case "(($ac_try" in
22254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255 *) ac_try_echo=$ac_try;;
22256 esac
22257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258 (eval "$ac_compile") 2>conftest.er1
22259 ac_status=$?
22260 grep -v '^ *+' conftest.er1 >conftest.err
22261 rm -f conftest.er1
22262 cat conftest.err >&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } && {
22265 test -z "$ac_c_werror_flag" ||
22266 test ! -s conftest.err
22267 } && test -s conftest.$ac_objext; then
22268 ac_header_compiler=yes
22269 else
22270 echo "$as_me: failed program was:" >&5
22271 sed 's/^/| /' conftest.$ac_ext >&5
22272
22273 ac_header_compiler=no
22274 fi
22275
22276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22278 echo "${ECHO_T}$ac_header_compiler" >&6; }
22279
22280 # Is the header present?
22281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22283 cat >conftest.$ac_ext <<_ACEOF
22284 /* confdefs.h. */
22285 _ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22289 #include <$ac_header>
22290 _ACEOF
22291 if { (ac_try="$ac_cpp conftest.$ac_ext"
22292 case "(($ac_try" in
22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294 *) ac_try_echo=$ac_try;;
22295 esac
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22298 ac_status=$?
22299 grep -v '^ *+' conftest.er1 >conftest.err
22300 rm -f conftest.er1
22301 cat conftest.err >&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } >/dev/null && {
22304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22305 test ! -s conftest.err
22306 }; then
22307 ac_header_preproc=yes
22308 else
22309 echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311
22312 ac_header_preproc=no
22313 fi
22314
22315 rm -f conftest.err conftest.$ac_ext
22316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22317 echo "${ECHO_T}$ac_header_preproc" >&6; }
22318
22319 # So? What about this header?
22320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22321 yes:no: )
22322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22326 ac_header_preproc=yes
22327 ;;
22328 no:yes:* )
22329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22341
22342 ;;
22343 esac
22344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22347 echo $ECHO_N "(cached) $ECHO_C" >&6
22348 else
22349 eval "$as_ac_Header=\$ac_header_preproc"
22350 fi
22351 ac_res=`eval echo '${'$as_ac_Header'}'`
22352 { echo "$as_me:$LINENO: result: $ac_res" >&5
22353 echo "${ECHO_T}$ac_res" >&6; }
22354
22355 fi
22356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22357 cat >>confdefs.h <<_ACEOF
22358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22359 _ACEOF
22360
22361 fi
22362
22363 done
22364
22365 fi
22366
22367 # Solaris requires -lintl if you want strerror (which calls dgettext)
22368 # to return localized messages.
22369
22370 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22371 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22372 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 else
22375 ac_check_lib_save_LIBS=$LIBS
22376 LIBS="-lintl $LIBS"
22377 cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h. */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22383
22384 /* Override any GCC internal prototype to avoid an error.
22385 Use char because int might match the return type of a GCC
22386 builtin and then its argument prototype would still apply. */
22387 #ifdef __cplusplus
22388 extern "C"
22389 #endif
22390 char dgettext ();
22391 int
22392 main ()
22393 {
22394 return dgettext ();
22395 ;
22396 return 0;
22397 }
22398 _ACEOF
22399 rm -f conftest.$ac_objext conftest$ac_exeext
22400 if { (ac_try="$ac_link"
22401 case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404 esac
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_link") 2>conftest.er1
22407 ac_status=$?
22408 grep -v '^ *+' conftest.er1 >conftest.err
22409 rm -f conftest.er1
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest$ac_exeext &&
22416 $as_test_x conftest$ac_exeext; then
22417 ac_cv_lib_intl_dgettext=yes
22418 else
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422 ac_cv_lib_intl_dgettext=no
22423 fi
22424
22425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426 conftest$ac_exeext conftest.$ac_ext
22427 LIBS=$ac_check_lib_save_LIBS
22428 fi
22429 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22430 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22431 if test $ac_cv_lib_intl_dgettext = yes; then
22432 cat >>confdefs.h <<_ACEOF
22433 #define HAVE_LIBINTL 1
22434 _ACEOF
22435
22436 LIBS="-lintl $LIBS"
22437
22438 fi
22439
22440
22441 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22442 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22443 if test "${emacs_cv_localtime_cache+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 else
22446 if test x$ac_cv_func_tzset = xyes; then
22447 if test "$cross_compiling" = yes; then
22448 # If we have tzset, assume the worst when cross-compiling.
22449 emacs_cv_localtime_cache=yes
22450 else
22451 cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h. */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22457 #include <time.h>
22458 extern char **environ;
22459 unset_TZ ()
22460 {
22461 char **from, **to;
22462 for (to = from = environ; (*to = *from); from++)
22463 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22464 to++;
22465 }
22466 char TZ_GMT0[] = "TZ=GMT0";
22467 char TZ_PST8[] = "TZ=PST8";
22468 main()
22469 {
22470 time_t now = time ((time_t *) 0);
22471 int hour_GMT0, hour_unset;
22472 if (putenv (TZ_GMT0) != 0)
22473 exit (1);
22474 hour_GMT0 = localtime (&now)->tm_hour;
22475 unset_TZ ();
22476 hour_unset = localtime (&now)->tm_hour;
22477 if (putenv (TZ_PST8) != 0)
22478 exit (1);
22479 if (localtime (&now)->tm_hour == hour_GMT0)
22480 exit (1);
22481 unset_TZ ();
22482 if (localtime (&now)->tm_hour != hour_unset)
22483 exit (1);
22484 exit (0);
22485 }
22486 _ACEOF
22487 rm -f conftest$ac_exeext
22488 if { (ac_try="$ac_link"
22489 case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_link") 2>&5
22495 ac_status=$?
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22498 { (case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22501 esac
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_try") 2>&5
22504 ac_status=$?
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; }; then
22507 emacs_cv_localtime_cache=no
22508 else
22509 echo "$as_me: program exited with status $ac_status" >&5
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22512
22513 ( exit $ac_status )
22514 emacs_cv_localtime_cache=yes
22515 fi
22516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22517 fi
22518
22519
22520 else
22521 # If we lack tzset, report that localtime does not cache TZ,
22522 # since we can't invalidate the cache if we don't have tzset.
22523 emacs_cv_localtime_cache=no
22524 fi
22525 fi
22526 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22527 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22528 if test $emacs_cv_localtime_cache = yes; then
22529
22530 cat >>confdefs.h <<\_ACEOF
22531 #define LOCALTIME_CACHE 1
22532 _ACEOF
22533
22534 fi
22535
22536 if test "x$HAVE_TIMEVAL" = xyes; then
22537
22538 for ac_func in gettimeofday
22539 do
22540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
22545 else
22546 cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h. */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22554 #define $ac_func innocuous_$ac_func
22555
22556 /* System header to define __stub macros and hopefully few prototypes,
22557 which can conflict with char $ac_func (); below.
22558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22559 <limits.h> exists even on freestanding compilers. */
22560
22561 #ifdef __STDC__
22562 # include <limits.h>
22563 #else
22564 # include <assert.h>
22565 #endif
22566
22567 #undef $ac_func
22568
22569 /* Override any GCC internal prototype to avoid an error.
22570 Use char because int might match the return type of a GCC
22571 builtin and then its argument prototype would still apply. */
22572 #ifdef __cplusplus
22573 extern "C"
22574 #endif
22575 char $ac_func ();
22576 /* The GNU C library defines this for functions which it implements
22577 to always fail with ENOSYS. Some functions are actually named
22578 something starting with __ and the normal name is an alias. */
22579 #if defined __stub_$ac_func || defined __stub___$ac_func
22580 choke me
22581 #endif
22582
22583 int
22584 main ()
22585 {
22586 return $ac_func ();
22587 ;
22588 return 0;
22589 }
22590 _ACEOF
22591 rm -f conftest.$ac_objext conftest$ac_exeext
22592 if { (ac_try="$ac_link"
22593 case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22596 esac
22597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_link") 2>conftest.er1
22599 ac_status=$?
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest$ac_exeext &&
22608 $as_test_x conftest$ac_exeext; then
22609 eval "$as_ac_var=yes"
22610 else
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614 eval "$as_ac_var=no"
22615 fi
22616
22617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22618 conftest$ac_exeext conftest.$ac_ext
22619 fi
22620 ac_res=`eval echo '${'$as_ac_var'}'`
22621 { echo "$as_me:$LINENO: result: $ac_res" >&5
22622 echo "${ECHO_T}$ac_res" >&6; }
22623 if test `eval echo '${'$as_ac_var'}'` = yes; then
22624 cat >>confdefs.h <<_ACEOF
22625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22626 _ACEOF
22627
22628 fi
22629 done
22630
22631 if test $ac_cv_func_gettimeofday = yes; then
22632 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22633 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22634 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637 cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h. */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643
22644 #ifdef TIME_WITH_SYS_TIME
22645 #include <sys/time.h>
22646 #include <time.h>
22647 #else
22648 #ifdef HAVE_SYS_TIME_H
22649 #include <sys/time.h>
22650 #else
22651 #include <time.h>
22652 #endif
22653 #endif
22654 int
22655 main ()
22656 {
22657 struct timeval time;
22658 gettimeofday (&time, 0);
22659 ;
22660 return 0;
22661 }
22662 _ACEOF
22663 rm -f conftest.$ac_objext
22664 if { (ac_try="$ac_compile"
22665 case "(($ac_try" in
22666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22667 *) ac_try_echo=$ac_try;;
22668 esac
22669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22670 (eval "$ac_compile") 2>conftest.er1
22671 ac_status=$?
22672 grep -v '^ *+' conftest.er1 >conftest.err
22673 rm -f conftest.er1
22674 cat conftest.err >&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && {
22677 test -z "$ac_c_werror_flag" ||
22678 test ! -s conftest.err
22679 } && test -s conftest.$ac_objext; then
22680 emacs_cv_gettimeofday_two_arguments=yes
22681 else
22682 echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22684
22685 emacs_cv_gettimeofday_two_arguments=no
22686 fi
22687
22688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 fi
22690 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22691 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22692 if test $emacs_cv_gettimeofday_two_arguments = no; then
22693
22694 cat >>confdefs.h <<\_ACEOF
22695 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22696 _ACEOF
22697
22698 fi
22699 fi
22700 fi
22701
22702 ok_so_far=yes
22703 { echo "$as_me:$LINENO: checking for socket" >&5
22704 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22705 if test "${ac_cv_func_socket+set}" = set; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
22707 else
22708 cat >conftest.$ac_ext <<_ACEOF
22709 /* confdefs.h. */
22710 _ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22714 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22716 #define socket innocuous_socket
22717
22718 /* System header to define __stub macros and hopefully few prototypes,
22719 which can conflict with char socket (); below.
22720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22721 <limits.h> exists even on freestanding compilers. */
22722
22723 #ifdef __STDC__
22724 # include <limits.h>
22725 #else
22726 # include <assert.h>
22727 #endif
22728
22729 #undef socket
22730
22731 /* Override any GCC internal prototype to avoid an error.
22732 Use char because int might match the return type of a GCC
22733 builtin and then its argument prototype would still apply. */
22734 #ifdef __cplusplus
22735 extern "C"
22736 #endif
22737 char socket ();
22738 /* The GNU C library defines this for functions which it implements
22739 to always fail with ENOSYS. Some functions are actually named
22740 something starting with __ and the normal name is an alias. */
22741 #if defined __stub_socket || defined __stub___socket
22742 choke me
22743 #endif
22744
22745 int
22746 main ()
22747 {
22748 return socket ();
22749 ;
22750 return 0;
22751 }
22752 _ACEOF
22753 rm -f conftest.$ac_objext conftest$ac_exeext
22754 if { (ac_try="$ac_link"
22755 case "(($ac_try" in
22756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22757 *) ac_try_echo=$ac_try;;
22758 esac
22759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22760 (eval "$ac_link") 2>conftest.er1
22761 ac_status=$?
22762 grep -v '^ *+' conftest.er1 >conftest.err
22763 rm -f conftest.er1
22764 cat conftest.err >&5
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); } && {
22767 test -z "$ac_c_werror_flag" ||
22768 test ! -s conftest.err
22769 } && test -s conftest$ac_exeext &&
22770 $as_test_x conftest$ac_exeext; then
22771 ac_cv_func_socket=yes
22772 else
22773 echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22775
22776 ac_cv_func_socket=no
22777 fi
22778
22779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22780 conftest$ac_exeext conftest.$ac_ext
22781 fi
22782 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22783 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22784 if test $ac_cv_func_socket = yes; then
22785 :
22786 else
22787 ok_so_far=no
22788 fi
22789
22790 if test $ok_so_far = yes; then
22791 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22792 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22793 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22794 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22796 fi
22797 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22798 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22799 else
22800 # Is the header compilable?
22801 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22802 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22803 cat >conftest.$ac_ext <<_ACEOF
22804 /* confdefs.h. */
22805 _ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22809 $ac_includes_default
22810 #include <netinet/in.h>
22811 _ACEOF
22812 rm -f conftest.$ac_objext
22813 if { (ac_try="$ac_compile"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_compile") 2>conftest.er1
22820 ac_status=$?
22821 grep -v '^ *+' conftest.er1 >conftest.err
22822 rm -f conftest.er1
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } && {
22826 test -z "$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 } && test -s conftest.$ac_objext; then
22829 ac_header_compiler=yes
22830 else
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834 ac_header_compiler=no
22835 fi
22836
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22839 echo "${ECHO_T}$ac_header_compiler" >&6; }
22840
22841 # Is the header present?
22842 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22843 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22844 cat >conftest.$ac_ext <<_ACEOF
22845 /* confdefs.h. */
22846 _ACEOF
22847 cat confdefs.h >>conftest.$ac_ext
22848 cat >>conftest.$ac_ext <<_ACEOF
22849 /* end confdefs.h. */
22850 #include <netinet/in.h>
22851 _ACEOF
22852 if { (ac_try="$ac_cpp conftest.$ac_ext"
22853 case "(($ac_try" in
22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22856 esac
22857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22859 ac_status=$?
22860 grep -v '^ *+' conftest.er1 >conftest.err
22861 rm -f conftest.er1
22862 cat conftest.err >&5
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } >/dev/null && {
22865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22866 test ! -s conftest.err
22867 }; then
22868 ac_header_preproc=yes
22869 else
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873 ac_header_preproc=no
22874 fi
22875
22876 rm -f conftest.err conftest.$ac_ext
22877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22878 echo "${ECHO_T}$ac_header_preproc" >&6; }
22879
22880 # So? What about this header?
22881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22882 yes:no: )
22883 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22884 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22885 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22886 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22887 ac_header_preproc=yes
22888 ;;
22889 no:yes:* )
22890 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22891 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22892 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22893 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22894 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22895 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22896 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22897 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22898 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22899 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22900 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22901 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22902
22903 ;;
22904 esac
22905 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22906 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22907 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22909 else
22910 ac_cv_header_netinet_in_h=$ac_header_preproc
22911 fi
22912 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22913 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22914
22915 fi
22916 if test $ac_cv_header_netinet_in_h = yes; then
22917 :
22918 else
22919 ok_so_far=no
22920 fi
22921
22922
22923 fi
22924 if test $ok_so_far = yes; then
22925 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22926 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22927 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22928 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
22930 fi
22931 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22932 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22933 else
22934 # Is the header compilable?
22935 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22936 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22937 cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h. */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h. */
22943 $ac_includes_default
22944 #include <arpa/inet.h>
22945 _ACEOF
22946 rm -f conftest.$ac_objext
22947 if { (ac_try="$ac_compile"
22948 case "(($ac_try" in
22949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950 *) ac_try_echo=$ac_try;;
22951 esac
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953 (eval "$ac_compile") 2>conftest.er1
22954 ac_status=$?
22955 grep -v '^ *+' conftest.er1 >conftest.err
22956 rm -f conftest.er1
22957 cat conftest.err >&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } && {
22960 test -z "$ac_c_werror_flag" ||
22961 test ! -s conftest.err
22962 } && test -s conftest.$ac_objext; then
22963 ac_header_compiler=yes
22964 else
22965 echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22967
22968 ac_header_compiler=no
22969 fi
22970
22971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22973 echo "${ECHO_T}$ac_header_compiler" >&6; }
22974
22975 # Is the header present?
22976 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22977 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22978 cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h. */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 #include <arpa/inet.h>
22985 _ACEOF
22986 if { (ac_try="$ac_cpp conftest.$ac_ext"
22987 case "(($ac_try" in
22988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989 *) ac_try_echo=$ac_try;;
22990 esac
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22993 ac_status=$?
22994 grep -v '^ *+' conftest.er1 >conftest.err
22995 rm -f conftest.er1
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } >/dev/null && {
22999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23000 test ! -s conftest.err
23001 }; then
23002 ac_header_preproc=yes
23003 else
23004 echo "$as_me: failed program was:" >&5
23005 sed 's/^/| /' conftest.$ac_ext >&5
23006
23007 ac_header_preproc=no
23008 fi
23009
23010 rm -f conftest.err conftest.$ac_ext
23011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23012 echo "${ECHO_T}$ac_header_preproc" >&6; }
23013
23014 # So? What about this header?
23015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23016 yes:no: )
23017 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23018 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23019 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23020 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23021 ac_header_preproc=yes
23022 ;;
23023 no:yes:* )
23024 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23025 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23026 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23027 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23028 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23029 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23030 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23031 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23032 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23033 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23034 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23035 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23036
23037 ;;
23038 esac
23039 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23040 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23041 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23043 else
23044 ac_cv_header_arpa_inet_h=$ac_header_preproc
23045 fi
23046 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23047 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23048
23049 fi
23050 if test $ac_cv_header_arpa_inet_h = yes; then
23051 :
23052 else
23053 ok_so_far=no
23054 fi
23055
23056
23057 fi
23058 if test $ok_so_far = yes; then
23059
23060 cat >>confdefs.h <<\_ACEOF
23061 #define HAVE_INET_SOCKETS 1
23062 _ACEOF
23063
23064 fi
23065
23066
23067 for ac_header in sys/ioctl.h
23068 do
23069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23074 echo $ECHO_N "(cached) $ECHO_C" >&6
23075 fi
23076 ac_res=`eval echo '${'$as_ac_Header'}'`
23077 { echo "$as_me:$LINENO: result: $ac_res" >&5
23078 echo "${ECHO_T}$ac_res" >&6; }
23079 else
23080 # Is the header compilable?
23081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23083 cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h. */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 $ac_includes_default
23090 #include <$ac_header>
23091 _ACEOF
23092 rm -f conftest.$ac_objext
23093 if { (ac_try="$ac_compile"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23097 esac
23098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23099 (eval "$ac_compile") 2>conftest.er1
23100 ac_status=$?
23101 grep -v '^ *+' conftest.er1 >conftest.err
23102 rm -f conftest.er1
23103 cat conftest.err >&5
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } && {
23106 test -z "$ac_c_werror_flag" ||
23107 test ! -s conftest.err
23108 } && test -s conftest.$ac_objext; then
23109 ac_header_compiler=yes
23110 else
23111 echo "$as_me: failed program was:" >&5
23112 sed 's/^/| /' conftest.$ac_ext >&5
23113
23114 ac_header_compiler=no
23115 fi
23116
23117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23119 echo "${ECHO_T}$ac_header_compiler" >&6; }
23120
23121 # Is the header present?
23122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23124 cat >conftest.$ac_ext <<_ACEOF
23125 /* confdefs.h. */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 #include <$ac_header>
23131 _ACEOF
23132 if { (ac_try="$ac_cpp conftest.$ac_ext"
23133 case "(($ac_try" in
23134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135 *) ac_try_echo=$ac_try;;
23136 esac
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23139 ac_status=$?
23140 grep -v '^ *+' conftest.er1 >conftest.err
23141 rm -f conftest.er1
23142 cat conftest.err >&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } >/dev/null && {
23145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23146 test ! -s conftest.err
23147 }; then
23148 ac_header_preproc=yes
23149 else
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23152
23153 ac_header_preproc=no
23154 fi
23155
23156 rm -f conftest.err conftest.$ac_ext
23157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23158 echo "${ECHO_T}$ac_header_preproc" >&6; }
23159
23160 # So? What about this header?
23161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23162 yes:no: )
23163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23167 ac_header_preproc=yes
23168 ;;
23169 no:yes:* )
23170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23182
23183 ;;
23184 esac
23185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23189 else
23190 eval "$as_ac_Header=\$ac_header_preproc"
23191 fi
23192 ac_res=`eval echo '${'$as_ac_Header'}'`
23193 { echo "$as_me:$LINENO: result: $ac_res" >&5
23194 echo "${ECHO_T}$ac_res" >&6; }
23195
23196 fi
23197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23198 cat >>confdefs.h <<_ACEOF
23199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23200 _ACEOF
23201
23202 fi
23203
23204 done
23205
23206
23207 if test -f /usr/lpp/X11/bin/smt.exp; then
23208
23209 cat >>confdefs.h <<\_ACEOF
23210 #define HAVE_AIX_SMT_EXP 1
23211 _ACEOF
23212
23213 fi
23214
23215 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23216 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23217 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23218 { echo "$as_me:$LINENO: result: yes" >&5
23219 echo "${ECHO_T}yes" >&6; }
23220
23221 cat >>confdefs.h <<\_ACEOF
23222 #define HAVE_DEV_PTMX 1
23223 _ACEOF
23224
23225 else
23226 { echo "$as_me:$LINENO: result: no" >&5
23227 echo "${ECHO_T}no" >&6; }
23228 fi
23229
23230 { echo "$as_me:$LINENO: checking for pid_t" >&5
23231 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23232 if test "${ac_cv_type_pid_t+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23234 else
23235 cat >conftest.$ac_ext <<_ACEOF
23236 /* confdefs.h. */
23237 _ACEOF
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23241 $ac_includes_default
23242 typedef pid_t ac__type_new_;
23243 int
23244 main ()
23245 {
23246 if ((ac__type_new_ *) 0)
23247 return 0;
23248 if (sizeof (ac__type_new_))
23249 return 0;
23250 ;
23251 return 0;
23252 }
23253 _ACEOF
23254 rm -f conftest.$ac_objext
23255 if { (ac_try="$ac_compile"
23256 case "(($ac_try" in
23257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23258 *) ac_try_echo=$ac_try;;
23259 esac
23260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23261 (eval "$ac_compile") 2>conftest.er1
23262 ac_status=$?
23263 grep -v '^ *+' conftest.er1 >conftest.err
23264 rm -f conftest.er1
23265 cat conftest.err >&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } && {
23268 test -z "$ac_c_werror_flag" ||
23269 test ! -s conftest.err
23270 } && test -s conftest.$ac_objext; then
23271 ac_cv_type_pid_t=yes
23272 else
23273 echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23275
23276 ac_cv_type_pid_t=no
23277 fi
23278
23279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23280 fi
23281 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23282 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23283 if test $ac_cv_type_pid_t = yes; then
23284 :
23285 else
23286
23287 cat >>confdefs.h <<_ACEOF
23288 #define pid_t int
23289 _ACEOF
23290
23291 fi
23292
23293
23294 for ac_header in vfork.h
23295 do
23296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23301 echo $ECHO_N "(cached) $ECHO_C" >&6
23302 fi
23303 ac_res=`eval echo '${'$as_ac_Header'}'`
23304 { echo "$as_me:$LINENO: result: $ac_res" >&5
23305 echo "${ECHO_T}$ac_res" >&6; }
23306 else
23307 # Is the header compilable?
23308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23310 cat >conftest.$ac_ext <<_ACEOF
23311 /* confdefs.h. */
23312 _ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h. */
23316 $ac_includes_default
23317 #include <$ac_header>
23318 _ACEOF
23319 rm -f conftest.$ac_objext
23320 if { (ac_try="$ac_compile"
23321 case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_compile") 2>conftest.er1
23327 ac_status=$?
23328 grep -v '^ *+' conftest.er1 >conftest.err
23329 rm -f conftest.er1
23330 cat conftest.err >&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest.$ac_objext; then
23336 ac_header_compiler=yes
23337 else
23338 echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23340
23341 ac_header_compiler=no
23342 fi
23343
23344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23346 echo "${ECHO_T}$ac_header_compiler" >&6; }
23347
23348 # Is the header present?
23349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23351 cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h. */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23357 #include <$ac_header>
23358 _ACEOF
23359 if { (ac_try="$ac_cpp conftest.$ac_ext"
23360 case "(($ac_try" in
23361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23362 *) ac_try_echo=$ac_try;;
23363 esac
23364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23366 ac_status=$?
23367 grep -v '^ *+' conftest.er1 >conftest.err
23368 rm -f conftest.er1
23369 cat conftest.err >&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } >/dev/null && {
23372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23373 test ! -s conftest.err
23374 }; then
23375 ac_header_preproc=yes
23376 else
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23379
23380 ac_header_preproc=no
23381 fi
23382
23383 rm -f conftest.err conftest.$ac_ext
23384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23385 echo "${ECHO_T}$ac_header_preproc" >&6; }
23386
23387 # So? What about this header?
23388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23389 yes:no: )
23390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23394 ac_header_preproc=yes
23395 ;;
23396 no:yes:* )
23397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23409
23410 ;;
23411 esac
23412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23416 else
23417 eval "$as_ac_Header=\$ac_header_preproc"
23418 fi
23419 ac_res=`eval echo '${'$as_ac_Header'}'`
23420 { echo "$as_me:$LINENO: result: $ac_res" >&5
23421 echo "${ECHO_T}$ac_res" >&6; }
23422
23423 fi
23424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23425 cat >>confdefs.h <<_ACEOF
23426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23427 _ACEOF
23428
23429 fi
23430
23431 done
23432
23433
23434
23435 for ac_func in fork vfork
23436 do
23437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23443 cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h. */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23451 #define $ac_func innocuous_$ac_func
23452
23453 /* System header to define __stub macros and hopefully few prototypes,
23454 which can conflict with char $ac_func (); below.
23455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23456 <limits.h> exists even on freestanding compilers. */
23457
23458 #ifdef __STDC__
23459 # include <limits.h>
23460 #else
23461 # include <assert.h>
23462 #endif
23463
23464 #undef $ac_func
23465
23466 /* Override any GCC internal prototype to avoid an error.
23467 Use char because int might match the return type of a GCC
23468 builtin and then its argument prototype would still apply. */
23469 #ifdef __cplusplus
23470 extern "C"
23471 #endif
23472 char $ac_func ();
23473 /* The GNU C library defines this for functions which it implements
23474 to always fail with ENOSYS. Some functions are actually named
23475 something starting with __ and the normal name is an alias. */
23476 #if defined __stub_$ac_func || defined __stub___$ac_func
23477 choke me
23478 #endif
23479
23480 int
23481 main ()
23482 {
23483 return $ac_func ();
23484 ;
23485 return 0;
23486 }
23487 _ACEOF
23488 rm -f conftest.$ac_objext conftest$ac_exeext
23489 if { (ac_try="$ac_link"
23490 case "(($ac_try" in
23491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23492 *) ac_try_echo=$ac_try;;
23493 esac
23494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23495 (eval "$ac_link") 2>conftest.er1
23496 ac_status=$?
23497 grep -v '^ *+' conftest.er1 >conftest.err
23498 rm -f conftest.er1
23499 cat conftest.err >&5
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); } && {
23502 test -z "$ac_c_werror_flag" ||
23503 test ! -s conftest.err
23504 } && test -s conftest$ac_exeext &&
23505 $as_test_x conftest$ac_exeext; then
23506 eval "$as_ac_var=yes"
23507 else
23508 echo "$as_me: failed program was:" >&5
23509 sed 's/^/| /' conftest.$ac_ext >&5
23510
23511 eval "$as_ac_var=no"
23512 fi
23513
23514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23515 conftest$ac_exeext conftest.$ac_ext
23516 fi
23517 ac_res=`eval echo '${'$as_ac_var'}'`
23518 { echo "$as_me:$LINENO: result: $ac_res" >&5
23519 echo "${ECHO_T}$ac_res" >&6; }
23520 if test `eval echo '${'$as_ac_var'}'` = yes; then
23521 cat >>confdefs.h <<_ACEOF
23522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23523 _ACEOF
23524
23525 fi
23526 done
23527
23528 if test "x$ac_cv_func_fork" = xyes; then
23529 { echo "$as_me:$LINENO: checking for working fork" >&5
23530 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23531 if test "${ac_cv_func_fork_works+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 else
23534 if test "$cross_compiling" = yes; then
23535 ac_cv_func_fork_works=cross
23536 else
23537 cat >conftest.$ac_ext <<_ACEOF
23538 /* confdefs.h. */
23539 _ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23543 $ac_includes_default
23544 int
23545 main ()
23546 {
23547
23548 /* By Ruediger Kuhlmann. */
23549 return fork () < 0;
23550
23551 ;
23552 return 0;
23553 }
23554 _ACEOF
23555 rm -f conftest$ac_exeext
23556 if { (ac_try="$ac_link"
23557 case "(($ac_try" in
23558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23559 *) ac_try_echo=$ac_try;;
23560 esac
23561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23562 (eval "$ac_link") 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23566 { (case "(($ac_try" in
23567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568 *) ac_try_echo=$ac_try;;
23569 esac
23570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571 (eval "$ac_try") 2>&5
23572 ac_status=$?
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); }; }; then
23575 ac_cv_func_fork_works=yes
23576 else
23577 echo "$as_me: program exited with status $ac_status" >&5
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23580
23581 ( exit $ac_status )
23582 ac_cv_func_fork_works=no
23583 fi
23584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23585 fi
23586
23587
23588 fi
23589 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23590 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23591
23592 else
23593 ac_cv_func_fork_works=$ac_cv_func_fork
23594 fi
23595 if test "x$ac_cv_func_fork_works" = xcross; then
23596 case $host in
23597 *-*-amigaos* | *-*-msdosdjgpp*)
23598 # Override, as these systems have only a dummy fork() stub
23599 ac_cv_func_fork_works=no
23600 ;;
23601 *)
23602 ac_cv_func_fork_works=yes
23603 ;;
23604 esac
23605 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23606 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23607 fi
23608 ac_cv_func_vfork_works=$ac_cv_func_vfork
23609 if test "x$ac_cv_func_vfork" = xyes; then
23610 { echo "$as_me:$LINENO: checking for working vfork" >&5
23611 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23612 if test "${ac_cv_func_vfork_works+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23614 else
23615 if test "$cross_compiling" = yes; then
23616 ac_cv_func_vfork_works=cross
23617 else
23618 cat >conftest.$ac_ext <<_ACEOF
23619 /* confdefs.h. */
23620 _ACEOF
23621 cat confdefs.h >>conftest.$ac_ext
23622 cat >>conftest.$ac_ext <<_ACEOF
23623 /* end confdefs.h. */
23624 /* Thanks to Paul Eggert for this test. */
23625 $ac_includes_default
23626 #include <sys/wait.h>
23627 #ifdef HAVE_VFORK_H
23628 # include <vfork.h>
23629 #endif
23630 /* On some sparc systems, changes by the child to local and incoming
23631 argument registers are propagated back to the parent. The compiler
23632 is told about this with #include <vfork.h>, but some compilers
23633 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23634 static variable whose address is put into a register that is
23635 clobbered by the vfork. */
23636 static void
23637 #ifdef __cplusplus
23638 sparc_address_test (int arg)
23639 # else
23640 sparc_address_test (arg) int arg;
23641 #endif
23642 {
23643 static pid_t child;
23644 if (!child) {
23645 child = vfork ();
23646 if (child < 0) {
23647 perror ("vfork");
23648 _exit(2);
23649 }
23650 if (!child) {
23651 arg = getpid();
23652 write(-1, "", 0);
23653 _exit (arg);
23654 }
23655 }
23656 }
23657
23658 int
23659 main ()
23660 {
23661 pid_t parent = getpid ();
23662 pid_t child;
23663
23664 sparc_address_test (0);
23665
23666 child = vfork ();
23667
23668 if (child == 0) {
23669 /* Here is another test for sparc vfork register problems. This
23670 test uses lots of local variables, at least as many local
23671 variables as main has allocated so far including compiler
23672 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23673 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23674 reuse the register of parent for one of the local variables,
23675 since it will think that parent can't possibly be used any more
23676 in this routine. Assigning to the local variable will thus
23677 munge parent in the parent process. */
23678 pid_t
23679 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23680 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23681 /* Convince the compiler that p..p7 are live; otherwise, it might
23682 use the same hardware register for all 8 local variables. */
23683 if (p != p1 || p != p2 || p != p3 || p != p4
23684 || p != p5 || p != p6 || p != p7)
23685 _exit(1);
23686
23687 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23688 from child file descriptors. If the child closes a descriptor
23689 before it execs or exits, this munges the parent's descriptor
23690 as well. Test for this by closing stdout in the child. */
23691 _exit(close(fileno(stdout)) != 0);
23692 } else {
23693 int status;
23694 struct stat st;
23695
23696 while (wait(&status) != child)
23697 ;
23698 return (
23699 /* Was there some problem with vforking? */
23700 child < 0
23701
23702 /* Did the child fail? (This shouldn't happen.) */
23703 || status
23704
23705 /* Did the vfork/compiler bug occur? */
23706 || parent != getpid()
23707
23708 /* Did the file descriptor bug occur? */
23709 || fstat(fileno(stdout), &st) != 0
23710 );
23711 }
23712 }
23713 _ACEOF
23714 rm -f conftest$ac_exeext
23715 if { (ac_try="$ac_link"
23716 case "(($ac_try" in
23717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23719 esac
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721 (eval "$ac_link") 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23725 { (case "(($ac_try" in
23726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23727 *) ac_try_echo=$ac_try;;
23728 esac
23729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23730 (eval "$ac_try") 2>&5
23731 ac_status=$?
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; }; then
23734 ac_cv_func_vfork_works=yes
23735 else
23736 echo "$as_me: program exited with status $ac_status" >&5
23737 echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740 ( exit $ac_status )
23741 ac_cv_func_vfork_works=no
23742 fi
23743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23744 fi
23745
23746
23747 fi
23748 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23749 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23750
23751 fi;
23752 if test "x$ac_cv_func_fork_works" = xcross; then
23753 ac_cv_func_vfork_works=$ac_cv_func_vfork
23754 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23755 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23756 fi
23757
23758 if test "x$ac_cv_func_vfork_works" = xyes; then
23759
23760 cat >>confdefs.h <<\_ACEOF
23761 #define HAVE_WORKING_VFORK 1
23762 _ACEOF
23763
23764 else
23765
23766 cat >>confdefs.h <<\_ACEOF
23767 #define vfork fork
23768 _ACEOF
23769
23770 fi
23771 if test "x$ac_cv_func_fork_works" = xyes; then
23772
23773 cat >>confdefs.h <<\_ACEOF
23774 #define HAVE_WORKING_FORK 1
23775 _ACEOF
23776
23777 fi
23778
23779
23780 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23781 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23782 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23784 else
23785 cat >conftest.$ac_ext <<_ACEOF
23786 /* confdefs.h. */
23787 _ACEOF
23788 cat confdefs.h >>conftest.$ac_ext
23789 cat >>conftest.$ac_ext <<_ACEOF
23790 /* end confdefs.h. */
23791 #include <langinfo.h>
23792 int
23793 main ()
23794 {
23795 char* cs = nl_langinfo(CODESET);
23796 ;
23797 return 0;
23798 }
23799 _ACEOF
23800 rm -f conftest.$ac_objext conftest$ac_exeext
23801 if { (ac_try="$ac_link"
23802 case "(($ac_try" in
23803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23804 *) ac_try_echo=$ac_try;;
23805 esac
23806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23807 (eval "$ac_link") 2>conftest.er1
23808 ac_status=$?
23809 grep -v '^ *+' conftest.er1 >conftest.err
23810 rm -f conftest.er1
23811 cat conftest.err >&5
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } && {
23814 test -z "$ac_c_werror_flag" ||
23815 test ! -s conftest.err
23816 } && test -s conftest$ac_exeext &&
23817 $as_test_x conftest$ac_exeext; then
23818 emacs_cv_langinfo_codeset=yes
23819 else
23820 echo "$as_me: failed program was:" >&5
23821 sed 's/^/| /' conftest.$ac_ext >&5
23822
23823 emacs_cv_langinfo_codeset=no
23824 fi
23825
23826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23827 conftest$ac_exeext conftest.$ac_ext
23828
23829 fi
23830 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23831 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23832 if test $emacs_cv_langinfo_codeset = yes; then
23833
23834 cat >>confdefs.h <<\_ACEOF
23835 #define HAVE_LANGINFO_CODESET 1
23836 _ACEOF
23837
23838 fi
23839
23840 { echo "$as_me:$LINENO: checking for size_t" >&5
23841 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23842 if test "${ac_cv_type_size_t+set}" = set; then
23843 echo $ECHO_N "(cached) $ECHO_C" >&6
23844 else
23845 cat >conftest.$ac_ext <<_ACEOF
23846 /* confdefs.h. */
23847 _ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h. */
23851 $ac_includes_default
23852 typedef size_t ac__type_new_;
23853 int
23854 main ()
23855 {
23856 if ((ac__type_new_ *) 0)
23857 return 0;
23858 if (sizeof (ac__type_new_))
23859 return 0;
23860 ;
23861 return 0;
23862 }
23863 _ACEOF
23864 rm -f conftest.$ac_objext
23865 if { (ac_try="$ac_compile"
23866 case "(($ac_try" in
23867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23868 *) ac_try_echo=$ac_try;;
23869 esac
23870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23871 (eval "$ac_compile") 2>conftest.er1
23872 ac_status=$?
23873 grep -v '^ *+' conftest.er1 >conftest.err
23874 rm -f conftest.er1
23875 cat conftest.err >&5
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); } && {
23878 test -z "$ac_c_werror_flag" ||
23879 test ! -s conftest.err
23880 } && test -s conftest.$ac_objext; then
23881 ac_cv_type_size_t=yes
23882 else
23883 echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23885
23886 ac_cv_type_size_t=no
23887 fi
23888
23889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23890 fi
23891 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23892 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23893 if test $ac_cv_type_size_t = yes; then
23894
23895 cat >>confdefs.h <<_ACEOF
23896 #define HAVE_SIZE_T 1
23897 _ACEOF
23898
23899
23900 fi
23901
23902
23903 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23904 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23905 if test "${ac_cv_type_mbstate_t+set}" = set; then
23906 echo $ECHO_N "(cached) $ECHO_C" >&6
23907 else
23908 cat >conftest.$ac_ext <<_ACEOF
23909 /* confdefs.h. */
23910 _ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23914 $ac_includes_default
23915 # include <wchar.h>
23916 int
23917 main ()
23918 {
23919 mbstate_t x; return sizeof x;
23920 ;
23921 return 0;
23922 }
23923 _ACEOF
23924 rm -f conftest.$ac_objext
23925 if { (ac_try="$ac_compile"
23926 case "(($ac_try" in
23927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928 *) ac_try_echo=$ac_try;;
23929 esac
23930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23931 (eval "$ac_compile") 2>conftest.er1
23932 ac_status=$?
23933 grep -v '^ *+' conftest.er1 >conftest.err
23934 rm -f conftest.er1
23935 cat conftest.err >&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } && {
23938 test -z "$ac_c_werror_flag" ||
23939 test ! -s conftest.err
23940 } && test -s conftest.$ac_objext; then
23941 ac_cv_type_mbstate_t=yes
23942 else
23943 echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946 ac_cv_type_mbstate_t=no
23947 fi
23948
23949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950 fi
23951 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23952 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23953 if test $ac_cv_type_mbstate_t = yes; then
23954
23955 cat >>confdefs.h <<\_ACEOF
23956 #define HAVE_MBSTATE_T 1
23957 _ACEOF
23958
23959 else
23960
23961 cat >>confdefs.h <<\_ACEOF
23962 #define mbstate_t int
23963 _ACEOF
23964
23965 fi
23966
23967 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23968 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23969 if test "${emacs_cv_c_restrict+set}" = set; then
23970 echo $ECHO_N "(cached) $ECHO_C" >&6
23971 else
23972 cat >conftest.$ac_ext <<_ACEOF
23973 /* confdefs.h. */
23974 _ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h. */
23978 void fred (int *restrict x);
23979 int
23980 main ()
23981 {
23982
23983 ;
23984 return 0;
23985 }
23986 _ACEOF
23987 rm -f conftest.$ac_objext
23988 if { (ac_try="$ac_compile"
23989 case "(($ac_try" in
23990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23991 *) ac_try_echo=$ac_try;;
23992 esac
23993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23994 (eval "$ac_compile") 2>conftest.er1
23995 ac_status=$?
23996 grep -v '^ *+' conftest.er1 >conftest.err
23997 rm -f conftest.er1
23998 cat conftest.err >&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } && {
24001 test -z "$ac_c_werror_flag" ||
24002 test ! -s conftest.err
24003 } && test -s conftest.$ac_objext; then
24004 emacs_cv_c_restrict=yes
24005 else
24006 echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24008
24009 cat >conftest.$ac_ext <<_ACEOF
24010 /* confdefs.h. */
24011 _ACEOF
24012 cat confdefs.h >>conftest.$ac_ext
24013 cat >>conftest.$ac_ext <<_ACEOF
24014 /* end confdefs.h. */
24015 void fred (int *__restrict x);
24016 int
24017 main ()
24018 {
24019
24020 ;
24021 return 0;
24022 }
24023 _ACEOF
24024 rm -f conftest.$ac_objext
24025 if { (ac_try="$ac_compile"
24026 case "(($ac_try" in
24027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028 *) ac_try_echo=$ac_try;;
24029 esac
24030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24031 (eval "$ac_compile") 2>conftest.er1
24032 ac_status=$?
24033 grep -v '^ *+' conftest.er1 >conftest.err
24034 rm -f conftest.er1
24035 cat conftest.err >&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } && {
24038 test -z "$ac_c_werror_flag" ||
24039 test ! -s conftest.err
24040 } && test -s conftest.$ac_objext; then
24041 emacs_cv_c_restrict=__restrict
24042 else
24043 echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24045
24046 emacs_cv_c_restrict=no
24047 fi
24048
24049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050 fi
24051
24052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24053 fi
24054 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24055 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24056 case "$emacs_cv_c_restrict" in
24057 yes) emacs_restrict=restrict;;
24058 no) emacs_restrict="";;
24059 *) emacs_restrict="$emacs_cv_c_restrict";;
24060 esac
24061 if test "$emacs_restrict" != __restrict; then
24062
24063 cat >>confdefs.h <<_ACEOF
24064 #define __restrict $emacs_restrict
24065 _ACEOF
24066
24067 fi
24068
24069 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24070 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24071 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24072 echo $ECHO_N "(cached) $ECHO_C" >&6
24073 else
24074 cat >conftest.$ac_ext <<_ACEOF
24075 /* confdefs.h. */
24076 _ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h. */
24080 void fred (int x[__restrict]);
24081 int
24082 main ()
24083 {
24084
24085 ;
24086 return 0;
24087 }
24088 _ACEOF
24089 rm -f conftest.$ac_objext
24090 if { (ac_try="$ac_compile"
24091 case "(($ac_try" in
24092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24093 *) ac_try_echo=$ac_try;;
24094 esac
24095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24096 (eval "$ac_compile") 2>conftest.er1
24097 ac_status=$?
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } && {
24103 test -z "$ac_c_werror_flag" ||
24104 test ! -s conftest.err
24105 } && test -s conftest.$ac_objext; then
24106 emacs_cv_c_restrict_arr=yes
24107 else
24108 echo "$as_me: failed program was:" >&5
24109 sed 's/^/| /' conftest.$ac_ext >&5
24110
24111 emacs_cv_c_restrict_arr=no
24112 fi
24113
24114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24115 fi
24116 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24117 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24118 if test "$emacs_cv_c_restrict_arr" = yes; then
24119
24120 cat >>confdefs.h <<\_ACEOF
24121 #define __restrict_arr __restrict
24122 _ACEOF
24123
24124 fi
24125
24126
24127
24128 # Set up the CFLAGS for real compilation, so we can substitute it.
24129 CFLAGS="$REAL_CFLAGS"
24130 CPPFLAGS="$REAL_CPPFLAGS"
24131
24132 #### Find out which version of Emacs this is.
24133 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24134 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24135 if test x"${version}" = x; then
24136 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24137 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24138 { (exit 1); exit 1; }; }
24139 fi
24140
24141 ### Specify what sort of things we'll be editing into Makefile and config.h.
24142 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186 cat >>confdefs.h <<_ACEOF
24187 #define EMACS_CONFIGURATION "${canonical}"
24188 _ACEOF
24189
24190
24191 cat >>confdefs.h <<_ACEOF
24192 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24193 _ACEOF
24194
24195
24196 cat >>confdefs.h <<_ACEOF
24197 #define config_machfile "${machfile}"
24198 _ACEOF
24199
24200
24201 cat >>confdefs.h <<_ACEOF
24202 #define config_opsysfile "${opsysfile}"
24203 _ACEOF
24204
24205
24206 cat >>confdefs.h <<_ACEOF
24207 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24208 _ACEOF
24209
24210
24211 cat >>confdefs.h <<_ACEOF
24212 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24213 _ACEOF
24214
24215
24216 cat >>confdefs.h <<_ACEOF
24217 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24218 _ACEOF
24219
24220
24221 cat >>confdefs.h <<_ACEOF
24222 #define UNEXEC_SRC ${UNEXEC_SRC}
24223 _ACEOF
24224
24225
24226 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24227
24228 cat >>confdefs.h <<\_ACEOF
24229 #define HAVE_X_WINDOWS 1
24230 _ACEOF
24231
24232 fi
24233 if test "${USE_X_TOOLKIT}" != "none" ; then
24234
24235 cat >>confdefs.h <<\_ACEOF
24236 #define USE_X_TOOLKIT 1
24237 _ACEOF
24238
24239 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24240
24241 cat >>confdefs.h <<\_ACEOF
24242 #define USE_LUCID 1
24243 _ACEOF
24244
24245 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24246
24247 cat >>confdefs.h <<\_ACEOF
24248 #define USE_MOTIF 1
24249 _ACEOF
24250
24251 fi
24252 fi
24253 if test "${HAVE_X11}" = "yes" ; then
24254
24255 cat >>confdefs.h <<\_ACEOF
24256 #define HAVE_X11 1
24257 _ACEOF
24258
24259 fi
24260 if test "${HAVE_MENUS}" = "yes" ; then
24261
24262 cat >>confdefs.h <<\_ACEOF
24263 #define HAVE_MENUS 1
24264 _ACEOF
24265
24266 fi
24267 if test "${GNU_MALLOC}" = "yes" ; then
24268
24269 cat >>confdefs.h <<\_ACEOF
24270 #define GNU_MALLOC 1
24271 _ACEOF
24272
24273 fi
24274 if test "${REL_ALLOC}" = "yes" ; then
24275
24276 cat >>confdefs.h <<\_ACEOF
24277 #define REL_ALLOC 1
24278 _ACEOF
24279
24280 fi
24281
24282
24283
24284
24285
24286
24287 #### Report on what we decided to do.
24288 #### Report GTK as a toolkit, even if it doesn't use Xt.
24289 #### It makes printing result more understandable as using GTK sets
24290 #### toolkit_scroll_bars to yes by default.
24291 if test "${HAVE_GTK}" = "yes"; then
24292 USE_X_TOOLKIT=GTK
24293 fi
24294
24295 echo "
24296 Configured for \`${canonical}'.
24297
24298 Where should the build process find the source code? ${srcdir}
24299 What operating system and machine description files should Emacs use?
24300 \`${opsysfile}' and \`${machfile}'
24301 What compiler should emacs be built with? ${CC} ${CFLAGS}
24302 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24303 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24304 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24305 What window system should Emacs use? ${window_system}
24306 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24307
24308 if test -n "${x_includes}"; then
24309 echo " Where do we find X Windows header files? ${x_includes}"
24310 else
24311 echo " Where do we find X Windows header files? Standard dirs"
24312 fi
24313 if test -n "${x_libraries}"; then
24314 echo " Where do we find X Windows libraries? ${x_libraries}"
24315 else
24316 echo " Where do we find X Windows libraries? Standard dirs"
24317 fi
24318
24319 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24320 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24321 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24322 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24323 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24324 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24325 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24326 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24327 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24328
24329 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24330 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24331 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24332 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24333
24334 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24335 echo
24336
24337 if test $USE_XASSERTS = yes; then
24338 echo " Compiling with asserts turned on."
24339 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24340 fi
24341
24342 echo
24343
24344 if test "$USE_X_TOOLKIT" = GTK; then
24345 case "$canonical" in
24346 *cygwin*)
24347 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24348 will probably get a crash on startup. If this happens, please use another
24349 toolkit for Emacs. See etc/PROBLEMS for more information."
24350 ;;
24351 esac
24352 fi
24353
24354 if test "$HAVE_NS" = "yes"; then
24355 echo
24356 echo "You must run \"make install\" in order to test the built application.
24357 The installed application will go to nextstep/Emacs.app and can be
24358 run or moved from there."
24359 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24360 echo "The application will be fully self-contained."
24361 else
24362 echo "The lisp resources for the application will be installed under ${prefix}.
24363 You may need to run \"make install\" with sudo. The application will fail
24364 to run if these resources are not installed."
24365 fi
24366 echo
24367 fi
24368
24369 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24370 echo "D-Bus integration has been tested for GNU/Linux only."
24371 echo
24372 fi
24373
24374
24375 # Remove any trailing slashes in these variables.
24376 test "${prefix}" != NONE &&
24377 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24378 test "${exec_prefix}" != NONE &&
24379 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24380
24381 # Now get this: Some word that is part of the ${srcdir} directory name
24382 # or the ${configuration} value might, just might, happen to be an
24383 # identifier like `sun4' or `i386' or something, and be predefined by
24384 # the C preprocessor to some helpful value like 1, or maybe the empty
24385 # string. Needless to say consequent macro substitutions are less
24386 # than conducive to the makefile finding the correct directory.
24387 cpp_undefs="`echo $srcdir $configuration $canonical |
24388 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24389 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24390
24391 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24392 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24393 ## from Makefile.c can correctly provide the arg `-traditional' to the
24394 ## C preprocessor.
24395
24396 cat >conftest.$ac_ext <<_ACEOF
24397 /* confdefs.h. */
24398 _ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h. */
24402 yes..yes
24403 _ACEOF
24404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24405 $EGREP "yes..yes" >/dev/null 2>&1; then
24406 CPP_NEED_TRADITIONAL=no
24407 else
24408 CPP_NEED_TRADITIONAL=yes
24409 fi
24410 rm -f conftest*
24411
24412
24413 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"
24414
24415 ac_config_commands="$ac_config_commands default"
24416
24417 cat >confcache <<\_ACEOF
24418 # This file is a shell script that caches the results of configure
24419 # tests run on this system so they can be shared between configure
24420 # scripts and configure runs, see configure's option --config-cache.
24421 # It is not useful on other systems. If it contains results you don't
24422 # want to keep, you may remove or edit it.
24423 #
24424 # config.status only pays attention to the cache file if you give it
24425 # the --recheck option to rerun configure.
24426 #
24427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24429 # following values.
24430
24431 _ACEOF
24432
24433 # The following way of writing the cache mishandles newlines in values,
24434 # but we know of no workaround that is simple, portable, and efficient.
24435 # So, we kill variables containing newlines.
24436 # Ultrix sh set writes to stderr and can't be redirected directly,
24437 # and sets the high bit in the cache file unless we assign to the vars.
24438 (
24439 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24440 eval ac_val=\$$ac_var
24441 case $ac_val in #(
24442 *${as_nl}*)
24443 case $ac_var in #(
24444 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24445 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24446 esac
24447 case $ac_var in #(
24448 _ | IFS | as_nl) ;; #(
24449 *) $as_unset $ac_var ;;
24450 esac ;;
24451 esac
24452 done
24453
24454 (set) 2>&1 |
24455 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24456 *${as_nl}ac_space=\ *)
24457 # `set' does not quote correctly, so add quotes (double-quote
24458 # substitution turns \\\\ into \\, and sed turns \\ into \).
24459 sed -n \
24460 "s/'/'\\\\''/g;
24461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24462 ;; #(
24463 *)
24464 # `set' quotes correctly as required by POSIX, so do not add quotes.
24465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24466 ;;
24467 esac |
24468 sort
24469 ) |
24470 sed '
24471 /^ac_cv_env_/b end
24472 t clear
24473 :clear
24474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24475 t end
24476 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24477 :end' >>confcache
24478 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24479 if test -w "$cache_file"; then
24480 test "x$cache_file" != "x/dev/null" &&
24481 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24482 echo "$as_me: updating cache $cache_file" >&6;}
24483 cat confcache >$cache_file
24484 else
24485 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24486 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24487 fi
24488 fi
24489 rm -f confcache
24490
24491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24492 # Let make expand exec_prefix.
24493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24494
24495 DEFS=-DHAVE_CONFIG_H
24496
24497 ac_libobjs=
24498 ac_ltlibobjs=
24499 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24500 # 1. Remove the extension, and $U if already installed.
24501 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24502 ac_i=`echo "$ac_i" | sed "$ac_script"`
24503 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24504 # will be set to the directory where LIBOBJS objects are built.
24505 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24506 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24507 done
24508 LIBOBJS=$ac_libobjs
24509
24510 LTLIBOBJS=$ac_ltlibobjs
24511
24512
24513
24514 : ${CONFIG_STATUS=./config.status}
24515 ac_clean_files_save=$ac_clean_files
24516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24517 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24518 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24519 cat >$CONFIG_STATUS <<_ACEOF
24520 #! $SHELL
24521 # Generated by $as_me.
24522 # Run this file to recreate the current configuration.
24523 # Compiler output produced by configure, useful for debugging
24524 # configure, is in config.log if it exists.
24525
24526 debug=false
24527 ac_cs_recheck=false
24528 ac_cs_silent=false
24529 SHELL=\${CONFIG_SHELL-$SHELL}
24530 _ACEOF
24531
24532 cat >>$CONFIG_STATUS <<\_ACEOF
24533 ## --------------------- ##
24534 ## M4sh Initialization. ##
24535 ## --------------------- ##
24536
24537 # Be more Bourne compatible
24538 DUALCASE=1; export DUALCASE # for MKS sh
24539 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24540 emulate sh
24541 NULLCMD=:
24542 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24543 # is contrary to our usage. Disable this feature.
24544 alias -g '${1+"$@"}'='"$@"'
24545 setopt NO_GLOB_SUBST
24546 else
24547 case `(set -o) 2>/dev/null` in
24548 *posix*) set -o posix ;;
24549 esac
24550
24551 fi
24552
24553
24554
24555
24556 # PATH needs CR
24557 # Avoid depending upon Character Ranges.
24558 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24559 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24560 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24561 as_cr_digits='0123456789'
24562 as_cr_alnum=$as_cr_Letters$as_cr_digits
24563
24564 # The user is always right.
24565 if test "${PATH_SEPARATOR+set}" != set; then
24566 echo "#! /bin/sh" >conf$$.sh
24567 echo "exit 0" >>conf$$.sh
24568 chmod +x conf$$.sh
24569 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24570 PATH_SEPARATOR=';'
24571 else
24572 PATH_SEPARATOR=:
24573 fi
24574 rm -f conf$$.sh
24575 fi
24576
24577 # Support unset when possible.
24578 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24579 as_unset=unset
24580 else
24581 as_unset=false
24582 fi
24583
24584
24585 # IFS
24586 # We need space, tab and new line, in precisely that order. Quoting is
24587 # there to prevent editors from complaining about space-tab.
24588 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24589 # splitting by setting IFS to empty value.)
24590 as_nl='
24591 '
24592 IFS=" "" $as_nl"
24593
24594 # Find who we are. Look in the path if we contain no directory separator.
24595 case $0 in
24596 *[\\/]* ) as_myself=$0 ;;
24597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24598 for as_dir in $PATH
24599 do
24600 IFS=$as_save_IFS
24601 test -z "$as_dir" && as_dir=.
24602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24603 done
24604 IFS=$as_save_IFS
24605
24606 ;;
24607 esac
24608 # We did not find ourselves, most probably we were run as `sh COMMAND'
24609 # in which case we are not to be found in the path.
24610 if test "x$as_myself" = x; then
24611 as_myself=$0
24612 fi
24613 if test ! -f "$as_myself"; then
24614 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24615 { (exit 1); exit 1; }
24616 fi
24617
24618 # Work around bugs in pre-3.0 UWIN ksh.
24619 for as_var in ENV MAIL MAILPATH
24620 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24621 done
24622 PS1='$ '
24623 PS2='> '
24624 PS4='+ '
24625
24626 # NLS nuisances.
24627 for as_var in \
24628 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24629 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24630 LC_TELEPHONE LC_TIME
24631 do
24632 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24633 eval $as_var=C; export $as_var
24634 else
24635 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24636 fi
24637 done
24638
24639 # Required to use basename.
24640 if expr a : '\(a\)' >/dev/null 2>&1 &&
24641 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24642 as_expr=expr
24643 else
24644 as_expr=false
24645 fi
24646
24647 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24648 as_basename=basename
24649 else
24650 as_basename=false
24651 fi
24652
24653
24654 # Name of the executable.
24655 as_me=`$as_basename -- "$0" ||
24656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24657 X"$0" : 'X\(//\)$' \| \
24658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24659 echo X/"$0" |
24660 sed '/^.*\/\([^/][^/]*\)\/*$/{
24661 s//\1/
24662 q
24663 }
24664 /^X\/\(\/\/\)$/{
24665 s//\1/
24666 q
24667 }
24668 /^X\/\(\/\).*/{
24669 s//\1/
24670 q
24671 }
24672 s/.*/./; q'`
24673
24674 # CDPATH.
24675 $as_unset CDPATH
24676
24677
24678
24679 as_lineno_1=$LINENO
24680 as_lineno_2=$LINENO
24681 test "x$as_lineno_1" != "x$as_lineno_2" &&
24682 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24683
24684 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24685 # uniformly replaced by the line number. The first 'sed' inserts a
24686 # line-number line after each line using $LINENO; the second 'sed'
24687 # does the real work. The second script uses 'N' to pair each
24688 # line-number line with the line containing $LINENO, and appends
24689 # trailing '-' during substitution so that $LINENO is not a special
24690 # case at line end.
24691 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24692 # scripts with optimization help from Paolo Bonzini. Blame Lee
24693 # E. McMahon (1931-1989) for sed's syntax. :-)
24694 sed -n '
24695 p
24696 /[$]LINENO/=
24697 ' <$as_myself |
24698 sed '
24699 s/[$]LINENO.*/&-/
24700 t lineno
24701 b
24702 :lineno
24703 N
24704 :loop
24705 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24706 t loop
24707 s/-\n.*//
24708 ' >$as_me.lineno &&
24709 chmod +x "$as_me.lineno" ||
24710 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24711 { (exit 1); exit 1; }; }
24712
24713 # Don't try to exec as it changes $[0], causing all sort of problems
24714 # (the dirname of $[0] is not the place where we might find the
24715 # original and so on. Autoconf is especially sensitive to this).
24716 . "./$as_me.lineno"
24717 # Exit status is that of the last command.
24718 exit
24719 }
24720
24721
24722 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24723 as_dirname=dirname
24724 else
24725 as_dirname=false
24726 fi
24727
24728 ECHO_C= ECHO_N= ECHO_T=
24729 case `echo -n x` in
24730 -n*)
24731 case `echo 'x\c'` in
24732 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24733 *) ECHO_C='\c';;
24734 esac;;
24735 *)
24736 ECHO_N='-n';;
24737 esac
24738
24739 if expr a : '\(a\)' >/dev/null 2>&1 &&
24740 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24741 as_expr=expr
24742 else
24743 as_expr=false
24744 fi
24745
24746 rm -f conf$$ conf$$.exe conf$$.file
24747 if test -d conf$$.dir; then
24748 rm -f conf$$.dir/conf$$.file
24749 else
24750 rm -f conf$$.dir
24751 mkdir conf$$.dir
24752 fi
24753 echo >conf$$.file
24754 if ln -s conf$$.file conf$$ 2>/dev/null; then
24755 as_ln_s='ln -s'
24756 # ... but there are two gotchas:
24757 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24758 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24759 # In both cases, we have to default to `cp -p'.
24760 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24761 as_ln_s='cp -p'
24762 elif ln conf$$.file conf$$ 2>/dev/null; then
24763 as_ln_s=ln
24764 else
24765 as_ln_s='cp -p'
24766 fi
24767 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24768 rmdir conf$$.dir 2>/dev/null
24769
24770 if mkdir -p . 2>/dev/null; then
24771 as_mkdir_p=:
24772 else
24773 test -d ./-p && rmdir ./-p
24774 as_mkdir_p=false
24775 fi
24776
24777 if test -x / >/dev/null 2>&1; then
24778 as_test_x='test -x'
24779 else
24780 if ls -dL / >/dev/null 2>&1; then
24781 as_ls_L_option=L
24782 else
24783 as_ls_L_option=
24784 fi
24785 as_test_x='
24786 eval sh -c '\''
24787 if test -d "$1"; then
24788 test -d "$1/.";
24789 else
24790 case $1 in
24791 -*)set "./$1";;
24792 esac;
24793 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24794 ???[sx]*):;;*)false;;esac;fi
24795 '\'' sh
24796 '
24797 fi
24798 as_executable_p=$as_test_x
24799
24800 # Sed expression to map a string onto a valid CPP name.
24801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24802
24803 # Sed expression to map a string onto a valid variable name.
24804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24805
24806
24807 exec 6>&1
24808
24809 # Save the log message, to keep $[0] and so on meaningful, and to
24810 # report actual input values of CONFIG_FILES etc. instead of their
24811 # values after options handling.
24812 ac_log="
24813 This file was extended by emacs $as_me 23.0.60, which was
24814 generated by GNU Autoconf 2.61. Invocation command line was
24815
24816 CONFIG_FILES = $CONFIG_FILES
24817 CONFIG_HEADERS = $CONFIG_HEADERS
24818 CONFIG_LINKS = $CONFIG_LINKS
24819 CONFIG_COMMANDS = $CONFIG_COMMANDS
24820 $ $0 $@
24821
24822 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24823 "
24824
24825 _ACEOF
24826
24827 cat >>$CONFIG_STATUS <<_ACEOF
24828 # Files that config.status was made for.
24829 config_files="$ac_config_files"
24830 config_headers="$ac_config_headers"
24831 config_commands="$ac_config_commands"
24832
24833 _ACEOF
24834
24835 cat >>$CONFIG_STATUS <<\_ACEOF
24836 ac_cs_usage="\
24837 \`$as_me' instantiates files from templates according to the
24838 current configuration.
24839
24840 Usage: $0 [OPTIONS] [FILE]...
24841
24842 -h, --help print this help, then exit
24843 -V, --version print version number and configuration settings, then exit
24844 -q, --quiet do not print progress messages
24845 -d, --debug don't remove temporary files
24846 --recheck update $as_me by reconfiguring in the same conditions
24847 --file=FILE[:TEMPLATE]
24848 instantiate the configuration file FILE
24849 --header=FILE[:TEMPLATE]
24850 instantiate the configuration header FILE
24851
24852 Configuration files:
24853 $config_files
24854
24855 Configuration headers:
24856 $config_headers
24857
24858 Configuration commands:
24859 $config_commands
24860
24861 Report bugs to <bug-autoconf@gnu.org>."
24862
24863 _ACEOF
24864 cat >>$CONFIG_STATUS <<_ACEOF
24865 ac_cs_version="\\
24866 emacs config.status 23.0.60
24867 configured by $0, generated by GNU Autoconf 2.61,
24868 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24869
24870 Copyright (C) 2006 Free Software Foundation, Inc.
24871 This config.status script is free software; the Free Software Foundation
24872 gives unlimited permission to copy, distribute and modify it."
24873
24874 ac_pwd='$ac_pwd'
24875 srcdir='$srcdir'
24876 INSTALL='$INSTALL'
24877 _ACEOF
24878
24879 cat >>$CONFIG_STATUS <<\_ACEOF
24880 # If no file are specified by the user, then we need to provide default
24881 # value. By we need to know if files were specified by the user.
24882 ac_need_defaults=:
24883 while test $# != 0
24884 do
24885 case $1 in
24886 --*=*)
24887 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24888 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24889 ac_shift=:
24890 ;;
24891 *)
24892 ac_option=$1
24893 ac_optarg=$2
24894 ac_shift=shift
24895 ;;
24896 esac
24897
24898 case $ac_option in
24899 # Handling of the options.
24900 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24901 ac_cs_recheck=: ;;
24902 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24903 echo "$ac_cs_version"; exit ;;
24904 --debug | --debu | --deb | --de | --d | -d )
24905 debug=: ;;
24906 --file | --fil | --fi | --f )
24907 $ac_shift
24908 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24909 ac_need_defaults=false;;
24910 --header | --heade | --head | --hea )
24911 $ac_shift
24912 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24913 ac_need_defaults=false;;
24914 --he | --h)
24915 # Conflict between --help and --header
24916 { echo "$as_me: error: ambiguous option: $1
24917 Try \`$0 --help' for more information." >&2
24918 { (exit 1); exit 1; }; };;
24919 --help | --hel | -h )
24920 echo "$ac_cs_usage"; exit ;;
24921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24922 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24923 ac_cs_silent=: ;;
24924
24925 # This is an error.
24926 -*) { echo "$as_me: error: unrecognized option: $1
24927 Try \`$0 --help' for more information." >&2
24928 { (exit 1); exit 1; }; } ;;
24929
24930 *) ac_config_targets="$ac_config_targets $1"
24931 ac_need_defaults=false ;;
24932
24933 esac
24934 shift
24935 done
24936
24937 ac_configure_extra_args=
24938
24939 if $ac_cs_silent; then
24940 exec 6>/dev/null
24941 ac_configure_extra_args="$ac_configure_extra_args --silent"
24942 fi
24943
24944 _ACEOF
24945 cat >>$CONFIG_STATUS <<_ACEOF
24946 if \$ac_cs_recheck; then
24947 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24948 CONFIG_SHELL=$SHELL
24949 export CONFIG_SHELL
24950 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24951 fi
24952
24953 _ACEOF
24954 cat >>$CONFIG_STATUS <<\_ACEOF
24955 exec 5>>config.log
24956 {
24957 echo
24958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24959 ## Running $as_me. ##
24960 _ASBOX
24961 echo "$ac_log"
24962 } >&5
24963
24964 _ACEOF
24965 cat >>$CONFIG_STATUS <<_ACEOF
24966 #
24967 # INIT-COMMANDS
24968 #
24969 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24970
24971 _ACEOF
24972
24973 cat >>$CONFIG_STATUS <<\_ACEOF
24974
24975 # Handling of arguments.
24976 for ac_config_target in $ac_config_targets
24977 do
24978 case $ac_config_target in
24979 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24980 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24981 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24982 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24983 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24984 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24985 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24986 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24987 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24988 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24989 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24990 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24991 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24992
24993 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24994 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24995 { (exit 1); exit 1; }; };;
24996 esac
24997 done
24998
24999
25000 # If the user did not use the arguments to specify the items to instantiate,
25001 # then the envvar interface is used. Set only those that are not.
25002 # We use the long form for the default assignment because of an extremely
25003 # bizarre bug on SunOS 4.1.3.
25004 if $ac_need_defaults; then
25005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25008 fi
25009
25010 # Have a temporary directory for convenience. Make it in the build tree
25011 # simply because there is no reason against having it here, and in addition,
25012 # creating and moving files from /tmp can sometimes cause problems.
25013 # Hook for its removal unless debugging.
25014 # Note that there is a small window in which the directory will not be cleaned:
25015 # after its creation but before its name has been assigned to `$tmp'.
25016 $debug ||
25017 {
25018 tmp=
25019 trap 'exit_status=$?
25020 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25021 ' 0
25022 trap '{ (exit 1); exit 1; }' 1 2 13 15
25023 }
25024 # Create a (secure) tmp directory for tmp files.
25025
25026 {
25027 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25028 test -n "$tmp" && test -d "$tmp"
25029 } ||
25030 {
25031 tmp=./conf$$-$RANDOM
25032 (umask 077 && mkdir "$tmp")
25033 } ||
25034 {
25035 echo "$me: cannot create a temporary directory in ." >&2
25036 { (exit 1); exit 1; }
25037 }
25038
25039 #
25040 # Set up the sed scripts for CONFIG_FILES section.
25041 #
25042
25043 # No need to generate the scripts if there are no CONFIG_FILES.
25044 # This happens for instance when ./config.status config.h
25045 if test -n "$CONFIG_FILES"; then
25046
25047 _ACEOF
25048
25049
25050
25051 ac_delim='%!_!# '
25052 for ac_last_try in false false false false false :; do
25053 cat >conf$$subs.sed <<_ACEOF
25054 SHELL!$SHELL$ac_delim
25055 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25056 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25057 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25058 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25059 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25060 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25061 exec_prefix!$exec_prefix$ac_delim
25062 prefix!$prefix$ac_delim
25063 program_transform_name!$program_transform_name$ac_delim
25064 bindir!$bindir$ac_delim
25065 sbindir!$sbindir$ac_delim
25066 libexecdir!$libexecdir$ac_delim
25067 datarootdir!$datarootdir$ac_delim
25068 datadir!$datadir$ac_delim
25069 sysconfdir!$sysconfdir$ac_delim
25070 sharedstatedir!$sharedstatedir$ac_delim
25071 localstatedir!$localstatedir$ac_delim
25072 includedir!$includedir$ac_delim
25073 oldincludedir!$oldincludedir$ac_delim
25074 docdir!$docdir$ac_delim
25075 infodir!$infodir$ac_delim
25076 htmldir!$htmldir$ac_delim
25077 dvidir!$dvidir$ac_delim
25078 pdfdir!$pdfdir$ac_delim
25079 psdir!$psdir$ac_delim
25080 libdir!$libdir$ac_delim
25081 localedir!$localedir$ac_delim
25082 mandir!$mandir$ac_delim
25083 DEFS!$DEFS$ac_delim
25084 ECHO_C!$ECHO_C$ac_delim
25085 ECHO_N!$ECHO_N$ac_delim
25086 ECHO_T!$ECHO_T$ac_delim
25087 LIBS!$LIBS$ac_delim
25088 build_alias!$build_alias$ac_delim
25089 host_alias!$host_alias$ac_delim
25090 target_alias!$target_alias$ac_delim
25091 MAINT!$MAINT$ac_delim
25092 build!$build$ac_delim
25093 build_cpu!$build_cpu$ac_delim
25094 build_vendor!$build_vendor$ac_delim
25095 build_os!$build_os$ac_delim
25096 host!$host$ac_delim
25097 host_cpu!$host_cpu$ac_delim
25098 host_vendor!$host_vendor$ac_delim
25099 host_os!$host_os$ac_delim
25100 CC!$CC$ac_delim
25101 CFLAGS!$CFLAGS$ac_delim
25102 LDFLAGS!$LDFLAGS$ac_delim
25103 CPPFLAGS!$CPPFLAGS$ac_delim
25104 ac_ct_CC!$ac_ct_CC$ac_delim
25105 EXEEXT!$EXEEXT$ac_delim
25106 OBJEXT!$OBJEXT$ac_delim
25107 CPP!$CPP$ac_delim
25108 GREP!$GREP$ac_delim
25109 EGREP!$EGREP$ac_delim
25110 LN_S!$LN_S$ac_delim
25111 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25112 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25113 INSTALL_DATA!$INSTALL_DATA$ac_delim
25114 RANLIB!$RANLIB$ac_delim
25115 INSTALL_INFO!$INSTALL_INFO$ac_delim
25116 GZIP_PROG!$GZIP_PROG$ac_delim
25117 MAKEINFO!$MAKEINFO$ac_delim
25118 LIBSOUND!$LIBSOUND$ac_delim
25119 PKG_CONFIG!$PKG_CONFIG$ac_delim
25120 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25121 ALSA_LIBS!$ALSA_LIBS$ac_delim
25122 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25123 SET_MAKE!$SET_MAKE$ac_delim
25124 XMKMF!$XMKMF$ac_delim
25125 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25126 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25127 RSVG_LIBS!$RSVG_LIBS$ac_delim
25128 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25129 GTK_LIBS!$GTK_LIBS$ac_delim
25130 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25131 DBUS_LIBS!$DBUS_LIBS$ac_delim
25132 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25133 XFT_LIBS!$XFT_LIBS$ac_delim
25134 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25135 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25136 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25137 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25138 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25139 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25140 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25141 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25142 ALLOCA!$ALLOCA$ac_delim
25143 liblockfile!$liblockfile$ac_delim
25144 LIBOBJS!$LIBOBJS$ac_delim
25145 NEED_SETGID!$NEED_SETGID$ac_delim
25146 KMEM_GROUP!$KMEM_GROUP$ac_delim
25147 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25148 GETOPT_H!$GETOPT_H$ac_delim
25149 GETOPTOBJS!$GETOPTOBJS$ac_delim
25150 version!$version$ac_delim
25151 _ACEOF
25152
25153 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25154 break
25155 elif $ac_last_try; then
25156 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25157 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25158 { (exit 1); exit 1; }; }
25159 else
25160 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25161 fi
25162 done
25163
25164 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25165 if test -n "$ac_eof"; then
25166 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25167 ac_eof=`expr $ac_eof + 1`
25168 fi
25169
25170 cat >>$CONFIG_STATUS <<_ACEOF
25171 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25173 _ACEOF
25174 sed '
25175 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25176 s/^/s,@/; s/!/@,|#_!!_#|/
25177 :n
25178 t n
25179 s/'"$ac_delim"'$/,g/; t
25180 s/$/\\/; p
25181 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25182 ' >>$CONFIG_STATUS <conf$$subs.sed
25183 rm -f conf$$subs.sed
25184 cat >>$CONFIG_STATUS <<_ACEOF
25185 CEOF$ac_eof
25186 _ACEOF
25187
25188
25189 ac_delim='%!_!# '
25190 for ac_last_try in false false false false false :; do
25191 cat >conf$$subs.sed <<_ACEOF
25192 configuration!$configuration$ac_delim
25193 canonical!$canonical$ac_delim
25194 srcdir!$srcdir$ac_delim
25195 lispdir!$lispdir$ac_delim
25196 locallisppath!$locallisppath$ac_delim
25197 lisppath!$lisppath$ac_delim
25198 x_default_search_path!$x_default_search_path$ac_delim
25199 etcdir!$etcdir$ac_delim
25200 archlibdir!$archlibdir$ac_delim
25201 bitmapdir!$bitmapdir$ac_delim
25202 gamedir!$gamedir$ac_delim
25203 gameuser!$gameuser$ac_delim
25204 c_switch_system!$c_switch_system$ac_delim
25205 c_switch_machine!$c_switch_machine$ac_delim
25206 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25207 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25208 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25209 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25210 machfile!$machfile$ac_delim
25211 opsysfile!$opsysfile$ac_delim
25212 ns_appdir!$ns_appdir$ac_delim
25213 ns_appbindir!$ns_appbindir$ac_delim
25214 ns_appresdir!$ns_appresdir$ac_delim
25215 ns_appsrc!$ns_appsrc$ac_delim
25216 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25217 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25218 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25219 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25220 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25221 LTLIBOBJS!$LTLIBOBJS$ac_delim
25222 _ACEOF
25223
25224 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25225 break
25226 elif $ac_last_try; then
25227 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25228 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25229 { (exit 1); exit 1; }; }
25230 else
25231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25232 fi
25233 done
25234
25235 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25236 if test -n "$ac_eof"; then
25237 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25238 ac_eof=`expr $ac_eof + 1`
25239 fi
25240
25241 cat >>$CONFIG_STATUS <<_ACEOF
25242 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25244 _ACEOF
25245 sed '
25246 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25247 s/^/s,@/; s/!/@,|#_!!_#|/
25248 :n
25249 t n
25250 s/'"$ac_delim"'$/,g/; t
25251 s/$/\\/; p
25252 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25253 ' >>$CONFIG_STATUS <conf$$subs.sed
25254 rm -f conf$$subs.sed
25255 cat >>$CONFIG_STATUS <<_ACEOF
25256 :end
25257 s/|#_!!_#|//g
25258 CEOF$ac_eof
25259 _ACEOF
25260
25261
25262 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25263 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25264 # trailing colons and then remove the whole line if VPATH becomes empty
25265 # (actually we leave an empty line to preserve line numbers).
25266 if test "x$srcdir" = x.; then
25267 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25268 s/:*\$(srcdir):*/:/
25269 s/:*\${srcdir}:*/:/
25270 s/:*@srcdir@:*/:/
25271 s/^\([^=]*=[ ]*\):*/\1/
25272 s/:*$//
25273 s/^[^=]*=[ ]*$//
25274 }'
25275 fi
25276
25277 cat >>$CONFIG_STATUS <<\_ACEOF
25278 fi # test -n "$CONFIG_FILES"
25279
25280
25281 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25282 do
25283 case $ac_tag in
25284 :[FHLC]) ac_mode=$ac_tag; continue;;
25285 esac
25286 case $ac_mode$ac_tag in
25287 :[FHL]*:*);;
25288 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25289 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25290 { (exit 1); exit 1; }; };;
25291 :[FH]-) ac_tag=-:-;;
25292 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25293 esac
25294 ac_save_IFS=$IFS
25295 IFS=:
25296 set x $ac_tag
25297 IFS=$ac_save_IFS
25298 shift
25299 ac_file=$1
25300 shift
25301
25302 case $ac_mode in
25303 :L) ac_source=$1;;
25304 :[FH])
25305 ac_file_inputs=
25306 for ac_f
25307 do
25308 case $ac_f in
25309 -) ac_f="$tmp/stdin";;
25310 *) # Look for the file first in the build tree, then in the source tree
25311 # (if the path is not absolute). The absolute path cannot be DOS-style,
25312 # because $ac_f cannot contain `:'.
25313 test -f "$ac_f" ||
25314 case $ac_f in
25315 [\\/$]*) false;;
25316 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25317 esac ||
25318 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25319 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25320 { (exit 1); exit 1; }; };;
25321 esac
25322 ac_file_inputs="$ac_file_inputs $ac_f"
25323 done
25324
25325 # Let's still pretend it is `configure' which instantiates (i.e., don't
25326 # use $as_me), people would be surprised to read:
25327 # /* config.h. Generated by config.status. */
25328 configure_input="Generated from "`IFS=:
25329 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25330 if test x"$ac_file" != x-; then
25331 configure_input="$ac_file. $configure_input"
25332 { echo "$as_me:$LINENO: creating $ac_file" >&5
25333 echo "$as_me: creating $ac_file" >&6;}
25334 fi
25335
25336 case $ac_tag in
25337 *:-:* | *:-) cat >"$tmp/stdin";;
25338 esac
25339 ;;
25340 esac
25341
25342 ac_dir=`$as_dirname -- "$ac_file" ||
25343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25344 X"$ac_file" : 'X\(//\)[^/]' \| \
25345 X"$ac_file" : 'X\(//\)$' \| \
25346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25347 echo X"$ac_file" |
25348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25349 s//\1/
25350 q
25351 }
25352 /^X\(\/\/\)[^/].*/{
25353 s//\1/
25354 q
25355 }
25356 /^X\(\/\/\)$/{
25357 s//\1/
25358 q
25359 }
25360 /^X\(\/\).*/{
25361 s//\1/
25362 q
25363 }
25364 s/.*/./; q'`
25365 { as_dir="$ac_dir"
25366 case $as_dir in #(
25367 -*) as_dir=./$as_dir;;
25368 esac
25369 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25370 as_dirs=
25371 while :; do
25372 case $as_dir in #(
25373 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25374 *) as_qdir=$as_dir;;
25375 esac
25376 as_dirs="'$as_qdir' $as_dirs"
25377 as_dir=`$as_dirname -- "$as_dir" ||
25378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25379 X"$as_dir" : 'X\(//\)[^/]' \| \
25380 X"$as_dir" : 'X\(//\)$' \| \
25381 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25382 echo X"$as_dir" |
25383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25384 s//\1/
25385 q
25386 }
25387 /^X\(\/\/\)[^/].*/{
25388 s//\1/
25389 q
25390 }
25391 /^X\(\/\/\)$/{
25392 s//\1/
25393 q
25394 }
25395 /^X\(\/\).*/{
25396 s//\1/
25397 q
25398 }
25399 s/.*/./; q'`
25400 test -d "$as_dir" && break
25401 done
25402 test -z "$as_dirs" || eval "mkdir $as_dirs"
25403 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25404 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25405 { (exit 1); exit 1; }; }; }
25406 ac_builddir=.
25407
25408 case "$ac_dir" in
25409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25410 *)
25411 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25412 # A ".." for each directory in $ac_dir_suffix.
25413 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25414 case $ac_top_builddir_sub in
25415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25417 esac ;;
25418 esac
25419 ac_abs_top_builddir=$ac_pwd
25420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25421 # for backward compatibility:
25422 ac_top_builddir=$ac_top_build_prefix
25423
25424 case $srcdir in
25425 .) # We are building in place.
25426 ac_srcdir=.
25427 ac_top_srcdir=$ac_top_builddir_sub
25428 ac_abs_top_srcdir=$ac_pwd ;;
25429 [\\/]* | ?:[\\/]* ) # Absolute name.
25430 ac_srcdir=$srcdir$ac_dir_suffix;
25431 ac_top_srcdir=$srcdir
25432 ac_abs_top_srcdir=$srcdir ;;
25433 *) # Relative name.
25434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25435 ac_top_srcdir=$ac_top_build_prefix$srcdir
25436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25437 esac
25438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25439
25440
25441 case $ac_mode in
25442 :F)
25443 #
25444 # CONFIG_FILE
25445 #
25446
25447 case $INSTALL in
25448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25449 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25450 esac
25451 _ACEOF
25452
25453 cat >>$CONFIG_STATUS <<\_ACEOF
25454 # If the template does not know about datarootdir, expand it.
25455 # FIXME: This hack should be removed a few years after 2.60.
25456 ac_datarootdir_hack=; ac_datarootdir_seen=
25457
25458 case `sed -n '/datarootdir/ {
25459 p
25460 q
25461 }
25462 /@datadir@/p
25463 /@docdir@/p
25464 /@infodir@/p
25465 /@localedir@/p
25466 /@mandir@/p
25467 ' $ac_file_inputs` in
25468 *datarootdir*) ac_datarootdir_seen=yes;;
25469 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25470 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25471 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25472 _ACEOF
25473 cat >>$CONFIG_STATUS <<_ACEOF
25474 ac_datarootdir_hack='
25475 s&@datadir@&$datadir&g
25476 s&@docdir@&$docdir&g
25477 s&@infodir@&$infodir&g
25478 s&@localedir@&$localedir&g
25479 s&@mandir@&$mandir&g
25480 s&\\\${datarootdir}&$datarootdir&g' ;;
25481 esac
25482 _ACEOF
25483
25484 # Neutralize VPATH when `$srcdir' = `.'.
25485 # Shell code in configure.ac might set extrasub.
25486 # FIXME: do we really want to maintain this feature?
25487 cat >>$CONFIG_STATUS <<_ACEOF
25488 sed "$ac_vpsub
25489 $extrasub
25490 _ACEOF
25491 cat >>$CONFIG_STATUS <<\_ACEOF
25492 :t
25493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25494 s&@configure_input@&$configure_input&;t t
25495 s&@top_builddir@&$ac_top_builddir_sub&;t t
25496 s&@srcdir@&$ac_srcdir&;t t
25497 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25498 s&@top_srcdir@&$ac_top_srcdir&;t t
25499 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25500 s&@builddir@&$ac_builddir&;t t
25501 s&@abs_builddir@&$ac_abs_builddir&;t t
25502 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25503 s&@INSTALL@&$ac_INSTALL&;t t
25504 $ac_datarootdir_hack
25505 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25506
25507 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25508 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25509 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25510 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25511 which seems to be undefined. Please make sure it is defined." >&5
25512 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25513 which seems to be undefined. Please make sure it is defined." >&2;}
25514
25515 rm -f "$tmp/stdin"
25516 case $ac_file in
25517 -) cat "$tmp/out"; rm -f "$tmp/out";;
25518 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25519 esac
25520 ;;
25521 :H)
25522 #
25523 # CONFIG_HEADER
25524 #
25525 _ACEOF
25526
25527 # Transform confdefs.h into a sed script `conftest.defines', that
25528 # substitutes the proper values into config.h.in to produce config.h.
25529 rm -f conftest.defines conftest.tail
25530 # First, append a space to every undef/define line, to ease matching.
25531 echo 's/$/ /' >conftest.defines
25532 # Then, protect against being on the right side of a sed subst, or in
25533 # an unquoted here document, in config.status. If some macros were
25534 # called several times there might be several #defines for the same
25535 # symbol, which is useless. But do not sort them, since the last
25536 # AC_DEFINE must be honored.
25537 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25538 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25539 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25540 # PARAMS is the parameter list in the macro definition--in most cases, it's
25541 # just an empty string.
25542 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25543 ac_dB='\\)[ (].*,\\1define\\2'
25544 ac_dC=' '
25545 ac_dD=' ,'
25546
25547 uniq confdefs.h |
25548 sed -n '
25549 t rset
25550 :rset
25551 s/^[ ]*#[ ]*define[ ][ ]*//
25552 t ok
25553 d
25554 :ok
25555 s/[\\&,]/\\&/g
25556 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25557 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25558 ' >>conftest.defines
25559
25560 # Remove the space that was appended to ease matching.
25561 # Then replace #undef with comments. This is necessary, for
25562 # example, in the case of _POSIX_SOURCE, which is predefined and required
25563 # on some systems where configure will not decide to define it.
25564 # (The regexp can be short, since the line contains either #define or #undef.)
25565 echo 's/ $//
25566 s,^[ #]*u.*,/* & */,' >>conftest.defines
25567
25568 # Break up conftest.defines:
25569 ac_max_sed_lines=50
25570
25571 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25572 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25573 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25574 # et cetera.
25575 ac_in='$ac_file_inputs'
25576 ac_out='"$tmp/out1"'
25577 ac_nxt='"$tmp/out2"'
25578
25579 while :
25580 do
25581 # Write a here document:
25582 cat >>$CONFIG_STATUS <<_ACEOF
25583 # First, check the format of the line:
25584 cat >"\$tmp/defines.sed" <<\\CEOF
25585 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25586 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25587 b
25588 :def
25589 _ACEOF
25590 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25591 echo 'CEOF
25592 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25593 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25594 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25595 grep . conftest.tail >/dev/null || break
25596 rm -f conftest.defines
25597 mv conftest.tail conftest.defines
25598 done
25599 rm -f conftest.defines conftest.tail
25600
25601 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25602 cat >>$CONFIG_STATUS <<\_ACEOF
25603 if test x"$ac_file" != x-; then
25604 echo "/* $configure_input */" >"$tmp/config.h"
25605 cat "$ac_result" >>"$tmp/config.h"
25606 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25607 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25608 echo "$as_me: $ac_file is unchanged" >&6;}
25609 else
25610 rm -f $ac_file
25611 mv "$tmp/config.h" $ac_file
25612 fi
25613 else
25614 echo "/* $configure_input */"
25615 cat "$ac_result"
25616 fi
25617 rm -f "$tmp/out12"
25618 ;;
25619
25620 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25621 echo "$as_me: executing $ac_file commands" >&6;}
25622 ;;
25623 esac
25624
25625
25626 case $ac_file$ac_mode in
25627 "default":C)
25628
25629 ### Make the necessary directories, if they don't exist.
25630 for dir in etc lisp ; do
25631 test -d ${dir} || mkdir ${dir}
25632 done
25633
25634 # Build src/Makefile from ${srcdir}/src/Makefile.c
25635 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25636 # This must be done after src/config.h is built, since we rely on that file.
25637
25638 echo creating src/epaths.h
25639 ${MAKE-make} epaths-force
25640
25641 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25642 # `..' to `. .' unless invoked with -traditional
25643
25644 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25645 CPPFLAGS="$CPPFLAGS -traditional"
25646 fi
25647
25648 echo creating lib-src/Makefile
25649 ( cd lib-src
25650 rm -f junk.c junk1.c junk2.c
25651 sed -e '/start of cpp stuff/q' \
25652 < Makefile.c > junk1.c
25653 sed -e '1,/start of cpp stuff/d'\
25654 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25655 < Makefile.c > junk.c
25656 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25657 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25658 cat junk1.c junk2.c > Makefile.new
25659 rm -f junk.c junk1.c junk2.c
25660 chmod 444 Makefile.new
25661 mv -f Makefile.new Makefile
25662 )
25663
25664 echo creating src/Makefile
25665 ( cd src
25666 rm -f junk.c junk1.c junk2.c
25667 sed -e '/start of cpp stuff/q' \
25668 < Makefile.c > junk1.c
25669 sed -e '1,/start of cpp stuff/d'\
25670 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25671 < Makefile.c > junk.c
25672 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25673 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25674 cat junk1.c junk2.c > Makefile.new
25675 rm -f junk.c junk1.c junk2.c
25676 chmod 444 Makefile.new
25677 mv -f Makefile.new Makefile
25678 )
25679
25680 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25681 echo creating src/.gdbinit
25682 echo source $srcdir/src/.gdbinit > src/.gdbinit
25683 fi
25684
25685 ;;
25686
25687 esac
25688 done # for ac_tag
25689
25690
25691 { (exit 0); exit 0; }
25692 _ACEOF
25693 chmod +x $CONFIG_STATUS
25694 ac_clean_files=$ac_clean_files_save
25695
25696
25697 # configure is writing to config.log, and then calls config.status.
25698 # config.status does its own redirection, appending to config.log.
25699 # Unfortunately, on DOS this fails, as config.log is still kept open
25700 # by configure, so config.status won't be able to write to it; its
25701 # output is simply discarded. So we exec the FD to /dev/null,
25702 # effectively closing config.log, so it can be properly (re)opened and
25703 # appended to by config.status. When coming back to configure, we
25704 # need to make the FD available again.
25705 if test "$no_create" != yes; then
25706 ac_cs_success=:
25707 ac_config_status_args=
25708 test "$silent" = yes &&
25709 ac_config_status_args="$ac_config_status_args --quiet"
25710 exec 5>/dev/null
25711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25712 exec 5>>config.log
25713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25714 # would make configure fail if this is the last instruction.
25715 $ac_cs_success || { (exit 1); exit 1; }
25716 fi
25717
25718